/* ================================================================
   $ISAAC // THE DESCENT — CRT arcade theme
   Blood-red + phosphor-cyan on a black CRT screen. Pixel fonts.
   ================================================================ */

:root {
  --bg:     #07080c;
  --bg2:    #0c0e16;
  --panel:  #0f121d;
  --panel2: #161a2a;
  --line:   #2a3047;

  --red:      #ff2e3e;
  --red-deep: #b3121f;
  --cyan:     #3ff0d8;
  --cyan-deep:#16b6a4;
  --bone:     #f1e7cb;
  --amber:    #ffb13b;
  --muted:    #828aa3;
  --text:     #e7eef0;

  --pix:  "Press Start 2P", monospace;
  --term: "VT323", "Press Start 2P", monospace;

  --maxw: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--term);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0.3px;
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 600px at 50% -8%, rgba(255,46,62,0.07), transparent 60%),
    radial-gradient(900px 500px at 100% 108%, rgba(63,240,216,0.06), transparent 60%);
}

a { color: inherit; text-decoration: none; }
b { color: var(--bone); }
i { color: var(--red); font-style: italic; }
video { display: block; }

/* ---------------- CRT overlays ---------------- */
.crt-scan, .crt-vignette, .crt-flicker { position: fixed; inset: 0; pointer-events: none; z-index: 9000; }
.crt-scan {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.16) 3px, rgba(0,0,0,0) 4px);
  z-index: 9002;
}
.crt-scan::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 140px;
  background: linear-gradient(to bottom, rgba(63,240,216,0), rgba(63,240,216,0.05), rgba(63,240,216,0));
  animation: sweep 7s linear infinite;
}
@keyframes sweep { 0% { top: -140px; } 100% { top: 100%; } }
.crt-vignette {
  background: radial-gradient(120% 120% at 50% 50%, transparent 60%, rgba(0,0,0,0.55) 100%);
  z-index: 9001;
}
.crt-flicker { background: rgba(120,160,255,0.015); animation: flick 0.12s steps(2) infinite; z-index: 9003; }
@keyframes flick { 0% { opacity: 0.25; } 100% { opacity: 0.6; } }

