/* ============================================================
   dbug.om — terminal theme
   ============================================================ */
:root {
  --bg:      #050a06;
  --fg:      #b9f6b0;
  --green:   #3dff73;
  --cyan:    #3ae0d8;
  --orange:  #ffb000;
  --red:     #ff5252;
  --dim:     #5d8266;
  --white:   #e8ffe9;
  --ai:      #8be9fd;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- CRT effects ---- */
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
  animation: flicker 4s infinite;
}
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 61;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}
@keyframes flicker { 0%,100% { opacity: .95; } 50% { opacity: 1; } }

/* ---- status bar (top) ---- */
#statusbar {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem 1rem; font-size: .78rem; color: var(--dim);
  border-bottom: 1px solid #10331d; background: rgba(5,10,6,.92);
  position: sticky; top: 0; z-index: 10;
  white-space: nowrap; overflow: hidden;
}
#statusbar .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); margin-right: .5rem;
  box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* ---- terminal ---- */
#terminal {
  flex: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

.line {
  white-space: pre-wrap;
  word-break: break-word;
  text-shadow: 0 0 6px rgba(61,255,115,.18);
}

.banner {
  color: var(--green);
  text-shadow: 0 0 10px rgba(61,255,115,.45);
  font-size: clamp(6px, 1.75vw, 13px);
  line-height: 1.15;
  overflow-x: auto;
  margin: .25rem 0;
  font-family: inherit;
}

/* colors */
.g { color: var(--green); }  .c { color: var(--cyan); }
.o { color: var(--orange); } .r { color: var(--red); }
.d { color: var(--dim); }    .w { color: var(--white); }
.b { font-weight: 700; }

a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #9ff3ee; }

/* AI reply */
.line.ai {
  color: var(--ai);
  border-left: 2px solid #134e4a;
  padding-left: .7rem;
  margin: .12rem 0;
}
.line.cv { color: #d3f8d3; }

/* ---- input line ---- */
#inputline { display: flex; align-items: baseline; gap: .6rem; margin-top: .35rem; }
.prompt { white-space: nowrap; }
#cmd {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--white);
  font: inherit;
  caret-color: var(--green);
  text-shadow: 0 0 6px rgba(61,255,115,.25);
}
#cmd:disabled { opacity: .4; }

/* ---- hint bar (bottom) ---- */
#hintbar {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  padding: .5rem 1rem; font-size: .78rem; color: var(--dim);
  border-top: 1px solid #10331d; background: rgba(5,10,6,.94);
}
.chip {
  background: #0a1f10;
  border: 1px solid #1d4a2a;
  color: var(--green);
  font: inherit; font-size: .78rem;
  padding: .15rem .6rem;
  border-radius: 3px;
  cursor: pointer;
}
.chip:hover { background: #103a1c; box-shadow: 0 0 8px rgba(61,255,115,.25); }

::selection { background: #14532d; color: #fff; }

@media (max-width: 640px) {
  body { font-size: 14px; }
  #statusbar .sb-right { display: none; }
}
