/* Sudan Youth Basketball League
   Volunteers: you shouldn't need to edit this file. Content lives in index.html (search for "EDIT:"). */

/* ---------- Font ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink-1000: #07080a;
  --ink-950: #0c0d0f;
  --ink-900: #121417;
  --ink-850: #181b1f;
  --ink-800: #1f2328;
  --line: #262a30;
  --line-strong: #363b43;
  --control: #686f78;
  --text: #f2f2ef;
  --text-2: #b4b8bd;
  --text-3: #8a9098;
  --gold: #c3b365;
  --gold-300: #d8cb8a;
  --gold-700: #8c8043;
  --gold-a12: rgb(195 179 101 / 0.12);
  --signal: #f2d530;
  --error: #f3a39c;
  --error-line: #d9534f;

  --font: "Archivo", "Arial Narrow", Arial, system-ui, sans-serif;
  --r-1: 4px;
  --r-2: 8px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 64px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
@media (forced-colors: active) { :focus-visible { outline-color: Highlight; } }
::selection { background: var(--gold); color: var(--ink-950); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--gold); color: var(--ink-950); padding: 10px 16px; border-radius: var(--r-1);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--ink-900); }
main:focus { outline: none; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font); text-wrap: balance; }
h2 {
  font-size: clamp(2rem, 1.35rem + 2.8vw, 3.375rem);
  font-weight: 750; font-stretch: 75%; line-height: 1; letter-spacing: -0.005em;
}
h3 { font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 700; font-stretch: 87.5%; line-height: 1.2; }
.lead { font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.375rem); line-height: 1.5; color: var(--text); }
.section-intro { margin-top: 16px; max-width: 62ch; color: var(--text-2); }
.label {
  font-size: 0.8125rem; font-weight: 650; font-stretch: 87.5%;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3);
}
p { text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.text-link { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold-700); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-color: var(--gold); color: var(--gold-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-1); border: 1.5px solid transparent;
  font-family: var(--font); font-size: 0.9375rem; font-weight: 700; font-stretch: 87.5%;
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; line-height: 1;
  cursor: pointer; transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--gold); color: var(--ink-950); }
.btn-primary:hover { background: var(--gold-300); }
.btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-300); }
.btn-on-photo { background: rgb(12 13 15 / 0.45); border-color: rgb(255 255 255 / 0.35); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.8125rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(12 13 15 / 0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; transition: opacity 0.2s ease, transform 0.2s ease; }
.brand-crest { width: 58px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-line1 { font-size: 1.125rem; font-weight: 800; font-stretch: 70%; text-transform: uppercase; letter-spacing: 0.01em; }
.brand-line2 { margin-top: 3px; font-size: 0.6875rem; font-weight: 650; font-stretch: 87.5%; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }
/* While the big hero crest is on screen, the header shows only nav (set by site.js). */
.js .site-header.at-top .brand { opacity: 0; transform: translateY(-4px); pointer-events: none; }

.nav ul { display: flex; gap: 26px; }
.nav a {
  font-size: 0.8125rem; font-weight: 650; font-stretch: 87.5%; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-2); text-decoration: none; padding: 8px 0; position: relative;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); }
.nav a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); }

.menu-toggle {
  display: none; width: 48px; height: 48px; margin-right: -10px; padding: 0;
  background: none; border: 0; border-radius: var(--r-1); cursor: pointer; position: relative;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  position: absolute; left: 13px; width: 22px; height: 2px; background: var(--text); border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-bars { top: 23px; }
.menu-bars::before, .menu-bars::after { content: ""; left: 0; }
.menu-bars::before { transform: translateY(-7px); }
.menu-bars::after { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: rotate(45deg); background: var(--text); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: rotate(-45deg); background: var(--text); }

.site-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ink-950); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--gutter) 40px;
}
.site-menu a:not(.btn) {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 1.5rem; font-weight: 750; font-stretch: 75%; text-decoration: none;
}
.site-menu .btn { margin-top: 28px; width: 100%; }
.site-menu .menu-phone { margin-top: 20px; color: var(--text-2); }
html.menu-open { overflow: hidden; }

