/* =====================================================================
   RUN IT BACK — design system
   Layout concept: arena at night. Black hardwood ground, chalk-white type,
   orange as the ball and gold as the trophy. Chamfered corners echo the
   logo letterforms; scoreboard numerals carry every number that matters.
   Deliberately single-theme (dark), so both host themes render the same.
   ===================================================================== */
:root {
  /* color */
  --ink: #0A0A0B;          /* page ground */
  --court: #121213;        /* surfaces */
  --court-2: #19191B;      /* raised / hover */
  --court-3: #222225;
  --line: #2B2A2C;         /* hairlines */
  --line-strong: #3A3836;
  --chalk: #F6F4F0;        /* primary text */
  --muted: #A39D95;        /* secondary text, warm-biased grey */
  --dim: #6F6A64;
  --orange: #FF6B1A;       /* brand: the ball */
  --orange-deep: #E0550A;
  --gold: #F2B233;         /* brand: the trophy */
  --on-accent: #0A0A0B;
  /* semantic (separate from brand accent) */
  --live: #FF4040;
  --win: #3FD68C;
  --warn: #F2B233;
  --loss: #FF7A7A;
  --info: #7AB8FF;

  /* type */
  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-xs: .75rem; --t-sm: .875rem; --t-md: 1rem; --t-lg: 1.125rem;
  --t-xl: 1.5rem; --t-2xl: 2rem; --t-3xl: clamp(2.25rem, 5vw, 3.25rem);
  --t-hero: clamp(3.4rem, 11vw, 8.5rem);

  /* shape + space */
  --cut: 14px;             /* chamfer size */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --header-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--ink); color: var(--chalk);
  font-family: var(--f-body); font-size: var(--t-md); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--on-accent); }
.num, table, .tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.between { justify-content: space-between; }
.grid { display: grid; gap: var(--gap, 20px); }
.grid > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.split > * { min-width: 0; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); } }
.mt-0 { margin-top: 0; }

/* ---------- type ---------- */
.display { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: .005em; line-height: .88; }
.h1 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: var(--t-3xl); line-height: .92; }
.h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: .95; }
.h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: var(--t-xl); line-height: 1; letter-spacing: .01em; }
.h4 { font-family: var(--f-body); font-weight: 700; font-size: var(--t-lg); line-height: 1.25; }
.eyebrow { font-family: var(--f-mono); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.eyebrow--muted { color: var(--muted); }
.lead { font-size: var(--t-lg); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.mono { font-family: var(--f-mono); }
.gold { color: var(--gold); }
.orange { color: var(--orange); }
.label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head .stack { --gap: 10px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--chalk); flex-shrink: 0; }
.brand svg.emblem { width: 38px; height: 36px; }
.brand svg.wordmark { height: 19px; width: auto; }
.nav { display: none; align-items: center; gap: 4px; margin-left: auto; }
.nav a { font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; position: relative; }
.nav a:hover { color: var(--chalk); }
.nav a.active { color: var(--chalk); }
.nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--orange); }
.nav .live-dot { margin-right: 6px; }
.header-cta { display: none; }
.menu-btn { margin-left: 8px; background: none; border: 1px solid var(--line-strong); width: 44px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--chalk); box-shadow: 0 -6px 0 var(--chalk), 0 6px 0 var(--chalk); }
@media (max-width: 419px) { .btn.header-cta { display: none; } .menu-btn { margin-left: auto; } }
.btn.header-cta { margin-left: auto; }
@media (min-width: 1060px) {
  .btn.header-cta { margin-left: 0; }
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}
.drawer { position: fixed; inset: 0; z-index: 80; background: var(--ink); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px); overflow-y: auto; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 2.2rem; line-height: 1; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer nav a.active { color: var(--orange); }
.drawer nav a small { font-family: var(--f-mono); font-size: .7rem; color: var(--dim); letter-spacing: .12em; }
.close-btn { background: none; border: 1px solid var(--line-strong); width: 44px; height: 40px; font-size: 1.4rem; cursor: pointer; line-height: 1; }

