/*
 * The Flashlight — the stylesheet.
 *
 * Almost nothing: the picture is the interface. Small monospace capitals in a
 * cold grey, a thin battery line, a ring at the pointer, and the screens
 * before and after, black with one line of light.
 */
:root {
  color-scheme: dark;
  --ink: rgba(214, 220, 228, 0.78);
  --dim: rgba(214, 220, 228, 0.42);
  --warm: #ffd9a6;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* no pinch and no double-tap zoom anywhere on the page: panning is the only gesture left to the browser, and the canvas keeps none */
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #000; touch-action: pan-y; overscroll-behavior: none; }
body {
  color: var(--ink);
  font: 12px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
/* The system cursor only goes while the light is in the hand, where the ring below stands in for it;
   the screens keep it, and the two buttons in the corner show it again when hovered. */
body[data-playing="1"] { cursor: none; }
body[data-playing="1"] .tools button { cursor: pointer; }
#stage { position: absolute; inset: 0; background: #000; }
#stage canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
#overlay { position: absolute; inset: 0; pointer-events: none; }
#overlay button, #overlay a { pointer-events: auto; cursor: pointer; touch-action: manipulation; }
#overlay input { pointer-events: auto; }

.is-hidden { opacity: 0 !important; pointer-events: none !important; }
/* a hidden layer's buttons must not sit invisibly over the one that is shown */
.is-hidden button, .is-hidden a { pointer-events: none !important; }
.screen.is-hidden { visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }

/* ---------------------------------------------------------------- the readout */
#hud { position: absolute; inset: 0; transition: opacity 1.2s ease; }
.readout { position: absolute; top: calc(18px + var(--safe-top)); left: 0; right: 0; display: flex; justify-content: center; gap: 34px; text-align: center; }
.gauge span:first-child { display: block; color: var(--ink); }
.bar { display: block; width: 84px; height: 2px; margin: 8px auto 0; background: rgba(214, 220, 228, 0.14); position: relative; }
.bar::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--level, 100%); background: var(--warm); opacity: 0.8; transition: width 0.4s linear; }
#healthBar::after { background: #d8564a; }
#hud[data-low="1"] #battery { color: #ff9b7a; animation: lowblink 1.4s steps(2, end) infinite; }
#hud[data-low="1"] #batteryBar::after { background: #ff9b7a; }
#hud[data-hurt="1"] #health { color: #ff6a5a; animation: lowblink 0.9s steps(2, end) infinite; }
#hud[data-hurt="1"] #healthBar::after { background: #ff3b2a; }
@keyframes lowblink { 50% { opacity: 0.45; } }
.objective { position: absolute; left: 0; right: 0; bottom: calc(26px + var(--safe-bottom)); text-align: center; color: var(--ink); min-height: 1.6em; }
.fuses { position: absolute; left: 0; right: 0; bottom: calc(50px + var(--safe-bottom)); text-align: center; color: var(--dim); }

