/* PlayLaxJam.com — Chrome '86. Tokens mirror the LAX JAM design system. */
@font-face { font-family: "Anton"; src: url("/assets/fonts/Anton-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #07060f; --night: #1b1238; --neon: #ff3ea5; --on-neon: #07060f; --neon-soft: #ffc2e6;
  --sky: #8fd3ff; --on-sky: #07060f; --violet: #9b7bff; --frost: #f4f0ff; --muted: #b3a9cc; --rule: #2a2344;
  --gold: #ffe45c; --heat: #ff8a3d; --turf: #238146; --turf-deep: #176d3c;
  --chrome: linear-gradient(180deg, #f2fbff 0%, #8fd3ff 50%, #2b3b93 50%, #9b7bff 75%, #ff7ad9 100%);
  --sun: linear-gradient(180deg, #ffe45c 0%, #ff8a3d 60%, #ff3ea5 100%);
  --drop: 0 6px 0 #020205;
  --display: Anton, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --condensed: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: Barlow, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--frost); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, canvas { display: block; max-width: 100%; }
a { color: var(--neon); }
:focus-visible { outline: 4px solid var(--sky); outline-offset: 3px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--neon); color: var(--on-neon); padding: 8px 14px; font-family: var(--condensed); font-weight: 700; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow { margin: 0; font-family: var(--condensed); font-weight: 700; font-size: 14px; line-height: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.eyebrow--neon { color: var(--neon); }
.at { position: relative; margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .005em;
  text-wrap: balance; color: transparent; padding: .06em .1em .12em; }
.at::before, .at::after { content: attr(data-text); position: absolute; inset: 0; padding: inherit; pointer-events: none; }
.at::before { color: var(--ink); -webkit-text-stroke: .2em var(--ink); filter: drop-shadow(4px 6px 0 #020205); }
/* the gradient repeats once per line (line box = --lh), so every line gets its own chrome horizon */
.at { --lh: .92em; }
.at::after { color: transparent; background-image: var(--chrome); -webkit-background-clip: text; background-clip: text;
  background-origin: content-box; background-size: 100% var(--lh); background-repeat: repeat-y; }
.at--sun::after { background-image: var(--sun); }
.at--frost::after { background-image: linear-gradient(var(--frost), var(--frost)); }
.at.shine::after { background-image: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.85) 50%, transparent 60%), var(--chrome);
  background-size: 250% 100%, 100% var(--lh); background-repeat: no-repeat, repeat-y; background-position: 150% 0, 0 0; animation: shine 1.6s ease-out 1; }
.at--sun.shine::after { background-image: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.8) 50%, transparent 60%), var(--sun); }
@keyframes shine { to { background-position: -60% 0, 0 0; } }
h2.at { font-size: clamp(42px, 6.2vw, 84px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--frost); margin: 0; max-width: 34em; }
.muted { color: var(--muted); }
.cond { font-family: var(--condensed); font-weight: 700; }

/* ---------- buttons, tags, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 400; font-size: 22px;
  line-height: 1; letter-spacing: .02em; text-transform: uppercase; min-height: 56px; padding: 12px 22px; border: 3px solid var(--ink);
  border-radius: 14px; background: var(--neon); color: var(--on-neon); box-shadow: var(--drop); text-decoration: none; cursor: pointer;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out, background-color 80ms; }
.btn:hover { background: #ff7ad9; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #020205; }
.btn--panel { background: var(--ink); color: var(--frost); border-color: var(--sky); box-shadow: none; }
.btn--panel:hover { background: var(--night); }
.btn--sm { font-size: 16px; min-height: 40px; padding: 8px 16px; border-width: 2px; border-radius: 8px; box-shadow: 0 3px 0 #020205; }
.btn[disabled] { opacity: .6; cursor: progress; }
.tag { display: inline-block; font-family: var(--condensed); font-weight: 700; font-size: 14px; line-height: 16px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px; background: var(--neon); color: var(--on-neon); }
.tag--sky { background: var(--sky); color: var(--on-sky); }
.tag--case { text-transform: none; letter-spacing: .06em; font-size: 15px; }
.tag--gold { background: var(--gold); color: var(--ink); }
.tag--outline { background: transparent; color: var(--sky); box-shadow: inset 0 0 0 2px currentColor; }
.sticker { display: inline-block; font-family: var(--display); text-transform: uppercase; line-height: .95; padding: 10px 14px; border: 4px solid var(--ink);
  border-radius: 6px; box-shadow: var(--drop); background: var(--gold); color: var(--ink); transform: rotate(-4deg); }

.signup { display: grid; gap: 10px; max-width: 520px; }
.signup__row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"] { flex: 1 1 240px; min-width: 0; min-height: 56px; padding: 0 18px; font: 600 18px/1 var(--body); color: var(--frost);
  background: rgba(7, 6, 15, .82); border: 3px solid var(--sky); border-radius: 14px; }
.signup input[type="email"]::placeholder { color: #8a82a6; }
.signup input[type="email"]:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 4px rgba(255, 62, 165, .25); }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup__note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.signup__note a { color: var(--sky); }
.signup__status { margin: 0; min-height: 1.4em; font-family: var(--condensed); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.signup__status.ok { color: var(--gold); }
.signup__status.err { color: #ff8fb8; }
.signup.done .signup__row, .signup.done .signup__note { display: none; }

/* ---------- nav ---------- */
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 40; transition: background-color .25s, border-color .25s; border-bottom: 3px solid transparent; }
.nav.solid { background: rgba(7, 6, 15, .92); border-bottom-color: var(--neon); backdrop-filter: blur(8px); }
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nav__logo img { height: 60px; width: auto; filter: drop-shadow(0 3px 0 #020205); }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav__links a { display: block; padding: 10px 12px; font-family: var(--condensed); font-weight: 700; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--frost); text-decoration: none; }
.nav__links a:hover { color: var(--sky); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(620px, 94vh, 920px); overflow: hidden; background: var(--ink); isolation: isolate; }
.hero__stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 6, 15, .9) 0%, rgba(7, 6, 15, .62) 34%, rgba(7, 6, 15, 0) 58%),
              linear-gradient(0deg, rgba(7, 6, 15, .55) 0%, rgba(7, 6, 15, 0) 22%),
              linear-gradient(180deg, rgba(7, 6, 15, .75) 0%, rgba(7, 6, 15, 0) 18%); }
