/* Roll & Spin Gifts — v6. Light ("day") and dark ("night") themes from one set of tokens.
   The toggle in the header sets <html data-theme>; without it the system setting decides. */
@font-face { font-family: "Inter"; src: url(/fonts/inter-regular.woff) format("woff"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-semibold.woff) format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-extrabold.woff) format("woff"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/fonts/poppins-bold.woff) format("woff"); font-weight: 700; font-display: swap; }

/* ---------- day ---------- */
:root {
  color-scheme: light;
  --bg: #f4f6fb; --surface: #fff; --alt: #eef2f8; --border: #dde4ee;
  --text: #13233a; --muted: #5d6f86; --link: #1d4ed8;
  --go: #16a34a; --go-2: #128a3e; --go-soft: #e2f6e9; --go-ink: #15803d;
  --gold: #f5b014; --gold-ink: #8a5a00; --gold-soft: #fff4d6;
  --amber: #b45d09; --amber-soft: #fdf0dc; --red: #c53030; --red-soft: #fdeaea;
  --violet: #7c3aed; --magenta: #c026d3;

  --top-bg: rgba(255, 255, 255, .86); --top-solid: #fff; --top-ink: #33465f; --top-strong: #0a1a33;
  --top-hover: rgba(10, 26, 51, .06); --top-line: #e2e8f1;
  --hero-bg: #f6f8fd; --hero-h: #0a1a33; --hero-ink: #3c4f69; --hero-muted: #6a7d96;
  --hero-card: #fff; --hero-card-2: #fbfcff; --hero-line: #dde4ee; --hero-hover: #f5f8fd;
  --hero-chip: #fff; --hero-chip-line: #dde4ee; --hero-dots: rgba(10, 26, 51, .06);
  --glow-a: rgba(124, 58, 237, .16); --glow-b: rgba(22, 163, 74, .10);
  --hero-shadow: 0 1px 2px rgba(10, 26, 51, .04), 0 10px 30px rgba(10, 26, 51, .07);
  --bgo-line: #cdd7e5;

  --r: 12px; --r-lg: 18px;
  --shadow: 0 1px 2px rgba(10, 26, 51, .05), 0 6px 18px rgba(10, 26, 51, .06);
  --shadow-lift: 0 14px 34px rgba(10, 26, 51, .13);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Poppins, Inter, -apple-system, "Segoe UI", sans-serif;
}
/* ---------- night (explicit) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #081426; --surface: #0f2038; --alt: #142944; --border: #1f3a5e;
  --text: #e8eef7; --muted: #94a8c2; --link: #82aaff;
  --go: #22b85a; --go-2: #1a9a4b; --go-soft: #0f3220; --go-ink: #4ade80;
  --gold-ink: #f5c45a; --gold-soft: #3a2c0b;
  --amber: #f0a64b; --amber-soft: #36270f; --red: #f07171; --red-soft: #3a1a1c;
  --top-bg: rgba(10, 26, 51, .88); --top-solid: #0a1a33; --top-ink: #c9d6e8; --top-strong: #fff;
  --top-hover: rgba(255, 255, 255, .08); --top-line: #1d3658;
  --hero-bg: #0a1a33; --hero-h: #fff; --hero-ink: #dce6f5; --hero-muted: #93a8c6;
  --hero-card: rgba(16, 38, 71, .78); --hero-card-2: #16325a; --hero-line: #22406b; --hero-hover: rgba(255, 255, 255, .04);
  --hero-chip: rgba(255, 255, 255, .06); --hero-chip-line: rgba(255, 255, 255, .1); --hero-dots: rgba(255, 255, 255, .07);
  --glow-a: rgba(124, 58, 237, .38); --glow-b: rgba(22, 163, 74, .16);
  --hero-shadow: none; --bgo-line: #36557c;
  --shadow: none; --shadow-lift: 0 14px 34px rgba(0, 0, 0, .35);
}
/* ---------- night (system) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #081426; --surface: #0f2038; --alt: #142944; --border: #1f3a5e;
    --text: #e8eef7; --muted: #94a8c2; --link: #82aaff;
    --go: #22b85a; --go-2: #1a9a4b; --go-soft: #0f3220; --go-ink: #4ade80;
    --gold-ink: #f5c45a; --gold-soft: #3a2c0b;
    --amber: #f0a64b; --amber-soft: #36270f; --red: #f07171; --red-soft: #3a1a1c;
    --top-bg: rgba(10, 26, 51, .88); --top-solid: #0a1a33; --top-ink: #c9d6e8; --top-strong: #fff;
    --top-hover: rgba(255, 255, 255, .08); --top-line: #1d3658;
    --hero-bg: #0a1a33; --hero-h: #fff; --hero-ink: #dce6f5; --hero-muted: #93a8c6;
    --hero-card: rgba(16, 38, 71, .78); --hero-card-2: #16325a; --hero-line: #22406b; --hero-hover: rgba(255, 255, 255, .04);
    --hero-chip: rgba(255, 255, 255, .06); --hero-chip-line: rgba(255, 255, 255, .1); --hero-dots: rgba(255, 255, 255, .07);
    --glow-a: rgba(124, 58, 237, .38); --glow-b: rgba(22, 163, 74, .16);
    --hero-shadow: none; --bgo-line: #36557c;
    --shadow: none; --shadow-lift: 0 14px 34px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; transition: background-color .25s, color .25s; }
body.locked { overflow: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #5b9bff; outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.8vw, 52px); }
h2 { font-size: clamp(22px, 2.8vw, 28px); }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
small, .meta { color: var(--muted); font-size: 14px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(740px, 100% - 32px); }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #13233a; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--top-bg); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--top-line); transition: box-shadow .2s, background-color .25s; }
.top.scrolled { box-shadow: 0 8px 24px rgba(5, 14, 30, .12); }
.bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--top-strong); font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.brand em { font-style: normal; font-family: var(--font); font-weight: 700; font-size: 11px; color: #0a1a33; background: var(--gold); border-radius: 5px; padding: 1px 6px; margin-left: 7px; position: relative; top: -1px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .mm-btn { color: var(--top-ink); font: inherit; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:hover, .mm-btn:hover, .mm-btn[aria-expanded="true"] { background: var(--top-hover); color: var(--top-strong); text-decoration: none; }
.nav > a[aria-current] { color: var(--top-strong); background: var(--top-hover); }
.mm-btn svg { transition: transform .2s; }
.mm-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mm { position: relative; }
.mm-panel { position: absolute; left: -120px; top: calc(100% + 12px); width: 600px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; box-shadow: 0 24px 60px rgba(5, 14, 30, .22); }
.mm-title { margin: 2px 4px 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mm-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--text); }
.mm-item:hover { background: var(--alt); text-decoration: none; }
.mm-item > span:not(.av) { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.mm-item b { font-weight: 700; font-size: 15px; }
.mm-item small { font-size: 13px; }
.mm-item em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--go-ink); background: var(--go-soft); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn.app-btn { white-space: nowrap; background: linear-gradient(135deg, var(--violet), var(--magenta)); box-shadow: 0 6px 18px rgba(124, 58, 237, .3); }
.theme-btn, .burger { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--top-line); background: none; color: var(--top-strong); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.theme-btn:hover, .burger:hover { background: var(--top-hover); }
.theme-btn svg { transition: transform .35s ease, opacity .2s; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: block; }
}
.theme-btn:active svg { transform: rotate(40deg) scale(.9); }
.burger { display: none; }
.burger[aria-expanded="true"] { background: var(--top-hover); }
.drawer { border-top: 1px solid var(--top-line); background: var(--top-solid); max-height: calc(100vh - 68px); overflow-y: auto; padding: 14px 0 24px; }
.dr-links { display: grid; gap: 2px; margin-bottom: 16px; }
.dr-links a { color: var(--top-strong); font-weight: 600; font-size: 17px; padding: 12px 6px; border-bottom: 1px solid var(--top-line); }
.drawer .mm-grid { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .btn.app-btn { padding: 9px 14px; font-size: 14px; }
  .bar { gap: 12px; }
  .brand { font-size: 17px; }
}
@media (min-width: 901px) { .drawer { display: none !important; } }
@media (max-width: 420px) { .brand em { display: none; } .brand span { font-size: 16px; } }
@media (max-width: 370px) { .btn.app-btn { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #0a1a33; color: #fff; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; border-radius: 10px; padding: 11px 20px; transition: transform .12s, filter .15s, background-color .15s; position: relative; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn.collect, .row .btn.sm { background: var(--go); color: #fff; box-shadow: 0 2px 0 var(--go-2); }
.btn.collect:hover, .row .btn.sm:hover { background: var(--go-2); filter: none; }
a.btn.done { background: var(--go-soft) !important; color: var(--go-ink) !important; box-shadow: none !important; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); display: flex; margin: 16px auto 0; }
.btn.ghost:hover { background: var(--alt); filter: none; }
.btn.wide { display: flex; margin: 24px 0; }
.btn.play { background: #000; color: #fff; border-radius: 12px; padding: 9px 18px; text-align: left; border: 1px solid #333; }
.btn.play span { display: grid; line-height: 1.15; font-size: 17px; }
.btn.play small { color: #ccc; font-size: 10px; letter-spacing: .04em; }
.btn.play.soon { cursor: default; }

/* ---------- live ticker ---------- */
.ticker { display: flex; align-items: center; border-bottom: 1px solid var(--hero-line); background: color-mix(in srgb, var(--hero-card) 70%, transparent); height: 42px; overflow: hidden; }
.tk-label { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 13px; font-weight: 700; color: var(--go-ink); border-right: 1px solid var(--hero-line); height: 100%; background: var(--hero-card); }
.tk-view { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.tk-track { display: inline-flex; white-space: nowrap; }
.tk-dup { display: inline-flex; }
.tk { display: inline-flex; align-items: center; gap: 7px; padding: 0 22px; font-size: 14px; color: var(--hero-muted); line-height: 42px; }
.tk:hover { text-decoration: none; color: var(--hero-h); }
.tk i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tk b { color: var(--hero-h); font-weight: 600; }
.tk small { color: var(--hero-muted); font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) {
  .tk-track { animation: marquee 60s linear infinite; }
  .ticker:hover .tk-track, .ticker:focus-within .tk-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .tk-view { overflow-x: auto; } .tk-dup { display: none; } }

/* ---------- hero band ---------- */
.band { position: relative; background: var(--hero-bg); color: var(--hero-ink); padding: 0 0 52px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--hero-line); transition: background-color .25s; }
.band > .wrap { padding-top: 44px; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(720px 380px at 88% -10%, var(--glow-a), transparent 70%),
    radial-gradient(540px 300px at 0% 110%, var(--glow-b), transparent 70%),
    radial-gradient(var(--hero-dots) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.band.game::before { background:
    radial-gradient(640px 320px at 90% -20%, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%),
    radial-gradient(var(--hero-dots) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.band h1 { color: var(--hero-h); max-width: 800px; margin-bottom: 14px; }
.band .lead { color: var(--hero-ink); font-size: clamp(16px, 2vw, 19px); max-width: 650px; margin: 0; }
.band-h { color: var(--hero-h); font-size: 20px; margin: 40px 0 14px; display: flex; align-items: baseline; gap: 12px; }
.band-h small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--hero-muted); letter-spacing: 0; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; }
.stats li { display: inline-flex; align-items: center; gap: 6px; background: var(--hero-chip); border: 1px solid var(--hero-chip-line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--hero-ink); box-shadow: var(--hero-shadow); font-variant-numeric: tabular-nums; }
.stats b { color: var(--hero-h); font-weight: 700; }
.lamp { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #8aa0bb; flex: none; }
.lamp.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.lamp.warm { background: var(--gold); box-shadow: 0 0 0 3px rgba(245, 176, 20, .2); }

/* fresh drops */
.spots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.spot { position: relative; background: linear-gradient(180deg, var(--hero-card-2), var(--hero-card)); border: 1px solid var(--hero-line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; box-shadow: var(--hero-shadow); transition: transform .18s, box-shadow .18s; }
.spot:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.spot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); }
.spot header { display: flex; align-items: center; gap: 10px; }
.spot header span { display: grid; line-height: 1.25; min-width: 0; }
.spot header b { color: var(--hero-h); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot header small { color: var(--hero-muted); font-size: 13px; }
.spot-reward { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: 23px; color: var(--hero-h); line-height: 1.2; letter-spacing: -.01em; }
.spot-left { margin: 0; }
.spot .btn { margin-top: auto; width: 100%; }
@media (max-width: 980px) { .spots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .spots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .spots::-webkit-scrollbar { display: none; }
  .spot { flex: 0 0 76%; scroll-snap-align: start; }
}

/* the board */
.board { background: var(--hero-card); border: 1px solid var(--hero-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--hero-shadow); }
.bhead, .brow { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) 120px 110px 92px; align-items: center; gap: 14px; padding: 0 18px; }
.bhead { height: 42px; font-size: 13px; color: var(--hero-muted); border-bottom: 1px solid var(--hero-line); }
.brow { position: relative; min-height: 64px; color: var(--hero-ink); border-top: 1px solid var(--hero-line); font-variant-numeric: tabular-nums; transition: background-color .15s; }
.bhead + .brow { border-top: 0; }
.brow::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); opacity: 0; transition: opacity .15s; }
.brow:hover { background: var(--hero-hover); text-decoration: none; }
.brow:hover::before { opacity: 1; }
.bgame { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bgame > span:last-child { display: grid; line-height: 1.25; min-width: 0; }
.bgame b { color: var(--hero-h); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgame small { color: var(--hero-muted); font-size: 13px; }
.bnew { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bnew.none, .bago.none { color: var(--hero-muted); opacity: .75; }
.blive { white-space: nowrap; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--hero-h); }
.brow.idle .blive { color: var(--hero-muted); font-weight: 500; }
.bago { color: var(--hero-muted); font-size: 14px; white-space: nowrap; }
.bgo { justify-self: end; font-size: 14px; font-weight: 700; color: var(--hero-h); border: 1px solid var(--bgo-line); border-radius: 9px; padding: 6px 14px; white-space: nowrap; transition: background-color .15s, color .15s; }
.brow:hover .bgo { background: var(--hero-h); color: var(--hero-bg); border-color: var(--hero-h); }
.bfoot { display: none; }
@media (max-width: 760px) {
  .bhead { display: none; }
  .brow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "g l" "n n"; gap: 2px 12px; padding: 12px 14px; }
  .bgame { grid-area: g; }
  .blive { grid-area: l; font-size: 14px; }
  .bnew { grid-area: n; padding-left: 46px; font-size: 14px; color: var(--hero-muted); }
  .bago, .bgo { display: none; }
  .brow.idle { display: none; }
  .bfoot { display: block; margin: 0; padding: 12px 14px; font-size: 13.5px; color: var(--hero-muted); border-top: 1px solid var(--hero-line); }
}

/* ---------- layout ---------- */
.sec { margin: 60px 0; }
.sec.tight { margin: 8px 0 28px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 18px; }
.sec-h h2, .sec-h p { margin: 0; }
.sec-h p { color: var(--muted); }
.sec-h a { margin-left: auto; font-weight: 700; }
.page-h { display: block; margin: 36px 0 24px; }
.cols-main { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 36px; align-items: start; margin-top: 44px; }
.side { position: sticky; top: 88px; display: grid; gap: 16px; }
@media (max-width: 960px) { .cols-main { grid-template-columns: minmax(0, 1fr); } .side { position: static; } }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card.pad { padding: 20px; }
.card h3 { margin-bottom: 12px; }
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 28%; background: var(--c); flex: none; vertical-align: middle; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); }

