/* Layout: the arena at night. Full-bleed painted art bands alternate with
   night-panel content; the run clock (amber LED) is the one loud detail.
   Single dark look by choice: it is the game's own palette. */
:root {
  color-scheme: dark;
  --night-950: #0A111D;
  --night-900: #0F1A2B;
  --night-800: #16243A;
  --night-700: #1E3150;
  --night-600: #2E4A73;
  --line-strong: #9A9079;
  --navy-500: #2457A6;
  --navy-300: #8DB2EC;
  --cream-50: #F6EEDC;
  --cream-300: #C9BEA6;
  --cream-500: #9A9079;
  --gold-400: #F0BE4E;
  --gold-600: #B98522;
  --on-gold: #24170A;
  --red-500: #C8352C;
  --rope-300: #DCC08E;
  --led: #FFB23F;
  --led-ghost: #3A2A12;
  --scrim: rgba(5, 9, 16, 0.72);

  --f-display: "Alfa Slab One", Rockwell, Georgia, serif;
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: Barlow, system-ui, sans-serif;
  --f-clock: "DSEG7 Classic", ui-monospace, monospace;

  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;
  --lip: inset 0 -4px 0 rgba(0, 0, 0, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
}

/* @fonts-local */
@font-face { font-family: "Alfa Slab One"; src: url("assets/fonts/AlfaSlabOne-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
/* @fonts-end */
@font-face { font-family: "DSEG7 Classic"; src: url("assets/fonts/DSEG7Classic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--night-900);
  color: var(--cream-50);
  font: 400 1.125rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--cream-50); outline-offset: 2px; box-shadow: 0 0 0 2px var(--night-950); }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--cream-50); color: var(--night-950); padding: 8px 12px; z-index: 50; border-radius: var(--r-md); }
.skip:focus { left: 16px; }

/* Type roles */
.eyebrow {
  font: 600 1rem/1.2 var(--f-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rope-300);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: repeating-linear-gradient(115deg, var(--rope-300) 0 4px, #a88b5a 4px 6px); }
h2 { font: 400 clamp(2.1rem, 5vw, 3.4rem)/1.05 var(--f-display); letter-spacing: 0.005em; }
.title-md { font: 700 clamp(1.5rem, 2.6vw, 1.85rem)/1.15 var(--f-label); }
.body-lg { font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.55; font-weight: 500; color: var(--cream-50); max-width: 34em; }
.meta { color: var(--cream-300); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 24px;
  font: 700 1.25rem/1 var(--f-label); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--r-md);
  transition: transform 90ms var(--ease-out), box-shadow 90ms var(--ease-out);
}
.btn-gold { background: var(--gold-400); color: var(--on-gold); box-shadow: var(--lip); }
.btn-gold:hover { background: #F5C962; }
.btn-gold:active { background: var(--gold-600); box-shadow: none; transform: translateY(2px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 1.05rem; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: inline-block; border-radius: 9px; line-height: 0; transition: transform .12s ease, opacity .12s ease; }
.store-badge img { height: 52px; width: auto; display: block; }
.store-badge:hover { opacity: .88; }
.store-badge:active { transform: translateY(2px); }
.store-badge:focus-visible { outline: 2px solid var(--cream-50); outline-offset: 3px; }
.store {
  display: grid; gap: 2px; align-content: center;
  min-width: 176px; min-height: 60px; padding: 8px 20px;
  background: var(--night-950); color: var(--cream-50);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  text-decoration: none; box-shadow: var(--lip);
  transition: border-color 160ms var(--ease-out), transform 90ms var(--ease-out);
}
.store small { font: 600 0.8rem/1 var(--f-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-300); }
.store span { font: 700 1.5rem/1 var(--f-label); letter-spacing: 0.02em; }
.store:hover { border-color: var(--cream-50); }
.store:active { transform: translateY(2px); box-shadow: none; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--night-950); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(10, 17, 29, 0.92);
  border-bottom: 1px solid rgba(46, 74, 115, 0.6);
  backdrop-filter: blur(8px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand-name { font: 400 1.2rem/1 var(--f-display); letter-spacing: 0.01em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  font: 600 1.1rem/1 var(--f-label); letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; color: var(--cream-300); padding: 12px 0;
}
.site-nav a:not(.btn):hover { color: var(--cream-50); }
.nav-toggle {
  display: none; min-height: 44px; padding: 0 16px;
  background: transparent; color: var(--cream-50);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  font: 600 1rem/1 var(--f-label); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night-950); border-bottom: 1px solid var(--night-600);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--night-700); }
  .site-nav .btn { margin-top: 16px; }
}
@media (max-width: 420px) { .brand-name { display: none; } }

/* Hero */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(86vh, 820px); overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,17,29,0.55) 0%, rgba(10,17,29,0) 28%),
    linear-gradient(0deg, var(--night-900) 0%, rgba(15,26,43,0.85) 22%, rgba(15,26,43,0) 60%),
    linear-gradient(90deg, rgba(10,17,29,0.7) 0%, rgba(10,17,29,0) 55%);
}
.hero-body { width: 100%; padding-block: 160px 72px; display: grid; gap: 20px; justify-items: start; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-sm);
  background: var(--night-950); border: 1px solid var(--night-600);
  font: 600 0.95rem/1 var(--f-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-300);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 3px rgba(200, 53, 44, 0.25); }
