@property --acc { syntax: '<color>'; inherits: true; initial-value: #FF5555; }
@property --acc-dim { syntax: '<color>'; inherits: true; initial-value: #5a1414; }

:root {
  --bg: #030709;
  --glass: rgba(9, 26, 32, .82);
  --edge: #163640;
  --edge2: #1E5462;
  --neon: #4FD8EA;
  --head: #A6E3EC;
  --text: #EAF4F5;
  --muted: #8FA6AC;
  --gold: #F2B544;
  --green: #6EE787;
  --red: #FF5555;
  --launch: #E79BF7;
  --launch-dk: #26102b;
  --ink: #0C1512;
  --steel: #6E93C9;
  --px: 'Tiny5', 'JetBrains Mono', monospace;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
body { --acc: #FF5555; --acc-dim: #5a1414; transition: --acc 1.6s ease, --acc-dim 1.6s ease; }
body[data-power="on"] { --acc: #4FD8EA; --acc-dim: #12404a; }

* { box-sizing: border-box; font-synthesis: none; }
html.locked, html.locked body { overflow: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--mono); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--neon); color: var(--bg); }

/* ---------- helpers ---------- */
.kicker { font: 700 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--acc); }
.chrome {
  font-family: var(--px); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.02; margin: 0;
  background:
    repeating-linear-gradient(118deg, transparent 0 26px, rgba(255,255,255,.38) 26px 36px, transparent 36px 52px),
    linear-gradient(180deg, #F6F8FB 0%, #DDE2EA 46%, #9DB8DF 62%, #5E86BD 80%, #2E5A8C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)) drop-shadow(0 5px 0 #0f2a40) drop-shadow(0 2px 0 var(--ink));
}
.chrome.teal {
  background:
    repeating-linear-gradient(118deg, transparent 0 26px, rgba(255,255,255,.35) 26px 36px, transparent 36px 52px),
    linear-gradient(180deg, #E4FAFA 0%, #B6E8EA 45%, #5CC6CB 66%, #1E9EA6 82%, #0D5A5E 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)) drop-shadow(0 5px 0 #08393c) drop-shadow(0 2px 0 var(--ink));
}
.btn {
  --c: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; white-space: nowrap;
  padding: 14px 22px; min-height: 48px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 16%, #04140c);
  color: var(--c); font: 700 15px/1 var(--px); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; position: relative; transition: background .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 0 0 0 transparent, inset 0 -3px 0 color-mix(in srgb, var(--c) 30%, transparent);
}
.btn::before, .btn::after { content: ''; position: absolute; width: 8px; height: 8px; border: 2px solid var(--c); }
.btn::before { left: -6px; top: -6px; border-right: 0; border-bottom: 0; }
.btn::after { right: -6px; bottom: -6px; border-left: 0; border-top: 0; }
.btn:hover { background: color-mix(in srgb, var(--c) 28%, #04140c); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 35%, transparent), inset 0 -3px 0 color-mix(in srgb, var(--c) 30%, transparent); }
.btn:active { transform: translateY(2px); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; }
.btn.ghost { --c: var(--head); background: rgba(10, 30, 36, .55); }
.btn.launch { --c: var(--launch); background: color-mix(in srgb, var(--launch) 14%, #12061a); }
.btn.sm { padding: 9px 14px; min-height: 38px; font-size: 13px; }
.glass {
  position: relative; background: var(--glass); border: 2px solid var(--edge2);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.glass::before, .glass::after { content: ''; position: absolute; width: 14px; height: 14px; border: 3px solid var(--acc); pointer-events: none; }
.glass::before { left: -3px; top: -3px; border-right: 0; border-bottom: 0; }
.glass::after { right: -3px; bottom: -3px; border-left: 0; border-top: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- boot ---------- */
#boot {
  position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center;
  font: 14px/1.9 var(--mono); color: var(--neon); cursor: pointer; transition: opacity .35s;
}
#boot pre { margin: 0; min-width: min(560px, 86vw); white-space: pre-wrap; text-shadow: 0 0 8px rgba(79,216,234,.6); }
#boot .crt { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px); pointer-events: none; animation: crtOn .45s ease-out both; }
#boot small { position: absolute; bottom: 24px; color: var(--muted); letter-spacing: .2em; font-size: 11px; }
#boot.out { opacity: 0; pointer-events: none; }
@keyframes crtOn { 0% { transform: scaleY(.004) scaleX(.3); background-color: #fff; } 40% { transform: scaleY(.004) scaleX(1); background-color: #fff; } 100% { transform: none; background-color: transparent; } }

/* ---------- alarm ---------- */
.alarm { position: fixed; inset: 0; pointer-events: none; z-index: 5; transition: opacity 1.4s ease; mix-blend-mode: screen; }
body[data-power="on"] .alarm { opacity: 0; }
.alarm .beam { position: absolute; top: -10vmax; width: 80vmax; height: 80vmax; margin-left: -40vmax; animation: spin 2.6s linear infinite;
  background: conic-gradient(from 0deg, transparent 0 14deg, rgba(255,40,40,.26) 22deg, transparent 32deg, transparent 194deg, rgba(255,40,40,.2) 202deg, transparent 212deg); }
.alarm .beam.l { left: 12%; }
.alarm .beam.r { left: 88%; animation-delay: -1.3s; }
.alarm .pulse { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(255,30,30,.42) 100%); animation: breathe 4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.hud .corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--acc); opacity: .9; }
.hud .tl { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.hud .tr { right: 10px; top: 10px; border-left: 0; border-bottom: 0; }
.hud .bl { left: 10px; bottom: 10px; border-right: 0; border-top: 0; }
.hud .br { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.hud-bar { position: absolute; left: 24px; right: 24px; top: 18px; display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.hud-bar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hud-bar .brand img { width: 46px; height: auto; filter: drop-shadow(0 0 10px rgba(0,0,0,.6)); }
.plate {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-left: 3px solid var(--acc);
  background: rgba(6, 20, 26, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font: 700 12px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--head); min-width: 0;
}
.plate .dot { width: 8px; height: 8px; background: var(--acc); box-shadow: 0 0 10px var(--acc); flex: none; animation: blink 1s steps(2) infinite; }
body[data-power="on"] .plate .dot { animation: none; }
.plate span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate small { display: block; font-size: 10px; color: var(--muted); letter-spacing: .14em; font-weight: 400; }
@keyframes blink { 50% { opacity: .2; } }
.hud-bar .sp { flex: 1; }
.mini-timer { padding: 6px 10px; background: rgba(6,20,26,.78); font: 700 12px/1.2 var(--mono); letter-spacing: .12em; color: var(--launch); text-align: right; text-transform: uppercase; }
.mini-timer b { display: block; font: 700 16px/1.1 var(--px); letter-spacing: .08em; color: #fff; text-shadow: 0 0 12px rgba(231,155,247,.6); }
/* на первом экране таймер уже есть в hero — розовый мини-таймер в шапке появляется после прокрутки */
body:not(.scrolled) .mini-timer { opacity: 0; pointer-events: none; }
.mini-timer { transition: opacity .3s; }
#hudPlay { --c: var(--neon); }
.snd { background: rgba(6,20,26,.78); border: 2px solid var(--edge2); color: var(--muted); padding: 7px 10px; font: 700 11px/1 var(--mono); letter-spacing: .14em; cursor: pointer; min-height: 38px; }
.snd[aria-pressed="true"] { color: var(--acc); border-color: var(--acc); }
.depth { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 54px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font: 700 11px/1 var(--mono); color: var(--muted); letter-spacing: .1em; }
.depth .rail { width: 12px; height: 160px; position: relative;
  background: repeating-linear-gradient(180deg, var(--edge2) 0 2px, transparent 2px 16px); }
.depth .mark { position: absolute; right: -2px; width: 18px; height: 3px; background: var(--acc); box-shadow: 0 0 8px var(--acc); top: 0; transition: top .15s linear; }
.depth b { color: var(--text); font-size: 13px; }

/* ---------- HERO ---------- */
#hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -4%; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
  filter: blur(18px) brightness(.55) saturate(1.1); transform: scale(1.12); transition: filter 1.6s ease, transform 2.4s cubic-bezier(.2,.7,.2,1); }
body[data-awake="1"] .hero-bg img { filter: blur(0) brightness(.62) saturate(.9); transform: scale(1); }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 48%, rgba(3,7,9,.35) 0%, rgba(3,7,9,.72) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 26%);
  opacity: 0; transition: opacity 1.2s .4s; }
body[data-awake="1"] .hero-shade { opacity: 1; }
#frost { position: absolute; inset: 0 0 auto 0; width: 100%; height: 100vh; height: 100svh; z-index: 2; transition: opacity 1s ease; }
body[data-awake="1"] #frost { opacity: 0; pointer-events: none; }
.flash { position: absolute; inset: 0; background: #dff8ff; opacity: 0; z-index: 3; pointer-events: none; }
.flash.go { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .85; } 100% { opacity: 0; } }

.hold-wrap { position: absolute; inset: 0 0 auto 0; height: 100vh; height: 100svh; z-index: 4; display: grid; place-items: center; text-align: center; transition: opacity .5s, transform .5s; }
body[data-awake="1"] .hold-wrap { opacity: 0; transform: scale(1.1); pointer-events: none; }
.hold-inner { display: grid; justify-items: center; gap: 18px; padding: 16px; }
.hold-inner .lead { font: 700 12px/1.6 var(--mono); letter-spacing: .3em; color: #e6f6f8; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.hold-btn { position: relative; width: 148px; height: 148px; border-radius: 50%; border: 0; background: rgba(4, 16, 20, .55); cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; display: grid; place-items: center;
  box-shadow: 0 0 0 2px rgba(255,255,255,.2), 0 10px 40px rgba(0,0,0,.35); transition: transform .15s; }
.hold-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; }
.hold-btn.on { transform: scale(.95); }
.hold-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hold-btn .track { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 6; }
.hold-btn .prog { fill: none; stroke: var(--acc); stroke-width: 6; stroke-linecap: butt; filter: drop-shadow(0 0 6px var(--acc)); }
.hold-btn .ico { font: 700 30px/1 var(--px); color: #fff; letter-spacing: .04em; }
.hold-btn .ico small { display: block; font: 700 10px/1.4 var(--mono); letter-spacing: .2em; color: var(--head); margin-top: 6px; }
.hold-label { font: 700 18px/1.2 var(--px); letter-spacing: .1em; color: #fff; text-transform: uppercase; padding: 10px 16px; background: rgba(4,16,20,.62); border: 2px solid rgba(255,255,255,.18); }
.hold-hint { font: 12px/1.5 var(--mono); color: #cfe3e6; letter-spacing: .08em; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.hold-hint button { background: none; border: 0; padding: 4px; text-decoration: underline; cursor: pointer; color: inherit; font: inherit; }

.hero-content { position: relative; z-index: 4; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 110px 6vw 90px; text-align: center; }
.hero-content > * { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.hero-content > .in { opacity: 1; transform: none; }
.logo-wrap { position: relative; width: min(640px, 86vw); aspect-ratio: 1200 / 180; }
.logo-wrap canvas, .logo-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-wrap img { opacity: 0; }
.logo-wrap.done img { opacity: 1; }
.logo-wrap.done canvas { display: none; }
.logo-wrap .glint { position: absolute; inset: 0; pointer-events: none;
  /* маска — силуэт логотипа data:-URI: url(../assets/logo.webp) маска грузит с CORS, и у страницы с диска (file://) блик пропадал */
  --logo-mask: url(data:image/webp;base64,UklGRtgIAABXRUJQVlA4TMsIAAAvV0IWEFenoG0bJvxJ718E8z//CgEEQEFDNmlD54J5A5AFvweBUAF0lPyDOhdchD8d4d0zjbKR7CA/hSCs3bZtWpI11t430mU827Zt27YdWbZtZdSzbRtl20bEWXvNv5Hx8pwT97Z9T9xPEf2fAHr8/JaTT63GU844dAOGsdvxp51y6mroKacf2JnxoDtVldfuhDHiXVo1vaSzzIe06PXY+IU7YiS+VxZ9VbTx/3Vm9rNw1WPo4h2xxMPvUGhVNHROV4kn3q2aXC7zKblWeUZ8WaU+LP1u9cfm/iqvjszTlkKrPJnnNaHqmGMf+WpP4hB5fdi6/6qs8hjbnadSGzvBSyO0ypPttQpVyNHy1Z7ECfLauGS30c6XKlZ5jPtcpaiNC+d4g4pWeTLvUFFt3PCJd/9m9cf4prwyVl87Mh5+s6I+3MuqT+ajKprx7MjyL+SzHkWndpB4yt2a+Yzyig4yX5PPehT9a10HtvZvsx+uvWifeb6HZj1j6ekdJA6Vz3q4fj+yVsb2F6jMfnyG3CrzOoVm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U8grRDXESRqrNFZJGqo6GPMTQ8eP8FYIVFeQq6yojeTayh068PJ00PRB8krxPWv9fzfugpduhNWQ65vYzY1hG56ELZi9iZVmesoEjVU9E7y9NBoC4kVEvc+nVxlES8l11DRVffBpoeit9hohbh+m40aK/rvOqPr75Sm1ONinEjC2P2K4qX+m3L5Tti2HFkWS+dL+jR5m+4qXup4Ufsw6uynqsvXkDHuc7Omw2PJbMsJ6vPuR5G25cmq6KeRO3vH3vObq3F+z89tAoyNn91zfnP9z+/9REvbkHjNfl/b3PX83u9jW43dv7p5fnMVz+/10Uz3AA==);
  -webkit-mask: var(--logo-mask) center / 100% 100% no-repeat; mask: var(--logo-mask) center / 100% 100% no-repeat; overflow: hidden; }
.logo-wrap .glint::before { content: ''; position: absolute; top: 0; bottom: 0; width: 18%; left: -30%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.85) 50%, transparent); animation: glint 5.5s ease-in-out 1s infinite; }
@keyframes glint { 0%, 70% { left: -30%; } 100% { left: 120%; } }
.hero-content .say { margin: 0; font: 22px/1.2 var(--px); letter-spacing: .3em; text-transform: uppercase; color: var(--head); text-shadow: 0 2px 0 #000; }
#hero .btn { --c: var(--neon); }
.hero-content .tm { font: 12px/1.6 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.cd-short { font-variant-numeric: tabular-nums; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 4; font: 700 11px/1 var(--mono); letter-spacing: .3em; color: var(--muted); opacity: 0; transition: opacity 1s 2.6s; text-decoration: none; }
body[data-awake="1"] .scroll-cue { opacity: 1; }
.scroll-cue::after { content: ''; display: block; width: 2px; height: 26px; margin: 10px auto 0; background: var(--acc); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- POWER ---------- */
section.block { position: relative; padding: 120px 6vw; }
#power { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center;
  background: radial-gradient(ellipse at 70% 50%, color-mix(in srgb, var(--acc) 10%, transparent), transparent 60%),
              linear-gradient(180deg, var(--bg), #061015 50%, var(--bg)); }
#power .copy { display: grid; gap: 20px; max-width: 520px; }
#power h2, #next h2 { font-size: clamp(30px, 4.4vw, 54px); }
#power p { margin: 0; color: #c4d4d8; }
.status-line { font: 700 12px/1.6 var(--mono); letter-spacing: .14em; color: var(--acc); text-transform: uppercase; min-height: 1.6em; }
.hint-drag { font: 12px/1.5 var(--mono); color: var(--muted); }
.hint-drag b { color: var(--gold); }

.furnace { padding: 22px 22px 20px; display: grid; gap: 18px; max-width: 560px; width: 100%; justify-self: center; }
.furnace header { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid var(--edge); padding-bottom: 12px; }
.furnace header h3 { margin: 0; font: 700 20px/1 var(--px); letter-spacing: .08em; color: var(--head); text-transform: uppercase; }
.tag { font: 700 10px/1 var(--mono); letter-spacing: .16em; padding: 6px 8px; border: 1px solid var(--acc); color: var(--acc); text-transform: uppercase; white-space: nowrap; }
.chamber { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.firebox { width: 132px; height: 132px; position: relative; background: #050b0d; border: 2px solid var(--edge2);
  box-shadow: inset 0 0 0 4px #0a1a1f, inset 0 0 30px rgba(0,0,0,.9); display: grid; place-items: end center; overflow: hidden; }
.firebox::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 18px, #0b181c 18px 22px); opacity: .9; }
.flame { width: 96px; height: 96px; image-rendering: pixelated; opacity: 0; transform-origin: 50% 100%; transition: opacity .4s; }
.lit .flame { opacity: 1; animation: flick .32s steps(2) infinite alternate; }
.lit .firebox { box-shadow: inset 0 0 0 4px #0a1a1f, inset 0 -20px 50px rgba(255,140,40,.45), 0 0 40px rgba(255,140,40,.25); }
@keyframes flick { from { transform: scaleY(1) scaleX(1); } to { transform: scaleY(1.08) scaleX(.95); } }
.slot-col { display: grid; gap: 10px; justify-items: start; }
.slot-col .lbl { font: 700 11px/1 var(--mono); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.slot { width: 64px; height: 64px; display: grid; place-items: center; background: #08161a; border: 2px solid var(--edge2);
  box-shadow: inset 3px 3px 0 rgba(0,0,0,.6), inset -2px -2px 0 rgba(79,216,234,.08); position: relative; }
.slot svg { width: 44px; height: 44px; image-rendering: pixelated; }
#fuelSlot { border-style: dashed; border-color: var(--acc); }
#fuelSlot.hover { background: color-mix(in srgb, var(--acc) 22%, #08161a); box-shadow: 0 0 24px var(--acc); }
#fuelSlot.wait { animation: slotPulse 1.4s ease-in-out infinite; }
@keyframes slotPulse { 50% { box-shadow: 0 0 22px var(--acc), inset 3px 3px 0 rgba(0,0,0,.6); } }
.lit #fuelSlot { border-style: solid; border-color: var(--gold); animation: none; }
.energy { display: grid; gap: 8px; }
.energy .row { display: flex; justify-content: space-between; font: 700 11px/1 var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.energy .row b { color: var(--text); font-variant-numeric: tabular-nums; }
.bar { height: 18px; background: #050b0d; border: 2px solid var(--edge2); padding: 2px; }
.bar i { display: block; height: 100%; width: 0%; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, #c98a1c 10px 12px); box-shadow: 0 0 12px rgba(242,181,68,.5); }
body[data-power="on"] .bar i { background: repeating-linear-gradient(90deg, var(--neon) 0 10px, #2aa7b8 10px 12px); box-shadow: 0 0 12px rgba(79,216,234,.5); }
.inv { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inv .lbl { font: 700 11px/1 var(--mono); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; width: 100%; }
.coal { cursor: grab; touch-action: none; padding: 0; }
.coal:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.coal .n { position: absolute; right: 4px; bottom: 2px; font: 700 13px/1 var(--px); color: #fff; text-shadow: 2px 2px 0 #000; }
.coal.used { opacity: .35; cursor: default; }
.drag-coal { position: fixed; z-index: 90; width: 56px; height: 56px; pointer-events: none; image-rendering: pixelated; transform: translate(-50%, -50%) scale(1.15); filter: drop-shadow(0 8px 10px rgba(0,0,0,.6)); }
.drag-coal.back { transition: left .25s ease, top .25s ease, opacity .25s; }
.drag-coal.fly { transition: left .45s cubic-bezier(.5,-0.2,.4,1), top .45s cubic-bezier(.5,-0.4,.4,1); }

.lamps { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; }
.lamp { flex: 1; height: 10px; max-width: 120px; background: #0b1a1f; border: 1px solid var(--edge); transition: background .3s, box-shadow .3s; }
.lamp.on { background: var(--neon); box-shadow: 0 0 18px var(--neon), 0 0 60px rgba(79,216,234,.35); }

/* ---------- NEXT (teaser) ---------- */
#next { display: grid; gap: 30px; justify-items: start; background: linear-gradient(180deg, var(--bg), #05121a); }
#next p { margin: 0; color: #c4d4d8; max-width: 620px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; width: 100%; }
.room { padding: 14px; min-height: 92px; display: grid; align-content: space-between; gap: 10px; background: rgba(8, 24, 30, .8); border: 2px solid var(--edge);
  font: 700 13px/1.3 var(--px); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.room small { font: 700 10px/1 var(--mono); letter-spacing: .16em; color: #4d6a72; }
.room.open { border-color: var(--acc); color: var(--text); box-shadow: inset 0 0 30px color-mix(in srgb, var(--acc) 14%, transparent); }
.room.open small { color: var(--green); }
footer { padding: 40px 6vw 60px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--edge); }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .depth, .mini-timer, .hud-bar .sp, .snd-t { display: none; }
  .hud-bar { left: 16px; right: 16px; top: 14px; gap: 8px; }
  .plate { flex: 1 1 auto; }
  .plate > div { min-width: 0; overflow: hidden; }
  .snd { flex: none; width: 38px; }
  #hero { height: auto; min-height: 100svh; }
  .hero-bg, .hold-wrap, #frost { position: absolute; inset: 0 0 auto 0; height: 100svh; }
  .hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), transparent 40%); }
  .hud-bar .brand img { width: 38px; }
  .plate { font-size: 10px; padding: 6px 10px; }
  .plate small { display: none; }
  .hud .corner { width: 18px; height: 18px; }
  .hero-bg img { object-position: 60% 30%; }
  .hero-content { padding: 90px 16px 60px; gap: 20px; }
  .hero-content .say { font-size: 17px; letter-spacing: .22em; }
  .hero-content .tm { font-size: 11px; letter-spacing: .12em; }
  .hero-content .tm .sep { display: none; }
  .hero-content .tm span { display: block; }
  .scroll-cue { display: none; }
  section.block { padding: 90px 16px; }
  #power { grid-template-columns: 1fr; gap: 36px; }
  .furnace { padding: 16px; }
  .firebox { width: 104px; height: 104px; }
  .flame { width: 76px; height: 76px; }
}
@media (max-height: 860px) { .scroll-cue { display: none; } }
@media (max-width: 420px) {
  .hud-bar .btn.sm { padding: 8px 10px; font-size: 12px; }
  .snd { padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .alarm .beam { display: none; }
}

/* до пробуждения невидимый текст героя не должен перекрывать кнопку удержания */
body[data-awake="0"] .hero-content { pointer-events: none; }