/* live ticker */
.ticker { background: var(--court); border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .74rem; }
.ticker .wrap { display: flex; align-items: center; gap: 16px; height: 38px; overflow: hidden; }
.ticker-label { display: flex; align-items: center; gap: 8px; color: var(--live); font-weight: 700; letter-spacing: .14em; flex-shrink: 0; }
.ticker-track { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; min-width: 0; }
.ticker-track::-webkit-scrollbar { display: none; }
.ticker-item { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.ticker-item b { color: var(--chalk); font-weight: 700; }
.ticker-item .lead-team { color: var(--chalk); }
.ticker-item .q { color: var(--live); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--court-2); --fg: var(--chalk); --bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-family: var(--f-mono); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .15s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn:hover { --bg: var(--court-3); }
.btn:active { transform: translateY(1px); }
.btn--primary { --bg: var(--orange); --fg: var(--on-accent); --bd: var(--orange); }
.btn--primary:hover { --bg: #FF8338; --bd: #FF8338; }
.btn--gold { --bg: var(--gold); --fg: var(--on-accent); --bd: var(--gold); }
.btn--ghost { --bg: transparent; --bd: var(--line-strong); }
.btn--ghost:hover { --bg: var(--court-2); --bd: var(--chalk); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .7rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--orange); font-weight: 600; border-bottom: 1px solid transparent; }
.link:hover { border-bottom-color: currentColor; }
.arrow-link { font-family: var(--f-mono); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--chalk); display: inline-flex; gap: 8px; align-items: center; }
.arrow-link::after { content: "→"; color: var(--orange); transition: transform .15s; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- pills / status ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; border: 1px solid currentColor; line-height: 1; white-space: nowrap; }
.pill--open { color: var(--win); }
.pill--closed { color: var(--gold); }
.pill--done { color: var(--muted); }
.pill--live { color: var(--live); }
.pill--info { color: var(--info); }
.pill--paid { color: var(--win); }
.pill--pending { color: var(--gold); }
.pill--overdue, .pill--refunded { color: var(--loss); }
.pill--solid { background: var(--orange); color: var(--on-accent); border-color: var(--orange); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; box-shadow: 0 0 0 0 rgba(255,64,64,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,64,64,.55); } 70% { box-shadow: 0 0 0 9px rgba(255,64,64,0); } 100% { box-shadow: 0 0 0 0 rgba(255,64,64,0); } }

/* ---------- cards ---------- */
.card { background: var(--court); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 26px); position: relative; }
.card--cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.card--flush { padding: 0; }
.card--hover { transition: border-color .15s, background .15s; }
.card--hover:hover { border-color: var(--line-strong); background: var(--court-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-body { padding: 20px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px 24px; }
.kv > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kv .v { font-weight: 600; }
.kv .v.big { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; line-height: 1; }

/* stat tiles */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .n { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: .9; }
.stat .n small { font-size: .5em; color: var(--muted); }
.stats-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-band > div { padding: 26px 20px; border-right: 1px solid var(--line); }
.stats-band > div:nth-child(2n) { border-right: 0; }
.stats-band > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
  .stats-band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats-band > div { border-bottom: 0 !important; border-right: 1px solid var(--line) !important; }
  .stats-band > div:last-child { border-right: 0 !important; }
}

/* team badge (monogram) */
.tb { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.tb-mark { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: .78rem; letter-spacing: .02em; color: var(--chalk); background: var(--court-3); border-bottom: 3px solid var(--tc, var(--orange)); }
.tb--lg .tb-mark { width: 52px; height: 52px; font-size: 1.15rem; border-bottom-width: 4px; }
.tb--xl .tb-mark { width: 76px; height: 76px; font-size: 1.7rem; border-bottom-width: 5px; }
.tb-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tb-seed { font-family: var(--f-mono); font-size: .7rem; color: var(--dim); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.t th { text-align: left; font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: var(--court-2); }
.t .r { text-align: right; }
.t .c { text-align: center; }
.t .strong { font-weight: 700; color: var(--chalk); }
.t tr.qualify td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.t tr.me td { background: color-mix(in srgb, var(--orange) 8%, transparent); }
.t td.pos { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; width: 44px; color: var(--muted); }
.form-dots { display: inline-flex; gap: 4px; }
.form-dots i { width: 18px; height: 18px; display: grid; place-items: center; font-style: normal; font-family: var(--f-mono); font-size: .6rem; font-weight: 700; color: var(--on-accent); }
.form-dots i.w { background: var(--win); }
.form-dots i.l { background: var(--line-strong); color: var(--muted); }

/* ---------- tabs / segmented ---------- */
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; cursor: pointer; padding: 14px 16px; font-family: var(--f-mono); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; position: relative; display: inline-flex; gap: 8px; align-items: center; }
.tab:hover { color: var(--chalk); }
.tab.active { color: var(--chalk); }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--orange); }
.tab .count { color: var(--dim); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); flex-wrap: wrap; }
.seg button { background: none; border: 0; padding: 9px 14px; cursor: pointer; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button.active { background: var(--chalk); color: var(--ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field .flabel { font-family: var(--f-mono); font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 11px 14px; background: var(--ink); border: 1px solid var(--line-strong); color: var(--chalk);
  font-family: var(--f-body); font-size: 1rem; border-radius: 0; transition: border-color .15s, box-shadow .15s;
}
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 25%, transparent); }
.input::placeholder { color: var(--dim); }
.input.invalid { border-color: var(--loss); }
.input--sm { min-height: 36px; padding: 6px 10px; font-size: .9rem; }
.hint { font-size: var(--t-xs); color: var(--dim); }
.err { font-size: var(--t-xs); color: var(--loss); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--orange); width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }
.radio-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line-strong); cursor: pointer; background: var(--ink); }
.radio-card:has(input:checked) { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 7%, var(--ink)); }
.radio-card input { accent-color: var(--orange); margin-top: 3px; }

