/* bullterm terminal — black bull theme. One committed look: near-black ground,
 * blood-red accent, phosphor text. */
:root {
  color-scheme: dark;
  --bg: #070607;
  --panel: #0d0b0c;
  --line: #241d1f;
  --fg: #e8e2dc;
  --dim: #8a7f7b;
  --red: #ff3b30;
  --red-soft: rgba(255, 59, 48, .14);
  --gold: #f5b942;
  --green: #58d68d;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 14px/1.55 var(--mono);
}

/* faint scanlines; decorative only */
.crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 9;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: no-preference) {
  .crt { animation: flicker 6s infinite; }
  @keyframes flicker { 0%,100% {opacity:.9} 50% {opacity:.75} }
}

.frame {
  height: 100dvh; max-width: 980px; margin: 0 auto;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  background: var(--panel);
}

/* ---- top bar ---- */
.bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.bar__dot {
  width: 12px; height: 12px; border-radius: 999px; flex: none;
  background: radial-gradient(circle at 30% 30%, #ff6b60, var(--red) 55%, #7a120c);
  box-shadow: 0 0 14px rgba(255, 59, 48, .55);
}
.bar__title { font-weight: 700; letter-spacing: .06em; }
.bar__sub { color: var(--dim); font-weight: 400; letter-spacing: 0; }
.bar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.bar__btn {
  font: 12px var(--mono); cursor: pointer; text-decoration: none;
  color: #ffb4ae; background: var(--red-soft); border: 1px solid rgba(255,59,48,.4);
  border-radius: 6px; padding: 3px 9px;
}
.bar__btn:hover { background: rgba(255,59,48,.25); }

/* ---- screen ---- */
.screen {
  flex: 1; overflow-y: auto; padding: 16px 14px 8px;
  overflow-x: hidden; overscroll-behavior: contain;
}
.screen pre {
  margin: 0 0 2px; white-space: pre-wrap; word-break: break-word;
  font: inherit;
}
.ln--cmd { color: var(--dim); }
.ln--cmd b { color: var(--fg); font-weight: 600; }
.ln--err { color: #ff8a80; }
.ln--sys { color: var(--dim); }
.ln--agent { color: #ffd9d5; }
.ln--banner { color: var(--red); text-shadow: 0 0 12px rgba(255,59,48,.35); }
.ln--gold { color: var(--gold); }

.t-pet { color: var(--gold); }
.t-called { color: var(--green); }
.t-namesake, .t-unverified { color: var(--red); }
.up { color: var(--green); }
.down { color: #ff8a80; }
.dim { color: var(--dim); }

.ca-inline { cursor: pointer; border-bottom: 1px dashed var(--dim); }
.ca-inline:hover { color: #fff; }

/* ---- prompt ---- */
.promptline {
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--line); padding: 10px 14px; background: #0a0809;
}
.promptline__ps1 { color: var(--red); white-space: nowrap; }
.promptline__input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--fg); font: inherit; caret-color: var(--red);
}
.promptline__input::placeholder { color: #574f4c; }

/* ---- footer chips ---- */
.foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 14px 12px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--dim); background: #0a0809;
}
.chip {
  cursor: pointer; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--dim);
}
.chip:hover { color: var(--fg); border-color: rgba(255,59,48,.4); }
.foot__right { margin-left: auto; text-align: right; }
.foot a { color: var(--dim); }

@media (max-width: 640px) {
  body { font-size: 12.5px; }
  .bar__right { width: 100%; }
  .foot__right { margin-left: 0; width: 100%; }
}
