/* ── Theme ───────────────────────────────────────────────── */
:root {
  --bg: #0b0b1a;
  --bg2: #131331;
  --card: #1a1a3d;
  --card2: #22224d;
  --line: #2f2f66;
  --text: #f1f0ff;
  --muted: #a4a3c8;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --gold: #fbbf24;
  --lime: #a3e635;
  --purple: #a78bfa;
  --red: #fb7185;
  --radius: 16px;
  --font-head: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 10% -10%, #2a1459 0%, transparent 60%),
              radial-gradient(900px 500px at 110% 10%, #0e3b58 0%, transparent 55%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.5 var(--font-body);
  min-height: 100vh;
}
a { color: var(--cyan); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .4em; }
kbd { background: #2c2c5a; border: 1px solid #45458a; border-bottom-width: 2px; border-radius: 5px; padding: 0 .35em; font: .85em var(--font-body); }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Buttons & pills ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .6em 1.1em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card2); color: var(--text); font: 600 1em var(--font-body);
  text-decoration: none; cursor: pointer; transition: transform .12s, background .12s, box-shadow .12s;
}
.btn:hover { background: #2d2d63; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn.primary {
  background: linear-gradient(135deg, var(--pink), #8b5cf6 55%, var(--cyan)); border: 0; color: #fff;
  box-shadow: 0 6px 24px -6px #c026d3aa;
}
.btn.primary:hover { box-shadow: 0 8px 30px -4px #c026d3cc; }
.btn.big { font-size: 1.25em; padding: .7em 1.8em; }
.btn:disabled { opacity: .6; cursor: wait; }
.pill { display: inline-block; padding: .15em .7em; border-radius: 999px; font-size: .75em; font-weight: 700; background: var(--card2); border: 1px solid var(--line); vertical-align: middle; }
.pill.daily { background: #3b2a06; border-color: #a16207; color: var(--gold); }
.pill.new { background: #3a0d2a; border-color: #be185d; color: var(--pink); }
.pill.big { font-size: .95em; }

/* WhatsApp share buttons */
.btn.wa { background: #25d366; border-color: #25d366; color: #052e16; }
.btn.wa:hover { background: #1ebe5b; }
.wa-ico { width: 1.25em; height: 1.25em; flex: none; }

/* ── Site header / footer ────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: #0b0b1acc; border-bottom: 1px solid #ffffff10; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 1.25em var(--font-head); }
.logo img { width: 34px; height: 34px; }
.logo [data-site-name] { text-transform: uppercase; letter-spacing: 2px; font-weight: 800; }
.logo [data-site-name] b { color: var(--cyan); text-shadow: 0 0 12px rgba(34, 211, 238, .55); letter-spacing: .5px; font-weight: 900; margin-right: 2px; }
/* moving day note under the header (site.js moveNotice) */
.move-bar { background: linear-gradient(90deg, #052033, #0c2a44); border-bottom: 1px solid #38bdf855; color: #e0f2fe; font-size: .92em; }
.move-bar .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; }
.move-bar .wrap > span { flex: 1 1 260px; }
.move-bar .btn { padding: .35em .9em; font-size: .9em; }
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: .45em .8em; border-radius: 999px; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); background: var(--card2); }
.site-footer { margin-top: 64px; border-top: 1px solid #ffffff10; padding: 28px 0 40px; color: var(--muted); font-size: .9em; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* ── Home: hero ──────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; padding: 40px 0 24px; align-items: stretch; }
.hero-kicker { margin: 0 0 6px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8em; color: var(--cyan); }
.hero-main h1 { font-size: clamp(2.1em, 5vw, 3.4em); margin-top: 0; }
.hero-trust { margin: 14px 0 0; }
.hero-main h1 .glow { background: linear-gradient(90deg, var(--cyan), var(--pink), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-main p { color: var(--muted); font-size: 1.1em; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.daily-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px;
  background: linear-gradient(160deg, #3b2a06, #1a1a3d 70%); border: 1px solid #a16207;
  display: flex; flex-direction: column; gap: 8px;
}
.daily-card .pill { align-self: flex-start; }
.daily-card h2 { font-size: 1.5em; margin: 0; }
.daily-card .countdown { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 700; }
.daily-card img { position: absolute; right: -10px; bottom: -10px; width: 130px; opacity: .9; transform: rotate(-8deg); }
.daily-card .btn { align-self: flex-start; margin-top: auto; }
.daily-top { font-size: .9em; color: var(--muted); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } }

/* ── Ticker ──────────────────────────────────────────────── */
.ticker { display: flex; align-items: center; gap: 12px; background: #ffffff08; border: 1px solid #ffffff12; border-radius: 999px; padding: 8px 8px 8px 16px; overflow: hidden; margin: 8px 0 28px; }
.ticker-label { flex: none; font-weight: 700; color: var(--gold); font-size: .9em; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-items { display: inline-flex; gap: 32px; white-space: nowrap; animation: ticker 40s linear infinite; padding-left: 100%; }
.ticker-items span { color: var(--muted); font-size: .92em; }
.ticker-items b { color: var(--text); }
.ticker:hover .ticker-items { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-items { animation: none; padding-left: 0; } }

/* ── Sections ────────────────────────────────────────────── */
.section { margin: 36px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.6em; margin: 0; }

.continue { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.continue img { width: 48px; height: 48px; border-radius: 12px; }
.continue .btn { margin-left: auto; }

/* ── Game cards ──────────────────────────────────────────── */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.game-card {
  --c: var(--cyan);
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.game-card:hover, .game-card:focus-visible { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 14px 40px -12px var(--c); outline: none; }
.game-card .thumb { aspect-ratio: 16/10; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), #0f0f28; }
.game-card .thumb img { width: 46%; height: auto; transition: transform .3s; }
.game-card:hover .thumb img { transform: scale(1.1) rotate(-3deg); }
.game-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game-card h3 { font-size: 1.35em; margin: 0; display: flex; align-items: center; gap: 8px; }
.game-card p { margin: 0; color: var(--muted); font-size: .93em; }
.game-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 8px; font-size: .85em; color: var(--muted); }
.game-card .meta b { color: var(--text); }
.game-card .play-cta { position: absolute; top: 12px; right: 12px; background: var(--c); color: #0b0b1a; font-weight: 800; border-radius: 999px; padding: .25em .8em; font-size: .85em; opacity: 0; transform: translateY(-4px); transition: .18s; }
.game-card:hover .play-cta { opacity: 1; transform: none; }
.game-card.soon { opacity: .55; pointer-events: none; border-style: dashed; }

/* ── Badges ──────────────────────────────────────────────── */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .85em; }
.badge .ico { font-size: 1.6em; filter: grayscale(1) opacity(.35); }
.badge b { display: block; font-size: 1.05em; }
.badge small { color: var(--muted); line-height: 1.25; display: block; }
.badge.got { border-color: #a16207; background: linear-gradient(160deg, #2b1f05, var(--card)); }
.badge.got .ico { filter: none; }
.badge-group { margin-bottom: 18px; }
.badge-group h3 { font-size: 1.05em; color: var(--muted); margin-bottom: 8px; }
.progress-count { color: var(--gold); font-weight: 700; }

/* ── How it works strip ──────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.how-grid div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.how-grid b { font-family: var(--font-head); font-size: 1.15em; display: block; margin-bottom: 4px; }
.how-grid p { margin: 0; color: var(--muted); font-size: .92em; }

/* ── Leaderboard page ────────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tab { padding: .5em 1em; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font: 600 .95em var(--font-body); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--card2); color: var(--text); border-color: var(--c, var(--cyan)); box-shadow: inset 0 0 0 1px var(--c, var(--cyan)); }
.board { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-top: 8px; }
.board th { text-align: left; color: var(--muted); font-size: .8em; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 0 14px; }
.board td { background: var(--card); padding: 12px 14px; }
.board td:first-child { border-radius: 12px 0 0 12px; width: 64px; font-weight: 800; font-family: var(--font-head); font-size: 1.15em; }
.board td:last-child { border-radius: 0 12px 12px 0; }
.board td.num { text-align: right; font-variant-numeric: tabular-nums; }
.board th.num { text-align: right; }
.board .score { font-weight: 800; font-size: 1.1em; }
.board tr.me td { background: #2b1f05; box-shadow: inset 0 1px 0 #a16207, inset 0 -1px 0 #a16207; }
.board tr.me td:first-child { box-shadow: inset 1px 0 0 #a16207, inset 0 1px 0 #a16207, inset 0 -1px 0 #a16207; }
.board tr.me td:last-child { box-shadow: inset -1px 0 0 #a16207, inset 0 1px 0 #a16207, inset 0 -1px 0 #a16207; }
.board-empty { text-align: center; padding: 48px 16px; background: var(--card); border-radius: var(--radius); color: var(--muted); }
.board-note { font-size: .88em; color: var(--muted); margin-top: 16px; }
@media (max-width: 560px) { .board .hide-sm { display: none; } .board td { padding: 10px; } }

/* ── Prose pages ─────────────────────────────────────────── */
.prose { max-width: 720px; }
.prose h1 { font-size: 2.4em; margin-top: 32px; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: #d6d5f0; }

/* ── Legends ─────────────────────────────────────────────── */
.badge-group.legendary h3 { color: #7dd3fc; }
.badge.legendary { border-color: #082f49; }
.badge.legendary.got { background: linear-gradient(135deg, #082f49, #1a1a3d 60%); border-color: #7dd3fc; box-shadow: 0 0 18px -6px #7dd3fc; animation: goldGlow 2.4s ease-in-out infinite alternate; }
.badge.secret .ico { filter: grayscale(1) opacity(.25); }
@keyframes goldGlow { to { box-shadow: 0 0 26px -4px #7dd3fc; } }
.legend-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); background: linear-gradient(135deg, #082f49, #1a1a3d 70%); border: 1px solid #7dd3fc; margin-bottom: 18px; }
.legend-banner b { color: #e0f2fe; }
.legend-banner .btn { margin-left: auto; background: linear-gradient(135deg, #e0f2fe, #0ea5e9); color: #041019; border: 0; }
.site-nav a.legend-link { color: #7dd3fc; }
@media (prefers-reduced-motion: reduce) { .badge.legendary.got { animation: none; } }

/* ── Zones & difficulty ─────────────────────────────────────── */
.zones { display: grid; gap: 12px; }
/* Each zone is a <details> accordion bar. */
.zone { --zc: #22d3ee; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel, rgba(20,20,58,.6)); overflow: hidden; transition: border-color .2s; }
.zone[open] { border-color: color-mix(in srgb, var(--zc) 55%, var(--line)); }
.zone-2 { --zc: #fda4af; } .zone-3 { --zc: #7dd3fc; } .zone-4 { --zc: #f9a8d4; } .zone-5 { --zc: #6ee7b7; } .zone-6 { --zc: #fbbf24; } .zone-7 { --zc: #c084fc; } .zone-8 { --zc: #fb923c; }
.zone-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; user-select: none; }
.zone-head::-webkit-details-marker { display: none; }
.zone-head:hover { background: rgba(255,255,255,.03); }
.zone-head:focus-visible { outline: 2px solid var(--zc); outline-offset: -2px; }
.zone-num { flex: none; width: 2.1em; height: 2.1em; display: grid; place-items: center; border-radius: 50%; font-weight: 900; color: #0b0b1a; background: var(--zc); box-shadow: 0 0 14px -2px var(--zc); }
.zone-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zone-head h3 { margin: 0; font-size: 1.15em; color: var(--zc); line-height: 1.15; }
.zone-meta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.zone-count { white-space: nowrap; }
.zone-count.done { color: #86efac; }
.zone-chev { flex: none; color: var(--muted); transition: transform .2s; }
.zone[open] .zone-chev { transform: rotate(180deg); }
.zone-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.zone-blurb { margin: 10px 0 12px; }
@media (max-width: 600px) {
  .zone-head { padding: 10px 12px; gap: 10px; }
  .zone-head h3 { font-size: 1.02em; }
  .zone-head .crown .crown-txt { display: none; }
  .zone-body { padding: 4px 10px 12px; }
}
.zone-head .crown { font-size: .85em; font-weight: 700; padding: .2em .8em; border-radius: 999px; border: 1px dashed #0369a1; color: #93c5dd; white-space: nowrap; }
.zone-head .crown.won { border-style: solid; background: #082f49; color: #7dd3fc; }
.tier { display: inline-flex; align-items: center; gap: 6px; }
.tier i { display: inline-block; width: 56px; height: 6px; border-radius: 3px; background: #26264a; overflow: hidden; }
.tier u { display: block; height: 100%; background: var(--t); border-radius: 3px; }
.tier b { color: var(--t) !important; }
.game-card .thumb { position: relative; }
.game-card .num { position: absolute; top: 10px; left: 12px; font-weight: 800; font-size: .85em; color: var(--muted); background: rgba(0,0,0,.35); padding: .1em .55em; border-radius: 999px; }
.game-card.legend-slot { border-color: #0369a1; }
.pill.legend-pill { background: #082f49; border-color: #0369a1; color: #7dd3fc; }

.zone-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 16px; padding: 12px 16px; border-radius: 14px; border: 1px dashed #be185d; background: rgba(190,24,93,.1); }
.lock-meter { display: inline-block; width: 120px; height: 8px; border-radius: 4px; background: #26264a; overflow: hidden; }
.lock-meter i { display: block; height: 100%; background: linear-gradient(90deg, #f472b6, #fbbf24); }
.game-card.zone-locked .thumb img { filter: grayscale(.8) brightness(.6); }
.game-card .chip3d { position: absolute; bottom: 10px; left: 12px; font-weight: 900; font-size: .75em; letter-spacing: .06em; color: #e0f2fe; background: linear-gradient(135deg, #0369a1, #7c3aed); border: 1px solid #38bdf8; padding: .15em .6em; border-radius: 999px; box-shadow: 0 0 10px rgba(56,189,248,.45); }
.game-card .lock-badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: #1a1a3d; border: 1px solid #be185d; color: #fda4af; font-weight: 800; border-radius: 999px; padding: .25em .8em; font-size: .85em; }
.game-card .played-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: #052e16; border: 1px solid #16a34a; color: #86efac; font-weight: 800; border-radius: 999px; padding: .25em .65em; font-size: .8em; line-height: 1; }
.game-card.zone-locked .play-cta { display: none; }

a.legend-banner.hall-door { text-decoration: none; color: var(--text); margin: 0 0 18px; border-color: #0369a1; background: linear-gradient(135deg, #071a2a, #14142e 70%); transition: border-color .2s, transform .2s; }
a.legend-banner.hall-door:hover { border-color: #7dd3fc; transform: translateY(-2px); }
.site-nav a.legend-link:not(.is-legend) { color: #93c5dd; }
.daily-streak { color: #fdba74; font-size: .95em; } .daily-streak b { color: #fb923c; }

/* ── Golden Crown extras ─────────────────────────────────── */
.crown-mark { font-size: .85em; margin-left: .2em; filter: drop-shadow(0 0 4px rgba(56,189,248,.6)); }
.crown-mark sup { font-size: .7em; color: #6ee7b7; font-weight: 800; margin-left: 1px; }
.egg-svg { display: inline-block; vertical-align: middle; }
.zone-head .crown .egg-svg { vertical-align: -3px; }
.legend-banner .banner-eggs { display: flex; gap: 2px; flex: none; }
.legend-banner .banner-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* The frozen arcade — the Frost Crown holders' theme (switch it in the Crown Room). The attribute is
   still called data-gold-theme so the setting saved by players carries over. */
:root[data-gold-theme] {
  --bg: #041019; --bg2: #081c2b; --card: #0c2738; --card2: #12344a; --line: #2b5a78;
  --text: #f0fbff; --muted: #a8cfe3; --cyan: #a5f3fc; --purple: #c4b5fd; --pink: #e0f2fe;
}
:root[data-gold-theme] body {
  background: radial-gradient(1200px 600px at 10% -10%, #0e4a6b 0%, transparent 60%),
              radial-gradient(900px 500px at 110% 10%, #1e3a5f 0%, transparent 55%), var(--bg);
  background-attachment: fixed;
}
:root[data-gold-theme] .site-header, :root[data-gold-theme] .hud { background: #041019e6; border-color: #2b5a7855; }
.crown-svg.spin { animation: crown-turn 6s ease-in-out infinite; }
@keyframes crown-turn { 0%, 100% { transform: rotateY(-25deg); } 50% { transform: rotateY(25deg) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .crown-svg.spin { animation: none; } }

/* ── Zone unlock celebration overlay ────────────────────────── */
.zone-unlock-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(6,6,18,.75); backdrop-filter: blur(4px); animation: fadeIn .35s ease-out; }
.confetti-canvas { position: absolute; inset: 0; pointer-events: none; }
.zone-unlock-panel { position: relative; text-align: center; background: #14143acc; border: 1px solid #4ade8055; border-radius: 22px; padding: 2.4em 2em 2em; box-shadow: 0 0 60px rgba(74,222,128,.18), 0 24px 60px #0009; max-width: 22em; animation: panelIn .35s cubic-bezier(.2,1.4,.4,1); }
.zone-unlock-emoji { font-size: 3.2em; margin: 0 0 .1em; line-height: 1; }
.zone-unlock-panel h2 { font: 700 1.8em var(--font-head,sans-serif); color: #4ade80; margin: 0 0 .15em; }
.zone-unlock-name { font-weight: 700; color: #86efac; margin: 0 0 .4em; font-size: 1.05em; }
.zone-unlock-sub { color: var(--muted,#94a3b8); font-size: .92em; margin: 0 0 1.2em; }
.zone-unlock-btn { min-width: 8em; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .zone-unlock-overlay, .zone-unlock-panel { animation: none; } }

/* Site-wide sound switch in the header (audit P2) */
.site-nav .mute-link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 1.05em; padding: .45em .7em; border-radius: 999px; cursor: pointer; line-height: 1; }
.site-nav .mute-link:hover, .site-nav .mute-link:focus-visible { color: var(--text); background: var(--card2); }

/* Leaderboard: rank cell is a row header (screen readers), up to 100 names, your row pinned (audit P2/P3) */
.board tbody th { background: var(--card); padding: 12px 14px; text-align: left; color: var(--text); text-transform: none; letter-spacing: 0; border-radius: 12px 0 0 12px; width: 64px; font-weight: 800; font-family: var(--font-head); font-size: 1.15em; }
.board tr.me th { background: #2b1f05; box-shadow: inset 1px 0 0 #a16207, inset 0 1px 0 #a16207, inset 0 -1px 0 #a16207; }
.board tr.gap td { background: none; text-align: center; color: var(--muted); padding: 0; border-radius: 0; }
.board-more { text-align: center; margin: 10px 0 0; }
.board-me { text-align: center; margin: 8px 0 0; }
.board td.who { overflow-wrap: anywhere; }
/* leaderboard page: the game picker (zone chips + game pictures), the game's banner, the podium and score bars */
.lb-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.lb-game { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font: 600 .85em var(--font-body); line-height: 1.2; text-align: center; cursor: pointer; }
.lb-game img { width: 56px; height: 56px; border-radius: 12px; }
.lb-game:hover { color: var(--text); border-color: var(--c, var(--cyan)); }
.lb-game[aria-selected="true"] { color: var(--text); background: var(--card2); border-color: var(--c, var(--cyan)); box-shadow: inset 0 0 0 1px var(--c, var(--cyan)), 0 0 18px -6px var(--c, var(--cyan)); }
.lb-head { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 4px 0 10px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--c, var(--cyan)); }
.lb-head img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.lb-head-text { flex: 1; min-width: 0; }
.lb-head h2 { margin: 0; font-size: 1.35em; }
.lb-head p { margin: 2px 0 0; }
.lb-head .btn { flex: none; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin: 16px 0 8px; }
.pod-wrap { min-width: 0; }
.pod-wrap1 { order: 2; } .pod-wrap2 { order: 1; } .pod-wrap3 { order: 3; }
.pod { text-align: center; padding: 14px 8px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.pod1 { padding: 22px 8px 18px; background: linear-gradient(180deg, #3a2a06, var(--card) 75%); border-color: #a16207; }
.pod2 { border-color: #94a3b8; }
.pod3 { border-color: #b45309; }
.pod-medal { font-size: 2em; line-height: 1; }
.pod1 .pod-medal { font-size: 2.6em; }
.pod-name { font-weight: 700; margin-top: 6px; overflow-wrap: anywhere; }
.pod-score { font: 800 1.35em var(--font-head); font-variant-numeric: tabular-nums; margin-top: 2px; }
.pod1 .pod-score { font-size: 1.7em; color: #fde68a; }
.pod-sub { font-size: .8em; color: var(--muted); margin-top: 2px; }
.pod.me { box-shadow: 0 0 0 2px #facc15; }
.board .bar-cell { width: 32%; }
.board .bar-track { display: block; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.board .bar { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--cyan)); }
@media (max-width: 560px) {
  .lb-games { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
  .lb-game { padding: 8px 4px; font-size: .8em; }
  .lb-game img { width: 44px; height: 44px; }
  .lb-head { gap: 10px; padding: 10px; }
  .lb-head img { width: 48px; height: 48px; }
  .lb-head h2 { font-size: 1.15em; }
  .podium { gap: 6px; }
  .pod { padding: 12px 4px 10px; } .pod1 { padding: 18px 4px 14px; }
  .pod-score { font-size: 1.1em; } .pod1 .pod-score { font-size: 1.35em; }
  .board .bar-cell { width: 22%; }
}

/* Home: link to the Retro Vault */
.retro-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; margin: 8px 0 28px; border-radius: var(--radius); text-decoration: none; color: var(--text); background: linear-gradient(135deg, #0e3b58, #1a1a3d 60%); border: 1px solid #22d3ee55; transition: border-color .2s, transform .2s; }
.retro-banner:hover { border-color: var(--cyan); transform: translateY(-2px); }
.retro-banner > span:nth-child(2) { flex: 1; min-width: 14em; }
.retro-banner-icon { font-size: 2em; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .retro-banner { transition: none; } }
/* Six items in the header on small phones (Games, Leaderboard, About, Retro, Legends, sound) */

/* ── Static pages + site-map footer (tools/build-pages.mjs) ───────────── */
.site-footer .footer-map { display: block; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 24px; }
.footer-cols b { display: block; color: var(--text); font-family: var(--font-head); margin-bottom: 6px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 2px 0; font-size: .92em; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--text); text-decoration: underline; }
.footer-base { margin-top: 24px; padding-top: 16px; border-top: 1px solid #ffffff10; }
.crumbs { font-size: .9em; color: var(--muted); margin: 18px 0 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
/* /games/ browse bar */
.browse-bar { position: sticky; top: 0; z-index: 5; margin: 8px -4px 18px; padding: 10px 4px 8px; background: linear-gradient(var(--bg) 85%, transparent); display: grid; gap: 8px; }
.browse-search { display: flex; align-items: center; gap: 8px; max-width: 420px; padding: .45em .9em; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); }
.browse-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: .3em .85em; border-radius: 999px; font-size: .85em; font-weight: 700; color: var(--text); text-decoration: none; background: var(--card2); border: 1px solid var(--line); transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--cyan); color: var(--cyan); }
.chip.on { background: var(--cyan); border-color: var(--cyan); color: #06121f; }
.chip.tier-chip.on { background: var(--t); border-color: var(--t); color: #0b0b1a; }
.chip.chip-legends { border-color: #0369a1; color: #bae6fd; }
.chip.chip-legends.on { background: linear-gradient(135deg, #bae6fd, #38bdf8); border-color: #7dd3fc; color: #041019; }
.chip.chip-3d.on { background: linear-gradient(135deg, #0369a1, #7c3aed); border-color: #38bdf8; color: #e0f2fe; }
#browse-count { margin: 0; }
.genre-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.genre-links a { display: block; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card2); color: var(--text); text-decoration: none; }
.genre-links a:hover { border-color: var(--cyan); }
@media (max-width: 600px) { .browse-bar { position: static; } .browse-search { max-width: none; } }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.pill.genre { color: var(--text); text-decoration: none; }
.pill.genre:hover, .pill.genre.on { border-color: var(--cyan); color: var(--cyan); }
.lead { font-size: 1.12em; color: #d6d5f0; max-width: 760px; }
.game-card .genres { font-size: .8em; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.genre-page h1 { font-size: 2.4em; margin-top: 8px; }
.genre-page .section-head h2 a { color: var(--text); text-decoration: none; }
.genre-page .section-head h2 a:hover { color: var(--cyan); }
.game-grid.mini { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.game-grid.mini .game-card .body { padding: 10px 12px 12px; }
.game-grid.mini .game-card h3 { font-size: 1.1em; }
.game-grid.mini .game-card p:not(.genres) { display: none; }
.game-grid.mini .game-card .thumb { aspect-ratio: 16/9; }
.zone-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 16px; padding: 10px 16px; border-radius: 14px; border: 1px dashed #4b4b8a; background: rgba(99,102,241,.08); }
.zone-progress.done { border-style: solid; border-color: #15803d; background: rgba(34,197,94,.1); }
.prize-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.prize { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: .18s; }
.prize:hover { transform: translateY(-3px); border-color: var(--c, var(--gold)); }
.prize.won { border-color: #0369a1; background: linear-gradient(160deg, #072235, var(--card)); }   /* crystals and the crown: ice */
.prize.gold-prize.won { border-color: #a16207; background: linear-gradient(160deg, #2b1f05, var(--card)); }   /* golden characters stay gold */
.prize .prize-art { font-size: 2.6em; line-height: 1; height: 56px; display: flex; align-items: center; }
.prize .prize-how { font-size: .85em; color: #c9c8e6; margin-top: 4px; }

/* ── Arcade themes (bought in /shop/ with tokens; tokens.js sets data-theme) ── */
:root[data-theme="ice"] { --bg: #06121f; --bg2: #0b1d33; --card: #0f2540; --card2: #163352; --line: #2a4a6e; --text: #eef6ff; --muted: #9fb8d4; --cyan: #7dd3fc; --pink: #a5b4fc; --purple: #93c5fd; }
:root[data-theme="ice"] body { background: radial-gradient(1200px 600px at 10% -10%, #0e3a5c 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #10294a 0%, transparent 55%), var(--bg); background-attachment: fixed; }
:root[data-theme="sunset"] { --bg: #1a0b14; --bg2: #26101c; --card: #2d1424; --card2: #3b1a2f; --line: #5c2a47; --text: #fff1f2; --muted: #d8a3b8; --cyan: #fb923c; --pink: #f472b6; --purple: #fb7185; }
:root[data-theme="sunset"] body { background: radial-gradient(1200px 600px at 10% -10%, #6b2d1a 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #4a1a3c 0%, transparent 55%), var(--bg); background-attachment: fixed; }
:root[data-theme="candy"] { --bg: #1a0f1f; --bg2: #26162e; --card: #2e1a38; --card2: #3c2349; --line: #5a3a6e; --text: #fdf4ff; --muted: #d6b4e6; --cyan: #67e8f9; --pink: #f0abfc; --purple: #e879f9; }
:root[data-theme="candy"] body { background: radial-gradient(1200px 600px at 10% -10%, #5b1f6b 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #1f4a5c 0%, transparent 55%), var(--bg); background-attachment: fixed; }
:root[data-theme="matrix"] { --bg: #020a05; --bg2: #06160c; --card: #0a1f12; --card2: #0f2b19; --line: #1f4a2d; --text: #ecfdf5; --muted: #86c59a; --cyan: #4ade80; --pink: #bbf7d0; --purple: #34d399; --gold: #a3e635; }
:root[data-theme="matrix"] body { background: radial-gradient(1200px 600px at 10% -10%, #0b3b1e 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #052e16 0%, transparent 55%), var(--bg); background-attachment: fixed; }
:root[data-theme="lava"] { --bg: #150606; --bg2: #220a0a; --card: #2c0f0f; --card2: #3b1414; --line: #6b2222; --text: #fff5f5; --muted: #d9a0a0; --cyan: #fbbf24; --pink: #f87171; --purple: #fb923c; }
:root[data-theme="lava"] body { background: radial-gradient(1200px 600px at 10% -10%, #6b1a0a 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #4a1e05 0%, transparent 55%), var(--bg); background-attachment: fixed; }
:root[data-theme="midnight"] { --bg: #05060f; --bg2: #0a0b1c; --card: #10112a; --card2: #171838; --line: #2b2c5a; --text: #ededff; --muted: #9b9bc4; --cyan: #a78bfa; --pink: #c4b5fd; --purple: #818cf8; }
:root[data-theme="midnight"] body { background: radial-gradient(1200px 600px at 10% -10%, #1e1b4b 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #0f172a 0%, transparent 55%), var(--bg); background-attachment: fixed; }
:root[data-theme="retro"] { --bg: #0a0d08; --bg2: #11160d; --card: #171f12; --card2: #1f2a18; --line: #3a4a2a; --text: #f7fee7; --muted: #b5c48f; --cyan: #d9f99d; --pink: #fde68a; --purple: #bef264; --gold: #fde68a; --radius: 6px; }
:root[data-theme="retro"] body { background: repeating-linear-gradient(0deg, transparent 0 2px, #00000033 2px 4px), radial-gradient(1200px 600px at 10% -10%, #2a3b14 0%, transparent 60%), var(--bg); background-attachment: fixed; }
:root[data-theme] .site-header, :root[data-theme] .hud { background: color-mix(in srgb, var(--bg) 90%, transparent); }
/* The Golden Crown theme always wins */
/* The Frost Crown holders' theme (attribute still named gold-theme so saved settings carry over) */
:root[data-gold-theme][data-theme] { --bg: #041019; --bg2: #081c2b; --card: #0c2738; --card2: #12344a; --line: #2b5a78; --text: #f0fbff; --muted: #a8cfe3; --cyan: #a5f3fc; --purple: #c4b5fd; --pink: #e0f2fe; --radius: 16px; }
:root[data-gold-theme][data-theme] body { background: radial-gradient(1200px 600px at 10% -10%, #0e4a6b 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #1e3a5f 0%, transparent 55%), radial-gradient(700px 300px at 50% 0%, #34d39922 0%, transparent 70%), var(--bg); background-attachment: fixed; }

/* ── Tokens + avatar ── */
.token-pill { display: inline-flex; align-items: center; gap: 4px; padding: .3em .7em; border-radius: 999px; background: #3b2a06; border: 1px solid #a16207; color: var(--gold); font-weight: 800; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.token-pill:hover { background: #4d3608; }
.avatar { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--card2); border: 1px solid var(--line); font-size: 1em; vertical-align: middle; }
.avatar.big { width: 2.4em; height: 2.4em; font-size: 1.3em; }
@media (max-width: 560px) { .token-pill { padding: .3em .5em; font-size: .9em; } }

/* ── Shop ── */
.shop-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; padding: 32px 0 8px; }
.shop-hero h1 { font-size: 2.6em; margin: 0 0 .2em; }
@media (max-width: 760px) { .shop-hero { grid-template-columns: 1fr; } }
.wallet { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: var(--radius); background: linear-gradient(160deg, #3b2a06, var(--card)); border: 1px solid #a16207; }
.wallet .balance { font: 800 2.4em var(--font-head); color: var(--gold); }
.earn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.earn { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.earn .ico { font-size: 1.4em; }
.earn b { margin-left: auto; color: var(--gold); white-space: nowrap; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.shop-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.shop-card.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.shop-card .btn { margin-top: 6px; }
.shop-card.bought { animation: bought .6s ease-out; }
@keyframes bought { 0% { transform: scale(1.06); } }
.swatch { display: flex; height: 56px; border-radius: 10px; overflow: hidden; border: 1px solid #ffffff22; }
.swatch i { flex: 1; } .swatch i:nth-child(1) { background: var(--a); } .swatch i:nth-child(2) { background: var(--b); } .swatch i:nth-child(3) { background: var(--c); }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.avatar-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.avatar-card .big { font-size: 2.2em; line-height: 1.2; }
.avatar-card .small { color: var(--gold); font-weight: 700; }
.avatar-card.owned .small { color: var(--cyan); }
.avatar-card.on { border-color: var(--gold); cursor: default; }
.avatar-card.on .small { color: var(--text); }
.avatar-card.cant { opacity: .55; cursor: not-allowed; }
.avatar-card:not(.on):not(.cant):hover { border-color: var(--cyan); transform: translateY(-2px); }
.you-strip { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 12px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.you-strip .btn { margin-left: auto; white-space: nowrap; }
@media (max-width: 560px) { .you-strip { flex-wrap: wrap; } .you-strip .btn { margin-left: 0; } }
/* narrow phones: the header is full until the ☰ menu lands (nav rebuild phase 2) — hide About (it's in the footer) and the avatar in the pill */
/* ── Phone header: top bar (logo · tokens · ☰) with the nav in a sheet ── */
.menu-btn { display: none; }
.site-nav .menu-only { display: none; }
@media (max-width: 600px) {
  .site-header .wrap { gap: 10px; }
  .logo span { font-size: .95em; }
  @media (max-width: 360px) { .logo span { display: none; } }
  .token-pill { margin-left: auto; }
  .token-pill .avatar { display: none; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; }
  .menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0; padding: 10px 12px 14px; background: var(--bg, #0b0b1a); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px #0008; animation: menuIn .18s ease-out; }
  .site-nav.open { display: flex; }
  .site-nav a, .site-nav .mute-link { display: flex; align-items: center; gap: 10px; padding: .75em .9em; font-size: 1.05em; border-radius: 12px; color: var(--text); }
  .site-nav a[aria-current] { background: var(--card2); }
  .site-nav .nav-label, .site-nav a.legend-link .nav-label, .site-nav a.retro-link .nav-label { display: inline; }
  .site-nav .menu-only { display: flex; }
  .site-nav .mute-link { width: 100%; text-align: left; }
  .site-nav .mute-link::after { content: 'Sound'; font-size: .95em; font-weight: 600; }
  body.menu-open { overflow: hidden; }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
}

/* ── /badges/ ───────────────────────────────────────────────── */
.badges-page .badge-group { margin: 22px 0; }
.badges-page .badge-group.legendary .section-head h2 { color: #7dd3fc; }
.badges-page .section-head .done { color: #86efac; }
.badge-summary { display: flex; gap: 14px; align-items: center; margin: 0 0 10px; }
body.unearned-only .badge.got { display: none; }

/* ── Shop: effect/sound packs and flair ─────────────────────── */
.shop-card .pack-ico { font-size: 2em; line-height: 1; }
.shop-card .btn.small { font-size: .85em; padding: .35em .8em; }
.flair { font-size: .9em; margin-left: .15em; }
/* picture avatars (the crown sets) fill the avatar's circle */
.avatar .avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 50% 40%, #0e4a6b, #041019 75%); }
.avatar-card .big .avatar-img { width: 1.5em; height: 1.5em; border-radius: 50%; vertical-align: middle; }
/* the Ice Crown flair: a frosted snowflake that glows (drawn only beside crown holders' names) */
.flair.ice-flair, .pack-ico.ice-flair { color: #f0f9ff; text-shadow: 0 0 4px #7dd3fc, 0 0 10px #38bdf8, 0 0 18px #0ea5e9; font-weight: 700; }
/* the crown sets in the Shop: shown to everyone, never sold */
.crown-set { border: 1px solid #7dd3fc55; border-radius: var(--radius); padding: 16px; background: linear-gradient(160deg, #082f4966, transparent 70%); }
.crown-set h2 .ice-crown { width: 1.1em; vertical-align: -.1em; }
.crown-card .crown-face .avatar-img { display: block; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #0e4a6b, #041019 75%); box-shadow: 0 0 14px #38bdf855; }
.crown-card.locked .crown-face, .crown-card.locked .pack-ico { filter: grayscale(.75) brightness(.7); }
.crown-card.locked .btn[disabled] { font-size: .85em; }

/* The Iceman, TC Arcade's mascot (About page) */
.mascot { float: right; width: 150px; height: auto; margin: 0 0 12px 20px; filter: drop-shadow(0 6px 22px rgba(56, 189, 248, .4)); }
@media (max-width: 600px) { .mascot { float: none; display: block; margin: 0 auto 12px; width: 130px; } }

/* the ice crown icon (eggs.js ICE_CROWN), in place of the gold 👑 emoji */
.ice-crown { display: inline-block; width: 1.25em; height: .95em; vertical-align: -.12em; filter: drop-shadow(0 0 3px rgba(125, 211, 252, .55)); }

/* The Iceman as Keeper of the Hall (keeper.js): his picture and a speech bubble pointing to the next crystal */
.keeper { display: flex; align-items: flex-end; gap: 14px; max-width: 640px; margin: 18px auto; text-align: left; }
.keeper .iceman-img { flex: none; width: 92px; height: auto; filter: drop-shadow(0 6px 18px rgba(56,189,248,.4)); }
.keeper .iceman-img.crowned { width: 84px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #0e4a6b, #041019 75%); }
.keeper .bubble { position: relative; flex: 1; background: var(--card); border: 1px solid #7dd3fc66; border-radius: 16px; padding: 10px 14px; margin-bottom: 14px; }
.keeper .bubble::before { content: ''; position: absolute; left: -8px; bottom: 16px; width: 14px; height: 14px; background: var(--card); border-left: 1px solid #7dd3fc66; border-bottom: 1px solid #7dd3fc66; transform: rotate(45deg); }
.keeper .bubble b { color: #7dd3fc; font-size: .85em; letter-spacing: .04em; }
.keeper .bubble p { margin: 2px 0 6px; color: var(--text); }
.keeper.mini { margin: 10px auto 4px; gap: 10px; }
.keeper.mini .iceman-img { width: 54px; }
.keeper.mini .bubble { font-size: .9em; padding: 8px 12px; margin-bottom: 8px; }
.zone-iceman { display: block; width: 104px; height: auto; margin: -8px auto 4px; filter: drop-shadow(0 8px 22px rgba(56,189,248,.5)); animation: iceman-hop 1.2s ease-in-out 2; }
@keyframes iceman-hop { 30% { transform: translateY(-14px) rotate(-4deg); } 60% { transform: translateY(0) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .zone-iceman { animation: none; } }
/* TC Arcade Daily on the home page: today's Ice Path, inside the Daily card */
.ice-strip { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(160deg, #0c3a5a, #082f49); border: 1px solid #7dd3fc55; color: var(--text); text-decoration: none; }
.ice-strip:hover { border-color: #7dd3fc; }
.ice-strip-ico { font-size: 1.6em; }
.ice-strip > span:nth-child(2) { flex: 1; line-height: 1.3; }
.ice-strip-go { font-weight: 700; color: #7dd3fc; white-space: nowrap; }

/* The Classics shelf (/classics/ and the home bar) */
.classics-why { margin: 6px 0 18px; padding-left: 1.2em; display: grid; gap: 6px; max-width: 60em; }
.classic-card .thumb { display: grid; place-items: center; }
.classic-card.soon .thumb { opacity: .8; }
.classics-deals { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.classics-deals li { padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.zone-classics .zone-num { font-size: 1.3em; }

/* ── What's new (/new/ and the home page strip) ── */
.news-list { display: grid; gap: 12px; }
.news-page .news-list { max-width: 780px; margin-bottom: 18px; }
.news-three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.news-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.news-icon { font-size: 1.8em; line-height: 1.1; }
.news-date { margin: 0; font-size: .8em; color: var(--muted); }
.news-item h2, .news-item h3 { margin: 2px 0 4px; font-size: 1.08em; line-height: 1.25; }
.news-item h2 a, .news-item h3 a { color: inherit; text-decoration: none; }
.news-item h2 a:hover, .news-item h3 a:hover { text-decoration: underline; }
.news-item p:last-child { margin: 0; color: var(--muted); font-size: .95em; }
