:root {
  --void: #030716;
  --deep: #071437;
  --nebula: #0d2a7a;
  --gold: #f5c542;
  --gold-hi: #ffe58a;
  --gold-lo: #b9861a;
  --green: #2fe08a;
  --red: #ff4d6a;
  --ink: #eef2ff;
  --muted: #9fb0d9;
  --line: rgba(160, 185, 255, .16);
  --card: rgba(10, 22, 60, .55);
  --display: "Audiowide", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(40, 90, 255, .35), transparent 60%),
    radial-gradient(900px 600px at 0% 40%, rgba(20, 60, 200, .25), transparent 60%),
    linear-gradient(180deg, var(--deep), var(--void) 70%);
  background-color: var(--void);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, header, footer { position: relative; z-index: 1; }
main { flex: 1; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* nav */
header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(3, 7, 22, .6); border-bottom: 1px solid var(--line); }
nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 20px; }
.brand img { width: 34px; height: 34px; }
.navlinks { display: flex; gap: 22px; align-items: center; }
.navlinks a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--ink); }
.navlinks a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.navlinks a.btn-gold { color: #1d1300; text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 820px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .navlinks { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: rgba(3, 7, 22, .96); border-bottom: 1px solid var(--line); display: none; }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .navlinks a.btn { margin-top: 14px; border-bottom: 0; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  font-family: var(--body);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); color: #1d1300; box-shadow: 0 0 0 1px rgba(255, 220, 120, .4), 0 8px 30px rgba(245, 197, 66, .35); }
.btn-gold:hover { box-shadow: 0 0 0 1px rgba(255, 220, 120, .6), 0 10px 40px rgba(245, 197, 66, .55); }
.btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-20deg); transition: left .6s; pointer-events: none; }
.btn-gold:hover::after { left: 130%; }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* type */
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(245, 197, 66, .35); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 9vw, 104px); line-height: .95; letter-spacing: -.01em; }
h1 { background: linear-gradient(180deg, #fff 35%, #b9c8f5); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(80, 130, 255, .35)); }
h1 .ticker { display: block; font-size: .36em; margin-top: 14px; letter-spacing: .04em; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, #e09a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin-bottom: 20px; }
h3 { font-size: 19px; }
.kicker { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold)); flex: none; }
.cta-panel .kicker { justify-content: center; }
.lede { color: var(--muted); font-size: 18px; max-width: 62ch; }
.prose p { color: var(--muted); font-size: 17px; max-width: 64ch; margin-bottom: 16px; }
.prose strong { color: var(--ink); }

/* home hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 72px 0 56px; }
.hero > * { min-width: 0; }
.tagline { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); margin: 22px 0 30px; max-width: 34ch; font-style: italic; }
.coin-stage { position: relative; aspect-ratio: 1; width: min(460px, 100%); justify-self: center; }
.coin-stage::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 70, .45), transparent 65%); filter: blur(30px); animation: pulse 5s ease-in-out infinite; }
.coin-stage .orbit { position: absolute; inset: -4%; border-radius: 50%; border: 1px dashed rgba(245, 197, 66, .28); animation: spin 40s linear infinite; }
.coin-stage .orbit::after { content: ""; position: absolute; top: 50%; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 14px 4px rgba(245, 197, 66, .7); }
.coin-stage .orbit.o2 { inset: -14%; border: 1px solid rgba(120, 160, 255, .14); animation-duration: 70s; animation-direction: reverse; }
.coin-stage .orbit.o2::after { top: 12%; left: 14%; width: 7px; height: 7px; background: #bcd0ff; box-shadow: 0 0 12px 3px rgba(140, 180, 255, .7); }
@keyframes spin { to { transform: rotate(360deg); } }
.coin-stage img { position: relative; width: 100%; height: 100%; object-fit: contain; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
@keyframes float { 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes pulse { 50% { opacity: .6; transform: scale(.94); } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 64px; }
  .hero .coin-stage { order: -1; width: min(300px, 80%); }
  .tagline { margin-inline: auto; }
  .hero .cta { justify-content: center; }
}

.hero-meta { list-style: none; padding: 0; margin-top: 34px; display: flex; border: 1px solid var(--line); border-radius: 16px; background: rgba(8, 18, 50, .5); width: fit-content; max-width: 100%; }
.hero-meta li { padding: 12px 22px; display: flex; flex-direction: column; }
.hero-meta li + li { border-left: 1px solid var(--line); }
.hero-meta b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--ink); }
.hero-meta span { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 860px) { .hero-meta { margin-inline: auto; } .hero-meta li { padding: 10px 14px; } .hero .kicker { justify-content: center; } }

/* inner page hero */
.page-hero { padding: 72px 0 24px; position: relative; }
.page-hero h1, .page-hero h2 { font-size: clamp(40px, 6.5vw, 72px); background: linear-gradient(180deg, #fff 35%, #b9c8f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lede { margin-top: 4px; }

/* CA */
.ca { margin-top: 26px; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 10px 16px; max-width: 560px; }
.ca-label { font-family: var(--display); color: var(--gold); font-size: 13px; flex: none; }
.ca-value { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.ca-value.pending { color: var(--muted); font-family: var(--body); font-style: italic; }
@media (max-width: 860px) { .hero .ca { margin-inline: auto; } }

section { padding: 72px 0; }

/* marquee */
.marquee { position: relative; z-index: 1; width: 104%; margin: 8px -2% 0; overflow: hidden; white-space: nowrap; padding: 14px 0; transform: rotate(-1.6deg); background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, #d89418); box-shadow: 0 12px 50px rgba(245, 197, 66, .25); }
.marquee-track { display: inline-flex; gap: 40px; animation: scroll 30s linear infinite; font-family: var(--display); color: #1d1300; font-size: 19px; }
.marquee-track span::after { content: "\2605"; margin-left: 40px; color: rgba(29, 19, 0, .45); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* cards */
.card { background: linear-gradient(180deg, rgba(14, 30, 78, .72), rgba(8, 17, 46, .6)); border: 1px solid var(--line); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 50px rgba(0, 0, 0, .25); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.tile { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.tile:hover { border-color: rgba(245, 197, 66, .6); transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 70px rgba(0, 0, 0, .4), 0 0 40px rgba(245, 197, 66, .15); }
.tile .media { overflow: hidden; border-bottom: 1px solid var(--line); }
.tile .media img { border-bottom: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .media img { transform: scale(1.06); }
.tile .go { transition: letter-spacing .25s; }
.tile:hover .go { letter-spacing: .03em; }
.tile img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.tile .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile .name { font-family: var(--display); font-size: 22px; }
.tile .desc { color: var(--muted); font-size: 15px; flex: 1; }
.tile .go { color: var(--gold); font-weight: 700; margin-top: 8px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }

/* split feature (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split > * { min-width: 0; }
.split figure img { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.split figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.banner-art { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.banner-art { box-shadow: 0 40px 100px rgba(0, 0, 0, .5), 0 0 0 1px rgba(245, 197, 66, .1); }
.banner-art img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.banner-art:hover img { transform: scale(1.04); }
.banner-art .over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 4vw, 44px); background: linear-gradient(0deg, rgba(3, 7, 22, .92), rgba(3, 7, 22, .2) 55%, transparent), linear-gradient(90deg, rgba(3, 7, 22, .7), transparent 60%); }
.banner-art .over .lede { color: #d6def5; }
@media (max-width: 640px) { .banner-art img { aspect-ratio: 4 / 5; } }

/* lore timeline */
.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), rgba(245, 197, 66, .05)); }
.timeline li { position: relative; padding: 0 0 30px 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--void); border: 2px solid var(--gold); box-shadow: 0 0 12px rgba(245, 197, 66, .6); }
.timeline .yr { font-family: var(--display); color: var(--gold); font-size: 15px; }
.timeline h3 { margin: 2px 0 4px; }
.timeline p { color: var(--muted); }
blockquote { margin-top: 28px; padding: 22px 24px; border-left: 3px solid var(--gold); background: var(--card); border-radius: 0 14px 14px 0; font-size: 20px; font-style: italic; }
blockquote cite { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); font-style: normal; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.stat { padding: 24px 22px; }
.stat .k { color: var(--muted); font-size: 14px; }
.stat .v { font-weight: 700; font-size: 26px; margin-top: 6px; overflow-wrap: anywhere; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; counter-reset: step; }
.step { padding: 26px 22px; position: relative; overflow: hidden; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--display); font-size: 30px; line-height: 1; margin-bottom: 14px; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin-bottom: 8px; position: relative; }
.step p { color: var(--muted); font-size: 15px; position: relative; }
.step a { color: var(--gold); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps, .stats { grid-template-columns: 1fr; } }

/* faq */
.faq { margin-top: 28px; display: grid; gap: 12px; max-width: 820px; }
.faq details { padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--display); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* community */
.cta-panel { position: relative; overflow: hidden; isolation: isolate; text-align: center; background: linear-gradient(180deg, rgba(13, 42, 122, .5), rgba(3, 7, 22, .2)); border: 1px solid var(--line); border-radius: 28px; padding: 72px 24px; }
.cta-panel::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -520px; width: 900px; height: 600px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 197, 66, .22), rgba(245, 197, 66, .05) 70%, transparent); border-top: 1px solid rgba(255, 220, 140, .35); box-shadow: 0 -10px 60px rgba(245, 197, 66, .18); }
.cta-panel img { width: 96px; height: 96px; margin: 0 auto 18px; filter: drop-shadow(0 0 24px rgba(245, 197, 66, .55)); animation: float 6s ease-in-out infinite; }
.cta-panel .lede { margin: 0 auto 28px; }
.cta-panel .cta { justify-content: center; }
.kit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.kit a { text-decoration: none; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s; }
.kit a:hover { border-color: rgba(245, 197, 66, .6); }
.kit .thumb { aspect-ratio: 1; display: grid; place-items: center; background: rgba(0, 0, 0, .25); border-bottom: 1px solid var(--line); }
.kit .thumb img { width: 100%; height: 100%; object-fit: cover; }
.kit .thumb img.contain { object-fit: contain; padding: 14px; }
.kit .meta { padding: 12px 14px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.kit .meta span:last-child { color: var(--gold); font-weight: 700; }
@media (max-width: 860px) { .kit { grid-template-columns: repeat(2, 1fr); } }

/* game */
.game-shell { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 197, 66, .12); background: #050b24; height: min(calc(100vh - 226px), 720px); height: min(calc(100svh - 226px), 720px); min-height: 440px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.game-shell canvas { display: block; width: 100%; height: 100%; cursor: pointer; touch-action: none; }
.game-hud { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(3, 7, 22, .6); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.game-over { position: absolute; inset: 0; display: none; place-items: center; background: rgba(3, 7, 22, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding: 16px; }
.game-over.show { display: grid; }
.go-card { width: min(380px, 100%); text-align: center; padding: 30px 24px 26px; background: linear-gradient(180deg, rgba(16, 34, 88, .96), rgba(6, 14, 40, .96)); border: 1px solid rgba(245, 197, 66, .4); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(245, 197, 66, .12), inset 0 1px 0 rgba(255, 255, 255, .08); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.85) translateY(12px); opacity: 0; } }
.go-card .rank { font-family: var(--display); font-size: 30px; line-height: 1.15; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #e09a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.go-card .quip { color: var(--muted); margin: 6px 0 18px; }
.go-card .scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.go-card .scores div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.go-card .scores b { display: block; font-size: 32px; font-weight: 700; line-height: 1.2; }
.go-card .scores small { color: var(--muted); }
.go-card .cta { justify-content: center; }
.game-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.game-notes .card { padding: 18px 20px; }
.game-notes h3 { font-size: 16px; margin-bottom: 4px; }
.game-notes p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .game-notes { grid-template-columns: 1fr; } .game-shell { height: calc(100svh - 170px); border-radius: 18px; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 13px; margin-top: 40px; background: radial-gradient(600px 120px at 50% 0%, rgba(245, 197, 66, .08), transparent); }
footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
footer .flinks { display: flex; gap: 18px; flex-wrap: wrap; }
footer .flinks a { text-decoration: none; }
footer .flinks a:hover { color: var(--ink); }
footer p { max-width: 90ch; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--gold); color: #1d1300; font-weight: 700; padding: 10px 20px; border-radius: 999px; transition: .25s; z-index: 50; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* the game canvas repaints every frame; a blurred header over it would re-blur every frame too */
body[data-page="play"] header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(3, 7, 22, .94); }
.notice { margin-top: 22px; color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.notice::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); flex: none; animation: pulse 2s ease-in-out infinite; }
@media (max-width: 860px) { .notice { justify-content: center; } }

[hidden] { display: none !important; }

/* film grain (not on the game page, where it would sit over a canvas that repaints every frame) */
body:not([data-page="play"])::after { content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* staggered entrances */
.reveal.in > .card, .reveal.in > .tile { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.reveal.in > :nth-child(2) { animation-delay: .08s; }
.reveal.in > :nth-child(3) { animation-delay: .16s; }
.reveal.in > :nth-child(4) { animation-delay: .24s; }
.hero > div:first-child > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero > div:first-child > :nth-child(2) { animation-delay: .08s; }
.hero > div:first-child > :nth-child(3) { animation-delay: .16s; }
.hero > div:first-child > :nth-child(4) { animation-delay: .24s; }
.hero > div:first-child > :nth-child(n+5) { animation-delay: .32s; }
.hero .coin-stage { animation: rise 1s .1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* leaderboard + score posting */
.mini-board { position: absolute; top: 12px; left: 12px; width: 220px; padding: 12px 14px; border-radius: 14px; background: rgba(3, 7, 22, .62); border: 1px solid var(--line); transition: opacity .3s; pointer-events: none; }
.game-shell[data-state="play"] .mini-board { opacity: 0; }
.mb-title { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.mini-board ol, .board { list-style: none; padding: 0; }
.mini-board li, .board li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; }
.mini-board li { font-size: 13px; padding: 3px 0; }
.mini-board .pos, .board .pos { color: var(--muted); font-weight: 700; }
.mini-board .who, .board .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-board .pts, .board .pts { font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.mini-board .empty, .board .empty { display: block; color: var(--muted); }
@media (max-width: 900px) { .mini-board { display: none; } }

.submit { margin: 0 0 18px; text-align: left; }
.submit form { display: grid; gap: 8px; }
.submit-title { font-weight: 700; font-size: 14px; text-align: center; color: var(--gold-hi); }
.submit input { width: 100%; font: 500 15px var(--body); color: var(--ink); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.submit input:focus { border-color: rgba(245, 197, 66, .7); box-shadow: 0 0 0 3px rgba(245, 197, 66, .15); }
.submit input.bad { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 77, 106, .15); }
.submit .fine { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; }
.submit-status { font-size: 14px; text-align: center; color: var(--muted); }
.submit-status:empty { display: none; }
.submit-status.ok { color: var(--ink); background: rgba(47, 224, 138, .08); border: 1px solid rgba(47, 224, 138, .3); border-radius: 12px; padding: 10px 12px; }
.submit-status.err { color: #ffb3c0; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }
.go-card { max-height: calc(100% - 8px); overflow-y: auto; }

.board-section { padding: 56px 0 0; }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.board-head h2 { margin-bottom: 6px; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.tabs button { font: 700 14px var(--body); color: var(--muted); background: none; border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: #1d1300; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.board { margin-top: 22px; padding: 8px 0; counter-reset: none; }
.board li { grid-template-columns: 56px 1fr auto; padding: 12px 22px; font-size: 17px; border-bottom: 1px solid var(--line); }
.board li:last-child { border-bottom: 0; }
.board li:nth-child(-n+3) .pos { font-family: var(--display); font-weight: 400; font-size: 20px; }
.board li:nth-child(1) .pos { color: #ffd54a; }
.board li:nth-child(2) .pos { color: #d7e0f5; }
.board li:nth-child(3) .pos { color: #e3a26b; }
.board li:nth-child(1) { background: linear-gradient(90deg, rgba(245, 197, 66, .14), transparent 70%); }
.board li:nth-child(1) .who::after { content: " \1F451"; }
.board li.me, .mini-board li.me { color: var(--gold-hi); }
.board li.me { box-shadow: inset 3px 0 0 var(--gold); }
.board .empty { padding: 18px 22px; }
.prize-rules { margin-top: 16px; padding: 22px 24px; }
.prize-rules h3 { margin-bottom: 10px; }
.prize-rules ul { padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.prize-rules b { color: var(--ink); }

/* lore: numbers + archive posts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.fact { padding: 24px 22px; }
.fact .v { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; overflow-wrap: anywhere; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #e09a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact .k { color: var(--muted); font-size: 15px; margin-top: 10px; }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.archive { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.post { display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 24px; text-decoration: none; position: relative; overflow: hidden; transition: border-color .25s, transform .25s; }
.post::before { content: "\201C"; position: absolute; right: 18px; top: -18px; font: 140px/1 Georgia, serif; color: rgba(245, 197, 66, .1); }
.post:hover { border-color: rgba(245, 197, 66, .6); transform: translateY(-4px); }
.post-meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.post-title { font-family: var(--display); font-size: 21px; line-height: 1.2; }
.post-body { color: var(--muted); flex: 1; }
.post .go { color: var(--gold); font-weight: 700; }
@media (max-width: 760px) { .archive { grid-template-columns: 1fr; } }
.textlink { color: var(--gold); font-weight: 700; text-decoration: none; }
.textlink:hover { text-decoration: underline; }
.hero-links { margin-top: 14px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; font-weight: 700; }
.hero-links a { color: var(--gold); text-decoration: none; }
.hero-links a:hover { text-decoration: underline; }
@media (max-width: 860px) { .hero-links { justify-content: center; } }