/* ---------- page header ---------- */
.page-hero { border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 300px at 85% -10%, color-mix(in srgb, var(--orange) 16%, transparent), transparent 70%), var(--ink); }
.page-hero .wrap { padding-block: clamp(36px, 6vw, 68px) clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.crumbs { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--chalk); }

/* ---------- HOME HERO ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero-court { position: absolute; inset: 0; z-index: -1; opacity: .9; pointer-events: none; }
.hero-court svg { position: absolute; right: -8%; top: 50%; transform: translateY(-50%); width: min(980px, 120%); height: auto; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(700px 480px at 78% 40%, color-mix(in srgb, var(--orange) 22%, transparent), transparent 70%),
  linear-gradient(180deg, var(--ink), #0E0C0A); }
.hero .wrap { padding-block: clamp(40px, 7vw, 88px) clamp(36px, 6vw, 72px); display: grid; gap: 36px; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; } }
.hero-title { font-size: var(--t-hero); }
.hero-title .o { color: var(--orange); display: block; }
.hero-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 8px; }
.hero-meta > div { padding: 16px 16px 16px 0; display: flex; flex-direction: column; gap: 6px; }
.hero-meta .v { font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.hero-meta .v.prize { font-family: var(--f-display); font-size: 2rem; font-weight: 900; color: var(--gold); line-height: .9; }

/* scoreboard countdown */
.scoreboard { background: #050505; border: 1px solid var(--line-strong); padding: 18px; display: flex; flex-direction: column; gap: 14px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.scoreboard-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cd-cell { background: var(--court); border: 1px solid var(--line); padding: 12px 6px 10px; text-align: center; position: relative; }
.cd-cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.55); }
.cd-n { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: .9; color: var(--gold); display: block; font-variant-numeric: tabular-nums; }
.cd-l { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; margin-top: 6px; display: block; }
.cd--sm .cd-n { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.cd--sm .cd-cell { padding: 9px 4px 7px; }

/* tournament card */
.tcard { display: flex; flex-direction: column; background: var(--court); border: 1px solid var(--line); transition: border-color .15s, transform .15s; min-width: 0; }
.tcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tcard-top { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); min-height: 190px; }
.tcard-top::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border: 18px solid var(--line); border-radius: 50%; opacity: .6; }
.tcard-top > * { position: relative; z-index: 1; }
.tcard-title { font-family: var(--f-display); font-weight: 900; font-size: 2.1rem; text-transform: uppercase; line-height: .9; }
.tcard-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tcard .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tcard .facts div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tcard .facts .v { font-size: .92rem; font-weight: 600; }
.tcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.meter { height: 6px; background: var(--court-3); position: relative; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--orange); }
.meter--gold i { background: var(--gold); }