.scan { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .18; mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.55) 0 1px, transparent 1px 3px); }
.hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 150px; padding-bottom: 64px; max-width: min(620px, 46vw); }
.hero h1.at { font-size: clamp(52px, 7vw, 104px); }
.hero__lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; margin: 0; max-width: 32em; text-shadow: 0 2px 8px rgba(7, 6, 15, .9); }
.bug { position: absolute; z-index: 2; top: 104px; right: var(--gutter); display: inline-flex; align-items: stretch; height: 48px; background: var(--ink);
  border: 3px solid var(--neon); border-radius: 12px; overflow: hidden; color: var(--frost); box-shadow: var(--drop); font-variant-numeric: tabular-nums; }
.bug__t { display: flex; align-items: center; gap: 9px; padding: 0 12px 0 0; }
.bug__t--away { padding: 0 0 0 12px; border-left: 2px solid var(--night); }
.bug__chip { width: 9px; align-self: stretch; }
.bug__code { font-family: var(--condensed); font-weight: 700; font-size: 20px; letter-spacing: .06em; }
.bug__score { font-family: var(--display); font-size: 28px; min-width: 1.1em; text-align: center; transition: color .3s; }
.bug__score.pop { animation: pop .6s ease-out; color: var(--gold); }
@keyframes pop { 0% { transform: scale(1.8); } 100% { transform: scale(1); } }
.bug__clock { display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--night); }
.bug__time { font-family: var(--display); font-size: 22px; }
.bug__period { font-family: var(--condensed); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--sky); }
.scroll-cue { position: absolute; z-index: 2; bottom: 18px; left: 50%; transform: translateX(-50%); font-family: var(--condensed); font-weight: 700; font-size: 12px;
  letter-spacing: .24em; color: var(--muted); text-decoration: none; text-transform: uppercase; }

