/* ==========================================================================
   PLAY — play.excal.uk
   Design system: ink / bone / citron. Editorial-athletic, RTL-first.
   One accent. Sharp corners. Hairline grid. Mono for data.
   ========================================================================== */

@import url('fonts.css');

/* ---------- tokens ---------- */
:root {
  --ink:      #090A0B;
  --ink-1:    #0E1012;
  --ink-2:    #14171A;
  --ink-3:    #1C2126;

  --bone:     #F2EFE7;
  --bone-1:   #E8E4D9;
  --bone-2:   #D8D3C4;

  --lime:     #D5FF3D;
  --lime-2:   #B4E000;
  --lime-dim: #8CA61F;

  --t-1: rgba(242,239,231,.95);
  --t-2: rgba(242,239,231,.63);
  --t-3: rgba(242,239,231,.38);

  --line:   rgba(242,239,231,.13);
  --line-2: rgba(242,239,231,.07);

  --i-1: #0B0C0D;
  --i-2: #4B4F53;
  --i-3: #61665F;
  --i-line: rgba(11,12,13,.14);
  --i-line-2: rgba(11,12,13,.08);

  --f-display: 'Changa', system-ui, -apple-system, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

  --r: 3px;
  --pad: clamp(20px, 4.4vw, 64px);
  --max: 1320px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: 150ms var(--ease);
  --t-base: 240ms var(--ease);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--ink);
  color: var(--t-1);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; inset-inline-start: 12px; top: -80px;
  background: var(--lime); color: var(--ink);
  padding: 10px 18px; font-weight: 600; z-index: 200;
  transition: top var(--t-fast);
}
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.light { background: var(--bone); color: var(--i-1); }
.light ::selection { background: var(--ink); color: var(--lime); }

.rule { height: 1px; background: var(--line); border: 0; }
.light .rule { background: var(--i-line); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; letter-spacing: 0; }

.h1 {
  font-size: clamp(2.2rem, 5.9vw, 4.9rem);
  line-height: 1.18;
  padding-block-end: .04em;
  font-weight: 800;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.9rem);
  line-height: 1.22;
  text-wrap: balance;
}
.h3 { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.4; font-weight: 700; }

.lead {
  font-size: clamp(.98rem, 1.15vw, 1.1rem);
  line-height: 1.85;
  color: var(--t-2);
  max-width: 62ch;
}
.light .lead { color: var(--i-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--t-2);
  text-transform: uppercase;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; background: var(--lime);
  flex: none;
}
.light .eyebrow { color: var(--i-3); }
.light .eyebrow::before { background: var(--ink); }

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.en { font-family: var(--f-mono); letter-spacing: .02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 26px; height: 52px;
  border-radius: var(--r);
  font-weight: 600; font-size: .97rem;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--lime-2); }

.btn-ghost { border-color: var(--line); color: var(--t-1); }
.btn-ghost:hover { border-color: var(--t-1); background: rgba(242,239,231,.04); }
.light .btn-ghost { border-color: var(--i-line); color: var(--i-1); }
.light .btn-ghost:hover { background: rgba(11,12,13,.04); border-color: var(--i-1); }