/* ---------- link list ---------- */
.list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.row { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--border); transition: background-color .15s; }
.row:hover { background: var(--alt); }
.row:first-child { border-top: 0; }
.row::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.row.off { opacity: .55; }
.row.off::before { display: none; }
.ri { width: 40px; height: 40px; border-radius: 11px; background: var(--alt); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.rt { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.rt strong { font-weight: 650; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt small { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.new { font-style: normal; font-size: 11px; font-weight: 800; color: var(--gold-ink); background: var(--gold-soft); border-radius: 5px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.chip { font-size: 13px; font-weight: 600; border-radius: 7px; padding: 3px 9px; white-space: nowrap; background: var(--alt); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.warm { background: var(--amber-soft); color: var(--amber); }
.chip.hot { background: var(--red-soft); color: var(--red); }
.spot .chip:not(.warm):not(.hot) { background: var(--hero-chip); border: 1px solid var(--hero-chip-line); color: var(--hero-ink); }
@media (max-width: 520px) {
  .row { padding: 12px 12px 12px 14px; gap: 10px; }
  .chip { font-size: 12px; padding: 2px 7px; }
  .row .btn.sm { padding: 9px 11px; }
  .row .btn.sm span { display: none; }
  .row a.btn.done span { display: inline; }
}
.day { display: flex; align-items: baseline; gap: 10px; font-family: var(--font); font-size: 18px; font-weight: 800; margin: 30px 0 10px; letter-spacing: -.01em; }
.day span { font-size: 14px; font-weight: 600; color: var(--muted); }
.feed .dgroup:first-child .day, .sec.tight > .day:first-child { margin-top: 0; }
.empty { padding: 22px; }
.empty p:last-child { margin: 0; color: var(--muted); }
.progress { background: var(--go-soft); color: var(--go-ink); font-weight: 600; border-radius: var(--r); padding: 10px 14px; margin: 0 0 14px; }
.note { color: var(--muted); font-size: 14px; margin: 16px 2px 0; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.f { flex: none; font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: background-color .15s, border-color .15s; }
.f:hover { border-color: var(--muted); }
.f b { color: var(--muted); font-weight: 600; margin-left: 3px; }
.f.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.f.on b { color: inherit; opacity: .7; }

/* game switcher tabs */
.strip { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 68px; z-index: 40; }
.strip-in { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.strip-in::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 11px 12px; color: var(--muted); font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.pill:hover { color: var(--text); text-decoration: none; }
.pill.on { color: var(--text); border-bottom-color: var(--c, var(--text)); }
.pill b { font-size: 12px; color: var(--go-ink); font-weight: 700; }

/* side boxes */
.side-link { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; color: var(--text); }
.side-link:hover { background: var(--alt); text-decoration: none; }
.side-link > span:not(.av) { flex: 1; display: grid; line-height: 1.25; font-weight: 600; }
.side-link small { font-weight: 400; font-size: 13px; }
.side-link .n { font-size: 12px; color: var(--go-ink); background: var(--go-soft); font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.howto { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.howto li { counter-increment: s; position: relative; padding-left: 36px; margin: 0 0 14px; font-size: 14.5px; color: var(--muted); }
.howto li:last-child { margin-bottom: 0; }
.howto li strong { color: var(--text); display: block; }
.howto li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--go-soft); color: var(--go-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ---------- game page ---------- */
.band .crumbs { color: var(--hero-muted); margin: 0 0 16px; }
.band .crumbs a { color: var(--hero-ink); }
.byline { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--hero-muted); font-size: 14px; margin: 14px 0 0; }
.byline strong { color: var(--hero-h); font-weight: 600; }
.ghead-top { display: flex; align-items: center; gap: 16px; }
.ghead-top h1 { margin: 0; }
.ghead-top .av { box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 45%, transparent); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 26px 0 0; background: var(--hero-card); border: 1px solid var(--hero-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--hero-shadow); }
.facts div { padding: 14px 18px; border-left: 1px solid var(--hero-line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 13px; color: var(--hero-muted); }
.facts dd { margin: 0; color: var(--hero-h); font-family: var(--display); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--hero-line); }
  .facts dd { font-size: 20px; }
  .ghead-top .av { width: 48px !important; height: 48px !important; font-size: 24px !important; }
}
.intro { font-size: 17px; margin-top: 20px; }
.crumbs { margin: 22px 0 12px; font-size: 14px; color: var(--muted); }

/* ---------- guides ---------- */
.acard { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; color: var(--text); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.acard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.acard img { transition: transform .4s ease; }
.acard:hover img { transform: scale(1.03); }
.acard div { padding: 16px 18px 18px; position: relative; background: var(--surface); }
.acard h3 { margin: 4px 0 6px; }
.acard p { color: var(--muted); font-size: 14.5px; margin: 0 0 6px; }
.tag { font-weight: 700; font-size: 13px; color: var(--link); }
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.feature .acard.big h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.01em; }
.alist { display: grid; gap: 12px; align-content: start; }
.alist a { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; color: var(--text); align-items: center; padding: 8px; border-radius: var(--r); transition: background-color .15s; }
.alist a:hover { text-decoration: none; background: var(--surface); box-shadow: var(--shadow); }
.alist img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.alist h3 { font-size: 16px; margin: 0 0 4px; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .alist a { grid-template-columns: 104px minmax(0, 1fr); } }

.article { font-size: 17.5px; line-height: 1.72; }
.article h1 { margin-top: 8px; }
.article h2 { margin-top: 1.7em; }
.article figure { margin: 26px 0; }
.article figure img, .article .cover { border-radius: var(--r-lg); }
.article .cover { margin: 20px 0 8px; }
.lead.dark { color: var(--muted); font-size: 19px; }
figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }
.tip { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--r); padding: 14px 16px; margin: 20px 0; }
.tip p { margin: 0; font-weight: 500; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0 24px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin: 14px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.video { display: flex; align-items: center; gap: 14px; background: #0a1a33; color: #fff; border-radius: var(--r); padding: 16px 18px; margin: 20px 0; font-weight: 700; }
.video:hover { text-decoration: none; filter: brightness(1.1); }
.video .play { width: 40px; height: 40px; border-radius: 50%; background: #e02424; display: grid; place-items: center; font-size: 14px; flex: none; }

.promo.small { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); margin: 26px 0; box-shadow: var(--shadow); }
.promo.small p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ, docs ---------- */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); margin: 8px 0; padding: 0 18px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 30px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); }
.expired summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.expired .list { margin-top: 12px; }
.doc { padding: 36px 0 20px; }
.doc h2 { font-size: 22px; margin-top: 1.6em; }
.doc .spaced li { margin: 10px 0; }
.table { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--alt); }
code { background: var(--alt); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; margin: 18px 0; }
.contact-card span { color: var(--muted); font-weight: 600; }
.contact-card a { font-weight: 800; font-size: 18px; }

/* ---------- app band + footer (same in both themes) ---------- */
.appband { margin-top: 80px; background: linear-gradient(120deg, #4c1d95, var(--violet) 45%, var(--magenta)); color: #fff; }
.appband-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 36px 0; }
.appband img { border-radius: 18px; box-shadow: 0 12px 30px rgba(30, 0, 60, .35); }
.appband h2 { color: #fff; margin: 0 0 6px; }
.appband p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 620px; }
@media (max-width: 760px) { .appband-in { grid-template-columns: 1fr; } .appband img { width: 60px; height: 60px; } }
.foot { background: #0a1a33; color: #93a8c6; padding: 48px 0 28px; }
.foot .brand { color: #fff; }
.foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 12px; font-size: 15px; color: #fff; }
.foot .cols > div > a:not(.brand) { display: block; color: #dce6f5; font-size: 14.5px; margin: 6px 0; }
.foot p { font-size: 14.5px; margin-top: 14px; max-width: 330px; }
.foot .legal { font-size: 12.5px; margin-top: 32px; padding-top: 18px; border-top: 1px solid #22406b; }
@media (max-width: 800px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > div:first-child { grid-column: 1 / -1; } }

/* ---------- collect burst (the one celebratory moment) ---------- */
.burst { position: fixed; pointer-events: none; z-index: 90; font-size: 18px; line-height: 1; will-change: transform, opacity; }
@media (prefers-reduced-motion: no-preference) {
  .lamp.on { animation: glow 2.4s ease-in-out infinite; }
  @keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, .05); } }
  .mm-panel:not([hidden]) { animation: drop .16s ease-out; }
  .drawer:not([hidden]) { animation: drop .2s ease-out; }
  @keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
  .chip.tick { animation: tickflash .6s ease-out; }
  @keyframes tickflash { from { box-shadow: 0 0 0 3px rgba(245, 176, 20, .35); } }
}