/* ---------- ticker ---------- */
.ticker { position: relative; overflow: hidden; background: var(--neon); color: var(--on-neon); border-block: 4px solid var(--ink); }
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker__track span { font-family: var(--display); font-size: clamp(22px, 2.6vw, 32px); text-transform: uppercase; white-space: nowrap; padding: 12px 28px; }
.ticker__track span::after { content: "★"; margin-left: 56px; font-size: .6em; vertical-align: .25em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.sec__head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec__head p { margin: 0; font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); max-width: 36em; }
.center { text-align: center; margin-inline: auto; justify-items: center; }
.center p { margin-inline: auto; }

.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.feature--flip .screen { order: 2; }
.feature__copy { display: grid; gap: 16px; align-content: start; }
.feature__copy h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 4.4vw, 60px); line-height: .95; }
.feature__copy p { margin: 0; color: var(--muted); max-width: 30em; }
.feature__copy .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.screen { position: relative; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--night);
  box-shadow: 0 0 0 2px var(--neon), 0 0 32px rgba(255, 62, 165, .28), 0 18px 0 -6px #020205; }
.screen canvas { width: 100%; aspect-ratio: 16 / 10; }
.screen .scan { opacity: .12; }
.l3 { position: absolute; left: 14px; bottom: 14px; display: inline-flex; flex-direction: column; align-items: flex-start; pointer-events: none; }
.l3__eyebrow { font-family: var(--condensed); font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; background: var(--neon); color: var(--on-neon); padding: 5px 9px; }
.l3__bar { background: rgba(7, 6, 15, .92); padding: 6px 12px 6px 9px; border-bottom: 3px solid var(--sky); font-family: var(--display); font-size: 22px; line-height: 1; text-transform: uppercase; }
.rec { position: absolute; top: 12px; right: 14px; font-family: var(--condensed); font-weight: 700; font-size: 12px; letter-spacing: .18em; color: var(--frost); opacity: .8; pointer-events: none; }
.rec::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); margin-right: 7px; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.runners { height: 110px; width: 100%; margin-block: 24px -24px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 3px solid var(--rule); }
.stat { padding: 28px clamp(12px, 2vw, 28px); border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; }
.stat__v { font-family: var(--display); font-size: clamp(48px, 6vw, 80px); line-height: .9; color: var(--neon); font-variant-numeric: tabular-nums; }
.stat:nth-child(2) .stat__v { color: var(--sky); }
.stat:nth-child(3) .stat__v { color: var(--gold); }
.stat__l { margin-top: 8px; font-family: var(--condensed); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.stat__n { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* faceoff */
.faceoff { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.move { display: grid; gap: 6px; justify-items: center; padding: 16px 8px 14px; background: var(--ink); color: var(--frost); border: 3px solid var(--sky); border-radius: 14px;
  cursor: pointer; font: inherit; transition: transform 80ms, background-color 120ms; }
.move:hover { background: var(--night); }
.move:active { transform: translateY(3px); }
.move b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: .02em; }
.move small { font-family: var(--condensed); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.move.mine { background: var(--sky); color: var(--on-sky); }
.move.mine small { color: var(--ink); }
.fo-result { display: grid; gap: 6px; min-height: 92px; padding: 16px 18px; border: 2px solid var(--rule); border-radius: 12px; background: rgba(27, 18, 56, .5); }
.fo-result b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; }
.fo-result span { color: var(--muted); font-size: 16px; }
.fo-score { font-family: var(--condensed); font-weight: 700; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }

/* nations */
.nations { display: grid; gap: 22px; }
.nations .screen canvas { aspect-ratio: 21 / 9; }
.nation-name { position: absolute; left: clamp(16px, 3vw, 36px); top: clamp(14px, 3vw, 30px); font-size: clamp(34px, 5vw, 72px); pointer-events: none; }
.flags { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
.flag { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px 0 0; background: var(--night); border: 2px solid var(--rule); border-radius: 10px;
  color: var(--frost); cursor: pointer; overflow: hidden; font: 700 17px/1 var(--condensed); letter-spacing: .08em; text-align: left; }
.flag i { width: 12px; align-self: stretch; flex: none; }
.flag span { display: grid; gap: 2px; }
.flag small { font: 600 12px/1.1 var(--body); letter-spacing: 0; color: var(--muted); }
.flag[aria-pressed="true"] { border-color: var(--neon); background: #2a1640; }
.flag:hover { border-color: var(--sky); }

/* cup */
.cup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.modes { display: grid; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.modes li { display: grid; gap: 2px; padding: 14px 16px; border-left: 4px solid var(--gold); background: rgba(27, 18, 56, .55); }
.modes li:nth-child(2) { border-left-color: var(--sky); }
.modes li:nth-child(3) { border-left-color: var(--neon); }
.modes b { font-family: var(--display); font-weight: 400; font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.modes span { color: var(--muted); font-size: 16px; }

/* signup band */
.join { position: relative; overflow: hidden; background: var(--night); border-top: 4px solid var(--neon); }
.join::before { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none;
  background: linear-gradient(transparent, rgba(7, 6, 15, .6)), repeating-linear-gradient(90deg, rgba(155, 123, 255, .25) 0 2px, transparent 2px 80px); }
.join .wrap { position: relative; display: grid; justify-items: center; text-align: center; gap: 22px; }
.join .signup { width: 100%; }
.join .signup__row { justify-content: center; }

/* footer */
.foot { border-top: 1px solid var(--rule); padding-block: 40px 56px; }
.foot .wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: start; }
.foot img { height: 64px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { font-family: var(--condensed); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--frost); text-decoration: none; }
.foot nav a:hover { color: var(--sky); }
.foot p { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 70ch; }

/* legal pages */
.legal-hero { padding: 150px 0 40px; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, var(--night), var(--ink)); }
.legal-hero h1.at { font-size: clamp(46px, 7vw, 88px); }
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 48px 96px; }
.legal nav { position: sticky; top: 96px; align-self: start; display: grid; gap: 6px; font-family: var(--condensed); font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.legal nav a { color: var(--muted); text-decoration: none; }
.legal nav a:hover { color: var(--sky); }
.legal article { max-width: 70ch; }
.legal article h2 { margin: 48px 0 12px; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; text-transform: uppercase; color: var(--frost); scroll-margin-top: 96px; }
.legal article h3 { margin: 28px 0 8px; font-family: var(--condensed); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.legal article p, .legal article li { color: #dcd6ee; }
.legal article ul { padding-left: 22px; }
.legal article li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.legal th { font-family: var(--condensed); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--sky); }
.table-wrap { overflow-x: auto; }
.callout { padding: 16px 18px; border-left: 4px solid var(--sky); background: rgba(27, 18, 56, .6); border-radius: 0 10px 10px 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero__stage { position: relative; height: 62vh; min-height: 380px; max-height: 560px; }
  .hero::before { background: linear-gradient(180deg, rgba(7, 6, 15, .7) 0%, rgba(7, 6, 15, 0) 20%); height: 62vh; min-height: 380px; max-height: 560px; }
  .scan { height: 62vh; min-height: 380px; max-height: 560px; }
  .hero__copy { padding-top: 28px; padding-bottom: 56px; max-width: none; }
  .hero h1.at { font-size: clamp(44px, 11vw, 80px); }
  .bug { top: 82px; right: auto; left: var(--gutter); transform: scale(.75); transform-origin: left top; }
  .feature, .feature--flip, .faceoff, .cup { grid-template-columns: 1fr; }
  .feature--flip .screen { order: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .legal nav { position: static; }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav__logo img { height: 42px; }
  .nav .btn { font-size: 14px; padding: 6px 12px; min-height: 36px; }
  .moves { gap: 8px; }
  .move b { font-size: 21px; }
  .nations .screen canvas { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .at.shine::after { animation: none; }
  .rec::before { animation: none; }
  .btn, .move { transition: none; }
}