.btn .arrow { transition: transform var(--t-base); }
.btn:hover .arrow { transform: translateX(-4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
}
.nav.is-stuck {
  background: rgba(9,10,11,.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; gap: 28px;
  height: 74px;
}
.brand { display: flex; align-items: baseline; gap: 9px; margin-inline-end: auto; }
.brand__mark {
  font-family: var(--f-display); font-weight: 800;
  font-size: 1.42rem; letter-spacing: -.03em; line-height: 1;
  direction: ltr;
}
.brand__mark b { color: var(--lime); }
.brand__sub {
  font-family: var(--f-mono); font-size: .62rem; color: var(--t-3);
  letter-spacing: .1em; text-transform: uppercase; direction: ltr;
}
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: .9rem; color: var(--t-2);
  padding-block: 6px; position: relative;
  transition: color var(--t-fast);
}
.nav__links a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0;
  height: 1px; background: var(--lime); transform: scaleX(0);
  transform-origin: right; transition: transform var(--t-base);
}
.nav__links a:hover { color: var(--t-1); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav .btn { height: 42px; padding: 0 18px; font-size: .88rem; }

.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r);
  flex-direction: column; gap: 5px;
}
.nav__toggle i { display: block; width: 16px; height: 1px; background: var(--t-1); transition: transform var(--t-fast), opacity var(--t-fast); }
.nav__toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }
.nav__panel {
  display: none; flex-direction: column;
  padding: 8px var(--pad) 18px;
  background: rgba(9,10,11,.97);
  border-bottom: 1px solid var(--line);
}
.nav__panel.open { display: flex; }
.nav__panel a { padding-block: 12px; border-top: 1px solid var(--line-2); font-size: .95rem; color: var(--t-2); }
.nav__panel a:first-child { border-top: 0; }
@media (max-width: 900px) { .nav__links { display: none; } .nav__toggle { display: flex; } }
@media (max-width: 520px) { .brand__sub { display: none; } .nav__inner { height: 64px; } }

