/* Nunito (SIL OFL 1.1, fonts/OFL.txt), from github.com/googlefonts/nunito at 8c6a9bb: the variable
   font cut to weights 600-1000 and Latin, for the wordmark, headings and numbers. Body text stays system. */
@font-face { font-family: "Bonfire Display"; src: url("../fonts/nunito-display.woff2") format("woff2"); font-weight: 600 1000; font-style: normal; font-display: swap; }

:root {
  --night: #07060d;
  --ink-1: #fff3e2;
  --ink-2: rgba(255, 236, 214, 0.74);
  --ink-3: rgba(255, 226, 196, 0.52);
  --amber: #ffc861;
  --flame: #ff8a2a;
  --ember: #e8552a;
  --smoke: #a9a5b8;
  --good: #ffd88a;
  --bad: #ff8f7a;
  --glass: rgba(17, 12, 28, 0.68);
  --glass-strong: rgba(19, 14, 30, 0.9);
  --line: rgba(255, 214, 160, 0.14);
  --radius: 18px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --display: "Bonfire Display", ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; min-height: 100%; background: var(--night); color: var(--ink-1); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--amber); }
h2 { margin: 0; font-size: 1rem; }
h2, h3, .word, .ticker, .night-label, .countdown, .card-title, .need b, .balance b, .btn-title, .chip b, .mine b, .facts dd, .tile b, .windows-head b, .banner-kicker, .banner-title, .strip-label, .film-kicker, .film-title, .stamp, .how summary, .ready b, .collect, .share-btn, .banner-card, .banner-go { font-family: var(--display); }
code, pre { font-family: var(--mono); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.fine { font-size: 0.8rem; color: var(--ink-3); margin: 0; }
.good { color: var(--good); }
.bad { color: var(--bad); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 8px; }

/* ---- icons (CSS masks; data: URLs are allowed by img-src) ---- */
.ico { display: inline-block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-sound { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9h4l5-4v14l-5-4H4V9zm12.5 3a4.5 4.5 0 0 0-2.2-3.9v7.8a4.5 4.5 0 0 0 2.2-3.9zm3.5 0a8 8 0 0 0-4-6.9v2.3a5.8 5.8 0 0 1 0 9.2v2.3a8 8 0 0 0 4-6.9z'/></svg>"); }
.ico-sound.off { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9h4l5-4v14l-5-4H4V9zm12 .6 1.4-1.4 1.6 1.6 1.6-1.6L22 9.6 20.4 11.2 22 12.8l-1.4 1.4-1.6-1.6-1.6 1.6-1.4-1.4 1.6-1.6L16 9.6z'/></svg>"); }
.ico-proof { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 4 6v6c0 5 3.4 8.6 8 10 4.6-1.4 8-5 8-10V6l-8-4zm-1.2 13.6-3.3-3.3 1.4-1.4 1.9 1.9 4.6-4.6 1.4 1.4-6 6z'/></svg>"); }

/* ---- header ---- */
.top { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; padding-top: max(14px, env(safe-area-inset-top)); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-1); }
.coin-mini { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255, 200, 140, 0.25), 0 4px 18px rgba(255, 120, 40, 0.25); }
.word { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.01em; background: linear-gradient(180deg, #fff1c8 10%, #ffb55a 60%, #ff7a2a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px rgba(255, 140, 50, 0.35)); }
.ticker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.ghost, .icon-btn { background: rgba(16, 12, 26, 0.55); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--ink-2); font-weight: 700; font-size: 0.86rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: color 0.15s, border-color 0.15s, background 0.15s; display: inline-flex; align-items: center; gap: 7px; }
.ghost:hover, .icon-btn:hover { color: var(--ink-1); border-color: rgba(255, 214, 160, 0.34); }
.icon-btn { padding: 8px 10px; }
.sound-btn .sound-word { font-size: 0.8rem; }
.sound-btn[aria-pressed="true"] { color: var(--amber); border-color: rgba(255, 200, 120, 0.45); }
.sound-btn.ring { animation: ring 1.4s ease-out 3; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 190, 90, 0.7); } 100% { box-shadow: 0 0 0 14px rgba(255, 190, 90, 0); } }
.proof-btn .ico { width: 16px; height: 16px; color: var(--amber); }
.mock-badge { position: fixed; z-index: 60; left: 50%; top: 0; transform: translateX(-50%); background: #ffe14d; color: #241a00; font-weight: 800; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 12px 4px; border-radius: 0 0 10px 10px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); pointer-events: none; white-space: nowrap; }

/* ---- hero ---- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 680px; max-height: 1100px; overflow: hidden; }
.stage { position: absolute; inset: 0; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-text { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); width: min(720px, 92%); text-align: center; pointer-events: none; }
.clock { display: flex; flex-direction: column; align-items: center; gap: 0; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7); }
.night-label { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); }
.countdown { font-size: 3.1rem; line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: var(--ink-1); }
.until { font-size: 0.9rem; color: var(--ink-2); font-weight: 600; }
.clock.late .countdown { color: #ffd5a1; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.72; } }
body.cold .countdown, body.offline .countdown { font-size: 2.2rem; }
.quarters { display: flex; gap: 4px; margin-top: 8px; width: 132px; }
.quarters .q { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 230, 200, 0.14); overflow: hidden; position: relative; }
.quarters .q i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: rgba(255, 200, 120, 0.55); }
.quarters .q.now { background: rgba(255, 170, 80, 0.25); box-shadow: 0 0 10px rgba(255, 140, 40, 0.55); }
.quarters .q.now i { background: linear-gradient(90deg, #ff9a3a, #ffd27a); }
body.cold .quarters, body.offline .quarters { display: none; }
.rules { margin: 14px auto 0; max-width: 640px; font-size: 0.98rem; line-height: 1.5; color: var(--ink-2); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85); text-wrap: balance; }
.rules b { color: var(--ink-1); }
/* the rules stay between the cards, which reach up to them on short screens */
@media (min-width: 1181px) { .rules { max-width: min(640px, calc(100vw - 2 * 380px)); } }
@media (min-width: 901px) and (max-width: 1180px) { .rules { max-width: max(300px, calc(100vw - 2 * 332px)); } }

.banner { position: absolute; z-index: 5; left: 50%; top: 62px; transform: translateX(-50%); min-width: 280px; max-width: min(460px, 90%); text-align: center; padding: 14px 22px 16px; border-radius: 20px; background: rgba(20, 12, 20, 0.78); border: 1px solid rgba(255, 200, 120, 0.3); box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 3px; animation: rise 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.banner.lit { border-color: rgba(255, 200, 100, 0.55); box-shadow: 0 0 60px rgba(255, 130, 40, 0.35), 0 10px 50px rgba(0, 0, 0, 0.5); }
.banner.smoked, .banner.cold { background: rgba(32, 32, 42, 0.86); border-color: rgba(190, 185, 205, 0.35); }
.banner-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.banner-actions:not(:has(button:not([hidden]))) { display: none; }
.banner-card, .banner-go { margin-top: 8px; font-size: 0.88rem; font-weight: 800; color: #2a1408; background: var(--amber); border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.banner-go { color: var(--ink-1); background: rgba(255, 200, 120, 0.14); border: 1px solid rgba(255, 200, 120, 0.5); }
.banner-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.banner-title { font-size: 1.6rem; line-height: 1.15; }
.banner.lit .banner-title { color: #ffe1a0; }
.banner.smoked .banner-title, .banner.cold .banner-title { color: #dcd8e6; }
.banner-text { color: var(--ink-2); font-size: 0.95rem; }
.banner-names { color: var(--ink-3); font-size: 0.8rem; margin-top: 2px; }
.banner-names:empty { display: none; }

/* ---- a first visit: last night plays as a short film, with nothing of tonight on screen ---- */
.clock, .rules, .hero .card { transition: opacity 0.6s ease, visibility 0.6s; }
body.film-wait .hero .card, body.replay-on .hero .card, body.film-wait .clock, body.film-wait .rules, body.replay-on .clock, body.replay-on .rules { opacity: 0; visibility: hidden; }
.film { position: absolute; z-index: 6; top: 62px; left: 50%; transform: translateX(-50%); width: min(560px, 92%); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); animation: film-in 0.5s ease-out; }
/* its own rise: fade-up's transform would drop the centring translate while it runs */
@keyframes film-in { from { opacity: 0; transform: translate(-50%, 6px); } }
.film-kicker { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); }
.film-title { font-size: 2.4rem; line-height: 1.08; font-weight: 900; letter-spacing: -0.01em; }
.film-sub { font-size: 1rem; color: var(--ink-2); font-weight: 600; text-wrap: balance; }
.film-skip { margin-top: 10px; padding: 8px 18px; border-radius: 999px; font-weight: 800; font-size: 0.88rem; color: var(--ink-1); background: rgba(20, 12, 26, 0.6); border: 1px solid rgba(255, 210, 140, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-shadow: none; }
.film-skip:hover { border-color: rgba(255, 220, 160, 0.8); background: rgba(40, 24, 30, 0.75); }
.film.out { opacity: 0; transition: opacity 0.4s; pointer-events: none; }

/* ---- dawn: a stamp in the sky, then the banner where the clock was ---- */
body.stamp-on .clock, body.banner-on .clock, body.stamp-on .rules, body.banner-on .rules, body.stamp-on .risk, body.banner-on .risk { opacity: 0; visibility: hidden; transition-duration: 0.2s; }
.stamp { position: absolute; z-index: 6; top: 70px; left: 50%; transform: translateX(-50%) rotate(-4deg); white-space: nowrap; pointer-events: none; font-size: clamp(64px, 8.5vw, 120px); line-height: 1; font-weight: 1000; letter-spacing: 0.03em; padding: 6px 28px 12px; border-radius: 22px; border: 5px solid currentColor; animation: stamp-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.stamp.lit { color: #ffd27a; text-shadow: 0 0 28px rgba(255, 140, 40, 0.85), 0 4px 0 rgba(120, 40, 8, 0.6); box-shadow: 0 0 40px rgba(255, 130, 40, 0.45), inset 0 0 30px rgba(255, 130, 40, 0.25); background: rgba(40, 14, 6, 0.62); }
.stamp.smoked { color: #d6d2e0; text-shadow: 0 0 24px rgba(160, 155, 180, 0.6), 0 4px 0 rgba(30, 30, 40, 0.7); box-shadow: 0 0 36px rgba(140, 135, 160, 0.35); background: rgba(30, 30, 40, 0.66); }
.stamp.cold { color: #b8cbe6; text-shadow: 0 0 24px rgba(120, 150, 200, 0.6); background: rgba(20, 26, 40, 0.66); }
.stamp.out { opacity: 0; transform: translateX(-50%) rotate(-4deg) scale(0.92); transition: opacity 0.35s, transform 0.35s; }
@keyframes stamp-in { from { opacity: 0; transform: translateX(-50%) rotate(-10deg) scale(1.7); } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px) scale(0.96); } }

.strip-row { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 999px; background: rgba(10, 8, 18, 0.55); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.strip-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.strip { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: flex-end; }
.strip .night { width: 20px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.strip svg { width: 18px; height: 18px; display: block; }
.strip .lit svg { fill: #ff9a3a; filter: drop-shadow(0 0 4px rgba(255, 130, 40, 0.6)); }
.strip .smoked svg { fill: #8d899c; }
.strip .cold svg path { fill: none; stroke: #6c7a90; stroke-width: 2.4; }
.strip .cap { font-size: 0.58rem; font-weight: 800; line-height: 1; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.strip .lit .cap { color: #ffc861; }
.strip .night:last-child svg { transform: scale(1.18); }
.strip-label b { color: var(--ink-1); letter-spacing: 0.08em; margin-left: 6px; }
.strip-empty { font-size: 0.82rem; color: var(--ink-3); }

/* ---- cards ---- */
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); }
.card-title { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.card-night { color: var(--ink-3); }
.hero .card { position: absolute; z-index: 4; top: 50%; transform: translateY(-46%); }
.tonight { left: 28px; width: 296px; }
.you { right: 28px; width: 336px; }

.need { display: flex; flex-direction: column; margin-bottom: 12px; }
.need b { font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.need span { color: var(--ink-2); font-size: 0.9rem; }
.meter { position: relative; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 214, 160, 0.1); }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: 999px; background: linear-gradient(90deg, #c2451c, #ff8a2a 60%, #ffc861); box-shadow: 0 0 16px rgba(255, 140, 40, 0.6); transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.meter.reached .meter-fill { background: linear-gradient(90deg, #ff8a2a, #ffd27a); }
.meter-legend { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.82rem; color: var(--ink-3); }
.meter-legend b { color: var(--ink-1); font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; margin: 8px 0 8px; }
.more { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--ink-3); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; margin-left: auto; color: var(--amber); font-size: 1.05rem; line-height: 1; }
.more[open] summary::after { content: "–"; }
.more summary:hover { color: var(--ink-2); }
.more .fine + .fine { margin-top: 6px; }
.names { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.names div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.names dt { font-size: 0.74rem; color: var(--ink-3); font-weight: 700; }
.names dd { margin: 0; font-weight: 800; font-size: 0.88rem; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.names dd.muted { color: var(--ink-3); font-weight: 600; }
.facts dd.muted { color: var(--ink-3); font-weight: 600; font-size: 0.9rem; }
.facts div { display: flex; flex-direction: column; }
.facts dt { font-size: 0.74rem; color: var(--ink-3); font-weight: 700; }
.facts dd { margin: 0; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
#early { color: var(--good); }
.windows-head { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; }
.windows-head span { font-size: 0.74rem; color: var(--ink-3); font-weight: 700; }
.windows-head b { font-size: 1.15rem; color: var(--good); font-variant-numeric: tabular-nums; }
.windows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.w { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.w-bar { position: relative; width: 100%; height: 28px; border-radius: 7px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 214, 160, 0.1); overflow: hidden; }
.w-bar i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 0%); background: linear-gradient(180deg, rgba(255, 170, 80, 0.75), rgba(200, 80, 30, 0.75)); transition: height 0.6s; }
.w.next .w-bar { border-style: dashed; }
.w.now .w-bar { border-color: rgba(255, 200, 120, 0.7); box-shadow: 0 0 12px rgba(255, 140, 40, 0.35); }
.w-mine { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 6px #ffd27a; }
.w-label { font-size: 0.74rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.w.next .w-label { color: var(--ink-3); font-size: 0.66rem; letter-spacing: 0.08em; }
.w.now .w-label { color: var(--amber); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ready { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin: -4px 0 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 210, 120, 0.08); border: 1px solid rgba(255, 210, 120, 0.35); font-size: 0.82rem; color: var(--ink-2); }
.ready b { color: var(--good); font-size: 1rem; font-variant-numeric: tabular-nums; }
.collect { flex: none; border: none; border-radius: 999px; padding: 8px 14px; font-weight: 800; color: #2a1404; background: linear-gradient(180deg, #ffd27a, #ff9a3a); box-shadow: 0 4px 16px rgba(255, 140, 40, 0.35); }
.collect:disabled { filter: saturate(0.4) brightness(0.8); }

.balance { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.balance .label { color: var(--ink-2); font-size: 0.9rem; font-weight: 600; }
.balance b { font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.kindle { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; border: none; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; color: #2a1404; background: linear-gradient(180deg, #ffd27a, #ff9a3a 55%, #f0742a); box-shadow: 0 8px 30px rgba(255, 120, 40, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5); transition: transform 0.12s, box-shadow 0.2s; }
.kindle:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 38px rgba(255, 120, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.kindle:active:not(:disabled) { transform: translateY(1px); }
.kindle:disabled { filter: saturate(0.4) brightness(0.8); }
.btn-title { font-weight: 800; font-size: 1.1rem; }
.btn-sub { font-size: 0.8rem; font-weight: 700; opacity: 0.8; }
.throw-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }
.chip { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 10px 6px 9px; border-radius: 14px; border: 1px solid rgba(255, 190, 120, 0.3); background: linear-gradient(180deg, rgba(255, 160, 80, 0.2), rgba(255, 120, 40, 0.08)); color: var(--ink-1); transition: transform 0.12s, background 0.15s, border-color 0.15s; position: relative; }
.chip b { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.chip span { font-size: 0.68rem; color: var(--ink-3); font-weight: 700; letter-spacing: 0.04em; }
.chip:hover:not(:disabled) { background: linear-gradient(180deg, rgba(255, 170, 90, 0.34), rgba(255, 120, 40, 0.14)); border-color: rgba(255, 200, 130, 0.6); transform: translateY(-1px); }
.chip:active:not(:disabled) { transform: translateY(1px) scale(0.98); }
.chip.all { background: linear-gradient(180deg, #ffc56a, #ff8a2a); border-color: transparent; color: #2a1404; }
.chip.all span { color: rgba(42, 20, 4, 0.7); }
.chip.selected:not(.all) { border-color: rgba(255, 214, 150, 0.85); box-shadow: inset 0 0 0 1px rgba(255, 214, 150, 0.45); }
.chip.all.selected { box-shadow: 0 0 0 2px rgba(255, 226, 170, 0.85); }
.chip:disabled { opacity: 0.4; }
.throw-hint { min-height: 2.6em; margin: 10px 0 12px; font-size: 0.84rem; color: var(--ink-2); }
.throw-hint:empty { display: none; }
.kindle + .throw-row[hidden] + .throw-hint:empty + .mine, .kindle + .throw-row[hidden] + .throw-hint:empty + .intro[hidden] + .mine { margin-top: 4px; }
.mine { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.mine div { display: flex; flex-direction: column; }
.mine span { font-size: 0.74rem; color: var(--ink-3); font-weight: 700; }
.mine b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.note { margin: 12px 0 0; font-size: 0.86rem; color: var(--ink-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.status { margin: 8px 0 0; min-height: 1.2em; font-size: 0.82rem; color: var(--ink-3); }
.status.busy::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 10px var(--flame); animation: pulse 0.9s ease-in-out infinite; vertical-align: 1px; }
.my-tally { margin: 10px 0 0; font-size: 0.8rem; line-height: 1.4; color: var(--ink-2); }
.headcount { margin-top: 6px; line-height: 1.35; }
.my-card { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin: 10px 0 0; padding: 9px 10px 9px 12px; border-radius: 12px; background: rgba(255, 170, 80, 0.08); border: 1px solid rgba(255, 200, 120, 0.3); font-size: 0.82rem; line-height: 1.3; color: var(--ink-2); }
.my-card b { display: block; color: var(--amber); font-family: var(--display); font-size: 0.9rem; }
.my-card.smoked b { color: #d6d2e0; }
.share-btn { flex: none; border: 0; border-radius: 999px; padding: 7px 13px; font-size: 0.82rem; font-weight: 800; color: #2a1404; background: linear-gradient(180deg, #ffd27a, #ff9a3a); box-shadow: 0 4px 14px rgba(255, 140, 40, 0.3); }

/* ---- the player's own dawn, once they have wood on tonight's pile ---- */
.dawn-line { margin: 12px 0 0; padding: 8px 12px; border-radius: 12px; font-size: 0.86rem; line-height: 1.35; color: var(--ink-2); background: rgba(255, 160, 70, 0.08); border: 1px solid rgba(255, 200, 120, 0.3); font-variant-numeric: tabular-nums; }
.dawn-line::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 10px var(--flame); animation: pulse 1.6s ease-in-out infinite; vertical-align: 1px; }
.dawn-line b { color: var(--amber); }
.dawn-line span { display: inline-block; }
.dawn-line.due b { color: #ffe1a0; }

/* ---- a first visit: three steps, numbered on the controls they point at ---- */
/* on wide screens a card of its own under "Your wood", so nothing above it moves when it appears */
.intro { position: absolute; top: calc(100% + 12px); left: 0; right: 0; padding: 13px 16px 11px; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid rgba(255, 210, 120, 0.3); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); animation: fade-up 0.45s ease-out; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }
.intro-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.intro-head h3 { margin: 0; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.intro-close { flex: none; width: 26px; height: 26px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink-3); font-size: 1.05rem; line-height: 1; }
.intro-close:hover { color: var(--ink-1); border-color: rgba(255, 214, 160, 0.34); }
.intro-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.intro-steps li { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: center; }
.intro-num { grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.74rem; font-weight: 800; color: var(--amber); border: 1px solid rgba(255, 200, 120, 0.5); }
.intro-steps b { font-size: 0.9rem; line-height: 1.2; }
.intro-sub { font-size: 0.76rem; line-height: 1.25; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.intro-steps li.now .intro-num { color: #2a1404; background: linear-gradient(180deg, #ffe1a0, #ffb455); border-color: transparent; box-shadow: 0 0 12px rgba(255, 160, 60, 0.55); }
.intro-steps li.now .intro-sub { color: var(--ink-2); }
.intro-steps li.done .intro-num { color: var(--good); border-color: rgba(255, 216, 138, 0.35); }
.intro-steps li.done b { color: var(--ink-3); }
.intro-foot { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--ink-3); }
.intro-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.kindle { position: relative; }
body.intro-at-1 .kindle::before, body.intro-at-2 .throw-row .chip:first-child::before { position: absolute; top: -9px; left: -9px; width: 22px; height: 22px; border-radius: 50%; font-size: 0.74rem; font-weight: 800; line-height: 22px; text-align: center; color: #2a1404; background: linear-gradient(180deg, #ffe1a0, #ffb455); box-shadow: 0 0 0 3px rgba(17, 12, 28, 0.92), 0 0 14px rgba(255, 160, 60, 0.6); }
body.intro-at-1 .kindle::before { content: "1"; }
body.intro-at-2 .throw-row .chip:first-child::before { content: "2"; }
body.intro-on .until::after { content: "3"; display: inline-block; width: 20px; height: 20px; margin-left: 7px; border-radius: 50%; font-size: 0.7rem; font-weight: 800; line-height: 18px; text-align: center; vertical-align: 1px; color: var(--amber); border: 1px solid rgba(255, 200, 120, 0.6); text-shadow: none; }
body.intro-at-3 .until::after { color: #2a1404; background: linear-gradient(180deg, #ffe1a0, #ffb455); border-color: transparent; box-shadow: 0 0 12px rgba(255, 160, 60, 0.55); }

/* ---- late in the night: the streak at risk ---- */
.risk { margin-top: 10px; padding: 5px 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 700; line-height: 1.3; color: #ffe2c6; background: rgba(120, 30, 8, 0.55); border: 1px solid rgba(255, 130, 80, 0.55); box-shadow: 0 0 26px rgba(255, 90, 40, 0.3); text-shadow: none; text-wrap: balance; animation: fade-up 0.45s ease-out; }

body.cold .tonight, body.offline .tonight { display: none; }
body.cold .you .balance, body.cold .mine, body.offline .you .balance, body.offline .mine { display: none; }
body.cold .strip-row, body.offline .strip-row { display: none; }
body.cold .ledger-section, body.offline .ledger-section { display: none; }

/* ---- story ---- */
.story { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; max-width: 1180px; margin: 0 auto; padding: 40px 24px 10px; }
.story .card { box-shadow: none; background: rgba(255, 240, 220, 0.035); backdrop-filter: none; -webkit-backdrop-filter: none; }
.card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card-head .sub { color: var(--ink-3); font-size: 0.84rem; }
.chart-card { display: flex; flex-direction: column; }
.chart { position: relative; min-height: 190px; flex: 1; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg:focus { outline: none; }
.chart-svg:focus-visible { outline: 2px solid var(--amber); }
.chart .grid { stroke: rgba(255, 230, 200, 0.08); stroke-width: 1; }
.chart .axis { fill: rgba(255, 226, 196, 0.5); font: 600 11px var(--font); }
.chart .zero { stroke: rgba(255, 230, 200, 0.28); stroke-width: 1; }
.chart .bar.mint, .sw.mint { fill: #cf722a; background: #cf722a; }
.chart .bar.burn, .sw.burn { fill: #8478c4; background: #8478c4; }
.chart .band { fill: rgba(255, 170, 80, 0.035); }
.chart .hover-band { fill: rgba(255, 240, 220, 0.07); }
.chart-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: -4px 0 8px; font-size: 0.8rem; color: var(--ink-3); }
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 700; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw.burn { margin-left: 8px; }
.supply-now { font-variant-numeric: tabular-nums; }
.chart-tip { position: absolute; top: 4px; left: var(--x, 0); transform: translateX(10px); pointer-events: none; background: var(--glass-strong); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; font-size: 0.78rem; color: var(--ink-3); white-space: nowrap; }
.chart-tip.flip { transform: translateX(calc(-100% - 10px)); }
.chart-tip b { color: var(--ink-1); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.chart-empty { color: var(--ink-3); margin: 60px 0; text-align: center; }
.side-cards { display: flex; flex-direction: column; gap: 18px; }
.records h2, .face h2 { margin-bottom: 10px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.tile span { font-size: 0.74rem; color: var(--ink-3); font-weight: 700; }
.tile b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.tally { margin: 10px 0 0; font-size: 0.8rem; color: var(--ink-3); }
.face { display: flex; gap: 16px; align-items: center; }
.face p { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.coin-face { width: 132px; height: 132px; flex: none; border-radius: 28px; box-shadow: 0 0 0 1px rgba(255, 200, 140, 0.25), 0 8px 36px rgba(255, 120, 40, 0.28); }

.ledger-section { max-width: 1180px; margin: 0 auto; padding: 18px 24px 10px; }
.ledger-section .card { box-shadow: none; background: rgba(255, 240, 220, 0.035); backdrop-filter: none; -webkit-backdrop-filter: none; }
.ledger-check { margin: 0 0 12px; font-size: 0.86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ledger-check b { color: var(--ink-1); }
.ledger-host { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.ledger th { text-align: left; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 214, 160, 0.06); vertical-align: top; white-space: nowrap; }
.ledger .num { text-align: right; }
.ledger tbody tr:hover { background: rgba(255, 240, 220, 0.03); }
.ledger td small { display: block; font-size: 0.72rem; color: var(--ink-3); margin-top: 1px; }
.ledger .mint { color: var(--good); }
.ledger .burn { color: #d7c9c4; }
.ledger .link a { text-decoration: none; color: var(--ink-3); padding: 2px 6px; border-radius: 6px; }
.ledger .link a:hover { color: var(--amber); background: rgba(255, 200, 120, 0.08); }
.tag { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; }
.tag.lit { color: #ffd27a; background: rgba(255, 150, 50, 0.12); border-color: rgba(255, 180, 90, 0.35); }
.tag.smoked { color: #d8d4e2; background: rgba(170, 165, 190, 0.12); border-color: rgba(190, 185, 205, 0.3); }
.tag.cold { color: #a9c3e0; background: rgba(110, 140, 180, 0.12); border-color: rgba(140, 170, 210, 0.3); }
.ledger-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 0.82rem; }
.ledger-events { margin: 12px 0 0; font-size: 0.8rem; color: var(--ink-3); }
.ledger-events code { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-2); }
.ledger-empty { color: var(--ink-3); margin: 16px 0; }
.how { max-width: 1180px; margin: 0 auto; padding: 8px 24px 0; }
.how details { background: rgba(255, 240, 220, 0.035); border: 1px solid var(--line); border-radius: var(--radius); }
.how summary { cursor: pointer; padding: 16px 20px; font-weight: 800; list-style: none; display: flex; align-items: center; gap: 10px; }
.how summary::-webkit-details-marker { display: none; }
.how summary::after { content: "+"; margin-left: auto; color: var(--amber); font-size: 1.3rem; line-height: 1; }
.how details[open] summary::after { content: "–"; }
#how-body { padding: 0 20px 18px; color: var(--ink-2); }
.how-list { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 8px; }
.how-list b { color: var(--ink-1); }
.foot { max-width: 1180px; margin: 0 auto; padding: 26px 24px 70px; color: var(--ink-3); font-size: 0.82rem; }
.foot span { display: block; }
.foot span + span { margin-top: 6px; }
.foot a { color: var(--ink-2); }

/* ---- drawer, toast ---- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(4, 3, 8, 0.55); }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #120d1c; border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; animation: slide 0.25s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.drawer-head h2 { font-size: 1.15rem; }
.close { background: none; border: 1px solid var(--line); border-radius: 999px; width: 34px; height: 34px; font-size: 1.3rem; line-height: 1; color: var(--ink-2); }
.drawer-body { padding: 4px 20px 30px; overflow-y: auto; color: var(--ink-2); font-size: 0.9rem; }
.drawer-body h3 { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin: 22px 0 8px; }
.proof-list, .tx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cheats { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.cheat { font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--ink-1); background: rgba(255, 138, 42, 0.12); border: 1px solid rgba(255, 138, 42, 0.45); border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.cheat:hover:not([disabled]) { background: rgba(255, 138, 42, 0.22); }
.cheat[disabled] { opacity: 0.45; cursor: default; }
.proof-list li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: baseline; }
.proof-list li > span:first-child { color: var(--ink-3); font-weight: 700; font-size: 0.8rem; }
.proof-list li > :last-child { min-width: 0; overflow-wrap: anywhere; }
.proof-list a { word-break: break-all; }
.drawer-body code { font-size: 0.8rem; word-break: normal; overflow-wrap: anywhere; color: var(--ink-1); }
.proof-list code { word-break: break-all; }
.tx-list li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid rgba(255, 214, 160, 0.07); }
.tx-list .kind { min-width: 56px; max-width: 62%; overflow-wrap: anywhere; color: var(--ink-3); font-weight: 700; font-size: 0.8rem; }
.tx-list .kind .bad { font-size: 0.78rem; }
.tx-list .gas { margin-left: auto; color: var(--ink-3); font-size: 0.78rem; }
.tx-list .why { flex-basis: 100%; color: var(--ink-3); font-size: 0.78rem; }
.cheat-out { margin: 4px 0 10px; padding: 8px 12px; border-radius: 10px; font-size: 0.85rem; color: var(--ink-1); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.cheat-out.good { border-color: rgba(140, 220, 150, 0.45); }
.cheat-out.bad { border-color: rgba(255, 150, 120, 0.6); }
.rpc { white-space: pre-wrap; word-break: break-all; font-size: 0.74rem; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--ink-1); }
.mock-note { background: #ffe14d; color: #241a00; font-weight: 800; padding: 8px 12px; border-radius: 10px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 58px; transform: translateX(-50%); max-width: min(520px, 92%); padding: 12px 18px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); font-size: 0.92rem; animation: rise-t 0.25s ease-out; }
.toast.ok { border-color: rgba(255, 210, 120, 0.5); }
.toast.warn { border-color: rgba(255, 150, 120, 0.5); }
@keyframes rise-t { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (min-width: 901px) {
  .toast { top: 70px; bottom: auto; left: auto; right: 28px; transform: none; max-width: 336px; animation-name: drop-t; }
  @keyframes drop-t { from { opacity: 0; transform: translateY(-8px); } }
  /* beside an open drawer, not over it */
  body.drawer-on .toast { right: calc(min(440px, 100%) + 20px); }
}

/* ---- medium screens: cards narrower ---- */
@media (max-width: 1180px) {
  .tonight { width: 260px; left: 18px; }
  .you { width: 300px; right: 18px; }
}

/* ---- phones and small tablets: the scene on top, the cards below it ---- */
@media (max-width: 900px) {
  .top { padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
  .word { font-size: 1.15rem; }
  .coin-mini { width: 38px; height: 38px; border-radius: 10px; }
  .ticker { display: none; }
  #btn-how { display: none; }
  .ghost, .icon-btn { padding: 7px 11px; }
  .toast { left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); transform: none; max-width: none; text-align: center; animation-name: rise-p; }
  /* the drawer covers the screen: its own lines say what a toast would (the cheat's answer) */
  body.drawer-on .toast { display: none; }
  @keyframes rise-p { from { opacity: 0; transform: translateY(8px); } }
  /* small phones: "Get kindling" waits at the bottom of the screen until the card scrolls up to it */
  .kindle { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 2; }
  .hero { height: auto; min-height: 0; max-height: none; overflow: visible; display: flex; flex-direction: column; }
  .stage { position: relative; inset: auto; height: 540px; overflow: hidden; }
  .sky-text { top: 54px; width: 94%; }
  .countdown { font-size: 2.5rem; }
  .rules { font-size: 0.86rem; margin-top: 8px; max-width: 360px; }
  .rules span { display: block; }
  .rules b { display: block; }
  .banner { min-width: 0; width: 88%; padding: 10px 14px; }
  .banner-title { font-size: 1.3rem; }
  .banner-text { font-size: 0.86rem; }
  .strip-row { bottom: 10px; gap: 8px; padding: 6px 10px; }
  .strip-label { display: none; }
  .strip li:nth-last-child(n + 15) { display: none; }
  .strip .night { width: 16px; }
  .strip svg { width: 15px; height: 15px; }
  .hero .card { position: relative; top: auto; left: auto; right: auto; transform: none; width: auto; margin: 0 12px; }
  .you { order: 1; margin-top: 2px !important; z-index: 6; }
  .banner { top: 132px; bottom: auto; }
  body.banner-on .clock, body.stamp-on .clock { opacity: 1; visibility: visible; }
  .stamp { top: 150px; font-size: clamp(52px, 15vw, 76px); padding: 4px 20px 9px; border-width: 4px; border-radius: 18px; }
  .film { top: 58px; }
  /* the film has the whole screen: the stage fills it, and the cards below it wait out of the flow */
  body.film-wait .stage, body.replay-on .stage { height: max(540px, 100svh); }
  body.film-wait .hero .card, body.replay-on .hero .card { display: none; }
  .film-title { font-size: 1.75rem; }
  .film-sub { font-size: 0.9rem; max-width: 330px; }
  .sound-word { display: none; }
  .tonight { order: 2; margin-top: 12px !important; }
  .intro { position: static; margin: 0 0 12px; padding: 12px 14px 10px; border-radius: 14px; background: rgba(255, 210, 120, 0.06); box-shadow: none; }
  .story { grid-template-columns: 1fr; padding: 22px 12px 4px; gap: 12px; }
  .side-cards { gap: 12px; }
  .how { padding: 8px 12px 0; }
  .ledger-section { padding: 12px 12px 4px; }
  .ledger, .ledger tbody { display: block; }
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: auto auto 1fr auto; gap: 4px 12px; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid rgba(255, 214, 160, 0.08); }
  .ledger td { display: block; padding: 0; border: 0; white-space: nowrap; font-size: 0.84rem; }
  .ledger td::before { content: attr(data-label); margin-right: 5px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
  .ledger td small { display: block; margin: 1px 0 0; white-space: normal; }
  .ledger td[data-label="Night"] { grid-column: 1; grid-row: 1; font-weight: 800; font-size: 0.95rem; }
  .ledger td[data-label="Night"]::before { content: "Night"; font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--ink-1); }
  .ledger td[data-label="Outcome"] { grid-column: 2; grid-row: 1; }
  .ledger td[data-label="Outcome"]::before, .ledger td.link::before { content: none; }
  .ledger td.link { grid-column: 4; grid-row: 1; justify-self: end; }
  .ledger td[data-label="Target"] { grid-column: 1; grid-row: 2; }
  .ledger td[data-label="Pile"] { grid-column: 2; grid-row: 2; }
  .ledger td[data-label="Supply after"] { grid-column: 3 / 5; grid-row: 2; justify-self: end; }
  .ledger td[data-label="Supply after"]::before { content: "Supply"; }
  .ledger td[data-label="Minted"] { grid-column: 1 / 3; grid-row: 3; }
  .ledger td[data-label="Burned"] { grid-column: 3 / 5; grid-row: 3; justify-self: end; text-align: right; }
  .ledger td.num { text-align: left; }
  .foot { padding: 20px 14px 70px; }
  .need b { font-size: 1.45rem; }
  .card { padding: 16px; }
}

@media (max-width: 900px) {
  .mock-badge { top: auto; bottom: 0; border-radius: 10px 10px 0 0; }
}

@media (min-width: 901px) and (max-height: 860px) {
  .intro { padding: 10px 14px 9px; }
  .intro-head { margin-bottom: 6px; }
  .intro-steps { gap: 5px; }
  .intro-foot { display: none; }
}

@media (max-width: 380px) {
  .countdown { font-size: 2.2rem; }
  .rules { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
