/* BBS mode — phosphor green CRT, IBM VGA 8x16 */

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.35;
}

.bbs-screen {
  position: fixed; inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1rem 1.5rem;
  gap: .75rem;
  font-family: var(--font-body);
}

.status {
  display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap;
  border-bottom: 1px solid var(--dimmer);
  padding-bottom: .35rem;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--dim);
}
.status .warn { color: var(--warn); }

.output {
  overflow-y: auto;
  padding: .5rem 0;
  font-family: var(--font-body);
  scroll-behavior: smooth;
  text-shadow:
    0 0 1px var(--fg),
    0 0 5px color-mix(in srgb, var(--accent) 45%, transparent);
}
.output::-webkit-scrollbar { width: 8px; }
.output::-webkit-scrollbar-track { background: transparent; }
.output::-webkit-scrollbar-thumb {
  background: var(--dimmer);
  border-radius: 0;
}

.term-line {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-line.dim   { color: var(--dim); }
.term-line.warn  { color: var(--warn); }
.term-line.alert { color: var(--alert); text-shadow: 0 0 6px var(--alert); }

.term-link {
  color: var(--accent, var(--warn));
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 80ms ease, text-shadow 80ms ease;
}
.term-link:hover,
.term-link:focus {
  color: var(--fg);
  text-shadow: 0 0 6px var(--accent, var(--warn));
  text-decoration-style: solid;
  outline: none;
}

.prompt-row {
  display: flex; align-items: center;
  border-top: 1px solid var(--dimmer);
  padding-top: .5rem;
}
.prompt {
  color: var(--accent);
  font-weight: bold;
  margin-right: 1ch;
  white-space: pre-wrap;
}
#cmd {
  flex: 1;
  background: transparent;
  color: var(--fg);
  border: none; outline: none;
  font-family: inherit;
  font-size: inherit;
  caret-color: var(--accent);
}
#cmd::placeholder { color: var(--dimmer); }

/* menu rows double as tap targets (hotkey mode hides the input) */
.term-action { cursor: pointer; }
.term-action:hover,
.term-action:active {
  color: var(--fg);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  text-shadow: 0 0 6px var(--accent);
}

/* heavy phosphor glow */
.bbs-screen { text-shadow: 0 0 1px var(--fg); }

/* small screens — the BBS still answers */
@media (max-width: 720px) {
  body { font-size: 13px; }
  .bbs-screen { padding: .6rem .7rem; gap: .5rem; }
  .status { gap: .6rem; font-size: 11px; letter-spacing: 0; }
  .status .hide-sm { display: none; }
  .term-action { padding: .15rem 0; }
}