.hero h1 {
  font: 400 clamp(3.2rem, 10vw, 7.5rem)/0.92 var(--f-display);
  letter-spacing: -0.005em;
  text-shadow: 0 4px 0 rgba(10, 17, 29, 0.55), 0 12px 40px rgba(10, 17, 29, 0.6);
}
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; font-weight: 500; max-width: 32em; text-shadow: 0 1px 12px rgba(10,17,29,0.8); }
.hero .stores { margin-top: 8px; }

/* Bands */
.band { padding-block: clamp(72px, 10vw, 128px); }
.band-night { background: var(--night-900); }
.band-deep { background: var(--night-950); }

/* How it plays */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.split-text { display: grid; gap: 20px; min-width: 0; }
.split-art img { border-radius: var(--r-lg); box-shadow: 0 10px 28px rgba(0,0,0,0.5); }

.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-block: 16px; border-top: 1px solid var(--night-600); }
.steps li:last-child { border-bottom: 1px solid var(--night-600); }
.step-n {
  width: 44px; height: 44px; display: grid; place-items: center;
  font: 400 1.35rem/1 var(--f-display); color: var(--night-950);
  background: var(--rope-300); border-radius: var(--r-sm);
}
.steps h3 { font: 700 1.4rem/1.15 var(--f-label); letter-spacing: 0.02em; }
.steps p { color: var(--cream-300); margin-top: 4px; }

.cattle { margin-top: clamp(64px, 8vw, 104px); display: grid; gap: 28px; }
.cattle-head { display: grid; gap: 8px; max-width: 40em; }
.levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .levels { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.level { background: var(--night-800); border-radius: var(--r-md); padding: 24px; display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--navy-500); }
.level h4 { font: 400 1.9rem/1 var(--f-display); }
.level p { color: var(--cream-300); }
.meter { display: flex; gap: 6px; }
.meter i { width: 28px; height: 8px; border-radius: 999px; background: var(--night-600); }
.meter i.on { background: var(--rope-300); }

.in-game { margin-top: clamp(56px, 7vw, 88px); }
.screen { max-width: 900px; margin-inline: auto; display: grid; gap: 14px; }
.screen img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 10px solid var(--night-950); border-radius: 28px;
  box-shadow: 0 0 0 1.5px var(--night-600), 0 10px 28px rgba(0,0,0,0.5);
}
.screen figcaption { text-align: center; font: 600 1rem/1.3 var(--f-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-300); }