.progress {
  position: fixed; top: 0; inset-inline-start: 0; height: 2px; width: 0;
  background: var(--lime); z-index: 101; transition: width 80ms linear;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(104px, 12vw, 150px);
  padding-bottom: clamp(40px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 560px at 78% 8%, rgba(213,255,61,.11), transparent 62%),
    radial-gradient(700px 500px at 12% 92%, rgba(213,255,61,.05), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 100% 96px, 96px 100%;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  opacity: .75;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
}

.hero__copy { max-width: 660px; }
.hero .h1 { margin-block: 20px 0; }
.hero .h1 em {
  font-style: normal; color: var(--lime);
  display: inline-block;
}
.hero__lead { margin-block: 24px 0; max-width: 46ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 34px 0; }

.sports-line {
  margin-block: 36px 0; padding-block-start: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-family: var(--f-mono); font-size: .74rem; color: var(--t-3);
}
.sports-line span { transition: color var(--t-fast); }
.sports-line span:hover { color: var(--lime); }
.sports-line i { color: var(--lime); font-style: normal; }

/* hero visual */
.hero__visual { position: relative; }

.court-wrap {
  position: relative;
  aspect-ratio: 1 / 1.02;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.court { width: 100%; height: 100%; overflow: visible; }
.court line, .court path, .court rect, .court polygon {
  fill: none;
  stroke: rgba(242,239,231,.38);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.court .net { stroke: rgba(242,239,231,.55); stroke-dasharray: 3 5; }
.court .fill { fill: rgba(213,255,61,.045); stroke: rgba(213,255,61,.35); }
.court .dash {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.2s var(--ease) forwards;
}
.court .dash:nth-child(2) { animation-delay: .12s; }
.court .dash:nth-child(3) { animation-delay: .24s; }
.court .dash:nth-child(4) { animation-delay: .36s; }
.court .dash:nth-child(5) { animation-delay: .48s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.ball { fill: var(--lime); }
.ball-glow { fill: rgba(213,255,61,.22); }
.ball-shadow { fill: rgba(9,10,11,.55); }
.rally { animation: rally 9s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes rally {
  0%   { transform: translate(150px, 470px); }
  14%  { transform: translate(196px, 372px); }
  28%  { transform: translate(250px, 470px); }
  42%  { transform: translate(320px, 330px); }
  56%  { transform: translate(388px, 470px); }
  72%  { transform: translate(448px, 390px); }
  86%  { transform: translate(500px, 470px); }
  100% { transform: translate(150px, 470px); }
}
.rally-shadow { animation: rallyShadow 9s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes rallyShadow {
  0%   { transform: translate(150px, 512px) scale(1); opacity: .5; }
  14%  { transform: translate(196px, 512px) scale(.55); opacity: .22; }
  28%  { transform: translate(250px, 512px) scale(1); opacity: .5; }
  42%  { transform: translate(320px, 512px) scale(.5); opacity: .2; }
  56%  { transform: translate(388px, 512px) scale(1); opacity: .5; }
  72%  { transform: translate(448px, 512px) scale(.62); opacity: .26; }
  86%  { transform: translate(500px, 512px) scale(1); opacity: .5; }
  100% { transform: translate(150px, 512px) scale(1); opacity: .5; }
}

/* court anchor */
.court-wrap::before {
  content: ''; position: absolute; inset: 6% -6% 4% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(213,255,61,.10), transparent 72%);
  filter: blur(4px);
}
.court-tag {
  position: absolute; top: 3%; inset-inline-end: 1%;
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em;
  color: var(--t-3); direction: ltr;
}

/* floating score card */
.score {
  position: absolute;
  inset-inline-start: 0; bottom: 6%;
  width: min(316px, 86%);
  background: linear-gradient(180deg, #16191C, #0E1012);
  border: 1px solid rgba(242,239,231,.18);
  border-top-color: rgba(213,255,61,.45);
  border-radius: var(--r);
  padding: 16px 16px 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.95), 0 1px 0 rgba(255,255,255,.04) inset;
}
.score__top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--f-mono); font-size: .66rem; color: var(--t-3);
  padding-bottom: 11px; border-bottom: 1px solid var(--line-2);
}
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); }
.live::before {
  content: ''; width: 5px; height: 5px; background: var(--lime); border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.score__row {
  display: grid; grid-template-columns: 1fr auto auto auto;
  align-items: center; gap: 10px;
  padding-block: 9px;
  font-size: .86rem;
}
.score__row + .score__row { border-top: 1px solid var(--line-2); }
.score__row.is-serving { color: var(--t-1); font-weight: 500; }
.score__row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score__num {
  font-family: var(--f-mono); font-size: .82rem; color: var(--t-2);
  min-width: 2.1ch; text-align: center;
}
.score__pts {
  font-family: var(--f-mono); font-size: .95rem; font-weight: 500;
  min-width: 3.4ch; text-align: center; color: var(--t-1);
}
.score__pts.hot { color: var(--lime); }
.score__foot {
  margin-block-start: 11px; padding-block-start: 11px; border-top: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: .66rem; color: var(--t-3);
  display: flex; justify-content: space-between; gap: 8px;
}

.ticker {
  margin-block-start: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(14,16,18,.7);
  height: 38px; overflow: hidden;
  display: flex; align-items: center;
  padding-inline: 13px;
  font-family: var(--f-mono); font-size: .7rem; color: var(--t-2);
}
.ticker__item { display: none; gap: 8px; align-items: center; }
.ticker__item.on { display: flex; animation: tin .38s var(--ease); }
.ticker__item b { color: var(--lime); font-weight: 500; }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .court-wrap { max-width: 440px; }
  .score { position: relative; inset: auto; width: 100%; margin-block-start: -28px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 96px; padding-bottom: 24px; }
  .hero .h1 { font-size: clamp(1.95rem, 8.4vw, 2.45rem); margin-block-start: 14px; }
  .hero__lead { font-size: .94rem; line-height: 1.8; margin-block-start: 16px; }
  .hero__cta { margin-block-start: 24px; gap: 10px; }
  .hero__cta .btn { flex: 1 1 100%; height: 48px; }
  .court-wrap { max-width: 300px; }
  .score { margin-block-start: -12px; }
  .score__row { font-size: .78rem; }
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 14px;
  overflow: hidden;
  background: var(--ink-1);
}
.marquee__track {
  display: flex; gap: 0; width: max-content; direction: ltr;
  will-change: transform;
  animation: slide 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__row {
  display: flex; align-items: center; gap: 28px;
  padding-inline-end: 28px;
  font-family: var(--f-mono); font-size: .78rem;
  color: var(--t-3); white-space: nowrap;
}
.marquee__row b { color: var(--t-1); font-weight: 500; }
.marquee__row i { color: var(--lime); font-style: normal; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.sec-head {
  display: grid; grid-template-columns: 1fr .85fr; gap: clamp(20px, 4vw, 60px);
  align-items: end; margin-block-end: clamp(34px, 4.5vw, 62px);
}
.sec-head .h2 { margin-block-start: 14px; }
.sec-head .lead { padding-block-end: 4px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }

/* ==========================================================================
   BENTO — platform
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--i-line);
  border: 1px solid var(--i-line);
}
.cell {
  background: var(--bone);
  padding: clamp(20px, 2.4vw, 30px);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.cell--wide { grid-column: span 7; }
.cell--tall { grid-column: span 5; }
.cell--third { grid-column: span 4; }
.cell--half { grid-column: span 6; }
@media (max-width: 980px) {
  .cell--wide, .cell--tall, .cell--third, .cell--half { grid-column: span 12; }
  .cell--tall { grid-row: auto; }
}
.cell__label {
  font-family: var(--f-mono); font-size: .68rem; color: var(--i-3);
  display: flex; align-items: center; gap: 8px;
}
.cell__label::before {
  content: ''; width: 5px; height: 5px; background: var(--ink);
}
.cell p { color: var(--i-2); font-size: .93rem; line-height: 1.7; }
.cell .h3 { color: var(--i-1); }

/* QR / attendance card */
.att-card {
  margin-block-start: auto;
  border: 1px solid var(--i-line);
  border-radius: var(--r);
  padding: 16px;
  display: flex; align-items: center; gap: 16px;
  background: #fff;
}
.qrgrid {
  width: 74px; height: 74px; flex: none;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  border: 1px solid var(--ink); padding: 3px;
}
.qrgrid i { background: var(--ink); opacity: 0; animation: qrin .5s var(--ease) forwards; }
.qrgrid i.off { background: transparent; }
@keyframes qrin { to { opacity: 1; } }
.att-card__meta { font-family: var(--f-mono); font-size: .7rem; color: var(--i-2); line-height: 1.8; }
.att-card__meta b { display: block; font-family: var(--f-display); font-size: 1.5rem; color: var(--i-1); letter-spacing: .04em; font-weight: 700; }
.att-card__meta span { color: var(--i-3); }

/* receipt rows */
.rows { display: flex; flex-direction: column; gap: 0; margin-block-start: auto; }
.row-item {
  display: flex; align-items: center; gap: 10px;
  padding-block: 9px;
  border-top: 1px solid var(--i-line-2);
  font-size: .82rem; color: var(--i-2);
  font-family: var(--f-mono);
}
.row-item:first-child { border-top: 0; }
.row-item b { color: var(--i-1); font-weight: 500; }
.row-item .grow { flex: 1; }
.chip {
  font-family: var(--f-mono); font-size: .66rem; padding: 3px 8px;
  border: 1px solid var(--i-line); border-radius: 2px; color: var(--i-2);
  white-space: nowrap;
}
.chip--ok { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.chip--warn { border-color: var(--ink); color: var(--ink); }

/* ==========================================================================
   DASHBOARD PREVIEW
   ========================================================================== */
.dash {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-1);
  overflow: hidden;
}
.dash__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  flex-wrap: wrap;
}
.dash__title {
  font-family: var(--f-mono); font-size: .7rem; color: var(--t-2);
  display: flex; align-items: center; gap: 8px;
}
.dash__title i { width: 6px; height: 6px; background: var(--lime); }
.dash__note {
  margin-inline-start: auto;
  font-family: var(--f-mono); font-size: .64rem; color: var(--t-3);
  border: 1px dashed var(--line); padding: 3px 8px; border-radius: 2px;
}
.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tab {
  font-size: .82rem; padding: 7px 14px; border-radius: 2px;
  color: var(--t-2); border: 1px solid transparent;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.tab:hover { color: var(--t-1); }
.tab[aria-selected="true"] {
  color: var(--ink); background: var(--lime); border-color: var(--lime); font-weight: 600;
}
.panel { padding: clamp(14px, 2vw, 22px); }
.panel[hidden] { display: none; }
.panel__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-block-end: 14px; flex-wrap: wrap;
}
.panel__head h3 { font-family: var(--f-display); font-size: 1rem; font-weight: 700; }
.panel__head .mono { font-size: .68rem; color: var(--t-3); }

table.tbl { width: 100%; border-collapse: collapse; font-size: .82rem; }
table.tbl th {
  font-family: var(--f-mono); font-size: .63rem; font-weight: 400;
  color: var(--t-3); text-align: start; padding: 0 10px 9px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl td {
  padding: 11px 10px; border-bottom: 1px solid var(--line-2); color: var(--t-2);
  white-space: nowrap;
}
table.tbl td:first-child { color: var(--t-1); }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr.flash { animation: rowflash 2.4s var(--ease); }
@keyframes rowflash {
  0%, 40% { background: rgba(213,255,61,.09); }
  100% { background: transparent; }
}
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.st { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .68rem; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--t-3); }
.st--in::before { background: var(--lime); }
.st--late::before { background: #FFB020; }
.st--out::before { background: #FF5C39; }
.scroll-x { overflow-x: auto; }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: var(--line); }

/* ==========================================================================
   SPORTS SWITCHER
   ========================================================================== */
.sports {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 1px; background: var(--i-line); border: 1px solid var(--i-line);
}
@media (max-width: 860px) { .sports { grid-template-columns: 1fr; } }
.sports__list { background: var(--bone); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.sport-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 14px; text-align: start;
  font-size: .95rem; color: var(--i-2);
  border-radius: 2px;
  transition: background var(--t-fast), color var(--t-fast);
}
.sport-btn span { font-family: var(--f-mono); font-size: .66rem; color: var(--i-3); }
.sport-btn:hover { background: rgba(11,12,13,.05); color: var(--i-1); }
.sport-btn[aria-selected="true"] { background: var(--ink); color: var(--bone); }
.sport-btn[aria-selected="true"] span { color: var(--lime); }

.sports__panel { background: var(--bone-1); padding: clamp(20px, 3vw, 36px); }
.sports__panel h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); margin-block-end: 4px; }
.sport-btn { position: relative; }
.sport-btn[aria-selected="true"]::after {
  content: ''; position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px;
  width: 2px; background: var(--lime);
}
.sports__panel .hint { font-family: var(--f-mono); font-size: .68rem; color: var(--i-3); }
.spec { margin-block-start: 22px; display: flex; flex-direction: column; }
.spec__row {
  display: grid; grid-template-columns: 118px 1fr;
  gap: 18px; padding-block: 14px;
  border-top: 1px solid var(--i-line);
  font-size: .92rem; line-height: 1.7;
}
@media (max-width: 520px) { .spec__row { grid-template-columns: 1fr; gap: 4px; } }
.spec__row dt { font-family: var(--f-mono); font-size: .7rem; color: var(--i-2); padding-block-start: 5px; letter-spacing: .02em; }
.spec__row dd { color: var(--i-1); }

/* ==========================================================================
   TOURNAMENTS / BRACKET
   ========================================================================== */
.tour { background: var(--ink); }
.bracket-wrap {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(14px, 2.4vw, 26px);
  background: linear-gradient(180deg, rgba(213,255,61,.035), transparent 40%), var(--ink-1);
  overflow-x: auto;
}
.bracket {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  min-width: 760px;
  align-items: stretch;
}
.round { display: flex; flex-direction: column; min-width: 0; }
.round__grid {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
}
.slot { position: relative; display: flex; align-items: center; min-width: 0; }
.slot > .match { width: 100%; }

/* connectors: spine on the incoming side, stub out to the next round */
.slot--join::before {
  content: ''; position: absolute;
  inset-inline-start: -20px; top: 0; bottom: 0;
  width: 1px; background: rgba(242,239,231,.26);
  transition: background var(--t-base);
}
.slot--join::after {
  content: ''; position: absolute;
  inset-inline-start: -20px; top: 50%;
  width: 20px; height: 1px; background: rgba(242,239,231,.26);
  transition: background var(--t-base);
}
.match::after {
  content: ''; position: absolute;
  inset-inline-end: -20px; top: 50%;
  width: 20px; height: 1px; background: rgba(242,239,231,.26);
  transition: background var(--t-base);
}
.round--final .slot--join::before { top: 25%; bottom: 25%; }
.round--final .match::after { display: none; }
.slot.won::before, .slot.won::after { background: rgba(213,255,61,.55); }
.match.won::after { background: rgba(213,255,61,.55); }

.round__label {
  font-family: var(--f-mono); font-size: .66rem; color: var(--t-2);
  text-align: center; padding-block-end: 8px;
  border-bottom: 1px solid var(--line-2); margin-block-end: 12px;
  letter-spacing: .02em;
}
.match {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ink-2);
  position: relative;
  transition: border-color var(--t-base), background var(--t-base);
}
.match.won { border-color: rgba(213,255,61,.55); }
.match__p {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 11px;
  font-size: .8rem; color: var(--t-2);
  transition: color var(--t-base), background var(--t-base);
}
.match__p + .match__p { border-top: 1px solid var(--line-2); }
.match__p b { font-family: var(--f-mono); font-size: .74rem; margin-inline-start: auto; color: var(--t-3); font-weight: 400; }
.match__p.win { color: var(--ink); background: var(--lime); }
.match__p.win b { color: rgba(9,10,11,.7); }
.match__p.lose { opacity: .42; text-decoration: line-through; text-decoration-color: var(--t-3); }
.bracket-actions { display: flex; align-items: center; gap: 14px; margin-block-start: 18px; flex-wrap: wrap; }
.bracket-status { font-family: var(--f-mono); font-size: .72rem; color: var(--t-3); }
.champ {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .74rem; color: var(--ink);
  background: var(--lime); padding: 5px 12px; border-radius: 2px;
}

