/* Direction: the kit's design doc, taken from weeklyarcade.games' current season theme.
   Dials: ENERGY 2 / RHYTHM 2 / MOTION 1. Identity motif: slanted Anton headline with a teal offset shadow.
   One accent: pink marks the primary action and the "Call" half of headlines; teal marks state. */
@font-face { font-family: "Anton"; src: url("/fonts/Anton-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #07021a; --panel: #12052b; --line: #3a2160; --text: #f6ecff; --muted: #cbb9e8;
  --pink: #ff2a8a; --teal: #19f0e4; --gold: #ffb35c;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Inter", system-ui, sans-serif; }
a { color: var(--teal); }
a, button, summary, label[for] { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: 24px; color: var(--text); text-decoration: none; transform: skewX(-8deg); display: inline-flex; align-items: center; min-height: 44px; }
.brand span { color: var(--teal); margin-left: .28em; }
.site-top nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.site-top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.site-top nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

main { padding: 0 var(--gutter); max-width: 1240px; margin: 0 auto; }
section { padding: clamp(40px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.display { font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; line-height: .95; margin: 0; transform: skewX(-8deg); transform-origin: 0 100%; font-size: clamp(56px, 11vw, 132px); }
.display.sm { font-size: clamp(36px, 6vw, 64px); }
.display .pink { color: var(--pink); text-shadow: 4px 4px 0 var(--teal); }
.display .teal { color: var(--teal); text-shadow: 4px 4px 0 var(--pink); }
#h1 .pink { text-shadow: 0 0 28px rgba(255, 42, 138, .45), 5px 5px 0 var(--teal); } /* the only glow: the page's focal point */
.small-h { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.lede { font-size: clamp(17px, 2vw, 20px); max-width: 36em; color: var(--text); margin: 28px 0 22px; }
.lede b { color: var(--gold); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--teal); padding: 10px 16px; font-weight: 700; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex: none; }
.status.locked { border-color: var(--gold); } .status.locked .dot { background: var(--gold); }
.status.wait { border-color: var(--line); } .status.wait .dot { background: var(--muted); }
.times { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

.now { background: var(--panel); border: 1px solid var(--line); padding: 22px; }
ol.top { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; border: 0; }
ol.top li { display: grid; grid-template-columns: 44px 64px 1fr; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
ol.top li:last-child { border-bottom: 0; }
ol.top .rank { font-family: "Anton", sans-serif; font-size: 28px; color: var(--muted); transform: skewX(-8deg); }
ol.top li.first .rank { color: var(--gold); font-size: 36px; }
ol.top img { width: 64px; height: 46px; object-fit: cover; display: block; }
ol.top .name { font-weight: 700; }
.snap { color: var(--muted); font-size: 13px; margin: 14px 0 0; word-break: break-all; }
.skeleton, .empty { color: var(--muted); }

.picker-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.note { color: var(--muted); margin: 14px 0 22px; max-width: 60em; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.game { position: relative; background: var(--panel); border: 2px solid var(--line); padding: 0 0 10px; color: var(--text); font: inherit; text-align: left; min-height: 44px; }
.game img { width: 100%; height: auto; aspect-ratio: 400 / 286; object-fit: cover; display: block; }
.game span { display: block; padding: 8px 10px 0; font-weight: 700; font-size: 14px; line-height: 1.3; }
.game small { display: block; padding: 2px 10px 0; color: var(--muted); font-size: 12px; }
.game:hover:not(:disabled) { border-color: var(--teal); }
.game[aria-pressed="true"] { border-color: var(--pink); box-shadow: 5px 5px 0 var(--teal); }
.game[aria-pressed="true"]::after { content: "Your pick"; position: absolute; top: 8px; left: 8px; background: var(--pink); color: #12001f; font-weight: 800; font-size: 12px; padding: 3px 8px; }
.game:disabled { cursor: not-allowed; opacity: .55; }
.pickbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); }
#chosen { margin: 0; font-weight: 600; }
.msg { min-height: 1.5em; margin: 10px 0 0; font-weight: 600; }
.msg.ok { color: var(--teal); } .msg.bad { color: #ff9cc6; }

.btn { font: 700 16px "Inter", sans-serif; padding: 12px 22px; min-height: 48px; border: 2px solid transparent; }
.btn.primary { background: var(--pink); color: #12001f; }
.btn.primary:hover:not(:disabled) { background: #ff5aa6; }
.btn.primary:active:not(:disabled) { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--teal); }
.btn.ghost:hover:not(:disabled) { background: rgba(25, 240, 228, .12); }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.addr { font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--teal); }

.burn { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.burn-copy p { max-width: 38em; margin: 22px 0 0; }
.burn-total { border-left: 4px solid var(--pink); padding-left: 18px; }
.burn-total strong { display: block; font-family: "Anton", sans-serif; font-size: clamp(40px, 6vw, 72px); line-height: 1; transform: skewX(-8deg); transform-origin: left; color: var(--gold); word-break: break-all; }
.burn .table-wrap { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 700; }
td.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

.rules ol { max-width: 52em; padding-left: 1.3em; margin: 24px 0 0; }
.rules li { margin: 0 0 12px; }
.rules b { color: var(--gold); }
.archive .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-top: 24px; }
.snaps { list-style: none; padding: 0; margin: 0; }
.snaps li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.snaps .k { color: var(--teal); font-weight: 700; text-transform: uppercase; font-size: 12px; margin-right: 6px; }

.foot { padding: 32px var(--gutter) 48px; color: var(--muted); font-size: 14px; max-width: 1240px; margin: 0 auto; }
.foot p:empty { display: none; }

@media (max-width: 860px) {
  .hero, .burn, .archive .cols { grid-template-columns: 1fr; }
  table { min-width: 460px; }
}