/* Jackpots */
.jackpots { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .jackpots { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }
.jackpot-art { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.jackpot-art > img:first-child { border-radius: var(--r-lg); box-shadow: 0 10px 28px rgba(0,0,0,0.5); }
.buckle { position: absolute; width: 46%; right: -10%; bottom: -8%; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.6)); }
.jackpot-text { display: grid; gap: 20px; min-width: 0; }

.scoreboard {
  margin-top: 12px; background: var(--night-950);
  border: 1.5px solid var(--night-600); border-radius: var(--r-lg);
  padding: 20px; display: grid; gap: 10px;
  box-shadow: inset 0 0 0 6px #070c15;
}
.sb-row { display: grid; grid-template-columns: repeat(4, 1fr) 1.25fr; gap: 8px; }
.sb-labels span { font: 600 0.9rem/1 var(--f-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-300); text-align: right; }
.sb-total-h { color: var(--led) !important; }
.led {
  position: relative; display: block; text-align: right;
  font: 700 clamp(1rem, 2.6vw, 1.6rem)/1 var(--f-clock); color: var(--led);
  padding: 12px 8px; background: #070c15; border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums;
}
.led b { position: absolute; right: 8px; top: 12px; color: var(--led-ghost); font-weight: 700; }
.led em { position: relative; font-style: normal; text-shadow: 0 0 10px rgba(255, 178, 63, 0.45); }
.led-total { font-size: clamp(1.2rem, 3.2vw, 2rem); }
.led-total b { top: 12px; }
.sb-note { font: 600 0.8rem/1 var(--f-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-500); text-align: right; }
@media (max-width: 520px) {
  .scoreboard { padding: 14px; }
  .sb-row { grid-template-columns: repeat(2, 1fr); }
  .sb-labels { display: none; }
  .led::before { content: attr(data-label); position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font: 600 0.8rem/1 var(--f-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-300); }
  .led-total { grid-column: 1 / -1; }
}

/* Match roping + panels */
.match { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .match { grid-template-columns: 1.3fr 1fr; gap: 64px; } }
.match-art img { border-radius: var(--r-lg); box-shadow: 0 10px 28px rgba(0,0,0,0.5); }
.match-text { display: grid; gap: 20px; min-width: 0; }

.duo { margin-top: clamp(48px, 6vw, 72px); display: grid; gap: 16px; }
@media (min-width: 720px) { .duo { grid-template-columns: 1fr 1fr; gap: 24px; } }
.panel { background: var(--night-800); border-radius: var(--r-md); padding: 28px; display: grid; gap: 12px; align-content: start; }
.panel p:not(.eyebrow) { color: var(--cream-300); }

/* Socials */
#follow h2 { margin-top: 16px; max-width: 16em; }
.socials { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.socials a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  min-height: 72px; padding: 20px 22px;
  background: var(--night-800); border: 1.5px solid var(--night-700); border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}
.socials a:hover { border-color: var(--rope-300); background: var(--night-700); }
.s-name { font: 700 1.5rem/1 var(--f-label); letter-spacing: 0.03em; text-transform: uppercase; }
.s-handle { color: var(--navy-300); font-weight: 500; overflow-wrap: anywhere; }

/* Download */
.download { position: relative; isolation: isolate; overflow: hidden; text-align: center; }
.download-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; z-index: -2; }
.download::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night-950) 0%, rgba(10,17,29,0.55) 40%, rgba(10,17,29,0.25) 70%, rgba(10,17,29,0.75) 100%); }
.download-body { padding-block: clamp(80px, 11vw, 140px) clamp(140px, 18vw, 240px); display: grid; gap: 20px; justify-items: center; }
.download-badge { width: 140px; height: 140px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6)); }
.download h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); text-shadow: 0 4px 24px rgba(10,17,29,0.7); }
.download .body-lg { text-shadow: 0 1px 12px rgba(10,17,29,0.9); }
.stores-center { justify-content: center; }