@media (max-width: 959px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 419px) { .header-cta { display: none; } }
@media (min-width: 960px) { .site-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(40px, 8vw, 64px) 32px; }
.hero-grid { display: grid; gap: 20px; }
.hero h1 {
  font-size: clamp(2.75rem, 1.5rem + 5.4vw, 5.75rem);
  font-weight: 800; font-stretch: 62%; line-height: 0.9; text-transform: uppercase; letter-spacing: 0.005em;
}
.hero h1 span { display: block; color: var(--gold); }
.hero-lead { margin-top: 18px; font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.375rem); color: var(--text); max-width: 34ch; }
.hero-deadline { margin-top: 10px; font-size: 0.875rem; font-weight: 650; font-stretch: 87.5%; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile: copy first, then a cropped photo band that fades into the page. */
.hero-media { aspect-ratio: 3 / 2; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--ink-950) 0%, rgb(12 13 15 / 0) 22%, rgb(12 13 15 / 0) 70%, var(--ink-950) 100%);
}
@media (max-width: 559px) { .hero-actions .btn { flex: 1 1 100%; } }

@media (min-width: 900px) {
  .hero { min-height: clamp(600px, 88svh, 900px); }
  .hero-media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; }
  .hero-media img { object-position: 50% 30%; }
  .hero-media::after {
    background:
      linear-gradient(90deg, rgb(12 13 15 / 0.85) 0%, rgb(12 13 15 / 0.62) 45%, rgb(12 13 15 / 0.08) 78%),
      linear-gradient(180deg, rgb(12 13 15 / 0.9) 0%, rgb(12 13 15 / 0.55) 34%, rgb(12 13 15 / 0.08) 58%, rgb(12 13 15 / 0.2) 82%, var(--ink-950) 100%);
  }
  .hero-inner { padding-block: clamp(56px, 9vh, 104px) 64px; }
  .hero-grid { grid-template-columns: auto 1fr; align-items: center; column-gap: clamp(28px, 3.5vw, 56px); }
}

/* ---------- Crest (logo + hornet intro) ---------- */
.crest { position: relative; width: clamp(150px, 16vw, 248px); --pivot-x: 62.9%; --pivot-y: 57.7%; }
.crest-inner { position: relative; transform-origin: var(--pivot-x) var(--pivot-y); }
.crest-logo { width: 100%; height: auto; }
.crest-fly { position: absolute; inset: 0; pointer-events: none; overflow: visible; transform-origin: var(--pivot-x) var(--pivot-y); }
.crest-fly img { position: absolute; inset: 0; width: 100%; height: auto; }
/* wing hinges at its root: (686, 432) in the logo's 1148 x 762 frame */
.crest-fly .h-wing { transform-origin: 59.76% 56.69%; }
.crest-pulse {
  position: absolute; left: var(--pivot-x); top: var(--pivot-y); width: 70%; aspect-ratio: 1;
  border: 2px solid var(--gold); border-radius: 50%; opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%) scale(0.25);
}
.crest-pulse--2 { border-width: 1px; }
.crest.is-replayable { cursor: pointer; }
/* Hide the logo until the hornet lands; the failsafe shows it anyway if JS stalls. */
.intro .crest-logo { opacity: 0; animation: crest-failsafe 1ms linear 4s forwards; }
.intro-live .crest-logo { animation: none; }
@keyframes crest-failsafe { to { opacity: 1; } }
.hornet-debug .crest-fly { opacity: 0.6; mix-blend-mode: difference; }