.fmt { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 26px; }
.fmt span {
  font-family: var(--f-mono); font-size: .7rem; color: var(--t-2);
  border: 1px solid var(--line); padding: 6px 11px; border-radius: 2px;
}

.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-block-start: 42px; }
@media (max-width: 760px) { .caps { grid-template-columns: 1fr; } }
.cap {
  display: flex; gap: 12px; padding-block: 14px;
  border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--t-2);
}
.cap::before {
  content: ''; width: 11px; height: 1px; background: var(--lime); flex: none;
  margin-block-start: .62em;
}
.cap b { color: var(--t-1); font-weight: 500; }

.scope {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-block-start: 42px;
}
@media (max-width: 760px) { .scope { grid-template-columns: 1fr; } }
.scope__col { background: var(--ink-1); padding: clamp(20px, 2.6vw, 32px); }
.scope__col h3 { font-size: 1rem; margin-block-end: 14px; display: flex; align-items: center; gap: 9px; }
.scope__col h3 i { font-family: var(--f-mono); font-style: normal; font-size: .64rem; color: var(--ink); background: var(--lime); padding: 2px 6px; }
.scope__col li { font-size: .88rem; color: var(--t-2); padding-block: 7px; display: flex; gap: 9px; }
.scope__col li::before { content: '—'; color: var(--t-3); }