/* Footer */
.site-footer { background: var(--night-950); border-top: 1px solid var(--night-700); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 28px; color: var(--cream-500); font-size: 0.95rem; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-row a { text-decoration: none; color: var(--cream-300); }
.footer-row a:hover { color: var(--cream-50); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Inner pages ---------- */
.site-nav a[aria-current="page"] { color: var(--cream-50); box-shadow: inset 0 -3px 0 var(--rope-300); }
.page-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(340px, 46vh, 480px); overflow: hidden; }
.page-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--night-900) 0%, rgba(15,26,43,0.8) 35%, rgba(10,17,29,0.35) 100%); }
.page-hero-body { width: 100%; padding-block: 120px 48px; display: grid; gap: 16px; justify-items: start; }
.page-hero h1 { font: 400 clamp(2.6rem, 7.5vw, 5.2rem)/0.95 var(--f-display); text-shadow: 0 4px 24px rgba(10,17,29,0.7); }

.split-top { align-items: start; }
.split-side { display: grid; gap: 24px; justify-items: center; min-width: 0; }
@media (min-width: 900px) { .split-side { position: sticky; top: 110px; } }
.side-buckle { width: min(260px, 70%); filter: drop-shadow(0 10px 18px rgba(0,0,0,0.6)); }
.prose-block { display: grid; gap: 20px; max-width: 760px; }
.prose-block .btn { justify-self: start; }

.link-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.link-row a { color: var(--navy-300); font: 600 1.1rem/1.2 var(--f-label); letter-spacing: 0.05em; text-transform: uppercase; text-underline-offset: 4px; }
.link-row a::after { content: " →"; }
.link-row a:hover { color: var(--cream-50); }

/* Owner-to-fill markers (draft only: remove once filled) */
.need {
  display: inline; padding: 1px 6px; border-radius: var(--r-sm);
  border: 1.5px dashed var(--navy-300); color: var(--navy-300);
  font: 600 0.95em/1.5 var(--f-label); letter-spacing: 0.02em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.need::before { content: "To fill: "; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85em; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--night-600); }
.faq details { border-bottom: 1px solid var(--night-600); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 20px; font: 700 1.35rem/1.2 var(--f-label); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--f-display); color: var(--rope-300); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--cream-300); max-width: 40em; }
.faq a { color: var(--navy-300); }

/* Leaderboard */
.board-wrap { display: grid; gap: 20px; }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.segment { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 3px; background: var(--night-950); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); }
.segment button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: transparent; color: var(--cream-300);
  font: 600 1.05rem/1 var(--f-label); letter-spacing: 0.05em; text-transform: uppercase;
}
.segment button[aria-pressed="true"] { background: var(--navy-500); color: var(--cream-50); }
.board { overflow-x: auto; background: var(--night-800); border-radius: var(--r-md); }
.board table { width: 100%; border-collapse: collapse; min-width: 480px; }
.board th { text-align: left; padding: 14px 16px; font: 600 0.95rem/1 var(--f-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-300); border-bottom: 1px solid var(--night-600); }
.board td { padding: 14px 16px; border-bottom: 1px solid var(--night-700); font-variant-numeric: tabular-nums; }
.board tbody tr:nth-child(odd):not(.board-empty) { background: rgba(30, 49, 80, 0.45); }
.board .c-rank { width: 64px; }
.board .c-time { text-align: right; width: 120px; }
.board td.c-rank { font: 400 1.25rem/1 var(--f-display); color: var(--rope-300); }
.board td.c-time { font: 700 1.3rem/1 var(--f-label); color: var(--led); }
.board td.c-detail { color: var(--cream-300); }
.board .t-name { font-weight: 500; }
.board-empty td { padding: 40px 24px; text-align: center; color: var(--cream-300); line-height: 1.8; }
.board-empty strong { display: block; color: var(--cream-50); font: 700 1.4rem/1.3 var(--f-label); }
.board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.sample-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: var(--r-sm); background: var(--night-950); color: var(--cream-500); font: 600 0.8rem/1.4 var(--f-label); letter-spacing: 0.1em; text-transform: uppercase; }
.btn-ghost {
  min-height: 44px; padding: 0 16px; cursor: pointer;
  background: transparent; color: var(--cream-50);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  font: 600 1rem/1 var(--f-label); letter-spacing: 0.06em; text-transform: uppercase;
}
.btn-ghost:hover { border-color: var(--cream-50); }

