/* ===================================================================
   The Bharat College of Technology — A Leaked Dossier
   Dark "case file" shell + pixel diorama. Accent shifts with Heat.
   =================================================================== */

:root {
  --bg: #0d0e11;
  --bg-2: #14161b;
  --panel: #181b22;
  --panel-2: #1f232c;
  --ink: #e7e3d8;       /* aged paper text */
  --ink-dim: #9aa0ab;
  --line: #2b2f39;
  --folder: #c9a24b;    /* manila accent */
  --clean: #4bb89a;     /* teal */
  --dirty: #c4533f;     /* burnt red */
  --heat-color: #d7a24b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --mono: "Courier New", ui-monospace, monospace;
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #1a1d24 0%, transparent 60%),
    var(--bg);
  min-height: 100%;
}

.shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 28px);
}

/* ---------- screens ---------- */
.screen { display: none; width: 100%; }
.screen.active { display: block; }
#screen-game.screen.active { display: grid; }

/* ---------- cards (warning + title) ---------- */
.card {
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-top: 3px solid var(--folder);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow);
  animation: rise 0.5s ease both;
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--folder);
  margin: 0 0 8px;
}

.card h1 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 34px); line-height: 1.1; }
.tagline { color: var(--ink-dim); margin: 0 0 18px; font-size: 15px; }

.warning-body p { font-size: 14.5px; line-height: 1.6; color: #d3cfc4; }
.warning-body em { color: var(--ink); font-style: italic; }
.helpline {
  background: rgba(75, 184, 154, 0.08);
  border-left: 3px solid var(--clean);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13.5px;
}

/* ---------- form fields ---------- */
.field { margin: 14px 0; }
.field label {
  display: block; font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px;
}
.field input, .field select {
  width: 100%; padding: 11px 13px; font-size: 15px;
  background: var(--bg-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px;
  font-family: var(--sans);
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--folder); outline-offset: 1px; border-color: var(--folder);
}

.title-actions { display: flex; gap: 10px; margin-top: 22px; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; cursor: pointer; border-radius: 10px;
  padding: 12px 18px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); transition: transform .08s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--folder); outline-offset: 2px; }