/* ==========================================================================
   STEPS
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--i-line); border: 1px solid var(--i-line); margin-block-start: 10px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bone); padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 10px; }
.step__n { font-family: var(--f-mono); font-size: .72rem; color: var(--i-3); }
.step h3 { font-size: .98rem; }
.step p { font-size: .88rem; color: var(--i-2); line-height: 1.7; }

/* ==========================================================================
   PROMISES
   ========================================================================== */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .promises { grid-template-columns: 1fr; } }
.promise { background: var(--ink); padding: clamp(20px, 2.6vw, 32px); }
.promise b {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1;
  color: var(--lime); direction: ltr; text-align: start;
}
.promise span { display: block; margin-block-start: 10px; font-size: .87rem; color: var(--t-2); line-height: 1.65; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--i-line); }
.faq details { border-bottom: 1px solid var(--i-line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding-block: 20px;
  font-family: var(--f-display); font-size: clamp(.95rem, 1.35vw, 1.08rem); font-weight: 700;
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; margin-inline-start: auto;
  font-family: var(--f-mono); font-size: 1.1rem; color: var(--i-3); font-weight: 400;
  transition: transform var(--t-base), color var(--t-base);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--i-1); }
.faq summary:hover { color: #000; }
.faq p { padding-block-end: 22px; color: var(--i-2); font-size: .92rem; line-height: 1.8; max-width: 74ch; }

/* ==========================================================================
   FINAL CTA + FOOTER
   ========================================================================== */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(760px 420px at 50% 120%, rgba(213,255,61,.13), transparent 65%);
  pointer-events: none;
}
.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta .h2 { max-width: 22ch; }
.cta .btn { min-width: 230px; }