/* ---------------- HUD ---------------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(7,8,12,0.96), rgba(7,8,12,0.82));
  border-bottom: 2px solid var(--line);
  font-family: var(--pix);
}
.hud__brand { font-size: 13px; color: var(--red); text-shadow: 0 0 10px rgba(255,46,62,0.6); }
.blink { animation: blink 1s steps(2) infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }
.hud__stats { display: flex; gap: 14px; margin-left: auto; }
.hud__stat { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.hud__icon { color: var(--red); }
.hud__icon--coin { color: var(--amber); }
.hud__stat--floor .hud__icon { color: var(--cyan); }
.hud__stat--combo .hud__icon { color: #c08bff; }
.hud__stat--combo .hud__val { color: #d9bcff; }
.hud__val { color: var(--bone); min-width: 1ch; }
.hud__sound {
  font-family: var(--pix); font-size: 9px; cursor: pointer;
  background: transparent; color: var(--cyan); border: 2px solid var(--line);
  padding: 7px 9px; border-radius: 4px;
}
.hud__sound:hover { border-color: var(--cyan); box-shadow: 0 0 10px rgba(63,240,216,0.3); }
.hud__sound.is-on { color: #02201c; background: var(--cyan); border-color: var(--cyan-deep); box-shadow: 0 0 10px rgba(63,240,216,0.4); }

/* ---------------- Minimap ---------------- */
.minimap {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 7000;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
  font-family: var(--pix); font-size: 8px;
}
.minimap__title { color: var(--muted); margin-bottom: 2px; }
.minimap__room { position: relative; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.minimap__room span {
  width: 14px; height: 14px; border: 2px solid var(--line); background: var(--panel);
  display: inline-block; transition: all 0.2s;
}
.minimap__room::before {
  content: attr(data-label);
  position: absolute; right: 22px; white-space: nowrap; opacity: 0;
  transform: translateX(6px); transition: all 0.2s; color: var(--cyan);
}
.minimap__room:hover::before { opacity: 1; transform: translateX(0); }
.minimap__room:hover span { border-color: var(--cyan); }
.minimap__room.is-active span { background: var(--red); border-color: var(--red); box-shadow: 0 0 10px var(--red); }

/* ---------------- Rooms / sections ---------------- */
main { position: relative; z-index: 10; }
.room { max-width: var(--maxw); margin: 0 auto; padding: 96px 22px 70px; }
.room--game { padding-top: 92px; }
.room__head { text-align: center; margin-bottom: 30px; }
.room__no {
  display: inline-block; font-family: var(--pix); font-size: 10px; color: var(--red);
  border: 2px solid var(--red-deep); padding: 6px 10px; border-radius: 3px; margin-bottom: 16px;
  letter-spacing: 1px;
}
.room__title {
  font-family: var(--pix); font-size: clamp(20px, 4vw, 34px); margin: 6px 0;
  color: var(--cyan); text-shadow: 0 0 14px rgba(63,240,216,0.5), 3px 3px 0 var(--cyan-deep);
}
.room__sub { color: var(--muted); font-size: 1.1rem; margin: 8px 0 0; }

.logo {
  font-family: var(--pix);
  font-size: clamp(40px, 11vw, 104px);
  margin: 10px 0 6px;
  color: var(--red);
  text-shadow:
    4px 4px 0 var(--red-deep),
    0 0 22px rgba(255,46,62,0.55);
  letter-spacing: 2px;
}

/* ---------------- Arcade cabinet ---------------- */
.cab { max-width: 760px; margin: 0 auto; }
.cab__bezel {
  background: linear-gradient(160deg, #1a1d29, #0a0b12);
  border: 2px solid #2c3043;
  border-radius: 18px;
  padding: 16px;
  box-shadow:
    inset 0 0 0 4px #05060a,
    inset 0 0 60px rgba(0,0,0,0.9),
    0 0 0 2px #000,
    0 18px 60px rgba(0,0,0,0.6),
    0 0 50px rgba(255,46,62,0.08);
}
.screen {
  position: relative;
  /* FIXED height so swapping game states (map / combat / shop / result)
     never resizes the cabinet — this stops the HUD & layout from jumping. */
  height: 460px;
  border-radius: 12px;
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(63,240,216,0.06), transparent 55%),
    #04050a;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.95), inset 0 0 90px rgba(63,240,216,0.04);
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 26px 22px;
}
/* keep inner game-state wrapper from forcing the flex parent to grow */
.screen > .gs { width: 100%; flex: 0 0 auto; }

/* control row = "physical" buttons under the screen */
.cab__controls {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 16px; min-height: 10px;
}
.cab__meta { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.cab__best {
  font-family: var(--pix); font-size: 8px; color: var(--muted);
  border: 2px solid var(--line); border-radius: 4px; padding: 8px 12px;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.cab__best b { color: var(--amber); font-size: 13px; }
.cab__unit { text-align: center; margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }
.cab__legend { max-width: 660px; margin: 18px auto 0; text-align: center; color: var(--muted); font-size: 1.05rem; }

/* keyboard hint strip under the cabinet */
.cab__keys {
  display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center;
  margin-top: 16px; font-family: var(--pix); font-size: 8px; color: var(--muted);
}
.cab__keys span { display: inline-flex; align-items: center; gap: 6px; }
.cab__keys kbd, .abtn__key {
  font-family: var(--pix); font-size: 8px; color: var(--cyan);
  background: #04050a; border: 2px solid var(--line); border-bottom-width: 3px;
  border-radius: 4px; padding: 3px 6px; line-height: 1;
}

/* ---------------- Run progress bar ---------------- */
.progress { max-width: 620px; margin: 16px auto 0; }
.progress__label { font-family: var(--pix); font-size: 9px; color: var(--cyan); text-align: center; margin-bottom: 6px; letter-spacing: 1px; }
.progress__track {
  height: 12px; border: 2px solid var(--line); border-radius: 6px; overflow: hidden;
  background: repeating-linear-gradient(90deg, #06070b 0 18px, #0a0c14 18px 36px);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}
.progress__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--red-deep), var(--red) 60%, var(--amber));
  box-shadow: 0 0 12px rgba(255,46,62,0.5);
  transition: width 0.45s ease;
}

/* tip / reminder toast (sticker / buy the dip) */
.toast--tip { background: var(--amber) !important; color: #2a1600 !important; max-width: 320px; text-align: center; line-height: 1.5; }

/* ---------------- Game screen states ---------------- */
.gs { width: 100%; animation: gsin 0.25s ease; }
@keyframes gsin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.gs__title { font-family: var(--pix); font-size: 22px; color: var(--red); text-shadow: 0 0 16px rgba(255,46,62,0.5); margin: 0 0 10px; }
.gs__press { font-family: var(--pix); font-size: 13px; color: var(--cyan); animation: blink 1.1s steps(2) infinite; margin: 18px 0 8px; }
.gs__howto { color: var(--muted); font-size: 1.02rem; max-width: 440px; margin: 8px auto 0; }
.gs__keys { font-family: var(--pix); font-size: 8px; color: var(--cyan); margin: 14px auto 0; letter-spacing: 0.5px; }

.gs__media { width: 150px; height: 150px; margin: 0 auto 10px; display: grid; place-items: center; }
.gs__media video { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.6)); }
.gs__event { font-family: var(--pix); font-size: 14px; margin: 4px 0 6px; }
.gs__event--good { color: var(--cyan); text-shadow: 0 0 12px rgba(63,240,216,0.5); }
.gs__event--bad { color: var(--red); text-shadow: 0 0 12px rgba(255,46,62,0.5); }
.gs__event--neutral { color: var(--bone); }
.gs__flavor { color: var(--muted); font-size: 1.05rem; min-height: 1.4em; max-width: 460px; margin: 0 auto; }
.gs__delta { font-family: var(--pix); font-size: 12px; margin-top: 10px; min-height: 1em; }
.gs__delta .up { color: var(--cyan); }
.gs__delta .down { color: var(--red); }

.gs__stats { display: flex; gap: 18px; justify-content: center; margin-top: 14px; font-family: var(--pix); font-size: 10px; }
.gs__stats span b { color: var(--bone); }
.gs__hearts { letter-spacing: 2px; color: var(--red); font-size: 18px; }
.gs__hearts .empty { color: #3a2030; }
.gs__combo { color: #d9bcff; text-shadow: 0 0 10px rgba(192,139,255,0.5); }
.gs__curse { color: #b06bff; }
.gs__inv-row { display: flex; gap: 14px; justify-content: center; margin-top: 8px; font-family: var(--pix); font-size: 11px; min-height: 1em; }
.gs__inv { color: var(--amber); }

/* combo flash banner */
.gs__comboflash {
  font-family: var(--pix); font-size: 13px; color: #d9bcff;
  text-shadow: 0 0 14px rgba(192,139,255,0.7);
  margin-bottom: 8px; animation: pop 0.45s ease;
}
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }

/* media state tints */
.gs__media--fog video { filter: blur(7px) brightness(0.6) drop-shadow(0 6px 16px rgba(0,0,0,0.6)); }
.gs__media--devil video { filter: drop-shadow(0 0 18px rgba(255,46,62,0.55)); animation: devilpulse 1.1s ease-in-out infinite; }
@keyframes devilpulse { 50% { transform: scale(1.06); } }

/* ---------------- DUNGEON MAP ---------------- */
.gs--map { width: 100%; }
.map__msg { font-family: var(--pix); font-size: 9px; color: var(--cyan); min-height: 2.4em; margin-bottom: 10px; line-height: 1.5; }
.map {
  display: grid; gap: 4px; max-width: 360px; margin: 0 auto 10px;
}
.cell {
  position: relative; aspect-ratio: 1; border-radius: 4px;
}
.cell--void { background: transparent; }
.cell--room {
  background: #0b0e18; border: 2px solid #232a40; cursor: pointer;
  display: grid; place-items: center; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.cell--room.is-cleared { background: #0a0c14; border-color: #1b2030; }
.cell--room.is-unvisited { border-style: dashed; }
.cell--room.cell--boss { border-color: var(--red); }
.cell--room.cell--shop { border-color: var(--amber); }
.cell--room.cell--good { border-color: var(--cyan-deep); }
.cell--room.cell--curse { border-color: #8a4bd8; }
.cell--unknown { background: #060709; border: 2px solid #14182a; }
.cell.is-here { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan), 0 0 14px rgba(63,240,216,0.4); background: #0d1422; z-index: 2; }
.cell__icon { font-size: 13px; line-height: 1; filter: grayscale(0.15); }
.cell--boss .cell__icon { color: var(--red); }
.cell--shop .cell__icon { color: var(--amber); }
.cell__hero { width: 84%; height: 84%; display: grid; place-items: center; }
.cell__hero video { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
/* doors: little nubs on open sides (up/down via pseudo-els, left/right via inset shadow) */
.cell--room.d-up::before { content: ""; position: absolute; left: 50%; top: -4px; transform: translateX(-50%); width: 28%; height: 4px; background: var(--cyan-deep); border-radius: 2px; }
.cell--room.d-down::after { content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); width: 28%; height: 4px; background: var(--cyan-deep); border-radius: 2px; }
.cell--room.d-left  { border-left-color: var(--cyan-deep); }
.cell--room.d-right { border-right-color: var(--cyan-deep); }
.map__legend { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; font-family: var(--pix); font-size: 7px; color: var(--muted); margin-bottom: 10px; }

/* ---------------- COMBAT ---------------- */
.gs--combat { width: 100%; }
.combat { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; max-width: 460px; margin: 6px auto 10px; }
.combat .gs__media { width: 100px; height: 100px; margin: 0 auto 6px; }
.vs { font-family: var(--pix); font-size: 12px; color: var(--red); }
.fighter { text-align: center; }
.fighter__hp { font-family: var(--pix); font-size: 8px; color: var(--bone); margin-top: 4px; }
.fighter__hp .empty { color: #3a2030; }
.bar { height: 8px; border: 2px solid var(--line); border-radius: 4px; overflow: hidden; background: #04050a; }
.bar > span { display: block; height: 100%; transition: width 0.25s ease; }
.bar--foe > span { background: linear-gradient(90deg, #ff394a, #c4121f); }
.bar--you > span { background: linear-gradient(90deg, #4ff7e0, #14b6a4); }
.combat__log { font-family: var(--term); font-size: 1rem; min-height: 4.2em; max-width: 420px; margin: 0 auto 6px; }
.combat__log .up { color: var(--cyan); }
.combat__log .down { color: var(--red); }
.combat__log .crit { color: var(--amber); text-shadow: 0 0 8px rgba(255,177,59,0.5); }

/* shop */
.shoplist { display: flex; flex-direction: column; gap: 8px; max-width: 340px; margin: 10px auto 4px; }
.shopitem {
  display: flex; justify-content: space-between; align-items: center;
  border: 2px solid var(--line); border-radius: 6px; padding: 8px 12px; background: var(--bg2);
  font-family: var(--pix); font-size: 9px;
}
.shopitem__l { color: var(--bone); }
.shopitem__c { color: var(--amber); }
.shopitem.is-broke { opacity: 0.45; }

/* gameover */
.gs__over-title { font-family: var(--pix); font-size: 20px; margin: 0 0 8px; }
.gs__over-title.win { color: var(--cyan); }
.gs__over-title.lose { color: var(--red); }
.gs__result { font-size: 1.2rem; color: var(--bone); margin: 6px 0; }
.gs__new { font-family: var(--pix); font-size: 10px; color: var(--amber); animation: blink 0.7s steps(2) infinite; margin-top: 8px; }

/* arcade buttons */
.abtn {
  font-family: var(--pix); font-size: 11px; cursor: pointer; user-select: none;
  background: var(--panel2); color: var(--text);
  border: 2px solid var(--line); border-bottom-width: 5px;
  padding: 13px 18px; border-radius: 6px; transition: transform 0.05s, box-shadow 0.15s, border-color 0.15s;
}
.abtn:hover { border-color: var(--cyan); box-shadow: 0 0 14px rgba(63,240,216,0.25); }
.abtn:active { transform: translateY(3px); border-bottom-width: 2px; }
.abtn--red { background: linear-gradient(180deg, #ff394a, #c4121f); color: #1a0306; border-color: #7a0d16; border-bottom-color: #5e0a11; text-shadow: 0 1px 0 rgba(255,255,255,0.25); }
.abtn--red:hover { box-shadow: 0 0 18px rgba(255,46,62,0.45); border-color: #ff6b78; }
.abtn--cyan { background: linear-gradient(180deg, #4ff7e0, #14b6a4); color: #02201c; border-color: #0c7d70; border-bottom-color: #095e54; }
.abtn--amber { background: linear-gradient(180deg, #ffc861, #e0941f); color: #2a1600; border-color: #9c6710; border-bottom-color: #7a4f0c; }
.abtn--amber:hover { box-shadow: 0 0 16px rgba(255,177,59,0.45); border-color: #ffd98a; }
.abtn--ghost { background: transparent; }
.abtn[disabled] { opacity: 0.4; pointer-events: none; }
/* keyboard-selected button */
.abtn.is-sel { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan), 0 0 16px rgba(63,240,216,0.4); }
.abtn--red.is-sel { box-shadow: 0 0 0 2px #ff6b78, 0 0 16px rgba(255,46,62,0.5); }
.abtn__key { margin-left: 8px; vertical-align: middle; }

/* ---------------- Panels / lore ---------------- */
.lore { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 18px; }
.panel { background: var(--panel); border: 2px solid var(--line); border-radius: 10px; padding: 24px; }
.panel__tag { font-family: var(--pix); font-size: 10px; color: var(--cyan); margin: 0 0 14px; }
.panel p { margin: 0 0 14px; }
.panel__dim { color: var(--muted); }
.lore__big { font-family: var(--pix); font-size: 13px; line-height: 1.7; color: var(--bone); margin: 18px 0; }
.panel--cards { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.creed { display: flex; gap: 12px; align-items: baseline; border-left: 3px solid var(--red); padding: 8px 12px; background: var(--bg2); border-radius: 0 6px 6px 0; }
.creed__k { font-family: var(--pix); font-size: 9px; color: var(--red); flex: none; }
.creed__v { color: var(--text); }

/* ---------------- Bestiary ---------------- */
.bestiary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.bcard {
  background: var(--panel); border: 2px solid var(--line); border-radius: 8px;
  padding: 10px; text-align: center; cursor: pointer; transition: transform 0.12s, border-color 0.15s, background 0.15s;
}
.bcard:hover { transform: translateY(-4px); border-color: var(--cyan); background: var(--panel2); }
.bcard__no { font-family: var(--pix); font-size: 8px; color: var(--muted); text-align: left; }
.bcard__media { aspect-ratio: 1; display: grid; place-items: center; background: #04050a; border-radius: 6px; margin: 6px 0; overflow: hidden; }
.bcard__media video { width: 86%; height: 86%; object-fit: contain; image-rendering: pixelated; }
.bcard__name { font-family: var(--pix); font-size: 8.5px; color: var(--bone); line-height: 1.4; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.bcard__tag { font-size: 0.92rem; color: var(--cyan); }
.bcard__desc { color: var(--muted); font-size: 0.96rem; max-height: 0; overflow: hidden; transition: max-height 0.25s ease, margin 0.25s; }
.bcard.is-open { border-color: var(--red); }
.bcard.is-open .bcard__desc { max-height: 120px; margin-top: 6px; }

/* ---------------- Tokenomics ---------------- */
.ped-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ped { background: var(--panel); border: 2px solid var(--line); border-radius: 10px; padding: 22px 18px; text-align: center; }
.ped:hover { border-color: var(--amber); }
.ped__num { font-family: var(--pix); font-size: 24px; color: var(--amber); text-shadow: 0 0 14px rgba(255,177,59,0.35); }
.ped__k { font-family: var(--pix); font-size: 9px; color: var(--cyan); margin: 12px 0 8px; }
.ped p { color: var(--muted); font-size: 1rem; margin: 0; }
.ca { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; background: var(--panel); border: 2px solid var(--line); border-radius: 8px; padding: 14px 18px; }
.ca__k { font-family: var(--pix); font-size: 10px; color: var(--red); }
.ca code { flex: 1; min-width: 220px; color: var(--cyan); font-family: var(--term); font-size: 1.1rem; word-break: break-all; }
.ca button { font-family: var(--pix); font-size: 9px; cursor: pointer; background: var(--cyan); color: #02201c; border: 0; padding: 10px 14px; border-radius: 5px; }
.ca button:hover { box-shadow: 0 0 12px rgba(63,240,216,0.4); }
.net-note { text-align: center; color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------------- Steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: var(--panel); border: 2px solid var(--line); border-radius: 10px; padding: 20px; }
.step__n { font-family: var(--pix); font-size: 14px; color: var(--cyan); border: 2px solid var(--line); border-radius: 6px; padding: 8px 12px; display: inline-block; margin-bottom: 12px; }
.step h3 { font-family: var(--pix); font-size: 11px; color: var(--bone); margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }
.buy-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------------- Mission / spread the stickers ---------------- */
.mission {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  align-items: center;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
.mission__art {
  display: grid; place-items: center;
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(255,46,62,0.12), transparent 70%), #04050a;
  overflow: hidden;
}
.mission__art video { width: 78%; height: 78%; object-fit: contain; image-rendering: pixelated; }
.mission__body p { margin: 0 0 16px; }
.mission__list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 9px; }
.mission__list li { display: flex; gap: 12px; align-items: baseline; color: var(--text); }
.mission__list li span { font-family: var(--pix); font-size: 9px; color: var(--cyan); flex: none; }
.mission__btn { display: inline-block; text-decoration: none; }

/* ---------------- Footer ---------------- */
.foot { position: relative; z-index: 10; border-top: 2px solid var(--line); margin-top: 50px; padding: 50px 22px; text-align: center; background: var(--bg2); }
.foot__big { font-family: var(--pix); font-size: clamp(16px, 3.4vw, 28px); color: var(--red); text-shadow: 0 0 16px rgba(255,46,62,0.4); margin-bottom: 22px; }
.foot__disc { max-width: 820px; margin: 0 auto; color: #5b6379; font-size: 0.92rem; line-height: 1.6; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(30px);
  background: var(--cyan); color: #02201c; font-family: var(--pix); font-size: 10px;
  padding: 12px 18px; border-radius: 6px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s; z-index: 9500;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .minimap { display: none; }
  .lore { grid-template-columns: 1fr; }
  .bestiary { grid-template-columns: repeat(3, 1fr); }
  .ped-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .mission { grid-template-columns: 1fr; }
  .mission__art { max-width: 240px; margin: 0 auto; }
}
@media (max-width: 520px) {
  body { font-size: 20px; }
  .room { padding: 86px 16px 60px; }
  .hud__brand { font-size: 11px; }
  .hud__sound { display: none; }
  .bestiary { grid-template-columns: repeat(2, 1fr); }
  .screen { height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