/* every line over the picture carries its own darkness, so it reads inside the beam as well as outside it */
.readout, .objective, .fuses, .message, .whisper, .hint, .ring span { text-shadow: 0 0 3px #000, 0 0 8px #000, 0 1px 2px #000, 0 0 14px rgba(0, 0, 0, 0.9); }
.message { position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 48px); bottom: calc(84px + var(--safe-bottom)); margin: 0; text-align: center; color: #e8ecf1; transition: opacity 0.6s ease;
  padding: 8px 14px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.message:empty { display: none; }
/* the seconds to get out, where the eye is: large, in the middle, red from five */
.countdown { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; pointer-events: none; color: #ffd98a; text-shadow: 0 0 6px #000, 0 0 18px #000, 0 2px 4px #000, 0 0 40px rgba(0, 0, 0, 0.9); }
.countdown[hidden] { display: none; }
.countdown-label { font-size: 12px; letter-spacing: 0.34em; opacity: 0.85; }
.countdown-number { font-size: clamp(72px, 16vmin, 132px); line-height: 1; font-weight: 500; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.countdown[data-urgent="1"] { color: #ff5a3c; }
.countdown[data-urgent="1"] .countdown-number { text-shadow: 0 0 6px #000, 0 0 24px rgba(255, 60, 30, 0.6), 0 2px 4px #000; }
/* a slow thing being done (the fuses going in, the boards coming off): a large dial in the middle, so nobody wonders whether to wait */
.hold { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 10px; pointer-events: none; color: #ffe2b0; text-shadow: 0 0 6px #000, 0 0 16px #000, 0 2px 4px #000; }
.hold[hidden] { display: none; }
.hold-face { position: relative; width: clamp(96px, 18vmin, 150px); height: clamp(96px, 18vmin, 150px); }
/* the ring is masked to a band; the percent sits over it, outside the mask, or the mask would cut it away too */
.hold-dial { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(255, 220, 170, 0.95) calc(var(--progress, 0) * 100%), rgba(255, 220, 170, 0.14) 0); -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%); filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.9)); }
.hold-percent { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(22px, 4.6vmin, 34px); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; color: #fff3dc; }
.hold-label { font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; }
.hold-note { font-size: 11px; letter-spacing: 0.3em; color: rgba(255, 226, 176, 0.7); }
.whisper {
  position: absolute; left: 24px; right: 24px; top: 46%; margin: 0; text-align: center;
  color: rgba(226, 228, 236, 0.95); text-transform: lowercase; letter-spacing: 0.1em; font-style: italic; font-size: 15px;
  text-shadow: 0 0 3px #000, 0 0 10px #000, 0 0 22px rgba(0, 0, 0, 0.95); transition: opacity 1.6s ease, filter 1.6s ease; filter: blur(0.6px);
}
.whisper.is-live { animation: breathe 2.8s ease-in-out; }
@keyframes breathe { 0% { opacity: 0; filter: blur(4px); letter-spacing: 0.3em; } 30% { opacity: 1; filter: blur(0.4px); } 100% { opacity: 0; filter: blur(2px); } }
.hint { position: absolute; left: 24px; right: 24px; top: calc(66px + var(--safe-top)); margin: 0; text-align: center; color: rgba(214, 220, 228, 0.7); font-size: 11px; transition: opacity 0.8s ease; }

/* ---------------------------------------------------------------- the pointer */
.cursor { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: opacity 0.3s ease; }
/* the pointer in play: a small ring with a dot, lit so it reads over the dark and the beam alike */
.cursor::before {
  content: ''; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid rgba(255, 230, 190, 0.85); box-shadow: 0 0 6px rgba(255, 217, 166, 0.55), inset 0 0 4px rgba(255, 217, 166, 0.35);
}
.cursor::after { content: ''; position: absolute; left: -1.5px; top: -1.5px; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 240, 215, 0.95); }
.ring { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; transition: opacity 0.25s ease; }
.ring span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 10px); white-space: nowrap; color: #eef1f5; font-size: 10.5px; letter-spacing: 0.2em;
  padding: 5px 10px; border-radius: 4px; background: rgba(0, 0, 0, 0.62); }