.btn.primary { background: var(--folder); color: #1a1206; border-color: var(--folder); font-weight: 700; flex: 1; }
.btn.primary:hover { background: #d9b25c; }
.btn.ghost { background: transparent; }
.btn.link {
  display: block; width: 100%; margin-top: 14px; background: none; border: none;
  color: var(--ink-dim); text-decoration: underline; padding: 8px;
}
.btn.link:hover { color: var(--ink); }

/* ===================================================================
   GAME LAYOUT
   =================================================================== */
#screen-game {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.stage {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.topbar-title h1 { margin: 2px 0 0; font-size: 17px; }
.topbar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.icon-button {
  font: inherit; font-size: 12px; cursor: pointer;
  background: var(--bg-2); color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
}
.icon-button:hover { color: var(--ink); border-color: var(--folder); }
.icon-button:focus-visible { outline: 2px solid var(--folder); outline-offset: 1px; }

/* ===================================================================
   PIXEL DIORAMA
   =================================================================== */
.scene {
  --heat: 0;
  position: relative;
  height: 340px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #11202b 0%, #0e1722 55%, #0b0d12 100%);
  border: 1px solid #0a0c10;
  image-rendering: pixelated;
  transition: background 0.6s ease;
}
.scene[data-heat="mid"] { background: linear-gradient(180deg, #2a2418 0%, #1a1410 55%, #0b0d12 100%); }
.scene[data-heat="high"] { background: linear-gradient(180deg, #361b14 0%, #20100c 55%, #0b0d12 100%); }

.scene-sky { position: absolute; inset: 0 0 40% 0; }
.scene-sky span {
  position: absolute; top: 18px; width: 3px; height: 3px; background: #fff6cc; opacity: .5;
  box-shadow: 0 14px #fff6cc, 0 40px #fff6cc;
}
.scene-sky span:nth-child(1) { left: 18%; }
.scene-sky span:nth-child(2) { left: 52%; top: 30px; }
.scene-sky span:nth-child(3) { left: 78%; top: 12px; }

/* floor line */
.scene-floorline { position: absolute; left: 0; right: 0; bottom: 56px; height: 2px; background: #05070a; box-shadow: 0 1px 0 #1c2230; }

/* ----- room (early game) ----- */
.scene-room {
  position: absolute; left: 8%; right: 8%; top: 14%; bottom: 56px;
  background: repeating-linear-gradient(180deg, #20303a, #20303a 6px, #1d2c35 6px, #1d2c35 12px);
  border: 3px solid #0c1116; border-bottom: none; border-radius: 6px 6px 0 0;
  transition: opacity .5s ease, transform .5s ease;
}
.wall-stain { position: absolute; background: #16242c; border-radius: 50%; filter: blur(2px); opacity: .8; }
.wall-stain.s1 { width: 60px; height: 36px; top: 12px; left: 10px; }
.wall-stain.s2 { width: 42px; height: 60px; bottom: 8px; right: 18px; }
.tube-light { position: absolute; top: 8px; width: 70px; height: 6px; background: #cfe8ff; box-shadow: 0 0 16px #9fd0ff; }
.tube-light.left { left: 16%; animation: flicker 4s infinite; }
.tube-light.right { right: 16%; opacity: .35; }
@keyframes flicker { 0%,92%,100% { opacity: .9; } 93% { opacity: .2; } 96% { opacity: .7; } }
.room-board {
  position: absolute; left: 50%; top: 26%; transform: translateX(-50%);
  min-width: 130px; text-align: center; padding: 12px 10px;
  background: #14302a; border: 3px solid #0c1116; color: #d9ffe9;
  font-family: var(--mono); font-weight: 700; letter-spacing: .12em; font-size: 13px;
}
.poster { position: absolute; padding: 5px 7px; font-family: var(--mono); font-size: 10px; font-weight: 700; transform: rotate(-3deg); }
.poster.p1 { left: 12%; bottom: 16px; background: #b53b2d; color: #fff; }
.poster.p2 { right: 12%; bottom: 26px; background: #c9a24b; color: #1a1206; transform: rotate(4deg); }

/* ----- city (later game) ----- */
.scene-city {
  position: absolute; left: 0; right: 0; bottom: 56px; height: 70%;
  display: flex; align-items: flex-end; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.building { width: 46px; background: #1b2330; border: 2px solid #0a0d12; border-bottom: none; }
.b-small { height: 70px; }
.b-mid { height: 120px; background: #1d2735; }
.b-tall { height: 170px; background: #222d3d; }
.b-campus {
  width: 92px; height: 210px; display: flex; flex-direction: column;
  background: #243043; border: 2px solid #0a0d12; border-bottom: none;
}
.office-floor {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 8px; letter-spacing: .08em; color: #6f7b8d;
  border-bottom: 1px solid #11161f; transition: background .3s, color .3s;
}
.office-floor.active { background: var(--heat-color); color: #160f04; font-weight: 700; }

/* room/city switch */
.scene.is-city .scene-room { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.scene.is-city .scene-city { opacity: 1; transform: none; }
.scene.is-room .scene-city { opacity: 0; }

/* episode tints on the scene banner */
.scene.is-profit .scene-banner { border-left-color: var(--clean); }
.scene.is-consequence .scene-banner { border-left-color: var(--dirty); }
.scene.is-branch .room-board { background: #14302a; box-shadow: 0 0 0 2px #1a3a32 inset; }

/* heat glow */
.scene.is-heat::after,
.scene.is-crisis::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 120%, rgba(196,83,63,calc(0.10 + var(--heat) * 0.5)), transparent 70%);
}
.scene.is-crisis { animation: crisispulse 2.4s ease-in-out infinite; }
@keyframes crisispulse { 0%,100% { filter: none; } 50% { filter: brightness(1.12) saturate(1.2); } }
.scene.is-ending::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.45));
}

/* ----- sprites ----- */
.sprite { position: absolute; bottom: 56px; width: 16px; height: 30px; transition: opacity .5s, filter .5s, transform .5s; }
.sprite .head { position: absolute; top: 0; left: 3px; width: 10px; height: 10px; background: #e7b98a; border: 1px solid #0a0d12; }
.sprite .body { position: absolute; top: 10px; left: 1px; width: 14px; height: 18px; border: 1px solid #0a0d12; }
.sprite.founder { left: 22%; }
.sprite.founder .body { background: #3b6fb5; }
.sprite.student { left: 40%; }
.sprite.student .body { background: #4bb89a; }
.sprite.student.two { left: 52%; }
.sprite.student.two .body { background: #c9a24b; }
.sprite.official { left: 72%; opacity: 0; }
.sprite.official .body { background: #7a3b3b; }
.scene.is-city .sprite.official, .scene.is-crisis .sprite.official { opacity: 1; }

.sprite.fade-1 { opacity: .65; filter: grayscale(.5); }
.sprite.fade-2 { opacity: .4; filter: grayscale(1); transform: translateY(2px); }
.sprite.gone { opacity: 0; transform: translateY(6px); }

/* ----- banner ----- */
.scene-banner {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  background: rgba(8, 10, 14, .72); border: 1px solid var(--line);
  border-left: 3px solid var(--folder); border-radius: 8px; padding: 8px 11px;
  backdrop-filter: blur(2px);
}
.scene-banner strong { display: block; font-size: 13px; }
.scene-banner small { color: var(--ink-dim); font-size: 11.5px; }

/* ===================================================================
   METERS
   =================================================================== */
.meters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.meter { background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 9px; }
.meter-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.meter-label strong { color: var(--ink); font-size: 13px; }
.bar { height: 7px; background: #0a0c10; border-radius: 5px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--clean); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.meter[data-meter="power"] .bar span { background: #6f7bd6; }
.meter[data-meter="heat"] .bar span { background: var(--dirty); }

.meter.flash-up { animation: flashUp .6s ease; }
.meter.flash-down { animation: flashDown .6s ease; }
@keyframes flashUp { 0% { box-shadow: 0 0 0 0 rgba(75,184,154,.6); } 100% { box-shadow: 0 0 0 6px rgba(75,184,154,0); } }
@keyframes flashDown { 0% { box-shadow: 0 0 0 0 rgba(196,83,63,.6); } 100% { box-shadow: 0 0 0 6px rgba(196,83,63,0); } }

/* ===================================================================
   STORY PANEL
   =================================================================== */
.story-panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(16px, 2.4vw, 22px); box-shadow: var(--shadow);
  min-height: 340px;
}
.chapter-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--folder); text-transform: uppercase; letter-spacing: .12em; }
.year-tag { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; }
.story-panel h2 { margin: 8px 0 12px; font-size: clamp(20px, 3vw, 26px); line-height: 1.15; }
#sceneText { font-size: 15px; line-height: 1.62; color: #d6d2c7; white-space: pre-wrap; min-height: 90px; }
#sceneText.typing::after { content: "▍"; color: var(--folder); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- choices ---------- */
.choices { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.choice {
  text-align: left; font: inherit; cursor: pointer;
  background: var(--bg-2); color: var(--ink);
  border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: 10px; padding: 12px 14px; transition: transform .08s, border-color .15s, background .15s;
}
.choice:hover { transform: translateX(2px); background: #20242d; }
.choice:focus-visible { outline: 2px solid var(--folder); outline-offset: 2px; }
.choice-label { display: block; font-size: 14.5px; line-height: 1.4; }
.choice-fx { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-dim); letter-spacing: .03em; }
.choice.clean { border-left-color: var(--clean); }
.choice.clean:hover { border-color: var(--clean); }
.choice.dirty { border-left-color: var(--dirty); }
.choice.dirty:hover { border-color: var(--dirty); }
.choice.continue { border-left-color: var(--folder); background: #221d10; }
.choice.continue:hover { border-color: var(--folder); }

/* ---------- ledger + log ---------- */
.ledger-box, .log { margin-top: 18px; }
.ledger-box h3, .log h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-dim); margin: 0 0 8px; }
#ledger { list-style: none; margin: 0; padding: 0; }
#ledger li {
  font-size: 13px; line-height: 1.45; color: #cfcabd; padding: 7px 10px; margin-bottom: 6px;
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--clean); border-radius: 7px;
}
#ledger li.grave { border-left-color: var(--dirty); color: #e0b9b1; font-style: italic; }
.log ul { list-style: none; margin: 0; padding: 0; }
.log li { font-family: var(--mono); font-size: 12px; line-height: 1.4; color: var(--ink-dim); padding: 4px 0; border-bottom: 1px dashed var(--line); }

/* ===================================================================
   TYCOON: readout bar
   =================================================================== */
.tycoon-bar { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.ty { background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.ty span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); }
.ty strong { font-family: var(--mono); font-size: 17px; color: var(--ink); }
.ty:first-child { border-color: var(--folder); }
.ty:first-child strong { color: var(--folder); }

.ledger-box.pinned { margin-top: 12px; }

/* ===================================================================
   TYCOON: dashboard panel
   =================================================================== */
.dash-panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(16px, 2.4vw, 22px); box-shadow: var(--shadow); min-height: 340px;
}
.dash-head h2 { margin: 0 0 4px; font-size: 22px; }
.dash-sub { margin: 0 0 14px; color: var(--ink-dim); font-size: 13.5px; }

/* next-file card */
.nextfile-card {
  background: #20180a; border: 1px solid var(--folder); border-radius: 11px;
  padding: 13px 14px; margin-bottom: 16px;
}
.nf-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--folder); }
.nextfile-card strong { display: block; font-size: 15px; margin: 4px 0; }
.nextfile-card p { margin: 0 0 10px; font-size: 13px; color: #cfc6b2; line-height: 1.45; }
.nf-progress { height: 7px; background: #0a0c10; border-radius: 5px; overflow: hidden; margin-bottom: 6px; }
.nf-progress span { display: block; height: 100%; width: 0; background: var(--folder); transition: width .4s ease; }
.nextfile-card small { display: block; color: var(--ink-dim); font-size: 11.5px; margin-bottom: 10px; }
.nextfile-card .btn.primary { width: 100%; }
.nextfile-card .btn.primary:disabled { opacity: .5; cursor: not-allowed; }

/* build groups */
.build-group { margin-bottom: 14px; }
.build-group h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-dim); margin: 0 0 8px; }
.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.build-btn {
  text-align: left; font: inherit; cursor: pointer; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; display: flex; flex-direction: column; gap: 3px;
  transition: transform .08s, border-color .15s, background .15s;
}
.build-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--folder); }
.build-btn:focus-visible { outline: 2px solid var(--folder); outline-offset: 2px; }
.build-btn:disabled { opacity: .45; cursor: not-allowed; }
.build-btn.maxed { opacity: .6; border-style: dashed; }
.b-name { font-size: 13px; font-weight: 600; }
.b-name em { font-style: normal; color: var(--folder); font-family: var(--mono); font-size: 11px; }
.b-blurb { font-size: 11px; color: var(--ink-dim); line-height: 1.35; }
.b-cost { font-family: var(--mono); font-size: 12px; color: var(--clean); }
.build-btn:disabled .b-cost { color: var(--ink-dim); }
.build-btn.blitz { border-left: 3px solid var(--dirty); }

/* schemes */
.schemes-box { margin-top: 6px; }
.schemes-box h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-dim); margin: 0 0 8px; }
#schemesList { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
#schemesList li.none { font-size: 12px; color: var(--ink-dim); font-style: italic; }
#schemesList li.scheme-on {
  font-size: 11.5px; font-family: var(--mono); color: #e0b9b1;
  background: rgba(196,83,63,.12); border: 1px solid var(--dirty); border-radius: 20px; padding: 4px 11px;
}

/* office floors light up as built */
.office-floor.built { background: var(--heat-color); color: #160f04; font-weight: 700; }

/* in-chapter quick invest */
.quick-invest { margin-top: 16px; padding: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.quick-invest h3 { margin: 0 0 9px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-dim); }
.quick-invest h3 small { font-family: var(--mono); color: var(--folder); text-transform: none; letter-spacing: 0; }
.qi-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.qi-btn {
  font: inherit; cursor: pointer; text-align: left; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px;
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.qi-btn span { font-size: 12px; }
.qi-btn small { font-family: var(--mono); font-size: 11px; color: var(--clean); }
.qi-btn:hover:not(:disabled) { border-color: var(--folder); }
.qi-btn:disabled { opacity: .45; cursor: not-allowed; }
.qi-btn:disabled small { color: var(--ink-dim); }

/* benefit lines: hidden until the player asks to see them */
.b-benefit { display: none; font-size: 11px; color: var(--clean); line-height: 1.35; margin-top: 2px; }
.build-groups.show-benefits .b-benefit { display: block; }
.benefit-toggle {
  font: inherit; font-size: 12px; cursor: pointer; margin-bottom: 14px;
  background: transparent; color: var(--folder); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 11px;
}
.benefit-toggle:hover { border-color: var(--folder); }
.benefit-toggle:focus-visible { outline: 2px solid var(--folder); outline-offset: 2px; }
.benefit-toggle[aria-pressed="true"] { background: rgba(201,162,75,.12); }

/* ---- rules & hints overlay ---- */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 6, 9, .72); backdrop-filter: blur(3px); padding: 18px;
}
.overlay[hidden] { display: none; }
.overlay-card {
  position: relative; max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-top: 3px solid var(--folder); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow);
}
.overlay-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; line-height: 1;
  font-size: 22px; cursor: pointer; color: var(--ink-dim);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
}
.overlay-close:hover { color: var(--ink); border-color: var(--folder); }
.overlay-card h2 { margin: 2px 0 10px; font-size: 24px; }
.overlay-card h3 { margin: 18px 0 7px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--folder); }
.overlay-card p { font-size: 14px; line-height: 1.55; color: #d3cfc4; margin: 0 0 8px; }
.rules-list { margin: 0; padding-left: 18px; }
.rules-list li { font-size: 13.5px; line-height: 1.5; color: #cfcabd; margin-bottom: 6px; }
.rules-list strong { color: var(--ink); }
.rules-list em { color: var(--folder); font-style: italic; }

/* mode toggle: show dashboard OR story on the right */
.game-board.mode-dashboard #storyPanel { display: none; }
.game-board.mode-story #dashPanel { display: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 820px) {
  #screen-game { grid-template-columns: 1fr; }
  .scene { height: 280px; }
  .story-panel { min-height: auto; }
}
@media (max-width: 420px) {
  .meters { grid-template-columns: repeat(2, 1fr); }
  .scene { height: 240px; }
  .title-actions { flex-direction: column; }
  .topbar h1 { font-size: 15px; }
}

/* tap targets */
.btn, .choice, .icon-button { min-height: 44px; }

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scene.is-crisis { filter: none; }
}
