@font-face { font-family: Bricolage; src: url("/assets/bricolage.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  color-scheme: dark;
  font: 16px/1.45 "Trebuchet MS", system-ui, sans-serif;
  color: #fff2dc;
  background: #201714;
  --ink: #201714;
  --text: #fff2dc;
  --muted: #dbc0a6;
  --gold: #ffcd66;
  --line: #7c5642;
  --panel: #35231e;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --surface-1: #1d1411;
  --surface-2: #221713;
  --surface-3: #2a1d18;
  --edge: #4a3329;
  --pink: #ffadbd;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --press: 160ms var(--ease-out);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100dvh; background: var(--bg, #201714) linear-gradient(#ffffff0c, #ffffff00 330px) no-repeat; transition: background-color 900ms ease; -webkit-tap-highlight-color: transparent; }
/* Depth is colour: each rock layer shifts the ground, warm near the surface, cold in kimberlite, glinting at the lode. */
body[data-layer="1"] { --bg: #1b1310; }
body[data-layer="2"] { --bg: #151612; }
body[data-layer="3"] { --bg: #171213; }
body[data-layer="4"] { --bg: #0f1116; }
body[data-layer="5"] { --bg: #16110a; }
::selection { background: var(--gold); color: var(--ink); }
button { font: inherit; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #ffe3a1; outline-offset: 3px; }
/* Headings receive focus only so screen readers announce a new screen; they are not controls. */
[tabindex="-1"]:focus { outline: none; }
/* Every pressable answers the finger immediately. */
.button, .icon-button, .key, .tile, .option { transition: transform var(--press), background-color 150ms ease, border-color 150ms ease, opacity 200ms ease; }
:is(.button, .icon-button, .key, .tile, .option):active:not(:disabled) { transform: scale(0.97); }
.app-shell { position: relative; z-index: 1; max-width: 1160px; margin: auto; padding: 0 clamp(14px, 3vw, 32px) max(18px, env(safe-area-inset-bottom)); }
.brand { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; text-decoration: none; }
.icon-button, .dialog-close { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; background: #362620; color: var(--text); border: 1px solid var(--line); border-radius: var(--r-md); }
.icon-button[aria-pressed="true"] { color: var(--gold); }
h1, h2 { margin: 0; line-height: 1; letter-spacing: -.035em; }
.button { border-radius: var(--r-sm); border: 1px solid transparent; min-height: 52px; padding: 10px 15px; font-weight: 800; display: inline-flex; justify-content: center; align-items: center; gap: 10px; }
.button-primary { background: var(--gold); color: #2a1c12; }
.button-primary:disabled { background: #765c3d; color: #fff0d7; }
.button-secondary { border-color: var(--line); background: var(--panel); color: var(--text); }
.button-text { min-height: 44px; padding: 0 4px; border: 0; color: var(--muted); background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.home { position: relative; display: grid; min-height: min(740px, calc(100dvh - 80px)); overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: var(--r-lg); background: #302019; }
.mine-entrance { position: absolute; inset: 0; z-index: -1; background: #9f6349 url('/assets/mine-entrance.webp') center / cover; }
.mine-entrance::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #211511 1%, #211511ed 28%, #2115118c 47%, transparent 71%); }
.mine-entrance .mascot { position: absolute; z-index: 1; width: clamp(126px, 17vw, 230px); right: 12%; bottom: 10%; }
.home-content { align-self: center; max-width: 500px; padding: clamp(28px, 6vw, 84px); }
.home h1 { font: 900 clamp(4.1rem, 9vw, 7.2rem)/.79 "Bricolage", "Trebuchet MS", sans-serif; letter-spacing: -.05em; }
.home h1 span { color: var(--gold); }
.intro { max-width: 30ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); margin: 24px 0 16px; }
.home-how { margin-top: 7px; color: var(--muted); font-size: .86rem; }
.home-how summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.home-how[open] { max-width: 34ch; padding: 0 0 8px; }
.home-how ol { margin: 3px 0 7px; padding-left: 20px; }
.home-how li { margin: 4px 0; }
.home-how p { margin: 7px 0 0; }
.home-actions { display: grid; margin-top: 24px; }
.home-actions button, .result-actions button { justify-content: space-between; }
.home-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 5px; font-size: .87rem; color: var(--muted); }
.season { color: var(--gold); font-size: .9rem; }
.game, .results, .cage-screen, .skeleton { max-width: 670px; margin: auto; }
.game { display: flex; flex-direction: column; min-height: min(790px, calc(100dvh - 78px)); }
.game-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 0 8px; }
.timer { font: 800 1.35rem/1.2 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.lamp { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); }
.lamp.urgent { color: var(--pink); animation: flicker 1.6s steps(1, end) infinite; }
.round-track { height: 5px; background: #3d2a22; border-radius: 5px; overflow: hidden; }
/* The lamp gauge: it burns down as the level runs, and flickers in the last 10 s. */
.round-track span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #ffb347, var(--gold)); box-shadow: 0 0 10px #ffcd6699; transform-origin: left; transform: scaleX(0); }
.round-track.urgent span { background: var(--pink); box-shadow: 0 0 10px #ffadbd88; animation: flicker 1.6s steps(1, end) infinite; }
.challenge { flex: 1 1 auto; min-height: 210px; display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: clamp(10px, 3vw, 30px); padding: 14px 0 8px; }
.question-area { min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; }
.question-area h1 { max-width: 14ch; font: 850 clamp(2.2rem, 9vw, 4.2rem)/.98 "Bricolage", "Trebuchet MS", sans-serif; letter-spacing: -.045em; overflow-wrap: anywhere; }
.question-area p:not(.question-label) { margin: 12px 0 0; color: var(--muted); font-size: .91rem; }
.feedback { min-height: 24px; margin-top: 12px; color: var(--gold); font-size: .95rem; font-weight: 800; }
.feedback.wrong { color: var(--pink); }
/* Memory and Logic: the board is the puzzle, so the heading steps back. */
.game:is([data-phase="memory"], [data-phase="logic"]) .question-area h1 { font-size: clamp(1.6rem, 6.4vw, 2.4rem); }
.game[data-phase="memory"] #question-sub { color: var(--text); font-weight: 800; font-size: 1rem; }
.descent-rail { position: relative; isolation: isolate; align-self: stretch; overflow: hidden; min-height: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #1a110e; }
.descent-rail::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, #1a110e99, transparent 65%), linear-gradient(#1a110e00 55%, #1a110eaa); pointer-events: none; }
.rail-start, .rail-end { position: absolute; z-index: 3; right: 8px; color: #f2dcc0; font: 700 .65rem/1 ui-monospace, monospace; text-shadow: 0 1px 2px #000; }
.rail-start { top: 9px; }.rail-end { bottom: 9px; }
.rail-inner { position: absolute; z-index: 2; inset: 48px 0 43px; }
.rail-line, .rail-fill { position: absolute; width: 5px; left: 50%; top: 0; border-radius: var(--r-sm); transform: translateX(-50%); }
.rail-line { height: 100%; background: #d1a17c70; }
.rail-fill { height: 100%; background: var(--gold); transform-origin: top; transform: translateX(-50%) scaleY(var(--depth-ratio)); transition: transform 420ms var(--ease-out); }
/* The track spans the rail, so translateY(%) moves the miner by a share of the rail height on the compositor. */
.miner-track { position: absolute; z-index: 2; inset: 0; transform: translateY(var(--depth-pct)); transition: transform 420ms var(--ease-out); pointer-events: none; }
.miner-marker { position: absolute; left: 50%; top: 0; width: 76px; height: 68px; transform: translate(-50%, -50%); }
.miner-marker .mascot { width: 100%; height: 100%; }
.depth-delta { position: absolute; top: 54px; left: 50%; min-width: 52px; transform: translateX(-50%); color: #2a1c12; background: var(--gold); border-radius: 5px; text-align: center; white-space: nowrap; font: 800 .68rem/1.4 ui-monospace, monospace; }
.depth-delta:empty { display: none; }
.descent-rail.wrong .depth-delta { color: var(--ink); background: var(--pink); }
/* Seen ~30 times a round: short, transform/opacity only. */
.descent-rail::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 22px #ffcd6655; opacity: 0; pointer-events: none; }
.descent-rail.correct::after { animation: rail-pulse 360ms var(--ease-out); }
.descent-rail.correct .miner-marker .mascot { animation: descend 320ms var(--ease-out); }
.descent-rail.wrong .miner-marker .mascot { animation: rebound 280ms var(--ease-out); }
.depth-readout { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 0; margin-bottom: 7px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.depth-readout strong { font: 850 1.55rem/1 ui-monospace, monospace; color: var(--gold); }
.controls { margin-top: auto; }
.answer-display { min-height: 42px; border-bottom: 1px solid var(--line); color: var(--gold); display: grid; place-items: center; margin-bottom: 8px; font: 800 1.7rem/1 ui-monospace, monospace; }
.keypad, .memory-grid, .options { display: grid; gap: 7px; }
.keypad, .memory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.key, .tile, .option { border: 1px solid #8b644f; border-radius: var(--r-sm); background: #423029; color: var(--text); font-weight: 800; min-height: 46px; }
:is(.key, .tile, .option):active:not(:disabled) { background: #715040; }
.key { display: grid; place-items: center; font-size: 1.32rem; font-variant-numeric: tabular-nums; }
.key.action { font-size: .9rem; color: var(--muted); background: #2e211d; }
/* Enables on nearly every question, so the colour switches instantly; only the press scales. */
#submit { width: 100%; margin-top: 8px; transition: transform var(--press); }
.memory-grid { max-width: min(100%, 285px, 46dvh); margin: 0 auto; }
.memory-grid[data-kind="pairs"] { width: min(100%, 285px, calc((46dvh - 28px) * .8)); max-width: 100%; grid-template-columns: repeat(var(--cols), minmax(44px, 1fr)); gap: 7px; }
.memory-grid[data-kind="pairs"] .tile { display: grid; place-items: center; padding: 3px; overflow: hidden; min-width: 0; transition: transform 140ms var(--ease-out), background-color 150ms ease, border-color 150ms ease; }
.memory-grid[data-kind="pairs"] .tile svg { width: min(100%, 44px); height: min(100%, 44px); }
.memory-grid[data-kind="pairs"] .tile.face-up { background: #34251f; }
.memory-grid[data-kind="pairs"] .tile.matched { border-color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.memory-grid[data-kind="pairs"] .tile.flipping { transform: perspective(320px) rotateY(90deg); }
.rock-back { width: 75%; height: 75%; border-radius: 38% 52% 42% 48%; background: linear-gradient(135deg,#896a54,#493329 62%,#30221e); box-shadow: inset 2px 2px 0 #c09b7044, inset -3px -3px 0 #211714; transform: rotate(-12deg); }
.tile { aspect-ratio: 1; min-height: 0; background: #50362f; }
/* Flashes stay instant: their timing is the puzzle. Unlit tiles recede while watching, then return for the player's turn. */
.memory-grid.watching .tile:not(.lit) { opacity: .5; }
.tile.lit { background: var(--gold); border-color: #fff0c2; box-shadow: inset 0 0 0 4px #543419; transition: none; }
.tile.tapped { border-color: var(--text); box-shadow: inset 0 0 0 3px var(--text); }
.memory-grid[data-kind="change"] .tile { display: grid; place-items: center; padding: 5px; overflow: hidden; transition: none; }
.memory-grid[data-kind="change"] .tile:disabled { opacity: 1; }
.memory-grid[data-kind="change"] .tile svg { width: min(100%, 60px); height: min(100%, 60px); overflow: visible; filter: drop-shadow(0 2px 2px #120b09aa); }
.gem-shape { fill: currentColor; }
.gem-0 { color: #8c929d; }
.gem-1 { color: #fa966b; }
.gem-2 { color: #80d6ac; }
.gem-3 { color: #ff8e9b; }
.gem-4 { color: #a9e4f3; }
.gem-5 { color: #ffcb63; }
.gem-6 { color: #c18bff; }
.gem-7 { color: #55a9ff; }
.gem-8 { color: #ffae43; }
.gem-9 { color: #fff0ef; filter: drop-shadow(0 0 2px #ff83c8); }
.memory-grid[data-kind="change"] .tile.changed-reveal { box-shadow: inset 0 0 0 4px var(--gold); border-color: var(--gold); }
.memory-grid[data-kind="change"] .tile.wrong-reveal { box-shadow: inset 0 0 0 4px var(--pink); border-color: var(--pink); }
/* Full width, one row: a sequence that wraps stops reading as a sequence. Chips shrink with the item count (--n). */
.logic-pattern { container-type: inline-size; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; margin: 0 0 10px; color: var(--gold); }
.logic-pattern > .shape-token, .pattern-next { min-width: 0; height: auto; min-height: 50px; padding: 4px 2px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #2e211d; font-size: min(1.6rem, 100cqi / var(--n) / 3.3); letter-spacing: -.06em; }
.pattern-next { display: grid; place-items: center; border: 2px dashed var(--gold); background: transparent; font-weight: 900; font-size: 1.2rem; }
.shape-token { color: var(--text); display: inline-flex; justify-content: center; align-items: center; min-width: 23px; height: 28px; font-size: clamp(.85rem, 4vw, 1.32rem); line-height: 1; }
.shape-token > span { display: inline-block; }
.shape-token.rose { color: #ffadbd; }
.shape-token.amber { color: var(--gold); }
.shape-token.sky { color: #ace3f3; }
.shape-token.mint { color: #a8e5bc; }
.options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option { min-height: 64px; display: grid; justify-items: center; align-content: center; padding: 5px; font-size: .78rem; line-height: 1.2; }
.option .shape-token { font-size: clamp(1rem, 4.6vw, 1.4rem); }
.skeleton { min-height: 68dvh; display: grid; justify-items: center; align-content: center; text-align: center; gap: 12px; }
.skeleton p { color: var(--muted); margin: 0; }
.result-mast { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font: 500 .85rem/1.2 ui-monospace, monospace; padding: 12px 0; }
.result-chamber { min-height: 280px; display: grid; place-content: center; text-align: center; gap: 10px; padding: 18px 14px; }
.result-chamber { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); }
.result-chamber::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 38%, #1d121088, #1d1210e6 75%); }
.result-gem { position: relative; display: grid; justify-items: center; gap: 8px; transition: opacity 200ms ease; }
/* No CSS filter around moving art: a drop-shadow on an animated SVG is re-rendered every frame (1 fps headless). The glow is a gradient behind it. */
.result-gem > .float { position: relative; width: 130px; height: 130px; }
.result-gem > .float::before { content: ""; position: absolute; z-index: -1; inset: -18%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tier), transparent 50%), transparent 66%); }
.result-gem > .float svg { display: block; width: 100%; height: 100%; }
.result-gem .tier-name { padding: 3px 11px; border-radius: 99px; background: var(--tier); color: #21140f; font-weight: 850; font-size: .95rem; }
.result-gem.golden > .float::before { background: radial-gradient(circle, color-mix(in srgb, var(--tier), transparent 30%), transparent 68%); }
/* The burst ring sits behind the gem and only plays on the strike. */
.gem-burst { position: absolute; z-index: -1; left: 50%; top: 62px; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; border: 3px solid var(--tier); opacity: 0; pointer-events: none; }
.result-chamber h1 { font-size: clamp(2rem, 9vw, 4rem); font-variant-numeric: tabular-nums; }
.result-miner { position: absolute; left: 6%; top: 22%; width: clamp(64px, 18vw, 96px); }
.skip-reveal { position: absolute; z-index: 2; top: 6px; right: 8px; color: var(--text); font-size: .85rem; transition: opacity 200ms ease; }
.result-rank, .result-actions, .share-sub, .share-fallback { transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.result-rank { padding: 14px 0 0; }
/* Reveal states: counting → struck → done. Skipping jumps straight to done. */
.results[data-reveal="counting"] .result-gem, .results:is([data-reveal="counting"], [data-reveal="struck"]) :is(.result-rank, .result-actions, .share-sub, .share-fallback) { opacity: 0; transform: translateY(6px); pointer-events: none; }

.results[data-reveal="struck"] .result-chamber { animation: shake 320ms var(--ease-out) 120ms; }
.results[data-reveal="struck"] .result-gem { animation: gem-in 560ms var(--ease-out) 120ms both; }
.results[data-reveal="struck"] .gem-burst { animation: burst 700ms var(--ease-out) 120ms; }
.next-dig { color: var(--muted); margin: 6px 0 0; font-size: .9rem; }
.result-actions { margin-top: 16px; display: grid; gap: 8px; }
.next-dig { text-align: center; margin-top: 12px; font-variant-numeric: tabular-nums; }
.share-fallback { width: 100%; min-height: 88px; margin-top: 12px; background: var(--panel); color: var(--text); padding: 10px; border: 1px solid var(--line); resize: vertical; }
.status { position: fixed; z-index: 4; inset: auto auto max(12px, env(safe-area-inset-bottom)) 50%; transform: translateX(-50%); padding: 9px 14px; border-radius: var(--r-sm); background: var(--text); color: var(--ink); box-shadow: 0 4px 20px #0008; width: max-content; max-width: 90vw; font-size: .88rem; animation: toast-in 300ms var(--ease-out); transition: opacity 180ms ease, transform 180ms ease; }
.status.leaving { opacity: 0; transform: translate(-50%, 6px); }
/* ───── The mine theme ───── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eyebrow { margin: 0; font: 600 .74rem/1.2 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
/* Depth is darkness: a vignette that deepens as the miner descends (opacity only). */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 100% 75% at 50% 30%, #0000 0%, #0000 30%, #000 100%); opacity: var(--dark, 0); transition: opacity 900ms ease; }
/* Rock layers, one per 100 m. Real pairings: coal seams, porphyry copper, schist emerald, marble ruby, kimberlite diamond, gold lode. */
.stratum-0 { background: #2a211e repeating-linear-gradient(160deg, transparent 0 14px, #3a2e2a 14px 18px); }
.stratum-1 { background: #7d5136 repeating-linear-gradient(160deg, transparent 0 10px, #925f40 10px 13px); }
.stratum-2 { background: #48554b repeating-linear-gradient(175deg, transparent 0 6px, #5b6a5e 6px 8px); }
.stratum-3 { background: #8c7871 repeating-linear-gradient(120deg, transparent 0 22px, #a3908a 22px 24px); }
.stratum-4 { background: #36404b repeating-linear-gradient(80deg, transparent 0 9px, #46525f 9px 12px); }
.stratum-5 { background: #a8986f repeating-linear-gradient(150deg, transparent 0 16px, #ffcb63 16px 19px, transparent 19px 30px); }
/* Level pills and the lamp timer */
.levels { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; font: 700 .75rem/1 ui-monospace, monospace; }
.levels li { padding: 7px 9px; border-radius: var(--r-sm); border: 1px solid #5c4134; color: var(--muted); white-space: nowrap; }
.levels [aria-current] { background: var(--gold); border-color: var(--gold); color: #21140f; }
.question-area .eyebrow { margin-bottom: 10px; color: var(--muted); }
/* The shaft: the upper layer fills the rail; the lower one rides on a track that slides its boundary with depth. */
.rail-strata { position: absolute; z-index: 0; inset: 48px 0 43px; }
.rail-strata > .stratum { position: absolute; inset: -48px 0 -43px; }
.boundary-track { position: absolute; inset: 0; transform: translateY(var(--boundary)); transition: transform 420ms var(--ease-out); }
.boundary-track .stratum { position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 80px); border-top: 2px solid #120b09; }
/* The next layer's name rides the boundary above the depth line but under the miner; it hides when the miner is about to cross. */
.tag-track { position: absolute; z-index: 1; inset: 0; transform: translateY(var(--boundary)); transition: transform 420ms var(--ease-out); pointer-events: none; }
.layer-tag { position: absolute; left: 5px; top: 6px; padding: 3px 5px; border-radius: 4px; background: #120b09e6; color: var(--text); font: 700 .6rem/1 ui-monospace, monospace; white-space: nowrap; }
.miner-marker::before { content: ""; position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; background: radial-gradient(circle, #ffcd6638, #ffcd6600 65%); pointer-events: none; z-index: -1; }
.chip { position: absolute; left: 70%; top: 62%; width: 7px; height: 6px; background: #c9b49c; clip-path: polygon(0 30%, 60% 0, 100% 70%, 30% 100%); opacity: 0; animation: chip-fly 300ms var(--ease-out) both; pointer-events: none; }
/* Home */
.home-content .eyebrow { margin-bottom: 12px; }
.home-meta .streak { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.home-meta .streak svg { width: 17px; height: 17px; color: var(--gold); }
.home-meta { font-family: ui-monospace, monospace; font-size: .8rem; margin-top: 10px; }
.week-card { position: relative; max-width: 360px; margin: 10px 0 0; padding: 9px 34px 9px 11px; border: 1px solid #725239; border-radius: var(--r-sm); background: linear-gradient(135deg,#39261d,#241815); box-shadow: inset 0 1px #ffcd6622; }
.week-card p { margin: 3px 0; font-size: .82rem; }
.week-card small { color: var(--muted); font-size: .7rem; }
.week-dismiss, .install-dismiss { position: absolute; top: 3px; right: 5px; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 1.25rem; }
.install-card { position: relative; margin-top: 12px; padding: 10px 38px 10px 12px; border: 1px solid #725239; border-radius: var(--r-sm); background: #35231e; }
.install-offer { margin: 0; color: var(--gold); font-weight: 700; }
button.install-offer { padding: 0; border: 0; background: transparent; text-align: left; overflow-wrap: anywhere; }
.ios-install { font-size: .86rem; }
.miner-rank { margin: 7px 0 0; color: var(--gold); font: 700 .78rem/1.3 ui-monospace, monospace; }
.collection { max-width: 360px; margin-top: 12px; padding: 9px 10px 7px; border: 1px solid #5b4031; border-radius: var(--r-md); background: #201714b8; }
.collection h2 { font: 700 .78rem/1.2 ui-monospace, monospace; letter-spacing: 0; }
.collection-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin-top: 7px; }
.collection-slot { min-width: 0; display: grid; justify-items: center; padding: 4px 1px; border-radius: var(--r-sm); background: #160f0d; color: #4c403b; }
.collection-slot > span { display: block; width: 22px; height: 22px; }
.collection-slot svg { display: block; width: 22px; height: 22px; }
.collection-slot.found > span { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--gem), transparent 55%)); }
.collection-slot.unknown svg { filter: grayscale(1) brightness(.42); opacity: .8; }
.collection-slot small { font: 600 .58rem/1.2 ui-monospace, monospace; color: var(--muted); }
.collection > p { margin: 5px 0 0; font: 600 .65rem/1.2 ui-monospace, monospace; color: var(--muted); }
.home-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 14px; margin-top: 8px; border-top: 1px solid var(--edge); }
.sign-off { margin: 0; color: #a98d76; font-size: .82rem; }
/* The cage: the untimed break between levels */
.cage-screen { display: flex; flex-direction: column; gap: 14px; min-height: calc(100dvh - 80px); padding-bottom: 8px; }
.cage-status { margin: 0; font: 600 .78rem/1 ui-monospace, monospace; color: var(--muted); }
.cage-scene { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; height: clamp(170px, 36dvh, 330px); }
.cage-levels { position: relative; list-style: none; margin: 0; padding: 14px 0; display: flex; flex-direction: column; justify-content: space-between; font: 700 .75rem/1 ui-monospace, monospace; color: #8f7562; }
.cage-levels::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 20px; width: 2px; background: #5c4134; }
.cage-levels li { position: relative; display: flex; align-items: center; gap: 9px; }
.cage-levels li::before { content: ""; width: 14px; height: 14px; margin-left: 3px; border-radius: 50%; border: 2px solid #5c4134; background: #1a110e; box-sizing: border-box; }
.cage-levels .done { color: var(--muted); } .cage-levels .done::before { background: var(--gold); border-color: var(--gold); }
.cage-levels .next { color: var(--gold); } .cage-levels .next::before { width: 18px; height: 18px; margin-left: 1px; border: 3px solid var(--gold); }
.cage { position: relative; display: grid; grid-template-rows: 18% 1fr; justify-items: center; }
.cage .cable { grid-row: 1; width: 2px; background: #8f7562; position: absolute; top: 0; height: 18%; }
.cage .cable:first-child { left: calc(50% - 46px); } .cage .cable:nth-child(2) { left: calc(50% + 44px); }
.cage-box { grid-row: 2; position: relative; width: min(100%, 190px); border: 3px solid #8f7562; border-radius: var(--r-sm); background: #241814; display: grid; align-items: end; justify-items: center; overflow: hidden; transition: transform 380ms var(--ease-in-out), opacity 380ms ease; }
.cage-box::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 26px, #8f756280 26px 29px), linear-gradient(transparent calc(36% - 1.5px), #8f7562 0 calc(36% + 1.5px), transparent 0); pointer-events: none; }
.cage-box .mascot { width: min(68%, 130px); margin-bottom: 10px; }
.cage-screen.descending .cage-box { transform: translateY(26px); opacity: .55; }
.cage-depth { margin: -4px 0 0; text-align: center; font: 700 .9rem/1 ui-monospace, monospace; color: var(--gold); }
.cage-brief { display: grid; gap: 10px; }
.cage-brief h1 { font: 850 clamp(2.4rem, 11vw, 3.4rem)/.95 "Bricolage", "Trebuchet MS", sans-serif; letter-spacing: -.04em; }
.cage-brief p:not(.eyebrow) { margin: 0; color: var(--text); font-size: 1.02rem; line-height: 1.4; }
.cage-brief .cage-note { color: var(--muted); font-size: .9rem; }
.cage-actions { margin-top: auto; display: grid; gap: 10px; }
.cage-actions .button { justify-content: space-between; }
.cage-ore { margin: 0; text-align: center; font: 500 .8rem/1.3 ui-monospace, monospace; color: var(--muted); }
/* Results: the assay report */
.specimen-label { position: relative; border-radius: var(--r-sm); background: #efe3c8; color: #2a1c12; padding: 13px 15px 13px 38px; font: 500 .82rem/1.55 ui-monospace, monospace; }
.specimen-label::before { content: ""; position: absolute; left: 13px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--ink); }
.specimen-label dl { display: grid; grid-template-columns: 6.8em minmax(0, 1fr); column-gap: 8px; margin: 0; }
.specimen-label dt { color: #7a5a42; text-transform: uppercase; }
.specimen-label dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.specimen-label abbr { text-decoration: none; }
.specimen-line { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #b49a7c; font: 700 .98rem/1.35 "Bricolage", "Trebuchet MS", sans-serif; }
.assay-note { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.ore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ore div { border: 1px solid var(--edge); border-radius: var(--r-md); padding: 9px 11px; background: var(--surface-2); }
.ore p { margin: 0; font: 700 .68rem/1.2 ui-monospace, monospace; color: var(--muted); text-transform: uppercase; }
.ore strong { display: block; margin-top: 5px; font-size: 1.05rem; }
.ore span { display: block; font-size: .78rem; color: var(--muted); }
.results .season { margin: 12px 0 0; }
.collection-notice, .promotion-notice { margin: 10px 0 0; text-align: center; color: var(--gold); font-weight: 800; }
.promotion-notice { color: var(--tier); }
.trail-preview { margin-top: 14px; padding: 11px 12px; border: 1px solid var(--edge); border-radius: var(--r-md); background: var(--surface-2); }
.trail-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 6px; min-height: 22px; }
.trail-row > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.trail-square { width: 12px; height: 12px; border-radius: 3px; background: #60bd72; }
.trail-square.wrong { background: #c95750; }
.trail-square.pair { width: 11px; height: 11px; background: #9c72d8; transform: rotate(45deg) scale(.78); }
.trail-row small { color: var(--muted); }
.trail-row b { color: var(--muted); font: 700 .7rem/1 ui-monospace, monospace; }
/* Screen changes (not per-question redraws) ease in so swaps never feel broken. */
.screen-enter { animation: screen-in 260ms var(--ease-out) both; }
@media (hover: hover) and (pointer: fine) {
  .button-primary:hover:not(:disabled) { background: #ffdc92; }
  .button-text:hover { color: var(--text); }
  .icon-button:hover { border-color: #a37a61; }
  :is(.key, .tile, .option):hover:not(:disabled):not(.lit) { background: #604438; }
}
dialog { max-width: min(440px, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); color: var(--text); padding: 20px; }
dialog::backdrop { background: #180f0cd9; }
dialog .button-primary { width: 100%; }
dialog h2 { margin-top: 7px; }
dialog li { margin: 8px 0; }
.dialog-close { float: right; font-size: 1.5rem; }
@keyframes descend { 0% { transform: translateY(-14px) rotate(-10deg); } 55% { transform: translateY(6px) rotate(4deg); } 100% { transform: none; } }
@keyframes rail-pulse { 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rebound { 40% { transform: translateY(-12px) rotate(7deg); } }
@keyframes shine { 50% { filter: drop-shadow(0 4px 16px #ffce6370); } }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes shake { 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
@keyframes gem-in { 0% { opacity: 0; transform: scale(.55) translateY(14px); } 60% { opacity: 1; transform: scale(1.07); } 100% { transform: none; } }
@keyframes burst { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes fade { from { opacity: 0; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 8% { opacity: .45; } 12% { opacity: 1; } 51% { opacity: .7; } 54% { opacity: 1; } }
@keyframes chip-fly { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(160deg); } }
@media (max-width: 630px) {
  .home { min-height: min(720px, calc(100dvh - 78px)); align-content: end; }
  /* Sized from the viewport, not the card, so opening "How to play" can't slide the mascot over the text. */
  .mine-entrance { bottom: auto; height: calc(clamp(172px, 40dvh, 320px) + 110px); background-position: center 60%; }
  .mine-entrance::after { background: linear-gradient(0deg, #302019, #30201900 44%); }
  .mine-entrance .mascot { width: 124px; right: 15%; bottom: 10%; }
  .home-content { padding: 0 18px 4px; margin-top: clamp(172px, 40dvh, 320px); }
  .home h1 { font-size: clamp(3rem, 12vw, 4.75rem); }
  .intro { margin: 14px 0 12px; }
  .home-actions { margin-top: 18px; }
  .collection { margin-top: 8px; }
  .collection-slots { gap: 3px; }
  .collection-slot { padding: 3px 0; }
}
@media (max-height: 650px) {
  .brand { min-height: 52px; }
  .game { min-height: 0; }
  .challenge { min-height: 132px; max-height: 132px; padding: 5px 0; grid-template-columns: minmax(0, 1fr) 76px; }
  .question-area h1 { font-size: 1.75rem; }
  .question-area p:not(.question-label) { margin-top: 5px; font-size: .78rem; }
  .feedback { min-height: 16px; margin-top: 4px; font-size: .8rem; }
  .rail-inner, .rail-strata { inset: 34px 0 30px; }
  .rail-strata > .stratum { inset: -34px 0 -30px; }
  .game .eyebrow { display: none; }
  .cage-scene { height: clamp(120px, 26dvh, 200px); }
  .miner-marker { width: 57px; height: 53px; }
  .depth-readout { margin-bottom: 4px; padding: 4px 0; }
  .depth-readout strong { font-size: 1.25rem; }
  .answer-display { min-height: 32px; }
  .keypad { gap: 5px; }
  .key { min-height: 44px; }
  #submit { min-height: 44px; }
}
@media (max-width: 380px) {
  .challenge { grid-template-columns: minmax(0, 1fr) 82px; gap: 8px; }
  .question-area h1 { font-size: clamp(1.75rem, 8.8vw, 2.7rem); }
  .logic-pattern { gap: 3px; }
  .shape-token { min-width: 20px; }
}
@media (max-width: 630px) and (max-height: 650px) {
  .home { min-height: calc(100dvh - 68px); }
  .mine-entrance { height: calc(clamp(125px, 29dvh, 178px) + 66px); }
  .mine-entrance::after { background: linear-gradient(0deg, #302019 2%, #302019c9 42%, #30201900); }
  .home-content { margin-top: clamp(125px, 29dvh, 178px); }
  .home h1 { font-size: clamp(2.65rem, 10vw, 3.3rem); }
  .intro { margin: 10px 0 8px; font-size: .92rem; }
  .home-actions { margin-top: 12px; }
  .home-how summary { min-height: 38px; }
}
/* Gem motion: a light sweep every few seconds, sparkles that twinkle at their own pace, opal colour play. */
.gem3d { display: block; overflow: visible; }
.gem3d .gem-sheen { animation: gem-sheen 4.6s cubic-bezier(.45,0,.2,1) infinite; }
.gem3d .gem-spark { transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0; animation: gem-twinkle 3.4s ease-in-out infinite; }
.gem3d .opal-b { animation: opal-play 5s ease-in-out infinite alternate; }
.gem3d .opal-a { animation: opal-play 5s ease-in-out infinite alternate-reverse; }
.gem3d.still .gem-sheen, .gem3d.still .gem-spark, .gem3d.still .opal-a, .gem3d.still .opal-b { animation: none; }
.gem3d.still .opal-b { opacity: .35; }
@keyframes gem-sheen { 0%, 58% { transform: translateX(0); } 100% { transform: translateX(170px); } }
@keyframes gem-twinkle { 0%, 72%, 100% { transform: scale(0) rotate(0deg); opacity: 0; } 82% { transform: scale(1) rotate(45deg); opacity: 1; } 90% { transform: scale(.4) rotate(70deg); opacity: .6; } }
@keyframes opal-play { from { opacity: .15; } to { opacity: 1; } }
.float { animation: gem-float 5s ease-in-out infinite; }
@keyframes gem-float { 0%, 100% { transform: translateY(0) rotate(-2.5deg); } 50% { transform: translateY(-6px) rotate(2.5deg); } }
.gem3d.once .gem-sheen { animation: gem-sheen-once 800ms cubic-bezier(.45,0,.2,1) 1 both; }
@keyframes gem-sheen-once { from { transform: translateX(0); } to { transform: translateX(170px); } }
.gem3d.once .gem-spark { animation: gem-twinkle 1.2s ease-in-out 1 both; animation-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  .gem3d *, .float, .result-gem { animation: none !important; }
  .gem3d .gem-spark { opacity: 0; }
}
/* Reduced motion keeps fades and colour (they aid comprehension) and drops movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-property: opacity, color, background-color, border-color !important; }
  .screen-enter, .status { animation: fade 200ms ease both !important; }
}
.compare-card { margin-top: 14px; border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--surface-1); padding: 14px 14px 12px; }
.compare-card .card-head { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.live { color:#8fe3a8; font:600 .7rem ui-monospace,monospace; letter-spacing:.06em; text-transform:uppercase; }
.live::before { content:""; display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:50%; background:#8fe3a8; animation:live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse { to { box-shadow:0 0 0 7px #8fe3a800; } }
@media (prefers-reduced-motion:reduce) { .live::before { animation:none; } }
.headline { margin:8px 0 2px; font:800 clamp(1.45rem,7vw,1.9rem)/1.05 Bricolage,sans-serif; }
.headline em { color:var(--gold); font-style:normal; }
.subline { margin:0; color:var(--muted); font-size:.84rem; }
.chart { display:block; width:100%; height:auto; margin-top:10px; overflow:visible; }
.chart text { font-family:ui-monospace,monospace; }
.shaft-chart .miner * { animation: none !important; }
.facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); gap:6px; margin-top:12px; }
.facts div { min-width:0; border-radius:var(--r-sm); background:var(--surface-3); padding:8px; }
.facts p { margin:0; font:700 .62rem/1.2 ui-monospace,monospace; color:var(--muted); text-transform:uppercase; }
.facts strong { display:block; margin-top:3px; font-size:clamp(.9rem,3.4vw,1rem); overflow-wrap:anywhere; }
.facts small { display:block; color:#8fe3a8; font-weight:700; font-size:.68rem; }
.chart-legend,.note,.share-sub,.challenge-result { margin:8px 0 0; color:var(--muted); font-size:.82rem; }
.challenge-result { text-align:center; color:var(--gold); font-weight:700; }
.friend-challenge { margin:12px 0 0; padding:10px; border:1px solid var(--line); border-radius: var(--r-sm); color:var(--gold); }
.share-sub { text-align:center; }

/* Miner v2 poses. Every part turns about a fixed point in the drawing (view-box units), so poses compose. */
.miner { display: block; overflow: visible; }
.miner g, .miner path, .miner circle, .miner ellipse { transform-box: view-box; }
.miner .m-all { transform-origin: 120px 226px; }
.miner .m-eyes { transform-origin: 120px 140px; }
.miner .m-arm-right { transform-origin: 194px 156px; }
.miner .m-arm-left { transform-origin: 44px 160px; }
.miner .m-hat { transform-origin: 120px 96px; }
.miner .brow-l { transform-origin: 94px 116px; } .miner .brow-r { transform-origin: 146px 116px; }
.miner .m-brows path, .miner .m-arm-right, .miner .m-arm-left, .miner .m-hat, .miner .m-all { transition: transform 260ms cubic-bezier(.23,1,.32,1); }
/* What each pose shows. */
.miner .m-eyes-happy, .miner .m-mouth, .miner .m-sweat, .miner .m-dust, .miner .m-sparks { display: none; }
.miner[data-pose="idle"] .smile, .miner[data-pose="dig"] .effort, .miner[data-pose="strike"] .grin, .miner[data-pose="sad"] .frown { display: inline; }
.miner[data-pose="strike"] .m-eyes { display: none; } .miner[data-pose="strike"] .m-eyes-happy, .miner[data-pose="strike"] .m-sparks { display: inline; }
.miner[data-pose="sad"] .m-sweat, .miner[data-pose="dig"] .m-dust { display: inline; }
.miner .m-glow { opacity: 0; transition: opacity 400ms ease; }
.miner[data-lamp="on"] .m-glow { opacity: 1; animation: m-glow 2.6s ease-in-out infinite; }
/* Idle: breathing, a blink every few seconds, the pick bobbing on the shoulder. */
.miner[data-pose="idle"] .m-all { animation: m-breathe 3.2s ease-in-out infinite; }
.miner .m-eyes { animation: m-blink 4.6s infinite; }
.miner[data-pose="idle"] .m-arm-right { animation: m-pick-rest 3.2s ease-in-out infinite; }
.miner[data-pose="idle"] .m-arm-left { animation: m-sway 3.2s ease-in-out infinite; }
/* Dig: wind up, swing, dust on the strike; the body dips with the blow. */
.miner[data-pose="dig"] .m-arm-right { animation: m-swing 900ms cubic-bezier(.5,0,.3,1) infinite; animation-delay: var(--phase, 0ms); }
.miner[data-pose="dig"] .m-all { animation: m-dip 900ms ease-in-out infinite; animation-delay: var(--phase, 0ms); }
.miner[data-pose="dig"] .brow-l { transform: rotate(14deg) translateY(3px); } .miner[data-pose="dig"] .brow-r { transform: rotate(-14deg) translateY(3px); }
.miner[data-pose="dig"] .m-dust circle { transform-box: fill-box; transform-origin: center; animation: m-dust 900ms ease-out infinite; animation-delay: var(--phase, 0ms); }
.miner[data-pose="dig"] .m-dust circle:nth-child(2) { animation-delay: calc(var(--phase, 0ms) + 30ms); } .miner[data-pose="dig"] .m-dust circle:nth-child(3) { animation-delay: calc(var(--phase, 0ms) + 60ms); }
/* Strike: squash, jump, land, arms up, sparkles. */
.miner[data-pose="strike"] .m-all { animation: m-jump 1100ms cubic-bezier(.3,0,.3,1) infinite; }
.descent-rail .miner[data-pose="strike"] .m-all { animation: m-hop 450ms var(--ease-out) 1 both; }
.miner[data-pose="strike"] .m-arm-left { transform: rotate(112deg); }
.miner[data-pose="strike"] .m-arm-right { transform: rotate(-38deg); }
.miner[data-pose="strike"] .m-spark { transform-box: fill-box; transform-origin: center; animation: m-twinkle 1100ms ease-in-out infinite; }
.miner[data-pose="strike"] .m-sparks g:nth-child(2) .m-spark { animation-delay: 140ms; } .miner[data-pose="strike"] .m-sparks g:nth-child(3) .m-spark { animation-delay: 260ms; } .miner[data-pose="strike"] .m-sparks g:nth-child(4) .m-spark { animation-delay: 380ms; }
/* Sad: slump, hat slips, brows up in the middle, a bead of sweat. */
.miner[data-pose="sad"] .m-all { transform: translateY(5px) rotate(-3deg); animation: m-sigh 2.8s ease-in-out infinite; }
.miner[data-pose="sad"] .m-hat { transform: translate(-3px, 7px) rotate(-7deg); }
.miner[data-pose="sad"] .brow-l { transform: rotate(-16deg) translateY(2px); } .miner[data-pose="sad"] .brow-r { transform: rotate(16deg) translateY(2px); }
.miner[data-pose="sad"] .m-arm-right { transform: rotate(38deg); }
.miner[data-pose="sad"] .m-sweat { transform-box: fill-box; animation: m-drip 1.8s ease-in infinite; }
@keyframes m-breathe { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-2px) scale(1.012, .99); } }
@keyframes m-blink { 0%, 91%, 97%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
@keyframes m-pick-rest { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-4deg); } }
@keyframes m-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(6deg); } }
@keyframes m-swing { 0%, 100% { transform: rotate(-34deg); } 42% { transform: rotate(-52deg); } 60% { transform: rotate(96deg); } 72% { transform: rotate(90deg); } }
@keyframes m-dip { 0%, 50%, 100% { transform: translateY(0); } 62% { transform: translateY(4px) scale(1.02, .97); } }
@keyframes m-dust { 0%, 58% { transform: scale(0); opacity: 0; } 64% { transform: scale(1.2) translate(4px, -4px); opacity: 1; } 95% { transform: scale(.6) translate(12px, -16px); opacity: 0; } 100% { opacity: 0; } }
@keyframes m-jump { 0% { transform: translateY(0) scale(1, 1); } 14% { transform: translateY(2px) scale(1.07, .9); } 40% { transform: translateY(-26px) scale(.96, 1.05); } 62% { transform: translateY(0) scale(1.06, .93); } 76%, 100% { transform: translateY(0) scale(1, 1); } }
@keyframes m-hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 12% { transform: translateY(2px) scale(1.06, .92); } 45% { transform: translateY(-12px) scale(.98, 1.03); } 70% { transform: translateY(0) scale(1.04, .96); } 84% { transform: translateY(-2px) scale(1, 1); } }
@keyframes m-twinkle { 0%, 20% { transform: scale(0) rotate(0deg); } 45% { transform: scale(1.15) rotate(30deg); } 70% { transform: scale(.9) rotate(50deg); } 100% { transform: scale(0) rotate(80deg); } }
@keyframes m-sigh { 0%, 100% { transform: translateY(5px) rotate(-3deg); } 50% { transform: translateY(7px) rotate(-3.5deg) scale(1.01, .98); } }
@keyframes m-drip { 0% { transform: translateY(-4px); opacity: 0; } 15% { opacity: 1; } 80% { transform: translateY(18px); opacity: 1; } 100% { transform: translateY(24px); opacity: 0; } }
@keyframes m-glow { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .miner * { animation: none !important; } }
