/* Aura Farming — the Foil Card system (ADR 0019).
   Lavender daylight, ink violet, one holographic object per page: the player card.
   Mobile-first (ADR 0009). Live match screens flip to the dark "card back" (body.dark). */
:root {
  --paper: #EEE9FA; --paper-2: #F7F4FE; --white: #FFFFFF;
  --ink: #1F1438; --ink-2: #2A1657; --ink-3: #35207A; --ink-soft: #5D5080;
  --violet: #6D3AE0; --violet-deep: #5B2BC9; --grape: #9955DD; --gold: #E9B13A; --gold-soft: #FFE08A; --leaf: #46B85E; --danger: #D6335B;
  --foil: conic-gradient(from 210deg at 50% 50%, #FF9BE0, #FFE99A, #9CF1FF, #C7A6FF, #FFB6D6, #FF9BE0);
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Azeret Mono", "SFMono-Regular", Menlo, monospace;
  --radius: 20px;
  /* Semantic tokens. body.dark flips them for the match and jury screens. */
  --bg: var(--paper); --bg-glass: rgba(238,233,250,.86); --surface: var(--white); --surface-2: var(--paper-2);
  --fg: var(--ink); --fg-soft: var(--ink-soft); --rule: rgba(31,20,56,.12); --rule-strong: rgba(31,20,56,.22);
  --link: var(--violet); --focus: var(--violet); --number: var(--violet);
}
body.dark {
  --bg: var(--ink); --bg-glass: rgba(31,20,56,.86); --surface: var(--ink-2); --surface-2: #241349;
  --fg: #EDE7FA; --fg-soft: rgba(237,231,250,.72); --rule: rgba(255,255,255,.14); --rule-strong: rgba(255,255,255,.28);
  --link: #CDB8FF; --focus: var(--gold-soft); --number: var(--gold-soft);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: env(safe-area-inset-bottom); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.hidden { display: none !important; }
main { flex: 1; width: min(640px, 100% - 2rem); margin: 0 auto; padding: 1.25rem 0 2rem; }
body.wide main { width: min(1120px, 100% - 2.5rem); }
body.admin main { width: min(1100px, 100% - 2rem); }

h1, h2, h3 { font-family: var(--display); font-variation-settings: "opsz" 96; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(1.9rem, 5.5vw, 2.6rem); }
h2 { font-weight: 800; font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
p { margin: .4rem 0 .8rem; }
.muted { color: var(--fg-soft); } .small { font-size: .875rem; } .center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--fg-soft); }
.lead strong { color: var(--fg); font-weight: 600; }
.eyebrow, .kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin: 0 0 .75rem; }
body.dark .eyebrow, body.dark .kicker { color: var(--gold-soft); }
.glow { background: linear-gradient(90deg, var(--violet), var(--grape)); -webkit-background-clip: text; background-clip: text; color: transparent; }
code { font-family: var(--mono); font-size: .85em; background: var(--surface-2); border: 1px solid var(--rule); padding: .1em .35em; border-radius: .35em; }
.mono { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- header / footer ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.top .wrap { width: min(1120px, 100% - 2rem); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--fg); text-decoration: none; font-family: var(--display); font-variation-settings: "opsz" 96; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; justify-content: flex-end; font-size: .92rem; font-weight: 600; }
.top nav a { color: var(--fg); text-decoration: none; opacity: .78; } .top nav a:hover { opacity: 1; }
.top nav .navbtn { background: var(--violet); color: #fff; padding: .35rem .9rem; border-radius: 999px; opacity: 1; }
.top nav .navbtn:hover { background: var(--violet-deep); }
.top nav .nav-me { color: var(--violet); opacity: 1; }
body.dark .top nav .nav-me { color: var(--gold-soft); }
.top nav .linkish { font-size: inherit; font-weight: 600; color: var(--fg); opacity: .78; text-decoration: none; }
.top nav .linkish:hover { opacity: 1; }
.top nav form.button_to { margin: 0; display: inline; }
@media (max-width: 640px) {
  .top nav { gap: .5rem; font-size: .88rem; }
  .top nav .secondary { display: none; }
  .top.in .brand .name { display: none; }
  .top nav .nav-me { max-width: 6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.lang-form { display: inline; margin: 0; }
.lang-select { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--fg-soft); background: transparent; border: 1px solid var(--rule-strong); border-radius: 999px; padding: .35rem 1.5rem .35rem .7rem; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-soft) 50%), linear-gradient(135deg, var(--fg-soft) 50%, transparent 50%); background-position: right .8rem center, right .58rem center; background-size: .3rem .3rem; background-repeat: no-repeat; }
footer { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--fg-soft); font-size: .85rem; }
footer .wrap { width: min(1120px, 100% - 2rem); margin: 0 auto; display: flex; flex-direction: column; gap: .6rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
footer a { color: var(--fg-soft); text-decoration: none; } footer a:hover { color: var(--fg); }
footer p { margin: 0; }
.flash { margin: 0; padding: .7rem 1rem; font-size: .92rem; text-align: center; font-weight: 500; }
.flash.notice { background: #E3F6E6; color: #16522A; } .flash.alert { background: #FBE1E7; color: #7A1533; }
body.dark .flash.notice { background: #1E3A28; color: #C9F1D3; } body.dark .flash.alert { background: #4A1626; color: #FFD3DD; }

/* ---------- controls ---------- */
.btn, .linkish { font: 600 1rem/1.2 var(--body); cursor: pointer; border-radius: 999px; padding: .7rem 1.3rem; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; transition: transform .12s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(0) scale(.99); }
.btn.primary { background: var(--violet); color: #fff; border-color: var(--violet); box-shadow: 0 12px 28px -12px rgba(109,58,224,.7); }
.btn.primary:hover { background: var(--violet-deep); border-color: var(--violet-deep); }
body.dark .btn.primary { background: var(--gold-soft); color: var(--ink); border-color: var(--gold-soft); box-shadow: 0 12px 28px -12px rgba(255,224,138,.6); }
body.dark .btn.primary:hover { background: #FFE9A8; border-color: #FFE9A8; }
.btn.big { padding: 1.05rem 1.7rem; font-size: 1.05rem; width: 100%; max-width: 26rem; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn svg { width: 20px; height: 20px; }
.btn .g { background: #fff; border-radius: 50%; padding: 3px; }
.linkish { background: none; border: 0; color: var(--link); padding: 0; text-decoration: underline; text-underline-offset: 3px; border-radius: 4px; }
.linkish.small { font-size: .875rem; }
form.button_to { margin: 0; }
form.inline { display: inline-flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
form.inline input[type=text] { width: auto; margin: 0; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
input[type=text], textarea { font: inherit; width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--fg); margin: 0 0 1rem; }
input[type=text]:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; min-height: 8rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: 0 0 1.25rem; }
.check input { margin-top: .3rem; accent-color: var(--violet); }
.errors { color: var(--danger); padding-left: 1.2rem; margin: 0 0 1rem; }
details.danger { margin-top: 2rem; } details.danger summary { cursor: pointer; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.35rem; margin-bottom: 1rem; }
.card.empty { text-align: center; padding: 2.5rem 1.5rem; }
.card.empty .btn { margin-top: .5rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
td, th { padding: .7rem .5rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-soft); font-weight: 500; }
tr.me { background: rgba(109,58,224,.08); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
blockquote { border-left: 3px solid var(--grape); margin: .5rem 0; padding-left: .75rem; color: var(--fg-soft); }

/* Ad slots (ADR 0009, 0014): only on content pages, labelled, fixed height so nothing shifts. */
.ad-slot { position: relative; min-height: 110px; margin: 1.5rem auto; max-width: 728px; border: 1px dashed var(--rule-strong); border-radius: 14px; background: var(--surface-2); }
.ad-slot::before { content: "Ad"; position: absolute; top: .4rem; left: .7rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }
.ad-slot:not(.live)::after { content: "advertisement"; display: block; text-align: center; color: var(--fg-soft); font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; line-height: 110px; opacity: .6; }
.ad-slot.live { padding-top: 1.2rem; }

/* ---------- prose pages ---------- */
.prose h1 { margin-bottom: .75rem; }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.prose li { margin-bottom: .45rem; } .prose ol, .prose ul { padding-left: 1.3rem; }
.prose .btn { margin-top: .75rem; }
.faq h2 { font-size: 1.1rem; margin-top: 1.75rem; color: var(--violet); }

/* ---------- the player card (ADR 0019) ---------- */
.scene { perspective: 1200px; display: grid; place-items: center; padding: .5rem 0; }
.pcard { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; width: min(330px, 84vw); aspect-ratio: 63.5 / 88.9; border-radius: 20px; color: #fff; background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 55%, #170D33); box-shadow: 0 40px 70px -30px rgba(31,20,56,.55), 0 0 0 1px rgba(255,255,255,.08) inset; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .12s ease-out; overflow: hidden; isolation: isolate; will-change: transform; }
.pcard.rest { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.pcard .foil { position: absolute; inset: -30%; background: var(--foil); mix-blend-mode: color-dodge; opacity: .35; filter: blur(14px) saturate(1.4); transform: translate(calc((var(--mx) - 50%) * .35), calc((var(--my) - 50%) * .35)); pointer-events: none; }
.pcard .sheen { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.35), rgba(255,255,255,0) 42%); mix-blend-mode: overlay; pointer-events: none; }
.pcard .grain { position: absolute; inset: 0; background: repeating-linear-gradient(-35deg, rgba(255,255,255,.06) 0 2px, transparent 2px 7px); opacity: .5; pointer-events: none; }
.pcard .body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; padding: 1.15rem 1.2rem 1rem; }
.pcard .row { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.pcard .mark { display: grid; place-items: center; flex: 1; }
.pcard .disc { width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--foil); display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6), 0 0 0 5px rgba(255,255,255,.15); }
.pcard .disc svg { width: 82%; height: 82%; }
.pcard .handle { font-family: var(--display); font-variation-settings: "opsz" 96; font-weight: 800; font-size: 1.55rem; letter-spacing: -.03em; line-height: 1; margin: .2rem 0 0; overflow-wrap: anywhere; }
.pcard .num { display: flex; align-items: baseline; gap: .5rem; margin-top: .25rem; }
.pcard .num b { font-family: var(--display); font-variation-settings: "opsz" 96; font-weight: 800; font-size: 3.6rem; line-height: .95; letter-spacing: -.04em; color: var(--gold-soft); }
.pcard .num small { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.pcard .stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: .9rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.18); font-variant-numeric: tabular-nums; }
.pcard .stats span { display: flex; flex-direction: column; gap: .1rem; }
.pcard .stats b { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.pcard .stats small { font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.pcard .url { margin-top: .75rem; font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scene-hint { text-align: center; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); margin: .5rem 0 0; }
@media (hover: none) { .pcard:not(.static) { animation: idle 9s ease-in-out infinite; } }
@keyframes idle { 0%, 100% { transform: rotateX(4deg) rotateY(-10deg); } 50% { transform: rotateX(-4deg) rotateY(10deg); } }

/* Mini cards: the leaderboard as a row of cards. */
.minis { list-style: none; padding: .5rem 0 1rem; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.minis::-webkit-scrollbar { display: none; }
.minis.podium { grid-auto-columns: minmax(150px, 1fr); }
.mini { scroll-snap-align: start; position: relative; aspect-ratio: 63.5 / 88.9; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); padding: .9rem .9rem .8rem; display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: var(--fg); overflow: hidden; isolation: isolate; transition: transform .15s ease; font-variant-numeric: tabular-nums; }
.mini:hover { transform: translateY(-3px) rotate(-1deg); }
.mini .rk { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }
.mini .mk { flex: 1; display: grid; place-items: center; min-height: 0; }
.mini .mk svg { width: 42%; aspect-ratio: 1; opacity: .28; }
.mini.first .mk svg { opacity: 1; background: var(--foil); border-radius: 50%; padding: 7%; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.mini .hd { font-family: var(--display); font-variation-settings: "opsz" 96; font-weight: 800; font-size: 1.1rem; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
.mini .au { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -.04em; line-height: 1; color: var(--number); }
.mini .au small { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); margin-top: .2rem; }
.mini.first { background: var(--ink-2); color: #fff; border-color: transparent; }
.mini.first::before { content: ""; position: absolute; inset: -30%; background: var(--foil); mix-blend-mode: color-dodge; opacity: .4; filter: blur(12px); z-index: -1; }
.mini.first .rk { color: rgba(255,255,255,.75); } .mini.first .au { color: var(--gold-soft); } .mini.first .au small { color: rgba(255,255,255,.7); }
.mini.me { box-shadow: 0 0 0 3px var(--violet); }

/* ---------- landing ---------- */
.landing main { padding-top: 0; }
.hero { padding: 2.5rem 0 3rem; }
.hero .grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero { padding: 4rem 0 4.5rem; } .hero .grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.2rem); line-height: .98; letter-spacing: -.035em; margin-bottom: 1.25rem; }
.hero .lead { max-width: 33rem; margin: 0 0 1.6rem; }
.hero .fine { font-size: .85rem; color: var(--fg-soft); margin: 1rem 0 0; }
.section { padding: 3.25rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { margin-bottom: 1.75rem; }
.section-head p { margin: 0; color: var(--fg-soft); max-width: 40rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
/* sticker sheet */
.sheet { list-style: none; padding: 1rem .5rem; margin: 0; display: grid; gap: 1.6rem 1.25rem; }
@media (min-width: 640px) { .sheet { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sheet { grid-template-columns: repeat(4, 1fr); } }
.sticker { background: var(--white); color: var(--ink); border-radius: 22px; padding: 1.3rem 1.2rem 1.35rem; box-shadow: 0 0 0 5px var(--white), 0 14px 28px -16px rgba(31,20,56,.45); transform: rotate(var(--tilt, 0deg)); display: flex; flex-direction: column; gap: .5rem; }
.sticker:nth-child(1) { --tilt: -1.6deg; } .sticker:nth-child(2) { --tilt: 1.2deg; } .sticker:nth-child(3) { --tilt: -.8deg; } .sticker:nth-child(4) { --tilt: 1.8deg; }
.sticker .glyph { font-family: var(--display); font-variation-settings: "opsz" 96; font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -.04em; color: var(--violet); }
.sticker .glyph.foil { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; filter: saturate(1.3) brightness(.8); }
.sticker h3 { margin: .2rem 0 0; }
.sticker p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.sticker em { color: var(--ink); font-style: normal; font-weight: 600; }
/* card back: the rules */
.back { background: var(--ink); color: #EDE7FA; border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.4rem); position: relative; overflow: hidden; }
.back::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 6px, transparent 6px 14px); pointer-events: none; }
.back > * { position: relative; }
.back .row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 1.2rem; }
.back h2 { color: #fff; }
.back a { color: var(--gold-soft); }
.rules { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .1rem; }
@media (min-width: 760px) { .rules { grid-template-columns: 1fr 1fr; gap: .1rem 2.5rem; } }
.rules li { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.14); color: rgba(237,231,250,.75); }
.rules li strong { display: block; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; margin-bottom: .15rem; }
.back .more { margin: 1.25rem 0 0; font-size: .9rem; color: rgba(237,231,250,.75); }
.board-more { margin: .75rem 0 0; font-weight: 600; }
/* share */
.share { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 800px) { .share { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.share p { color: var(--fg-soft); margin: 0 0 .8rem; }
.share .tip { font-size: .9rem; }
.share em { color: var(--fg); font-style: normal; font-weight: 600; }
.pill { display: flex; align-items: center; gap: .8rem; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 999px; padding: .5rem .55rem .5rem 1.1rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; overflow: hidden; }
.pill span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill span b { color: var(--violet); font-weight: 500; }
.pill .btn { padding: .55rem 1rem; font-size: .85rem; background: var(--ink); color: #fff; border-color: var(--ink); flex: none; }
.pill .btn:hover { background: var(--ink-2); }

/* ---------- leaderboard ---------- */
.board-head { margin-bottom: 1rem; }
.me-rank { color: var(--violet); }
.board-table td.rank { color: var(--fg-soft); width: 3rem; font-family: var(--mono); font-size: .75rem; }
.board-table a { text-decoration: none; color: var(--fg); font-weight: 600; }
.board-table td.aura-pts { text-align: right; }
.aura-pts { color: var(--number); font-family: var(--display); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.share-cta { margin-top: 1.5rem; }

/* ---------- profile ---------- */
.profile { display: grid; gap: 1.25rem; justify-items: center; text-align: center; padding: .5rem 0 1rem; }
.profile h1 { margin: 0; }
.profile .scene { padding: .25rem 0 0; }
.stat-row { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 2rem; }
.stat-row li { display: flex; flex-direction: column; align-items: center; }
.stat-row strong { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.stat-row span { font-family: var(--mono); font-size: .62rem; color: var(--fg-soft); text-transform: uppercase; letter-spacing: .12em; margin-top: .3rem; }
.actions { display: flex; flex-direction: column; gap: .75rem; align-items: center; margin-top: 1.25rem; width: 100%; }
.actions.row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.actions form.button_to { width: 100%; max-width: 26rem; display: flex; justify-content: center; }

/* ---------- play (queue) ---------- */
.play { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.play .stage { width: 100%; }
.play .online { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-soft); }
.play .online b { color: var(--fg); font-weight: 500; }
.play [data-queue-target=find], .play [data-queue-target=waiting] { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.play .btn.big { margin-top: .25rem; }
.live-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px rgba(70,184,94,.25); animation: pulse 1.4s ease-in-out infinite; }
.pulse { animation: pulse 1.4s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .4; } }

/* ---------- the stage: portrait video tiles ---------- */
.stage { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: #0F0824; border: 1px solid var(--rule-strong); }
.stage.single { aspect-ratio: 3 / 4; max-height: 62dvh; margin-inline: auto; }
.stage.duo { aspect-ratio: 9 / 16; max-height: 72dvh; margin-inline: auto; }
.tile { width: 100%; height: 100%; object-fit: cover; display: block; background: #0F0824; }
.tile.local { transform: scaleX(-1); }
.stage.duo .local { position: absolute; right: .75rem; bottom: .75rem; width: 30%; height: auto; aspect-ratio: 3 / 4; border-radius: 12px; border: 2px solid var(--gold-soft); z-index: 2; box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); }
.stage.duo .remote { position: absolute; inset: 0; }
@media (min-width: 720px) { .stage.single { aspect-ratio: 4 / 3; } .stage.duo { aspect-ratio: 16 / 9; max-height: 72vh; } .stage.duo .local { width: 22%; } }
.overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; background: rgba(31,20,56,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: center; padding: 1rem; color: #EDE7FA; }
.phase { font-family: var(--display); font-variation-settings: "opsz" 96; font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; margin: .5rem 0 0; }
.countdown { font-family: var(--display); font-weight: 800; font-size: 5.5rem; letter-spacing: -.05em; color: var(--gold-soft); margin: 0; line-height: 1; min-height: 5.5rem; font-variant-numeric: tabular-nums; }
.aura-ring { width: 120px; height: 120px; border-radius: 50%; background: var(--foil); display: none; -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); }
.judging .aura-ring { display: block; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rec-timer { position: absolute; top: .75rem; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--mono); font-size: .95rem; font-weight: 500; letter-spacing: .06em; color: var(--gold-soft); background: rgba(31,20,56,.72); border: 1px solid rgba(255,224,138,.5); border-radius: 999px; padding: .35rem .9rem; font-variant-numeric: tabular-nums; }
.watching { position: absolute; top: .75rem; right: .75rem; z-index: 2; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #EDE7FA; background: rgba(31,20,56,.72); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .35rem .7rem; }
.jury-tally { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; color: var(--gold-soft); margin: .25rem 0 0; min-height: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.jury { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; max-width: 92%; margin-top: .75rem; }
.juror { display: inline-flex; gap: .4rem; align-items: baseline; font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: #EDE7FA; animation: pop .25s cubic-bezier(.2,1.4,.4,1); }
.juror .juror-name { opacity: .75; }
.juror .juror-name a { color: inherit; text-decoration: underline dotted; }
.juror .juror-vote { font-weight: 700; }
.juror.for-me, .juror.for-left { background: var(--violet); border-color: var(--violet); color: #fff; }
.juror.for-them, .juror.for-right { opacity: .8; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.match { margin-top: .25rem; }

/* jury seat (ADR 0017) */
.jury-banner { text-align: center; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 .75rem; }
.stage.jury { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; background: transparent; border: 0; overflow: visible; aspect-ratio: auto; }
.stage.jury .seat { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #0F0824; border: 1px solid var(--rule-strong); }
.stage.jury .seat .tile { position: absolute; inset: 0; }
.stage.jury .tile-label { position: absolute; left: .5rem; bottom: .5rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #EDE7FA; background: rgba(31,20,56,.72); border-radius: 999px; padding: .2rem .55rem; }
.stage.jury .tile-unavailable { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; margin: 0; padding: 1rem; text-align: center; color: rgba(237,231,250,.7); }
.stage.jury .seat.unavailable .tile-unavailable { display: flex; }
.stage.jury .overlay { border-radius: 16px; }
.stage.jury .rec-timer { top: -.35rem; }
.votes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .9rem; }
.vote-col { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.vote-btn { width: 100%; padding: .9rem .6rem; }
.vote-btn.chosen { box-shadow: 0 0 0 3px var(--gold-soft), 0 0 0 6px rgba(255,224,138,.25); }
.vote-status { text-align: center; min-height: 1.2em; }

/* ---------- result ---------- */
.result { text-align: center; padding: 1rem 0 .5rem; }
.result h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.result.won h1 { color: var(--violet); }
.verdict-tally { font-family: var(--display); font-weight: 800; font-size: 4rem; letter-spacing: -.05em; line-height: 1; margin: .75rem 0 0; color: var(--number); font-variant-numeric: tabular-nums; }
.result.lost .verdict-tally { color: var(--fg); opacity: .85; }
.result .jury { margin: .75rem auto 0; }
.result .juror { background: var(--surface); border-color: var(--rule-strong); color: var(--fg); }
.result .juror.for-me { background: var(--violet); border-color: var(--violet); color: #fff; }
.result .juror.for-them { opacity: .8; }
.result .actions { margin-top: 1.75rem; }
.jury-result h1 { font-size: 1.5rem; }

/* ---------- history ---------- */
.history td:first-child { color: var(--fg-soft); white-space: nowrap; font-size: .9rem; }
.history td a { text-decoration: none; font-weight: 600; color: var(--fg); }
.history .w { color: var(--leaf); } .history .l { color: var(--fg-soft); }

/* ---------- admin ---------- */
body.admin .brand { font-size: 1rem; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0; }
.clips video { width: 100%; border-radius: 12px; background: #0F0824; }
.clips figure { margin: 0; } .clips figcaption { font-size: .85rem; margin-top: .3rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pcard, .pcard.rest { transition: none; animation: none !important; transform: rotateX(4deg) rotateY(-8deg); }
  .mini:hover, .btn:hover { transform: none; }
  .live-dot, .pulse, .judging .aura-ring, .juror { animation: none; }
}

/* ---------- extras ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.minis.podium { grid-auto-columns: minmax(104px, 1fr); }
@media (max-width: 480px) { .minis.podium .hd { font-size: .95rem; } .minis.podium .au { font-size: 1.6rem; } }

/* ---------- refinements after the first visual pass ---------- */
body.dark main { width: min(960px, 100% - 2rem); }
body.dark .btn.primary:disabled { background: var(--surface-2); color: var(--fg-soft); border-color: var(--rule); opacity: 1; box-shadow: none; }
.overlay { gap: 0; overflow: hidden; }
.phase { font-size: 1.25rem; }
.countdown { font-size: clamp(2.6rem, 10vmin, 5.5rem); min-height: 1em; }
.aura-ring { width: 84px; height: 84px; }
.jury-tally { font-size: 1.6rem; min-height: 1.6rem; }
body.admin h1 { font-size: 1.9rem; }
body.admin .actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: .6rem; }
body.admin .actions form.button_to, body.admin .actions form.inline { width: auto; max-width: none; }

/* ---------- how to play (the guide) ---------- */
.guide .hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
.guide .hero .grid { align-items: start; }
.glance { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; }
.glance .kicker { margin-bottom: .8rem; }
.glance .small { margin: .25rem 0 0; }
.bar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule-strong); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.bar > div { display: flex; align-items: center; justify-content: center; padding: 0 .5rem; white-space: nowrap; overflow: hidden; border-right: 1px solid rgba(255,255,255,.35); flex: var(--w, 0) 1 0; min-width: 0; }
.bar > div:last-child { border-right: 0; }
.bar .b-wait { flex: 0 0 auto; background: var(--surface-2); color: var(--fg-soft); }
.bar .b-count { background: #C9B6F5; color: var(--ink); }
.bar .b-farm { background: linear-gradient(90deg, var(--violet), var(--grape)); color: #fff; }
.bar .b-jury { background: var(--ink-2); color: #fff; }
.bar .b-win { flex: 0 0 auto; background: var(--gold-soft); color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .bar .b-wait { display: none; } .bar .b-count span { display: none; } }
.legend { list-style: none; padding: 0; margin: .9rem 0 .4rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; color: var(--fg-soft); }
.legend b { font-family: var(--display); font-weight: 800; color: var(--fg); margin-right: .3rem; font-variant-numeric: tabular-nums; }
.define { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; background: var(--ink); color: #EDE7FA; border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.2rem); }
.define .disc { width: 84px; aspect-ratio: 1; border-radius: 50%; background: var(--foil); display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(255,255,255,.15); }
.define .disc svg { width: 80%; height: 80%; }
.define h2 { color: #fff; }
.define p { margin: 0; color: rgba(237,231,250,.8); max-width: 46rem; }
@media (max-width: 560px) { .define { grid-template-columns: 1fr; } }
.split { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.6fr; gap: 3rem; } .split .section-head { position: sticky; top: 84px; margin: 0; } }
.walk { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.walk li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; align-items: start; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 1.1rem 1.2rem 1.15rem; }
.walk .glyph { font-family: var(--display); font-variation-settings: "opsz" 96; font-weight: 800; font-size: 1.7rem; letter-spacing: -.04em; line-height: 1; color: var(--violet); padding-top: .1rem; }
.walk .glyph.foil { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; filter: saturate(1.3) brightness(.8); }
.walk h3 { margin: 0 0 .25rem; }
.walk p { margin: 0; color: var(--fg-soft); }
.walk em { color: var(--fg); font-style: normal; font-weight: 600; }
@media (max-width: 480px) { .walk li { grid-template-columns: 3.4rem 1fr; gap: .8rem; padding: 1rem; } .walk .glyph { font-size: 1.25rem; } }
/* the jury demo */
.jury-demo { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .jury-demo { grid-template-columns: 1fr 1.2fr; gap: 3rem; } .jury-demo .section-head { margin: 0; } }
.demo-box { background: var(--ink); color: #EDE7FA; border-radius: 22px; padding: 1.5rem; display: grid; gap: .8rem; justify-items: center; }
.demo-box .tally { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; font-variant-numeric: tabular-nums; }
.demo-box .tally .n { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--gold-soft); }
.demo-box .tally .n.r { text-align: right; }
.demo-box .tally .label { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: rgba(237,231,250,.75); min-width: 9rem; }
.demo-box .seats { display: flex; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.demo-box .seat { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); transition: background .2s, border-color .2s; }
.demo-box .seat.l { background: var(--violet); border-color: var(--violet); animation: pop .25s cubic-bezier(.2,1.4,.4,1); }
.demo-box .seat.r { background: var(--gold-soft); border-color: var(--gold-soft); animation: pop .25s cubic-bezier(.2,1.4,.4,1); }
.demo-box .jury { margin-top: .25rem; min-height: 2.2rem; }
.demo-box .juror.for-them { background: rgba(255,224,138,.16); border-color: rgba(255,224,138,.5); opacity: 1; }
.demo-box .btn.primary { margin-top: .5rem; background: var(--gold-soft); color: var(--ink); border-color: var(--gold-soft); box-shadow: 0 12px 28px -12px rgba(255,224,138,.6); }
.demo-box .btn.primary:hover { background: #FFE9A8; border-color: #FFE9A8; }
.demo-box .btn.primary:disabled { opacity: .55; }
/* scoring: the card, annotated */
.anatomy { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .anatomy { grid-template-columns: auto 1fr; gap: 3.5rem; } }
.notes { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--rule-strong); }
.note { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.note .tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); background: rgba(109,58,224,.1); border-radius: 999px; padding: .3rem .6rem; justify-self: start; white-space: nowrap; margin-top: .1rem; }
.note p { margin: 0; color: var(--fg-soft); }
.note strong { color: var(--fg); font-weight: 600; }
@media (max-width: 480px) { .note { grid-template-columns: 1fr; gap: .4rem; } }
/* walkovers: the three outcomes */
.outcomes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 720px) { .outcomes { grid-template-columns: repeat(3, 1fr); } }
.outcomes li { background: var(--surface); border: 1px solid var(--rule); border-top: 5px solid var(--leaf); border-radius: 18px; padding: 1.2rem 1.2rem 1.25rem; }
.outcomes li:nth-child(2) { border-top-color: var(--danger); }
.outcomes li:nth-child(3) { border-top-color: var(--grape); }
.outcomes h3 { margin: 0 0 .3rem; }
.outcomes p { margin: 0; color: var(--fg-soft); }
/* safety checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; align-items: start; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: .9rem 1rem; color: var(--fg-soft); }
.checklist svg { width: 26px; height: 26px; stroke: var(--violet); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checklist strong { color: var(--fg); font-weight: 600; }
/* tips as stickers */
.tips .sticker { color: var(--ink-soft); font-size: .95rem; display: block; }
.tips .sticker strong { display: block; font-family: var(--display); font-variation-settings: "opsz" 96; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: .35rem; color: var(--ink); }
.guide .cta { display: grid; justify-items: center; gap: .6rem; text-align: center; }
.guide .cta p { margin: 0; }