.footer { border-top: 1px solid var(--line); padding-block: 42px 34px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__brand .brand__mark { font-size: 1.5rem; }
.footer__brand p { font-family: var(--f-mono); font-size: .7rem; color: var(--t-3); }
.footer__cols { display: flex; gap: clamp(30px, 5vw, 76px); flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col h4 { font-family: var(--f-mono); font-size: .64rem; color: var(--t-3); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; }
.footer__col a { font-size: .85rem; color: var(--t-2); transition: color var(--t-fast); }
.footer__col a:hover { color: var(--lime); }
.footer__bottom {
  margin-block-start: 34px; padding-block-start: 20px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: .68rem; color: var(--t-3);
}

/* ---------- tournaments: pinned stage ---------- */
.tour-stage { position: relative; height: 240vh; }
.pin {
  position: sticky; top: 76px;
  padding-block: clamp(20px, 3vw, 40px);
}
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .tour-stage { height: auto; }
  .pin { position: static; padding-block: 0; }
}
.match__p .ph { color: var(--t-3); }

/* ---------- hero entrance (one orchestrated sequence) ---------- */
.hero__copy .eyebrow,
.hero__copy .h1,
.hero__copy .hero__lead,
.hero__copy .hero__cta,
.hero__copy .sports-line {
  animation: rise .85s var(--ease) both;
}
.hero__copy .h1 { animation-delay: .08s; }
.hero__copy .hero__lead { animation-delay: .16s; }
.hero__copy .hero__cta { animation-delay: .24s; }
.hero__copy .sports-line { animation-delay: .32s; }
.hero__visual { animation: rise .95s var(--ease) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
  .court .dash { stroke-dashoffset: 0; }
  .marquee__track { animation: none; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 780px; margin-inline: auto; padding-block: clamp(110px, 12vw, 150px) 90px; }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; margin-block-end: 10px; }
.legal .meta { font-family: var(--f-mono); font-size: .72rem; color: var(--t-3); margin-block-end: 40px; }
.legal h2 { font-size: 1.05rem; margin-block: 34px 10px; color: var(--t-1); }
.legal p, .legal li { color: var(--t-2); font-size: .94rem; line-height: 1.85; }
.legal ul { padding-inline-start: 18px; list-style: disc; }
.legal li { margin-block: 6px; }
.legal a { color: var(--lime); }
.legal .back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .74rem; color: var(--t-2); margin-block-end: 30px; }
