/* ============================================================
   STATIC FALLS — retro 80s sci-fi mystery styling
   ============================================================ */

:root {
  --bg: #0a0a12;
  --bg2: #12121f;
  --red: #ff2a4f;
  --red-glow: rgba(255, 42, 79, .55);
  --cyan: #48dbfb;
  --cyan-glow: rgba(72, 219, 251, .4);
  --amber: #ffb830;
  --green: #3ae374;
  --text: #e8e6f0;
  --dim: #8a87a3;
  --card: #161628;
  --card-edge: #2a2a45;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Courier New', 'Consolas', monospace;
  min-height: 100%;
}

body::before { /* scanlines */
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
  pointer-events: none; z-index: 9999;
}
body::after { /* vignette */
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
  pointer-events: none; z-index: 9998;
}

#app { max-width: 760px; margin: 0 auto; padding: 14px 14px 60px; }

.screen { animation: fadein .3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.center-screen {
  min-height: 88vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 18px;
}

.dim { color: var(--dim); }
.small { font-size: .7em; }

/* ---------- title ---------- */
.game-title {
  font-size: clamp(52px, 13vw, 96px);
  line-height: .95; letter-spacing: .06em;
  color: var(--red);
  text-shadow: 0 0 8px var(--red-glow), 0 0 28px var(--red-glow), 0 0 60px rgba(255,42,79,.3);
  animation: flicker 4s infinite;
  font-weight: 700;
}
.small-title { font-size: clamp(36px, 9vw, 64px); }
@keyframes flicker {
  0%, 100% { opacity: 1; }
  3% { opacity: .55; } 4% { opacity: 1; }
  36% { opacity: 1; } 37% { opacity: .5; } 38% { opacity: 1; }
  71% { opacity: 1; } 72% { opacity: .75; } 74% { opacity: 1; }
}
.vhs-note {
  color: var(--cyan); letter-spacing: .5em; font-size: 12px;
  text-shadow: 0 0 10px var(--cyan-glow);
}
.tagline { color: var(--dim); font-size: 15px; max-width: 420px; }
.title-foot { color: var(--dim); font-size: 12px; margin-top: 26px; letter-spacing: .2em; }

/* ---------- buttons ---------- */
.btn {
  font-family: inherit; cursor: pointer;
  background: var(--card); color: var(--text);
  border: 1px solid var(--card-edge);
  padding: 12px 22px; font-size: 15px; letter-spacing: .08em;
  border-radius: 4px; transition: all .15s;
}
.btn:hover { border-color: var(--cyan); box-shadow: 0 0 14px var(--cyan-glow); }
.btn-primary {
  background: linear-gradient(180deg, #2a1020, #1c0a16);
  border-color: var(--red); color: #fff;
  box-shadow: 0 0 12px rgba(255,42,79,.25);
}
.btn-primary:hover { box-shadow: 0 0 22px var(--red-glow); border-color: var(--red); }
.btn-primary.big { font-size: 18px; padding: 16px 34px; }
.btn-ghost { background: transparent; color: var(--dim); border-color: transparent; }
.btn-ghost:hover { color: var(--text); box-shadow: none; border-color: var(--card-edge); }
.btn-surge {
  background: linear-gradient(180deg, #241a02, #1a1200);
  border-color: var(--amber); color: var(--amber);
  box-shadow: 0 0 12px rgba(255,184,48,.2);
}
.icon-btn {
  background: transparent; border: 1px solid var(--card-edge);
  border-radius: 4px; padding: 6px 10px; cursor: pointer; font-size: 15px;
}
.hud-right { position: relative; }
.audio-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column;
  gap: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.6);
  max-width: calc(100vw - 28px); /* never clip off the viewport edge */
  animation: fadein .15s ease;
}
.ap-row { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.ap-row input[type=range] { width: min(110px, 34vw); accent-color: var(--cyan); cursor: pointer; }

/* ---------- HUD ---------- */
.hud {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0 14px; gap: 10px;
}
.hud-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.hud-rank { color: var(--amber); font-size: 12px; white-space: nowrap; }
.hud-xp { color: var(--dim); font-size: 12px; white-space: nowrap; }
.xp-wrap {
  flex: 1; max-width: 180px; height: 8px; background: #0d0d18;
  border: 1px solid var(--card-edge); border-radius: 4px; overflow: hidden;
}
.xp-bar { height: 100%; background: linear-gradient(90deg, var(--amber), #ffd873); box-shadow: 0 0 8px rgba(255,184,48,.6); transition: width .6s cubic-bezier(.22,1,.36,1); }
.xp-bar.xp-flash { animation: xpflash .7s ease; }
@keyframes xpflash {
  0% { box-shadow: 0 0 8px rgba(255,184,48,.6); }
  35% { box-shadow: 0 0 22px rgba(255,184,48,1); filter: brightness(1.6); }
  100% { box-shadow: 0 0 8px rgba(255,184,48,.6); }
}
.rankup {
  color: var(--amber); font-size: 15px; margin: 8px 0;
  text-shadow: 0 0 10px rgba(255,184,48,.7); animation: pop .3s ease;
}

/* ---------- boot screen ---------- */
.boot-screen { cursor: pointer; background: repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 2px, transparent 2px 4px); }
.boot-tv { font-size: 74px; animation: bob 2s infinite; }
.boot-press {
  color: var(--cyan); font-size: 19px; letter-spacing: .35em;
  text-shadow: 0 0 14px var(--cyan-glow); animation: flicker 2.6s infinite;
}
.boot-hint { font-size: 12px; letter-spacing: .15em; }

/* ---------- dialog / story ---------- */
.story-screen {
  min-height: 88vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 14px; cursor: pointer;
}
.dialog-box {
  background: var(--card); border: 1px solid var(--card-edge);
  border-left: 3px solid var(--cyan);
  padding: 22px 26px; border-radius: 6px; max-width: 620px; width: 100%;
  box-shadow: 0 6px 30px rgba(0,0,0,.5);
}
.big-dialog { min-height: 170px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.dialog-box.pop { animation: pop .18s ease; }
@keyframes pop { from { transform: scale(.98); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.speaker { font-size: 12px; letter-spacing: .25em; margin-bottom: 10px; }
.s-june { color: var(--cyan); } .s-ozzy { color: var(--amber); }
.s-bea { color: var(--green); } .s-alex { color: var(--red); }
.s-warden { color: #c58fff; } .s-narrator { color: var(--dim); }
.dialog-text { font-size: 17px; line-height: 1.65; }
.narrator-text { color: var(--dim); font-style: italic; }
.alex-text { color: #ff9daf; }
.advance-hint { color: var(--dim); font-size: 12px; animation: bob 1.2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.skip-btn { position: fixed; top: 12px; right: 12px; z-index: 100; }

.name-input {
  background: #0d0d18; border: 1px solid var(--cyan); color: var(--text);
  font-family: inherit; font-size: 22px; padding: 12px 18px; text-align: center;
  border-radius: 4px; width: min(320px, 80vw);
  box-shadow: 0 0 14px var(--cyan-glow);
}
.name-input:focus { outline: none; }

/* ---------- map ---------- */
.map-head { text-align: center; margin-bottom: 18px; }
.map-title {
  color: var(--red); letter-spacing: .3em; font-size: 26px;
  text-shadow: 0 0 12px var(--red-glow);
}
.map-sub { color: var(--dim); font-size: 12px; margin-top: 6px; }
.map-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.ep-card {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 6px; padding: 16px 14px; cursor: pointer;
  transition: all .15s; position: relative; overflow: hidden;
}
.ep-card:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 4px 18px var(--cyan-glow); }
.ep-card.locked { opacity: .38; cursor: default; filter: grayscale(.7); }
.ep-card.locked:hover { transform: none; border-color: var(--card-edge); box-shadow: none; }
.ep-card.cleared { border-color: rgba(58,227,116,.5); }
.ep-card.cleared::after {
  content: 'SEALED'; position: absolute; top: 10px; right: -26px;
  background: var(--green); color: #052; font-size: 10px; font-weight: bold;
  padding: 2px 30px; transform: rotate(38deg); letter-spacing: .15em;
}
.ep-card.next { border-color: var(--red); box-shadow: 0 0 16px rgba(255,42,79,.28); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,42,79,.18); }
  50% { box-shadow: 0 0 24px rgba(255,42,79,.45); }
}
.ep-icon { font-size: 30px; margin-bottom: 8px; }
.ep-name { font-size: 13px; color: var(--text); letter-spacing: .06em; margin-bottom: 4px; }
.ep-loc { font-size: 12px; color: var(--cyan); margin-bottom: 4px; }
.ep-skill { font-size: 11px; color: var(--dim); }
.ep-stars { font-size: 12px; color: var(--amber); margin-top: 8px; min-height: 15px; letter-spacing: .2em; }
.ep-card.next .ep-stars { color: var(--red); animation: flicker 3s infinite; }
.map-foot { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }

/* ---------- question screen ---------- */
.q-head { text-align: center; margin-bottom: 10px; }
.q-header { color: var(--cyan); letter-spacing: .15em; font-size: 14px; text-shadow: 0 0 8px var(--cyan-glow); }
.boss-header { color: var(--red); text-shadow: 0 0 10px var(--red-glow); animation: flicker 3s infinite; }
.q-sub { color: var(--dim); font-size: 11px; margin-top: 4px; letter-spacing: .1em; }

.meters { display: flex; gap: 16px; margin: 10px 0 14px; flex-wrap: wrap; }
.meter-block { flex: 1; min-width: 180px; }
.meter-label { font-size: 11px; color: var(--dim); letter-spacing: .08em; }
.meter-label .super { color: var(--amber); text-shadow: 0 0 8px rgba(255,184,48,.7); }
.meter {
  height: 10px; background: #0d0d18; border: 1px solid var(--card-edge);
  border-radius: 5px; overflow: hidden; margin-top: 4px;
}
.fill { height: 100%; transition: width .35s ease; }
.streak-fill { background: linear-gradient(90deg, #ffd873, var(--amber)); box-shadow: 0 0 10px rgba(255,184,48,.7); }
.static-fill { background: linear-gradient(90deg, #4a4a6a, #8a87a3); }

.q-card {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 8px; padding: 24px; box-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.boss-card { border-color: rgba(255,42,79,.5); box-shadow: 0 0 26px rgba(255,42,79,.14); }
.q-text { font-size: 19px; line-height: 1.6; margin-bottom: 18px; }
.q-visual { margin-bottom: 16px; text-align: center; }

.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice-btn {
  font-family: inherit; font-size: 17px; padding: 14px 12px;
  background: #0f0f1e; color: var(--text);
  border: 1px solid var(--card-edge); border-radius: 6px; cursor: pointer;
  transition: all .12s; line-height: 1.4;
}
.choice-btn:hover:not(:disabled) { border-color: var(--cyan); box-shadow: 0 0 12px var(--cyan-glow); transform: translateY(-1px); }
.choice-btn:disabled { cursor: default; opacity: .55; }
.choice-btn.right { border-color: var(--green); color: var(--green); box-shadow: 0 0 14px rgba(58,227,116,.4); opacity: 1; }
.choice-btn.wrong { border-color: var(--red); color: var(--red); box-shadow: 0 0 14px var(--red-glow); opacity: 1; animation: shake .3s; }
.choice-btn.reveal-right { border-color: rgba(58,227,116,.6); opacity: .9; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.input-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.answer-input {
  flex: 1; min-width: 160px;
  background: #0d0d18; border: 1px solid var(--cyan); color: var(--text);
  font-family: inherit; font-size: 20px; padding: 12px 16px; border-radius: 4px;
}
.answer-input:focus { outline: none; box-shadow: 0 0 12px var(--cyan-glow); }
.answer-input.right { border-color: var(--green); color: var(--green); }
.answer-input.wrong { border-color: var(--red); color: var(--red); animation: shake .3s; }

.feedback {
  margin-top: 14px; padding: 18px 20px; border-radius: 8px;
  animation: fadein .25s ease;
}
.fb-right { background: rgba(58,227,116,.07); border: 1px solid rgba(58,227,116,.4); }
.fb-wrong { background: rgba(255,42,79,.06); border: 1px solid rgba(255,42,79,.35); }
.fb-head { font-size: 15px; margin-bottom: 8px; }
.fb-right .fb-head { color: var(--green); }
.fb-wrong .fb-head { color: #ff9daf; }
.fb-xp { color: var(--amber); font-size: 13px; }
.fb-explain { font-size: 15px; line-height: 1.7; color: var(--text); }
.fb-answer { color: var(--cyan); margin-bottom: 6px; }
.fb-btn { margin-top: 14px; }

/* ---------- interstitial ---------- */
.interstitial {
  font-size: 20px; line-height: 1.8; color: var(--text); max-width: 540px;
  letter-spacing: .04em;
}
.boss-warn { color: var(--red); font-size: 24px; letter-spacing: .3em; text-shadow: 0 0 12px var(--red-glow); animation: flicker 2s infinite; }

/* ---------- relics ---------- */
.relic-card {
  background: var(--card); border: 1px solid var(--amber);
  border-radius: 10px; padding: 30px 34px; max-width: 460px;
  box-shadow: 0 0 34px rgba(255,184,48,.18);
}
.relic-icon { font-size: 52px; margin-bottom: 10px; }
.relic-icon.sm { font-size: 30px; }
.relic-head { color: var(--amber); font-size: 11px; letter-spacing: .4em; margin-bottom: 8px; }
.relic-name { font-size: 20px; margin-bottom: 10px; }
.relic-text { color: var(--dim); font-size: 14px; line-height: 1.6; }
.relic-xp { color: var(--green); font-size: 13px; margin-top: 14px; letter-spacing: .15em; }

.section-title { color: var(--cyan); letter-spacing: .2em; font-size: 18px; margin: 6px 0 16px; text-align: center; }
.relic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.relic-mini {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 6px; padding: 14px; text-align: center;
}
.relic-mini.missing { opacity: .4; }
.rm-name { font-size: 13px; margin: 6px 0; color: var(--amber); }
.rm-text { font-size: 11px; color: var(--dim); line-height: 1.5; }
.stats-line { text-align: center; color: var(--dim); font-size: 13px; margin: 18px 0 10px; }
.stats-line b { color: var(--text); }

/* ---------- lab notes (parent) ---------- */
.lab-summary {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 6px; padding: 16px; font-size: 14px; line-height: 1.7; margin-bottom: 14px;
}
.lab-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lab-table th, .lab-table td { padding: 8px 10px; border-bottom: 1px solid var(--card-edge); text-align: left; }
.lab-table th { color: var(--cyan); font-size: 11px; letter-spacing: .1em; }
.lab-table .weak-row td { color: #ff9daf; }
.lab-reco {
  margin: 16px 0; padding: 14px 16px; font-size: 13px; line-height: 1.7;
  background: rgba(72,219,251,.05); border: 1px solid rgba(72,219,251,.25); border-radius: 6px;
}

/* ---------- victory ---------- */
.victory-text { font-size: 17px; line-height: 1.8; max-width: 520px; }
.victory-stats { color: var(--amber); font-size: 15px; }

/* ---------- question visuals ---------- */
.dot-array {
  display: inline-grid; gap: 7px; padding: 14px;
  background: #0d0d18; border: 1px solid var(--card-edge); border-radius: 8px;
}
.dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 7px var(--cyan-glow);
}
.frac-bar-wrap { margin: 6px auto; max-width: 320px; }
.frac-label { font-size: 12px; color: var(--dim); text-align: left; margin-bottom: 3px; }
.frac-bar {
  display: flex; height: 34px; border: 1px solid var(--cyan); border-radius: 4px; overflow: hidden;
}
.frac-cell { flex: 1; border-right: 1px solid rgba(72,219,251,.5); background: #0d0d18; }
.frac-cell:last-child { border-right: none; }
.frac-cell.shaded { background: linear-gradient(180deg, var(--cyan), #2ba8c4); box-shadow: inset 0 0 8px rgba(255,255,255,.25); }
.numline, .coord-grid, .shape-svg { max-width: 100%; height: auto; }
.numline { width: 320px; }
.coord-grid { width: 280px; }
.shape-svg { width: 260px; }
.nl-text { font-size: 11px; fill: var(--dim); font-family: inherit; }
.pt-label { font-size: 13px; fill: var(--red); font-weight: bold; }
.dim-label { font-size: 12px; fill: var(--cyan); font-family: inherit; }

.io-table {
  margin: 12px auto 4px; border-collapse: collapse; font-size: 16px;
}
.io-table th, .io-table td {
  border: 1px solid var(--card-edge); padding: 7px 20px; text-align: center;
}
.io-table th { color: var(--cyan); font-size: 12px; letter-spacing: .15em; }

.bar-graph { max-width: 340px; margin: 0 auto; text-align: left; }
.bg-row { display: flex; align-items: center; gap: 8px; margin: 7px 0; }
.bg-label { width: 74px; font-size: 12px; color: var(--dim); text-align: right; }
.bg-bar {
  height: 18px; background: linear-gradient(90deg, var(--cyan), #2ba8c4);
  border-radius: 3px; box-shadow: 0 0 8px var(--cyan-glow); min-width: 8px;
}
.bg-val { font-size: 12px; color: var(--text); }

.dot-plot { display: flex; justify-content: center; gap: 4px; align-items: flex-end; }
.dp-col { display: flex; flex-direction: column; align-items: center; min-width: 30px; }
.dp-stack { display: flex; flex-direction: column-reverse; gap: 2px; min-height: 20px; }
.dp-dot { color: var(--amber); font-size: 13px; line-height: 1; }
.dp-num { border-top: 2px solid var(--cyan); margin-top: 4px; padding: 3px 8px 0; color: var(--dim); font-size: 13px; }

.crt-readout {
  display: inline-block; background: #020a02; color: var(--green);
  font-size: 26px; letter-spacing: .2em; padding: 10px 22px;
  border: 2px solid #1c3; border-radius: 6px; text-shadow: 0 0 8px rgba(58,227,116,.8);
}

/* ---------- v2 question instruments ---------- */
.gauge-svg { width: 300px; }
.gauge-deg { font-size: 17px; font-weight: bold; fill: var(--red); font-family: inherit; }
.pm-svg { height: auto; }
.pm-digit { font-size: 30px; font-family: 'Courier New', monospace; font-weight: bold; }
.pm-label { font-size: 9px; font-family: 'Courier New', monospace; letter-spacing: .06em; }
.pm-hi { animation: pulseBar 1.4s infinite; }
.stack-crt { text-align: right; font-family: 'Courier New', monospace; line-height: 1.5; letter-spacing: 0; font-size: 24px; }
.stack-rule { border-top: 2px solid var(--green); margin: 4px 0; box-shadow: 0 0 6px rgba(58,227,116,.6); }
.groups-wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.group-box {
  display: inline-grid; gap: 5px; padding: 9px;
  background: #0d0d18; border: 1px solid var(--cyan); border-radius: 8px;
}
.group-box .dot { width: 12px; height: 12px; }
.leftover-box { border: 1.5px dashed var(--red); background: rgba(255,42,79,.05); }
.leftover-dot { background: var(--red) !important; box-shadow: 0 0 7px var(--red-glow) !important; }
.groups-caption { font-size: 12px; color: var(--dim); margin-top: 8px; }
.leftover-text { color: var(--red); }
.coin-strip { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: center; }
.coin {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: bold; font-family: inherit;
  color: #0a0a12; box-shadow: 0 2px 8px rgba(0,0,0,.5), inset 0 0 6px rgba(255,255,255,.35);
}
.coin-q { width: 42px; height: 42px; font-size: 12px; background: radial-gradient(circle at 35% 30%, #e8e6f0, #9a97ad); }
.coin-d { width: 26px; height: 26px; font-size: 8.5px; background: radial-gradient(circle at 35% 30%, #f2f0fa, #a8a5bd); }
.coin-n { width: 32px; height: 32px; font-size: 10px; background: radial-gradient(circle at 35% 30%, #dcdae6, #908da3); }
.improper-wrap .frac-bar-wrap { margin: 5px auto; }

/* ---------- portraits & art ---------- */
.portrait { width: 100%; height: 100%; }
.portrait-svg, .art-img { display: block; width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }
.dlg-row { display: flex; gap: 16px; align-items: flex-start; }
.dlg-portrait { width: 68px; height: 68px; flex-shrink: 0; filter: drop-shadow(0 3px 10px rgba(0,0,0,.5)); }
.dlg-main { flex: 1; min-width: 0; }
.glitchy { animation: glitchShift 3.5s steps(2) infinite; }
@keyframes glitchShift {
  0%, 91% { transform: translate(0, 0); }
  92% { transform: translate(-2px, 1px); }
  95% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, 0); }
  100% { transform: translate(0, 0); }
}

/* ---------- spectrometer ---------- */
.spec-wrap { max-width: 430px; margin: 0 auto 20px; }
.spec-svg { width: 100%; display: block; filter: drop-shadow(0 6px 22px rgba(0,0,0,.45)); }
.spec-wave { stroke-dasharray: 7 5; animation: specdash 1.5s linear infinite; }
@keyframes specdash { to { stroke-dashoffset: -120; } }
.led { animation: ledblink 1.5s infinite; }
.led-b { animation-delay: .5s; }
.led-c { animation-delay: 1s; }
@keyframes ledblink { 0%, 100% { opacity: 1; } 50% { opacity: .12; } }
.spec-active-bar { animation: pulseBar 1.1s infinite; }
@keyframes pulseBar { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.spec-label { font-size: 8.5px; font-family: 'Courier New', monospace; letter-spacing: .12em; }
.spec-brand { font-size: 11px; font-family: 'Courier New', monospace; letter-spacing: .3em; }

/* ---------- vignettes ---------- */
.vignette-holder { width: 100%; max-width: 620px; }
.vignette {
  border: 1px solid var(--card-edge); border-radius: 8px; overflow: hidden;
  box-shadow: 0 8px 26px rgba(0,0,0,.5); margin-bottom: 4px;
}
.vignette-svg { width: 100%; display: block; }
.vig-label { font-size: 9px; font-family: 'Courier New', monospace; letter-spacing: .14em; }
.vig-neon { font-size: 21px; font-weight: bold; letter-spacing: .3em; font-family: 'Courier New', monospace; }
.flicker-slow { animation: flicker 5s infinite; }

/* ---------- companions ---------- */
.companion-chip {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin: 0 0 10px;
}
.chip-portrait { width: 38px; height: 38px; }
.companion-name { font-size: 11px; color: var(--dim); letter-spacing: .12em; }
.banter {
  display: flex; gap: 12px; align-items: center; max-width: 460px;
  margin: 20px auto 0; text-align: left;
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 8px; padding: 12px 15px;
}
.banter-portrait { width: 46px; height: 46px; flex-shrink: 0; }
.banter-text { font-size: 13.5px; color: var(--text); line-height: 1.6; }
.fb-row { display: flex; gap: 14px; align-items: flex-start; }
.fb-portrait { width: 52px; height: 52px; flex-shrink: 0; }
.fb-main { flex: 1; min-width: 0; }
.fb-streakline { color: var(--amber); font-size: 13.5px; margin-bottom: 8px; line-height: 1.5; }

/* ---------- supply drops (real-world rewards) ---------- */
.reward-banner {
  max-width: 560px; margin: 18px auto 0; padding: 12px 18px;
  background: rgba(255,184,48,.06); border: 1px solid rgba(255,184,48,.4);
  border-radius: 8px; font-size: 13.5px; line-height: 1.7; text-align: center;
}
.reward-banner.ready {
  border-color: var(--green); background: rgba(58,227,116,.07);
  animation: pulse 2s infinite;
}
.rb-progress { color: var(--dim); display: block; font-size: 12px; }
.rb-bar {
  display: block; height: 7px; margin-top: 6px; background: #0d0d18;
  border: 1px solid var(--card-edge); border-radius: 4px; overflow: hidden;
}
.rb-fill { display: block; height: 100%; background: linear-gradient(90deg, #ffd873, var(--amber)); box-shadow: 0 0 8px rgba(255,184,48,.6); }
.drop-card { border-color: var(--green); box-shadow: 0 0 34px rgba(58,227,116,.2); }
.reward-editor {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 6px; padding: 14px 16px; margin-bottom: 14px; font-size: 13px;
}
.reward-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 4px;
  border-bottom: 1px solid var(--card-edge);
}
.reward-row.ready-row .rw-status { color: var(--green); }
.rw-desc { flex: 1; }
.rw-status { color: var(--dim); font-size: 12px; white-space: nowrap; }
.rw-del {
  background: transparent; border: 1px solid var(--card-edge); color: var(--dim);
  border-radius: 4px; cursor: pointer; padding: 2px 8px; font-family: inherit;
}
.rw-del:hover { color: var(--red); border-color: var(--red); }
.rw-empty { padding: 6px 0 10px; line-height: 1.6; }
.reward-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rw-input {
  background: #0d0d18; border: 1px solid var(--card-edge); color: var(--text);
  font-family: inherit; font-size: 13px; padding: 9px 12px; border-radius: 4px;
}
.rw-input:focus { outline: none; border-color: var(--cyan); }
#rw-desc { flex: 2; min-width: 200px; }
.rw-select { flex: 1; min-width: 130px; }
.rw-num { width: 76px; }
.rw-add { padding: 9px 18px; font-size: 13px; }
.rw-suggest { margin-top: 12px; font-size: 12px; line-height: 1.9; }
.rw-suggest a { color: var(--cyan); text-decoration: none; border-bottom: 1px dotted rgba(72,219,251,.4); }
.rw-suggest a:hover { border-bottom-style: solid; }

/* ---------- crew tapes ---------- */
.tapes-title { margin-top: 26px; }
.tape-card { text-align: left; }
.tape-head { font-size: 12px; letter-spacing: .12em; margin-bottom: 8px; color: var(--amber); }
.tape-text { font-style: italic; }
.relic-tape { color: var(--amber); font-size: 12px; margin-top: 10px; letter-spacing: .08em; }
.icon-btn.off { opacity: .3; }
.hud-right { display: flex; gap: 6px; }

@media (max-width: 480px) {
  .q-text { font-size: 17px; }
  .choices { grid-template-columns: 1fr; }
  .dialog-text { font-size: 15px; }
  .hud-rank { display: none; }
  .dlg-portrait { width: 52px; height: 52px; }
}