/* champion card (past) */
.champ { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px; background: var(--court); border: 1px solid var(--line); }
.trophy { width: 40px; height: 40px; flex-shrink: 0; }
.champ .trophy { width: 44px; height: 44px; color: var(--gold); }
.champ-score { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--line); }
.steps > div { padding: 24px 20px 24px 0; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .steps > div { border-bottom: 0; padding-right: 28px; } .steps > div + div { border-left: 1px solid var(--line); padding-left: 24px; } }
.steps .n { font-family: var(--f-display); font-weight: 900; font-size: 3rem; line-height: .8; color: var(--orange); }

/* CTA band */
.cta-band { background: var(--orange); color: var(--on-accent); position: relative; overflow: hidden; }
.cta-band .wrap { padding-block: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band .display { font-size: clamp(2.4rem, 7vw, 4.8rem); }
.cta-band .btn { --bg: var(--ink); --fg: var(--chalk); --bd: var(--ink); }
.cta-band .btn:hover { --bg: #000; }
.cta-band svg.bg { position: absolute; right: -60px; bottom: -120px; width: 360px; opacity: .14; color: var(--ink); pointer-events: none; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #070707; }
.site-footer .wrap { padding-block: 48px 32px; display: grid; gap: 32px; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h4 { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { color: var(--muted); font-size: var(--t-sm); }
.site-footer ul a:hover { color: var(--chalk); }
.footer-base { border-top: 1px solid var(--line); }
.footer-base .wrap { padding-block: 18px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: var(--t-xs); color: var(--dim); }

/* ---------- games / scores ---------- */
.game { display: grid; grid-template-columns: 1fr; background: var(--court); border: 1px solid var(--line); }
.game-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.game-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.game-row + .game-row { border-top: 1px solid var(--line); }
.game-row .sc { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1; min-width: 2.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.game-row.lose .tb-name, .game-row.lose .sc { color: var(--dim); }
.game-row.win .sc { color: var(--chalk); }
.game--live { border-color: color-mix(in srgb, var(--live) 45%, var(--line)); }
.game--live .game-head { color: var(--live); }
.game--mine { border-color: var(--orange); }
.flash { animation: flash .8s ease-out; }
@keyframes flash { 0% { color: var(--gold); transform: scale(1.18); } 100% { color: inherit; transform: none; } }

/* schedule list */
.sched { display: flex; flex-direction: column; }
.sched-day { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; padding: 22px 0 10px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.sched-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.sched-row .time { font-family: var(--f-mono); font-size: .8rem; font-weight: 700; }
.sched-row .where { font-family: var(--f-mono); font-size: .68rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.sched-row .teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sched-row .res { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; text-align: right; white-space: nowrap; }
@media (min-width: 720px) {
  .sched-row { grid-template-columns: 90px 120px minmax(0, 1fr) 110px; }
  .sched-row .teams { flex-direction: row; align-items: center; gap: 12px; }
  .sched-row .teams .vs { color: var(--dim); font-family: var(--f-mono); font-size: .7rem; }
}

/* pools */
.pool-card .card-head .h3 span { color: var(--orange); }

/* ---------- BRACKET ---------- */
.bracket-wrap { overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.bracket { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)) minmax(220px, .9fr); gap: 0 34px; min-width: 1040px; }
.b-col { display: flex; flex-direction: column; }
.b-col-head { font-family: var(--f-mono); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; display: flex; justify-content: space-between; }
.b-col-body { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 16px; }
.b-match { background: var(--court); border: 1px solid var(--line); position: relative; }
.b-match .game-row { padding: 9px 12px; }
.b-match .game-row .sc { font-size: 1.35rem; }
.b-meta { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 6px 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.b-pair { display: flex; flex-direction: column; justify-content: space-around; gap: 16px; position: relative; }
.b-pair::after { content: ""; position: absolute; right: -18px; top: 25%; bottom: 25%; width: 18px; border: 1px solid var(--line-strong); border-left: 0; pointer-events: none; }
.b-pair--fill { flex: 1; }
.b-col + .b-col .b-match::before, .b-champ .champ-plate::before { content: ""; position: absolute; left: -17px; top: 50%; width: 16px; height: 1px; background: var(--line-strong); }
.b-final .b-match::after { content: ""; position: absolute; right: -35px; top: 50%; width: 34px; height: 1px; background: var(--gold); }
.b-champ { position: relative; }
.b-champ .champ-plate { position: relative; overflow: visible; }
.bracket-mobile .b-match::before, .bracket-mobile .b-match::after, .bracket-mobile .champ-plate::before { display: none; }
.b-final .b-match { border-color: var(--gold); }
.b-champ { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.champ-plate { border: 1px solid var(--gold); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 16%, var(--court)), var(--court)); padding: 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.champ-plate .trophy { width: 52px; height: 52px; color: var(--gold); }
.tbd { color: var(--dim); font-style: italic; }
/* mobile bracket list */
.bracket-mobile { display: flex; flex-direction: column; gap: 22px; }
.bracket-mobile .round { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 899px) { .bracket-wrap.has-mobile { display: none; } }
@media (min-width: 900px) { .bracket-mobile { display: none; } }

/* ---------- dashboard ---------- */
.dash-hero { border-bottom: 1px solid var(--line); background: linear-gradient(120deg, color-mix(in srgb, var(--orange) 13%, var(--ink)), var(--ink) 55%); }
.dash-hero .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.next-game { background: #050505; border: 1px solid var(--orange); }
.next-game .vs-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 26px 20px; text-align: center; }
.next-game .side { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.next-game .side .nm { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.2rem, 4vw, 1.8rem); text-transform: uppercase; line-height: .95; }
.next-game .vs { font-family: var(--f-display); font-weight: 900; font-size: 2.4rem; color: var(--orange); }
.next-game .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.next-game .facts > div { padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.next-game .facts > div + div { border-left: 1px solid var(--line); }
.next-game .facts .v { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.checklist li:first-child { border-top: 0; }
.checklist .ic { width: 20px; height: 20px; flex-shrink: 0; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.checklist .ic.ok { background: var(--win); color: var(--on-accent); }
.checklist .ic.todo { border: 1px solid var(--gold); color: var(--gold); }

/* ---------- registration ---------- */
.stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.stepper div { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.stepper div::before { content: ""; height: 4px; background: var(--court-3); }
.stepper div.done::before { background: var(--chalk); }
.stepper div.cur { color: var(--chalk); }
.stepper div.cur::before { background: var(--orange); }
.stepper span.lbl { display: none; }
@media (min-width: 640px) { .stepper span.lbl { display: inline; } }
.roster-row { display: grid; grid-template-columns: 44px minmax(0, 1.6fr) 70px minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
.roster-row.head { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.roster-row .idx { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; color: var(--dim); text-align: center; }
@media (max-width: 560px) {
  .roster-row { grid-template-columns: 28px minmax(0, 1fr) 58px 32px; }
  .roster-row .pos-col { display: none; }
}
.icon-btn { background: none; border: 1px solid var(--line-strong); width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--loss); border-color: var(--loss); }
.summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 16px); }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.summary .line.total { font-weight: 800; font-size: 1.05rem; border-top-color: var(--line-strong); }
.card-mock { background: linear-gradient(135deg, #26211c, #111); border: 1px solid var(--line-strong); padding: 18px; aspect-ratio: 1.586; max-width: 340px; width: 100%; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--f-mono); }
.card-mock .n { font-size: 1.05rem; letter-spacing: .12em; }
.confirm-ticket { border: 1px dashed var(--line-strong); padding: 24px; display: grid; gap: 18px; background: var(--court); }
.confirm-code { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 7vw, 3.2rem); color: var(--gold); letter-spacing: .03em; line-height: 1; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 1000px) { .admin { grid-template-columns: 240px minmax(0, 1fr); } }
.admin-side { border-right: 1px solid var(--line); background: #070707; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 999px) { .admin-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px var(--gutter); scrollbar-width: none; } .admin-side .label { display: none; } .admin-side > * { flex: none; white-space: nowrap; } }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--muted); font-size: var(--t-sm); font-weight: 600; white-space: nowrap; }
.admin-side a:hover { color: var(--chalk); background: var(--court); }
.admin-side a.active { color: var(--chalk); background: var(--court-2); box-shadow: inset 3px 0 0 var(--orange); }
.admin-side a .badge { margin-left: auto; font-family: var(--f-mono); font-size: .66rem; background: var(--gold); color: var(--on-accent); padding: 2px 6px; font-weight: 700; }
.admin-main { padding: 28px var(--gutter) 60px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; }
.score-input { width: 64px; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; min-height: 42px; padding: 4px; }
.score-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.score-entry .teams { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.score-entry .teams > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.score-entry .act { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
@media (max-width: 599px) {
  .score-entry { grid-template-columns: minmax(0, 1fr); }
  .score-entry .act { flex-direction: row; flex-wrap: wrap; }
  .score-entry .act > * { flex: 1 1 auto; }
  .score-entry .act [data-savefinal] { flex-basis: 100%; min-height: 46px; }
  .score-entry .act .row { width: 100%; } .score-entry .act .row > :last-child { flex: 1; }
  .score-input { width: 72px; min-height: 48px; font-size: 1.5rem; }
}
.admin-note { border: 1px solid var(--line-strong); border-left: 3px solid var(--gold); padding: 12px 14px; font-size: var(--t-sm); color: var(--muted); background: var(--court); }
.demo-banner { background: var(--court-2); border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; color: var(--muted); text-align: center; padding: 7px 16px; }
.demo-banner b { color: var(--gold); }
.demo-banner button { background: none; border: 0; color: var(--orange); cursor: pointer; font: inherit; text-decoration: underline; padding: 0 0 0 6px; }

/* toast */
.toast-host { position: fixed; z-index: 100; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--chalk); color: var(--ink); padding: 13px 16px; font-weight: 600; font-size: var(--t-sm); display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: toastIn .25s ease-out; }
.toast::before { content: ""; width: 8px; height: 8px; background: var(--orange); flex-shrink: 0; }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--court); border: 1px solid var(--line-strong); width: min(560px, 100%); max-height: 90vh; overflow-y: auto; }
.modal .card-head { position: sticky; top: 0; background: var(--court); z-index: 1; }

/* misc */
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); }
.page-enter { animation: pageIn .35s ease-out; }
@keyframes pageIn { from { opacity: .001; transform: translateY(6px); } }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: revert; } .show-sm-only { display: none; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; background: var(--court-3); font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mvp-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.mvp-num { font-family: var(--f-display); font-weight: 900; font-size: 5.5rem; line-height: .8; color: var(--gold); -webkit-text-stroke: 0; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 6px 12px; align-items: center; }
.bar-row .bar { grid-column: 1 / -1; height: 6px; background: var(--court-3); }
.bar-row .bar i { display: block; height: 100%; background: var(--orange); }
.bar-row.first .bar i { background: var(--gold); }

/* ---------- simple homepage ---------- */
.home-simple .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-block: clamp(36px, 6vw, 72px); }
.feature-square { width: min(440px, 100%); aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: clamp(20px, 4vw, 40px); background: color-mix(in srgb, #050505 88%, transparent); border: 2px solid var(--orange); color: var(--chalk);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.feature-square:hover { transform: translateY(-4px); border-color: var(--gold); }
.feature-square:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.feature-title { font-size: clamp(2rem, 7vw, 2.8rem); line-height: .88; }
.feature-prize { display: flex; flex-direction: column; gap: 4px; }
.feature-money { font-family: var(--f-display); font-weight: 900; font-size: clamp(3.4rem, 13vw, 4.8rem); line-height: .85; color: var(--gold); }
.feature-square .cd-n { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.feature-square .cd-cell { padding: 8px 4px 6px; }
.feature-square { gap: 12px; padding: clamp(18px, 3vw, 26px); }
.feature-cta { padding: 12px; }
.feature-meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: var(--t-sm); }
.feature-meta b { color: var(--chalk); }
.feature-cta { align-self: stretch; text-align: center; background: var(--orange); color: var(--on-accent); padding: 16px; font-family: var(--f-mono); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.feature-square:hover .feature-cta { background: #FF8338; }
@media (max-width: 560px) { .feature-square { aspect-ratio: auto; } }

/* payment details: stacked so a long email never collides with the amount */
.pay-lines { display: flex; flex-direction: column; gap: 14px; }
.pay-lines > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pay-email { font-family: var(--f-mono); font-size: .95rem; overflow-wrap: anywhere; word-break: break-word; }
.v.mono { overflow-wrap: anywhere; }
.pay-lines .v.big { font-family: var(--f-display); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--gold); }

/* bracket pairs share height evenly so connectors line up across any number of rounds */
.b-pair--fill { flex: 1; justify-content: space-around; }

/* sliders */
.range { width: 100%; accent-color: var(--orange); height: 28px; cursor: pointer; }