/* ---------- At a glance ---------- */
.glance { background: var(--ink-900); border-top: 2px solid var(--gold); border-bottom: 1px solid var(--line); }
.glance-list { display: grid; grid-template-columns: repeat(2, 1fr); }
.glance-item { padding: 22px 16px 22px 0; }
.glance-item:nth-child(n+3) { border-top: 1px solid var(--line); }
.glance-item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.glance-item dd {
  margin-top: 6px; font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem); font-weight: 800; font-stretch: 70%;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.glance-item dd small { display: block; margin-top: 8px; font-size: 0.875rem; font-weight: 400; font-stretch: 100%; line-height: 1.35; color: var(--text-2); }
.glance-item .is-gold { color: var(--gold); }
@media (min-width: 900px) {
  .glance-list { grid-template-columns: repeat(4, 1fr); }
  .glance-item { padding: 28px 24px; border-top: 0 !important; }
  .glance-item:first-child { padding-left: 0; }
  .glance-item + .glance-item { border-left: 1px solid var(--line); }
}

/* ---------- About ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 88px); align-items: center; } }
.about-copy h2 { margin-bottom: 24px; }
.about-copy h3 { margin-top: 32px; }
.about-copy > p:not(.lead):not(.callout) { margin-top: 24px; color: var(--text-2); max-width: 62ch; }
.rule-list { display: grid; gap: 10px 32px; margin-top: 16px; }
@media (min-width: 560px) { .rule-list { grid-template-columns: repeat(2, max-content); } }
.rule-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.rule-list li::before { content: ""; width: 10px; height: 2px; background: var(--gold); flex: none; }
.callout { margin-top: 32px; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--text-2); max-width: 62ch; }
.callout strong { color: var(--text); font-weight: 650; }
.photo { border-radius: var(--r-2); overflow: hidden; background: var(--ink-850); }
.about-photo img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 72% 55%; }
@media (max-width: 899px) { .about-photo img { aspect-ratio: 4 / 3; } }

/* ---------- Key dates ---------- */
.timeline { display: grid; gap: 0; margin-top: 40px; }
.timeline-item { position: relative; padding: 0 0 32px 32px; border-left: 2px solid var(--gold-700); }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item::before {
  content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--ink-950);
}
.timeline-item.is-tba::before { background: var(--ink-950); border: 2px solid var(--gold-700); }
.timeline-date { font-size: 0.875rem; font-weight: 700; font-stretch: 87.5%; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); line-height: 1.2; }
.is-tba .timeline-date { color: var(--text-3); }
.timeline-item h3 { margin-top: 6px; }
.timeline-item p:not(.timeline-date) { margin-top: 6px; color: var(--text-2); font-size: 0.9375rem; max-width: 36ch; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .timeline-item { padding: 28px 0 0; border-left: 0; border-top: 2px solid var(--gold-700); }
  .timeline-item:last-child { border-top-color: var(--gold-700); }
  .timeline-item::before { left: 0; top: -7px; }
}

/* ---------- Register ---------- */
.register-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .register-grid { grid-template-columns: 7fr 4fr; gap: clamp(40px, 6vw, 80px); align-items: start; } }
.steps { counter-reset: step; margin-top: 36px; display: grid; gap: 28px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
.steps > li::before {
  content: counter(step); grid-row: 1 / span 3;
  width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--gold); border-radius: var(--r-1);
  font-size: 1.25rem; font-weight: 800; font-stretch: 75%; color: var(--gold);
}
.steps h3 { align-self: center; min-height: 44px; display: flex; align-items: center; }
.steps p { color: var(--text-2); max-width: 56ch; }
.steps .btn { margin-top: 18px; justify-self: start; }
/* ---------- Registration form ---------- */
.reg-form, .reg-done { max-width: 880px; margin-top: 56px; }
.reg-form { padding: clamp(22px, 4vw, 44px); }
.reg-form-head h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-stretch: 80%; }
.reg-form-head p { margin-top: 6px; color: var(--text-2); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section > legend {
  float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 0;
  font-size: 1.25rem; font-weight: 700; font-stretch: 87.5%;
}
.form-section > legend + * { clear: both; }
.form-step {
  width: 30px; height: 30px; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--gold); border-radius: var(--r-1); color: var(--gold); font-size: 0.9375rem; font-weight: 800;
}
.field-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; gap: 22px 20px; } .span-2 { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .choice-group > legend {
  padding: 0; font-size: 0.8125rem; font-weight: 650; font-stretch: 87.5%; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2);
}
.choice-group > legend { margin-bottom: 8px; }
.hint { font-size: 0.875rem; color: var(--text-3); text-transform: none; letter-spacing: 0; font-weight: 400; font-stretch: 100%; }
label .hint, legend .hint { margin-left: 6px; }
.reg-form input[type="text"], .reg-form input[type="tel"], .reg-form input[type="date"], .reg-form select, .reg-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--control); border-radius: var(--r-1);
  background: var(--ink-950); color: var(--text); font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.reg-form textarea { resize: vertical; min-height: 76px; }