/* Cashout form */
.form { gap: 18px; padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 8px; }
.field label { font: 600 1.1rem/1.2 var(--f-label); letter-spacing: 0.03em; }
.optional { color: var(--cream-500); font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--night-700); color: var(--cream-50);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  font: 400 1.1rem/1.4 var(--f-body);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--cream-50); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: #F2786D; }
.field.check { grid-template-columns: 24px 1fr; align-items: start; gap: 12px; }
.field.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--gold-400); }
.field.check label { font: 500 1rem/1.5 var(--f-body); }
.hint { font-size: 0.95rem; color: var(--cream-300); }
.warn { font-size: 0.95rem; color: var(--cream-300); padding-left: 12px; border-left: 3px solid var(--line-strong); }
.form-error { color: #F2786D; font-weight: 500; background: #3B1513; padding: 10px 14px; border-radius: var(--r-md); }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.sent { display: grid; gap: 12px; padding-top: 8px; border-top: 1px solid var(--night-600); }
.sent pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--night-950); padding: 14px; border-radius: var(--r-md); font: 0.95rem/1.5 ui-monospace, Menlo, monospace; color: var(--cream-300); }
.sent .btn-ghost { justify-self: start; }

/* Footer grid */
.footer-grid { display: grid; gap: 24px; padding-block: 36px; color: var(--cream-500); font-size: 0.95rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.6fr; align-items: start; } }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 56px; height: 56px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-grid a { text-decoration: none; color: var(--cream-300); }
.footer-grid a:hover { color: var(--cream-50); text-decoration: underline; }

/* ---------- Motion layer (GSAP drives it; everything is complete without it) ---------- */
.hero h1 .w { display: inline-block; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-body { position: relative; z-index: 1; }

.run-cam { position: relative; perspective: 1200px; }
.run-cam .cam { overflow: hidden; border-radius: var(--r-lg); box-shadow: 0 10px 28px rgba(0,0,0,0.5); }
.split-art.run-cam img { border-radius: 0; box-shadow: none; transform-origin: 72% 38%; }
.run-hud { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; pointer-events: none; }
.run-clock { font-size: clamp(1.5rem, 3vw, 2.4rem); padding: 10px 14px; background: rgba(7, 12, 21, 0.88); }
.run-clock b { right: 14px; top: 10px; }
.stamp {
  font: 400 clamp(1.5rem, 3vw, 2.5rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em;
  color: #5BD39B; background: rgba(15, 51, 37, 0.9);
  border: 3px solid #5BD39B; border-radius: var(--r-sm);
  padding: 8px 14px; transform: rotate(-6deg);
  text-shadow: 0 2px 0 rgba(10, 17, 29, 0.7);
}
.steps li { transition: opacity 160ms var(--ease-out); }

.screen { perspective: 1400px; }
.screen img { transform-origin: 50% 100%; }
.match-art { overflow: hidden; border-radius: var(--r-lg); }
.jackpot-art > img:first-child { will-change: auto; }

/* Live jackpot tables (jackpots.html): the same board style as the leaderboard */
.live-sub { margin-top: 2.5rem; }
.live-stamp { margin: 0; }
.board td small { font-size: .8em; opacity: .75; font-weight: 500; }

/* Studio credit */
.footer-credit { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--night-700); }
.footer-credit a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 500 0.875rem/1.4 var(--f-body); color: var(--cream-300); text-decoration: none; }
.footer-credit img { height: 18px; width: auto; display: inline-block; opacity: 0.9; }
.footer-credit span { color: var(--cream-500); }
.footer-credit a:hover img, .footer-credit a:focus-visible img { opacity: 1; }
.footer-credit a:hover span, .footer-credit a:focus-visible span { color: var(--cream-50); text-decoration: underline; }