.ring.is-near::before { opacity: 0.55; }
.ring.is-near span { color: rgba(238, 241, 245, 0.8); }
.ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(255, 220, 170, 0.95) calc(var(--progress, 0) * 100%), rgba(255, 220, 170, 0.16) 0); -webkit-mask: radial-gradient(circle, transparent 23px, #000 24px); mask: radial-gradient(circle, transparent 23px, #000 24px); }
body[data-touch="1"] .cursor::before, body[data-touch="1"] .cursor::after { display: none; }

/* ---------------------------------------------------------------- touch controls: a thumbstick in the left hand, SWING in the right; the rest of the screen looks round and taps things */
.touch-controls { position: absolute; inset: 0; display: none; pointer-events: none; transition: opacity 0.4s ease; }
body[data-touch="1"][data-playing="1"] .touch-controls { display: block; }
/* the pad: fixed in the corner, a circle that takes touches only within itself; a thumb anywhere else is looking or tapping */
.stick-zone { position: absolute; left: 18px; bottom: calc(40px + var(--safe-bottom)); width: 136px; height: 136px; border-radius: 50%; pointer-events: auto; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.stick-hint { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); margin: 0; color: rgba(214, 220, 228, 0.42); font-size: 10px; letter-spacing: 0.26em; pointer-events: none; }
.stick-base { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(214, 220, 228, 0.3); background: rgba(0, 0, 0, 0.3); transition: border-color 0.15s ease, background 0.15s ease; }
.stick-zone.is-live .stick-base { border-color: rgba(214, 220, 228, 0.6); background: rgba(0, 0, 0, 0.45); }
.stick-knob { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(214, 220, 228, 0.45); box-shadow: 0 0 14px rgba(0, 0, 0, 0.6); transition: background 0.15s ease; }
.stick-zone.is-live .stick-knob { background: rgba(214, 220, 228, 0.7); }
#stage canvas { -webkit-touch-callout: none; }
.take { position: absolute; right: 18px; bottom: calc(30px + var(--safe-bottom)); pointer-events: auto; min-height: 48px; padding: 12px 22px; border-radius: 24px; border: 1px solid rgba(79, 227, 255, 0.85); background: rgba(0, 0, 0, 0.62); color: #c8f6ff; font: inherit; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; touch-action: manipulation; -webkit-user-select: none; user-select: none; box-shadow: 0 0 16px rgba(79, 227, 255, 0.3); }
/* the swing: a round red button with an axe that swings on its own, and chops when pressed */
.take.swing { width: 70px; height: 70px; min-height: 0; min-width: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; bottom: calc(38px + var(--safe-bottom)); border: 2px solid rgba(255, 92, 64, 0.9); background: radial-gradient(circle at 50% 42%, rgba(96, 12, 6, 0.88), rgba(28, 4, 2, 0.92) 72%); color: #ff6a48; box-shadow: 0 0 20px rgba(255, 80, 50, 0.4), inset 0 0 14px rgba(255, 60, 30, 0.28); }
.take.swing:active { background: radial-gradient(circle at 50% 42%, rgba(170, 26, 12, 0.95), rgba(60, 8, 4, 0.95) 72%); }
/* a still picture: the axe mid-swing, two arcs behind the head for the motion; nothing moves */
.axe-icon { width: 44px; height: 44px; overflow: visible; filter: drop-shadow(0 0 5px rgba(255, 80, 50, 0.65)); }
.axe-haft { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; }
.axe-head { fill: currentColor; }
.axe-collar { fill: none; stroke: rgba(30, 0, 0, 0.55); stroke-width: 2.5; stroke-linecap: round; }
.axe-arc { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; opacity: 0.55; }
.axe-arc-2 { stroke-width: 2; opacity: 0.32; }
body[data-touch="1"] .objective { bottom: calc(18px + var(--safe-bottom)); left: 50%; right: auto; transform: translateX(-50%); width: 54%; }
body[data-touch="1"] .fuses { bottom: calc(40px + var(--safe-bottom)); left: 50%; right: auto; transform: translateX(-50%); width: 54%; }
body[data-touch="1"] .message { bottom: calc(160px + var(--safe-bottom)); }
body[data-touch="1"] .readout { gap: 22px; }
body[data-touch="1"] .stick-zone { bottom: calc(52px + var(--safe-bottom)); }
body[data-touch="1"] .ring span { display: none; }

/* ---------------------------------------------------------------- the tools */
.tools { position: absolute; top: calc(10px + var(--safe-top)); right: 10px; display: flex; gap: 4px; transition: opacity 0.6s ease; }
.tools button { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--dim); display: grid; place-items: center; border-radius: 8px; }
.tools button:hover, .tools button:focus-visible { color: var(--ink); background: rgba(255, 255, 255, 0.06); outline: none; }
.tools svg { width: 20px; height: 20px; }
.tools button[aria-pressed="true"] .wave { display: none; }

/* ---------------------------------------------------------------- the flash */
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; mix-blend-mode: screen; }

/* ---------------------------------------------------------------- the screens */
.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: center; background: #000; transition: opacity 1.1s ease; pointer-events: auto; overflow: auto;
  padding-top: calc(24px + var(--safe-top)); padding-bottom: calc(24px + var(--safe-bottom));
}
.lablink { position: absolute; top: calc(16px + var(--safe-top)); left: 18px; color: var(--dim); text-decoration: none; font-size: 10px; letter-spacing: 0.2em; }
.lablink:hover { color: var(--ink); }
#storyLines p { max-width: 36em; color: #d9dde3; text-transform: none; letter-spacing: 0.08em; font-size: clamp(13px, 2vw, 16px); line-height: 1.7; opacity: 0; transition: opacity 1.2s ease; margin: 8px 0; }
#storyLines p.is-on { opacity: 1; }
#storyLines p em { color: var(--warm); font-style: normal; }
.screen p { margin: 0; max-width: 34em; }
.eyebrow { color: var(--dim); font-size: 11px; }
.big { margin: 0; font-size: clamp(22px, 5vw, 44px); font-weight: 500; letter-spacing: 0.34em; color: #e6e9ee; text-shadow: 0 0 28px rgba(255, 217, 166, 0.25); animation: flickerin 2.6s steps(1, end) 1; }
#title .big { animation: none; }
.mid { font-size: clamp(13px, 2vw, 17px); color: #e6e9ee; }
.sub { color: var(--ink); text-transform: none; letter-spacing: 0.06em; font-size: 13px; }
.health-warning { width: min(42em, 100%); padding: 12px 16px; border: 1px solid rgba(255, 174, 144, 0.45); border-radius: 5px; background: rgba(255, 140, 115, 0.08); color: #f0d7ce; font-size: 11px; line-height: 1.7; letter-spacing: 0.12em; }
.health-warning strong { display: block; margin-bottom: 4px; color: #ffb08d; font-size: 10px; letter-spacing: 0.22em; }
.small { color: var(--dim); font-size: 10px; letter-spacing: 0.18em; }
.small a { color: var(--dim); white-space: nowrap; }
.foot { margin-top: 36px !important; }
.key {
  margin-top: 14px; padding: 14px 18px; min-height: 44px; border: 0; background: transparent; color: #e6e9ee;
  font: inherit; letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer; transition: color 0.2s, text-shadow 0.2s;
}
.key:hover, .key:focus-visible { color: var(--warm); text-shadow: 0 0 16px rgba(255, 217, 166, 0.5); outline: none; }
.key.dim { color: var(--dim); }
.row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.behind { margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(214, 220, 228, 0.12); }
#end .foot { margin-top: 10px !important; }
#end .behind { margin-top: 0; }
#end > .row { margin-top: -4px; }
/* the end screen: one column of even steps; the numbers as cells that wrap evenly rather than a line that breaks mid-sentence */
#end { gap: 14px; }
#end #endEyebrow { order: -2; margin: 0; padding: 5px 11px; border: 1px solid rgba(255, 217, 166, 0.34); border-radius: 999px; background: rgba(255, 217, 166, 0.06); color: var(--warm); font-size: 9px; font-weight: 700; letter-spacing: 0.24em; }
#end #endTitle { order: -1; }
#end .big { max-width: 100%; letter-spacing: clamp(0.1em, 2.6vw, 0.28em); text-wrap: balance; }
#end .sub { max-width: min(30em, 100%); line-height: 1.6; text-wrap: balance; }
#end .score { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 168px; margin: 4px 0 0 !important; padding: 11px 24px 13px; border: 1px solid rgba(255, 217, 166, 0.56); border-radius: 8px; background: linear-gradient(135deg, rgba(255, 217, 166, 0.12), rgba(255, 217, 166, 0.035)); box-shadow: 0 0 26px rgba(255, 217, 166, 0.08), inset 0 0 18px rgba(255, 217, 166, 0.035); }
.score-label { color: rgba(255, 217, 166, 0.68); font-size: 9px; font-weight: 700; letter-spacing: 0.3em; }
.score-value { color: #ffe5c2; font-size: clamp(27px, 5.4vw, 36px); font-weight: 800; line-height: 1; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(255, 217, 166, 0.28); }
.stats { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.stats-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 6px 22px; }
.stats-pass { flex-basis: 100%; color: var(--dim); font-size: 9.5px; letter-spacing: 0.26em; margin-bottom: -2px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 56px; }
.stat b { font-weight: 500; font-size: 15px; letter-spacing: 0.12em; color: #e6e9ee; font-variant-numeric: tabular-nums; }
.stat span { font-size: 9.5px; letter-spacing: 0.22em; color: var(--dim); }
.strip { margin: 4px 0 0 !important; color: var(--dim); font-size: 11px; letter-spacing: 0.2em; white-space: pre-wrap; }
.verdict { color: var(--warm); text-transform: none; letter-spacing: 0.08em; font-style: italic; font-size: 13px; margin-top: 8px !important; }
.score { color: #e6e9ee; margin-top: 6px !important; }

/* ---------------------------------------------------------------- sharing: a sheet of its own over the end screen; a row of places, each a plain link */
.screen.sheet { background: rgba(0, 0, 0, 0.84); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); justify-content: center; transition: opacity 0.25s ease; }
.screen.sheet.is-hidden { transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.sheet-card { width: min(100%, 520px); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 22px; border: 1px solid rgba(214, 220, 228, 0.16); border-radius: 10px; background: rgba(6, 8, 10, 0.92); }
.sheet-label { margin-top: 8px !important; max-width: 36em; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 520px; margin-top: 2px; }
.pill { pointer-events: auto; min-height: 36px; padding: 8px 14px; border-radius: 18px; border: 1px solid rgba(214, 220, 228, 0.22); background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; transition: border-color 0.15s, color 0.15s; }
.pill:hover, .pill:focus-visible { border-color: var(--warm); color: var(--warm); outline: none; }
.share-actions { width: 100%; gap: 10px; margin-top: 6px; }
.share-actions .pill { min-width: 124px; min-height: 44px; justify-content: center; border-radius: 6px; }
#shareClose { border-color: var(--warm); background: var(--warm); color: #15110c; font-weight: 700; box-shadow: 0 4px 18px rgba(255, 217, 166, 0.18); }
#shareClose::before { content: '✓'; margin-right: 8px; font-size: 14px; letter-spacing: 0; }
#shareClose:hover, #shareClose:focus-visible { border-color: #ffe9cc; background: #ffe9cc; color: #100d09; transform: translateY(-1px); outline: 2px solid rgba(255, 233, 204, 0.45); outline-offset: 3px; }
#shareClose:active { transform: translateY(0); }

/* ---------------------------------------------------------------- the leaderboard */
.board { width: min(100%, 440px); margin: 8px auto 0; padding-top: 12px; border-top: 1px solid rgba(214, 220, 228, 0.12); display: flex; flex-direction: column; gap: 8px; align-items: stretch; transition: opacity 0.6s ease; }
.board-title { text-align: center; }
#boardNote { text-align: center; }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.board-list li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto auto; gap: 0 12px; align-items: baseline; padding: 6px 10px; border-radius: 4px; color: var(--ink); font-size: 11px; letter-spacing: 0.14em; text-align: center; }
.board-list li.is-you { background: rgba(255, 217, 166, 0.08); color: var(--warm); }
.board-list li.is-below { margin-top: 6px; border-top: 1px dashed rgba(214, 220, 228, 0.18); border-radius: 0; padding-top: 10px; }
.board-rank { color: var(--dim); }
.board-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0.08em; font-size: 13px; }
.board-how { color: var(--dim); font-size: 10px; text-transform: lowercase; letter-spacing: 0.1em; }
.board-score { font-variant-numeric: tabular-nums; }
.board-form { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.board-input { min-height: 44px; padding: 10px 14px; flex: 1 1 180px; max-width: 260px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(214, 220, 228, 0.28); border-radius: 4px; color: #e6e9ee; font: inherit; letter-spacing: 0.05em; text-transform: none; outline: none; }
.board-input:focus { border-color: var(--warm); box-shadow: 0 0 0 1px rgba(255, 217, 166, 0.35); }
.board-input::placeholder { color: var(--dim); }
.board-form .key { margin-top: 0; }
.board-as { color: var(--warm); font-size: 11px; letter-spacing: 0.05em; text-transform: none; padding: 0 6px; }
@media (max-width: 600px) { .board-list li { grid-template-columns: 2.4em minmax(0, 1fr) auto; } .board-how { display: none; } }
@keyframes flickerin {
  0% { opacity: 0; } 8% { opacity: 1; } 12% { opacity: 0.2; } 18% { opacity: 1; } 22% { opacity: 0.4; } 26% { opacity: 1; } 60% { opacity: 1; } 63% { opacity: 0.5; } 66% { opacity: 1; }
}
#prologue .lines p { font-size: clamp(13px, 2.2vw, 18px); color: #e6e9ee; text-transform: none; letter-spacing: 0.1em; opacity: 0; transition: opacity 1.4s ease; margin: 6px 0; }
#prologue .lines p.is-on { opacity: 1; }
#loading .small { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .big, .whisper.is-live, #hud[data-low="1"] #battery, #loading .small { animation: none; }
}
@media (max-width: 600px) {
  body { font-size: 11px; letter-spacing: 0.18em; }
  .stats { gap: 6px 16px; }
}