.reg-form select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.reg-form input::placeholder, .reg-form textarea::placeholder { color: var(--text-3); }
.reg-form input:hover, .reg-form select:hover, .reg-form textarea:hover { border-color: var(--text-3); }
.reg-form input:focus-visible, .reg-form select:focus-visible, .reg-form textarea:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(195 179 101 / 0.28); }
.reg-form input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--control); border-radius: var(--r-1);
  background: var(--ink-950); font-weight: 600; transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.chip:hover span { border-color: var(--text-3); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink-950); }
.chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.choice-group .hint { margin-top: 8px; }
.total-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding: 14px 18px; border: 1px solid var(--gold-700); border-radius: var(--r-1); }
.total-num { font-size: 1.75rem; font-weight: 800; font-stretch: 75%; color: var(--gold); font-variant-numeric: tabular-nums; }
.total-breakdown { margin-left: 8px; color: var(--text-3); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
/* player cards */
.players { display: grid; gap: 16px; }
.player { position: relative; padding: 18px 20px 22px; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--ink-900); }
.player-head { float: left; width: 100%; margin-bottom: 16px; padding: 0; font-size: 1.0625rem; font-weight: 700; color: var(--gold); }
.player > .field-grid { clear: both; }
.player-remove {
  position: absolute; top: 12px; right: 12px; min-height: 36px; padding: 0 12px; cursor: pointer;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--r-1); color: var(--text-2); font-size: 0.875rem; font-weight: 600;
}
.player-remove:hover { border-color: var(--error-line); color: var(--text); }
.player-fee-note { margin: 0; color: var(--text-2); font-weight: 600; }
.add-player { margin-top: 16px; }
.add-hint { margin-top: 10px; }
.agree-note { margin: -8px 0 14px; }
.done-players { margin-top: 12px; display: grid; gap: 6px; }
.done-players li { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--ink-900); font-weight: 600; }
.agree { padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--r-1); background: var(--ink-900); }
.agree + .agree { margin-top: 14px; }
.agree h4 { margin: 0 0 8px; font-size: 1rem; font-weight: 700; color: var(--gold); }
.agree p, .agree ul { color: var(--text-2); font-size: 0.9375rem; }
.agree ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; }
.check { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--gold); cursor: pointer; }
.form-actions { margin-top: 32px; }
.form-actions .btn { width: 100%; }
.form-note { margin-top: 14px; font-size: 0.875rem; color: var(--text-3); }
.form-alt { max-width: 880px; margin-top: 18px; font-size: 0.9375rem; color: var(--text-2); }
/* errors */
.reg-form .field-error { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--error); }
.choice-group .field-error, .agree .field-error { margin-top: 8px; }
.reg-form [aria-invalid="true"] { border-color: var(--error-line); }
.choice-group.is-invalid .chip span { border-color: var(--error-line); }
.form-summary, .form-status { margin-top: 24px; padding: 14px 16px; border: 1px solid var(--error-line); border-radius: var(--r-1); color: var(--text); background: rgb(217 83 79 / 0.1); }
.form-summary:focus { outline: none; }
.reg-form[aria-busy="true"] .btn { opacity: 0.7; cursor: progress; }
/* open / closed switch (data-status on the form) */
.reg-closed { display: none; max-width: 880px; margin-top: 56px; }
.reg-closed h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-stretch: 80%; }
.reg-closed p { margin-top: 10px; color: var(--text-2); }
.reg-form[data-status="closed"], .reg-form[data-status="closed"] ~ .form-alt { display: none; }
.reg-form[data-status="closed"] ~ .reg-closed { display: block; }
/* sent */
.reg-done { border-color: var(--gold-700); }
.reg-done:focus { outline: none; }
.reg-done-kicker { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.reg-done h3 { margin-top: 6px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-stretch: 80%; }
.reg-done > p:not(.reg-done-kicker) { margin-top: 10px; color: var(--text-2); }
.reg-done-pay { margin-top: 22px; padding: 18px 20px; border-radius: var(--r-1); background: var(--gold-a12); }
.reg-done-pay p + p { margin-top: 12px; }
.pay-inline { margin-left: 10px; font-weight: 600; }
.reg-done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.panel { background: var(--ink-850); border: 1px solid var(--line); border-radius: var(--r-2); padding: clamp(22px, 3vw, 32px); }
.facts { display: grid; gap: 0; }
.facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { padding-top: 0; }
.facts dt { color: var(--text-2); }
.facts dd { font-size: 1.5rem; font-weight: 800; font-stretch: 75%; font-variant-numeric: tabular-nums; text-align: right; }
.facts dd.is-gold { color: var(--gold); }
.aside-note { margin-top: 18px; color: var(--text-2); font-size: 0.9375rem; }
.aside-note strong { color: var(--text); font-weight: 650; }
.notice { margin-top: 18px; padding: 12px 14px; background: var(--gold-a12); border-radius: var(--r-1); font-size: 0.9375rem; color: var(--text); }

/* ---------- Pay ---------- */
.pay-list { margin-top: 36px; border-top: 1px solid var(--line); }
.pay-row { display: grid; gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: center; }
.pay-method { font-size: 1.25rem; }
.pay-handle { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pay-detail { color: var(--text-2); }
.pay-detail strong { color: var(--text); font-weight: 650; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (min-width: 760px) {
  .pay-row { grid-template-columns: 200px 1fr auto; }
  .pay-actions { margin-top: 0; justify-content: flex-end; }
}
.fine-print { margin-top: 20px; color: var(--text-2); font-size: 0.9375rem; max-width: 70ch; }
html:not(.js) [data-copy] { display: none; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: start; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 1.125rem; font-weight: 650; font-stretch: 92%;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-3px) rotate(45deg);
  transition: transform 0.15s ease;
}
.faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-list summary:hover { color: var(--gold-300); }
.faq-answer { padding: 0 0 22px; color: var(--text-2); max-width: 62ch; }
.faq-answer a { color: var(--text); text-decoration-color: var(--gold-700); text-underline-offset: 0.2em; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 12px; margin-top: 36px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery-item a { display: block; position: relative; border-radius: var(--r-2); overflow: hidden; background: var(--ink-850); cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.35s ease, opacity 0.2s ease; }
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-item--feature { grid-column: 1 / -1; }
.gallery-item--feature img { aspect-ratio: 21 / 9; object-position: 50% 58%; }
@media (max-width: 599px) { .gallery-item--feature img { aspect-ratio: 4 / 3; } }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(7 8 10 / 0.96); color: var(--text); overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgb(7 8 10 / 0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; justify-items: center; gap: 12px; padding: 64px 12px 24px; max-width: 100%; }
.lightbox img { max-width: min(1400px, 94vw); max-height: 80vh; width: auto; border-radius: var(--r-1); }
.lightbox figcaption { color: var(--text-3); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  background: rgb(255 255 255 / 0.06); border: 1px solid var(--line-strong); border-radius: var(--r-1); cursor: pointer;
}
.lb-btn:hover { border-color: var(--gold); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Shootaround ---------- */
.game-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .game-grid { grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 88px); } }
.game-copy p { margin-top: 16px; color: var(--text-2); max-width: 44ch; }
.game { width: 100%; max-width: 460px; justify-self: center; }
@media (min-width: 900px) { .game { justify-self: end; } }
.game-score { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; }
.game-score dl { display: flex; gap: 28px; }
.game-score dd { font-size: 2rem; font-weight: 800; font-stretch: 70%; line-height: 1; font-variant-numeric: tabular-nums; }
.game-score .best dd { color: var(--gold); }
.game-visit { color: var(--text-3); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.game-scene { width: 100%; height: auto; border-radius: var(--r-1); background: var(--ink-900); }
.game-result { min-height: 1.6em; margin-top: 12px; text-align: center; font-size: 1.125rem; font-weight: 750; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }
.meter { position: relative; height: 14px; margin-top: 12px; border-radius: var(--r-1); background: var(--ink-800); border: 1px solid var(--line-strong); overflow: hidden; }
.meter-zone { position: absolute; top: 0; bottom: 0; background: var(--signal); opacity: 0.9; }
.meter-perfect { position: absolute; top: 0; bottom: 0; left: 35%; width: 30%; background: #fff; opacity: 0.85; }
.meter-needle { position: absolute; top: -2px; bottom: -2px; left: 0; width: 3px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px var(--ink-950); }
.game .btn { width: 100%; margin-top: 14px; }
.game-hint { margin-top: 10px; text-align: center; color: var(--text-3); font-size: 0.8125rem; }
html:not(.js) .game { display: none; }
#ballSpin { transform-box: fill-box; transform-origin: center; }
.net { transform-box: view-box; transform-origin: 160px 96px; }
.rim-group { transform-box: view-box; transform-origin: 160px 96px; }

/* ---------- Sponsors ---------- */
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-top: 36px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sponsors li {
  display: grid; place-items: center; align-content: center; min-height: 96px; padding: 20px 16px; text-align: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 0.9375rem; font-weight: 700; font-stretch: 87.5%; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2);
}
.sponsors li small { display: block; margin-top: 4px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-3); text-transform: none; }

/* ---------- Contact ---------- */
/* Keep sections alternating when the sponsors section is hidden. */
#sponsors[hidden] + #contact { background: var(--ink-900); }
.contact-grid { display: grid; gap: 40px; margin-top: 36px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); } }
.contact-name { font-size: 1.5rem; }
.contact-phone {
  display: inline-block; margin-top: 8px; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); font-weight: 800; font-stretch: 70%;
  line-height: 1.05; color: var(--gold); text-decoration: none; font-variant-numeric: tabular-nums;
}
.contact-phone:hover { color: var(--gold-300); }
.contact-email { display: inline-block; margin-top: 14px; overflow-wrap: anywhere; }
.contact-facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-facts > div:first-child { border-top: 1px solid var(--line); }
.contact-facts dd { margin-top: 4px; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-1000); border-top: 1px solid var(--line); padding-block: 48px 40px; color: var(--text-3); font-size: 0.9375rem; }
.footer-inner { display: grid; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.footer-brand img { width: 72px; }
.footer-brand strong { display: block; font-size: 1.125rem; font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } .footer-legal { grid-column: 1 / -1; } }

/* ---------- 404 page ---------- */
.notfound-title { margin-top: 10px; font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); font-weight: 800; font-stretch: 70%; line-height: 1; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .crest-fly, .crest-pulse { display: none !important; }
  .gallery-item a:hover img { transform: none; }
}
