/* ============================================================
   STARBASE FUTSAL CLUB — core styles
   ============================================================ */

:root {
  /* matte black base + charcoal surfaces (low saturation, cool-neutral) */
  --bg:        #0b0b0d;
  --bg-2:      #0f0f12;
  --surface:   #151519;
  --surface-2: #1c1c21;
  --surface-3: #26262d;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);

  /* light "chapter" surfaces */
  --paper:     #f3f2ef;
  --paper-2:   #e9e8e3;
  --ink:       #111114;

  /* text */
  --text:      #f5f5f6;
  --muted:     #a6a6ad;
  --faint:     #74747c;

  /* brand red */
  --red:       #ec3a2f;
  --red-bright:#ff5247;
  --red-deep:  #b41f17;
  --red-glow:  rgba(236,58,47,.45);

  /* chalk (team B / secondary on pitch) */
  --chalk:     #eef0f2;

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --font: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- type ---------- */
h1,h2,h3,h4 { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -.02em; }
p { margin: 0; }

.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
  display: inline-block;
}
.kicker.center { justify-content: center; }

.section-title {
  font-size: clamp(30px, 6vw, 54px);
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(16px, 3.6vw, 19px);
  max-width: 56ch;
  text-wrap: pretty;
}

.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; font-family: var(--mono); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section.block { padding: clamp(46px, 7.5vw, 88px) 0; position: relative; }

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(22px, 4vw, 40px); }

/* light chapter */
.chapter-light { background: var(--paper); color: var(--ink); }
.chapter-light .section-lead { color: #44443f; }
.chapter-light .kicker { color: var(--red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s, border-color .2s;
  min-height: 52px;
}
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 8px 30px -8px var(--red-glow);
}
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--red-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 36px);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,11,13,.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-logo { height: 19px; width: auto; opacity: .96; }
.nav-links { display: none; gap: 4px; align-items: center; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
  padding: 9px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-cta { display: none; white-space: nowrap; }

/* mobile bottom tab bar */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: stretch;
  background: rgba(13,13,16,.86);
  backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--line);
  padding: 6px 6px max(6px, env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; font-size: 10px; font-weight: 600; color: var(--faint);
  font-family: var(--mono); letter-spacing: .04em; transition: color .2s;
  border-radius: 12px;
}
.tabbar a svg { width: 21px; height: 21px; stroke: currentColor; }
.tabbar a.active { color: var(--red); }
.tabbar a.cta { color: #fff; }
.tabbar a.cta svg { stroke: var(--red); }

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-logo { height: 22px; }
  .tabbar { display: none; }
}

/* page bottom padding so tabbar doesn't cover footer on mobile */
@media (max-width: 879px) { body { padding-bottom: 64px; } }

/* ============================================================
   HERO (Section A)
   ============================================================ */
.hero {
  position: relative;
  min-height: 78svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(96px, 14vh, 116px) 0 clamp(44px, 8vh, 68px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg canvas { width: 100%; height: 100%; display: block; }
.hero-grad {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(236,58,47,.16), transparent 55%),
    radial-gradient(100% 70% at 0% 100%, rgba(236,58,47,.08), transparent 60%),
    linear-gradient(180deg, rgba(11,11,13,.2) 0%, rgba(11,11,13,.55) 55%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 14px 7px 11px; margin-bottom: 26px;
  background: rgba(255,255,255,.03); white-space: nowrap;
}
@media (max-width:420px){ .hero-badge{ font-size:10.5px; white-space:normal; } }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-glow); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 0 var(--red-glow);} 50%{ box-shadow:0 0 0 6px transparent;} }
@media (prefers-reduced-motion: reduce){ .hero-badge .dot{ animation:none; } }

.hero h1 {
  font-size: clamp(44px, 12.5vw, 116px);
  line-height: .88;
  letter-spacing: -.04em;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 .hl-line { display: block; }
.hero h1 .line2 { color: transparent; -webkit-text-stroke: 1.4px rgba(255,255,255,.5); }
.hero h1 .red { color: var(--red); }
.hero-tag {
  font-size: clamp(18px, 4.4vw, 26px); font-weight: 600; letter-spacing: -.01em;
  max-width: 18ch; text-wrap: balance; margin-bottom: 12px;
}
.hero-promise { color: var(--muted); max-width: 46ch; font-size: clamp(15px,3.6vw,17.5px); text-wrap: pretty; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width:600px){
  .hero { min-height: auto; padding: 92px 0 48px; }
  .hero-badge { margin-bottom: 20px; }
}

.hero-scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--faint); text-transform: uppercase;
}
.hero-scroll .mouse { width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; }
.hero-scroll .mouse::after { content:""; position:absolute; left:50%; top:7px; width:3px; height:7px; border-radius:2px; background: var(--muted); transform: translateX(-50%); animation: scrolld 1.8s var(--ease) infinite; }
@keyframes scrolld { 0%{opacity:0; transform:translate(-50%,0);} 30%{opacity:1;} 70%{opacity:1;} 100%{opacity:0; transform:translate(-50%,9px);} }
@media (prefers-reduced-motion: reduce){ .hero-scroll .mouse::after{ animation:none; } }
@media (max-width:879px){ .hero-scroll{ display:none; } }

/* ============================================================
   PIPELINE (Section B)
   ============================================================ */
.pipeline { position: relative; }
.pipe-track { position: relative; margin-top: 18px; }

/* desktop: horizontal */
.pipe-nodes { display: grid; gap: 14px; }
@media (min-width: 880px){
  .pipe-nodes { grid-template-columns: repeat(6, 1fr); gap: 22px; position: relative; }
}

.pipe-node {
  position: relative; z-index: 2;
  display: flex; gap: 14px; align-items: flex-start;
  text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  transition: border-color .25s, background .25s, transform .25s;
  width: 100%; color: inherit;
}
@media (min-width: 880px){
  .pipe-node {
    flex-direction: column; align-items: center; text-align: center;
    margin: 0; padding: 24px 16px;
  }
}
.pipe-node:hover { border-color: var(--line-2); }
.pipe-node.open { border-color: var(--red); background: var(--surface-2); }
.pipe-num {
  flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
  transition: all .25s;
}
.pipe-node.open .pipe-num { background: var(--red); border-color: var(--red); color: #fff; }
.pipe-node.done .pipe-num { color: var(--red); border-color: rgba(236,58,47,.4); }
.pipe-node h4 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.pipe-node .pn-sub { font-size: 13px; color: var(--faint); font-family: var(--mono); margin-top: 3px; letter-spacing: .02em; }
.pipe-node .pn-body { min-width: 0; }
@media(min-width:880px){ .pipe-node .pn-body{ min-width:0; } }

/* connector line (svg-drawn) */
.pipe-line-svg { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none; }
@media (min-width: 880px){ .pipe-line-svg { display: block; } }
.pipe-line-svg path { fill: none; stroke: var(--line-2); stroke-width: 2; }
.pipe-line-svg path.prog { stroke: var(--red); stroke-linecap: round; }

/* mobile vertical connector */
.pipe-nodes.vert { position: relative; }
@media (max-width: 879px){
  .pipe-nodes { padding-left: 4px; }
}

/* detail panel */
.pipe-detail {
  margin-top: 18px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 0 22px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .45s var(--ease), opacity .35s, padding .45s var(--ease);
}
.pipe-detail.show { max-height: 360px; opacity: 1; padding: 22px; }
.pipe-detail h4 { font-size: 19px; margin-bottom: 8px; }
.pipe-detail p { color: var(--muted); max-width: 64ch; }
.pipe-detail .pd-tag { font-family: var(--mono); font-size: 12px; color: var(--red); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; display:block; }

/* ============================================================
   FORMAT AT A GLANCE (Section C)
   ============================================================ */
.facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (min-width: 720px){ .facts { grid-template-columns: repeat(4,1fr); } }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.fact:hover { border-color: var(--line-2); transform: translateY(-3px); }
.fact .ic { color: var(--red); margin-bottom: 18px; }
.fact .ic svg { width: 26px; height: 26px; stroke: currentColor; fill: none; }
.fact .big { font-family: var(--mono); font-weight: 700; font-size: clamp(38px,9vw,56px); line-height: 1; letter-spacing: -.03em; }
.fact .lbl { color: var(--muted); font-size: 14.5px; margin-top: 8px; font-weight: 500; }
.fact .corner { position: absolute; top: -30px; right: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, var(--red-glow), transparent 70%); opacity: .5; pointer-events: none; }
.format-note { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; }
.format-note b { color: var(--text); font-weight: 700; }

/* ============================================================
   D · ELIGIBILITY  (light chapter)
   ============================================================ */
.elig-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px){ .elig-grid { grid-template-columns: repeat(3,1fr); } }
.elig-card {
  background: #fff; border: 1px solid var(--paper-2); border-radius: var(--radius);
  padding: 26px 24px 28px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.elig-card .topbar { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.elig-card.ok .topbar { background: var(--red); }
.elig-card.no .topbar { background: #c9c8c2; }
.elig-card.cond .topbar { background: linear-gradient(90deg, var(--red), #c9c8c2); }
.elig-ic { width: 46px; height: 46px; border-radius: 12px; display:grid; place-items:center; background: var(--paper); }
.elig-ic svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.elig-card.ok .elig-ic { background: rgba(236,58,47,.1); } .elig-card.ok .elig-ic svg { stroke: var(--red); }
.elig-status {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  padding: 5px 11px; border-radius: 999px;
}
.elig-card.ok .elig-status { color: var(--red); background: rgba(236,58,47,.1); }
.elig-card.no .elig-status { color: #6b6a64; background: var(--paper); }
.elig-card.cond .elig-status { color: #8a3e10; background: #f6e7dd; }
.elig-card h3 { font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.elig-card p { color: #4a4a44; font-size: 15.5px; }
.elig-card .note { font-family: var(--mono); font-size: 12.5px; color: #7a7972; border-top: 1px solid var(--paper-2); padding-top: 14px; margin-top: auto; }

/* ============================================================
   E · ASSESSMENT SYSTEM
   ============================================================ */
.assess-steps { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 56px; }
@media (min-width: 760px){ .assess-steps { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1040px){ .assess-steps { grid-template-columns: repeat(4,1fr); } }
.astep {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; position: relative;
}
.astep .sn { font-family: var(--mono); font-size: 13px; color: var(--red); font-weight: 700; letter-spacing: .1em; }
.astep h4 { font-size: 17.5px; margin: 12px 0 8px; letter-spacing: -.01em; }
.astep p { color: var(--muted); font-size: 14.5px; }
.astep .hl { color: var(--text); font-weight: 700; }

/* score builder */
.score-build {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 44px); overflow: hidden;
}
.sb-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 30px; }
.sb-head h3 { font-size: clamp(22px,4.5vw,30px); }
.sb-head .sub { font-family: var(--mono); font-size: 12.5px; color: var(--faint); letter-spacing: .04em; }

.raters { display: grid; gap: 14px; }
.rater-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px){ .rater-row { grid-template-columns: 190px 1fr auto; align-items: center; gap: 18px; } }
.rater-label { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15px; }
.rater-label .ric { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.rater-label .ric svg { width: 18px; height: 18px; stroke: var(--red); fill: none; stroke-width: 1.8; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dots .d { width: 13px; height: 13px; border-radius: 4px; background: var(--surface-3); transform: scale(0); transition: transform .4s var(--ease); }
.dots .d.on { background: var(--red); }
.rater-row.in .dots .d { transform: scale(1); }
.rater-count { font-family: var(--mono); font-size: 14px; color: var(--muted); font-weight: 500; }
.rater-count b { color: var(--text); }

.sb-math {
  margin-top: 30px; padding-top: 26px; border-top: 1px dashed var(--line-2);
  display: grid; gap: 20px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px){ .sb-math { grid-template-columns: auto auto auto 1fr; gap: 26px; } }
.math-chip { text-align: center; }
.math-chip .v { font-family: var(--mono); font-weight: 700; font-size: clamp(30px,7vw,44px); line-height: 1; letter-spacing: -.03em; }
.math-chip .v.red { color: var(--red); }
.math-chip .k { font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin-top: 8px; }
.math-op { font-family: var(--mono); font-size: 26px; color: var(--faint); text-align: center; }
.score-final { display: flex; align-items: center; gap: 20px; justify-self: start; }
@media (min-width:860px){ .score-final { justify-self: end; } }
.gauge { width: 104px; height: 104px; flex: none; position: relative; }
.gauge svg { transform: rotate(-90deg); }
.gauge .track { fill: none; stroke: var(--surface-3); stroke-width: 9; }
.gauge .val { fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.gauge .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-family: var(--mono); font-weight: 700; font-size: 26px; }
.gauge .num small { font-size: 11px; color: var(--faint); font-weight: 500; margin-top: 3px; line-height: 1; }

.reshuffle {
  margin-top: 26px; display: flex; gap: 14px; align-items: flex-start;
  background: rgba(236,58,47,.07); border: 1px solid rgba(236,58,47,.25); border-radius: var(--radius);
  padding: 18px 20px;
}
.reshuffle .ric { color: var(--red); flex: none; } .reshuffle .ric svg{ width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8; }
.reshuffle p { color: var(--muted); font-size: 14.5px; } .reshuffle b { color: var(--text); }

/* ============================================================
   F · INTERACTIVE PITCH
   ============================================================ */
.pitch-wrap { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 980px){ .pitch-wrap { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.stage-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.stage-switch button {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
  padding: 9px 15px; border-radius: 999px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); transition: all .2s;
}
.stage-switch button:hover { border-color: var(--line-2); color: var(--text); }
.stage-switch button.active { background: var(--red); border-color: var(--red); color: #fff; }

/* stage context banner — makes the active stage obvious */
.field-banner {
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: var(--radius); padding: 15px 18px; margin-bottom: 16px;
}
.field-banner.flash { animation: fbFlash .65s var(--ease); }
@keyframes fbFlash { 0%{ background: rgba(236,58,47,.16); border-left-color: var(--red-bright);} 100%{ background: var(--surface);} }
@media (prefers-reduced-motion: reduce){ .field-banner.flash{ animation:none; } }
.fb-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fb-stage { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.fb-headline { font-weight: 600; font-size: 15.5px; color: var(--text); text-wrap: balance; }
.fb-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-fact { font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; white-space: nowrap; }
.fb-fact b { color: var(--text); font-weight: 700; }

/* court stage ribbon + rating pulse reflect the stage on the field itself */
.court-ribbon {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: #fff; background: rgba(11,11,13,.72); backdrop-filter: blur(6px);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; white-space: nowrap;
}
.court-ribbon .cr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.court[data-stage="assessment"] .court-ribbon .cr-dot { animation: pulse 1.8s var(--ease) infinite; }
.player::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--red); opacity: 0; pointer-events: none;
}
.court[data-stage="assessment"] .player::after { opacity: .85; animation: rateRing 2.1s var(--ease) infinite; }
@keyframes rateRing { 0%{ transform: scale(.65); opacity:.85;} 70%{ opacity:0;} 100%{ transform: scale(1.55); opacity:0;} }
@media (prefers-reduced-motion: reduce){ .court[data-stage="assessment"] .player::after{ animation:none; opacity:.45; transform:scale(1.08);} }
.pitch-hint { color: var(--red) !important; font-weight: 600; }
.pitch-hint svg { stroke: var(--red); }

.pitch-stage { display: flex; flex-direction: column; }
.court {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 28px, transparent 28px 56px),
    linear-gradient(160deg, #18181c, #121215);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0,0,0,.5);
}
.court svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.court svg.lines * { stroke: rgba(255,255,255,.28); stroke-width: 1.6; fill: none; vector-effect: non-scaling-stroke; }

.player {
  position: absolute; transform: translate(-50%,-50%);
  width: clamp(30px, 7vw, 44px); height: clamp(30px, 7vw, 44px);
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: clamp(11px,2.6vw,14px);
  border: 2px solid; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s;
  z-index: 3;
}
.player:hover, .player.sel { transform: translate(-50%,-50%) scale(1.15); z-index: 5; }
.player.tA { background: var(--red); border-color: #ff7a72; color: #fff; }
.player.tB { background: var(--chalk); border-color: #fff; color: #18181c; }
.player.sel { box-shadow: 0 0 0 4px var(--red-glow), 0 8px 20px rgba(0,0,0,.5); }
.player .pos { position: absolute; bottom: -16px; font-size: 9px; font-family: var(--mono); color: var(--muted); letter-spacing: .05em; }
.player.gk { border-style: dashed; }

.subs-line { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: .04em; }
.sub-marker { width: 22px; height: 22px; border-radius: 6px; display:grid; place-items:center; font-size: 10px; font-weight:700; }
.sub-marker.tA { background: rgba(236,58,47,.2); color: var(--red-bright); border: 1px solid rgba(236,58,47,.4); }
.sub-marker.tB { background: rgba(255,255,255,.12); color: var(--chalk); border: 1px solid rgba(255,255,255,.25); }
.pitch-legend { display:flex; gap:18px; flex-wrap:wrap; margin-top:14px; font-size:13px; color:var(--muted); }
.pitch-legend .lg { display:flex; align-items:center; gap:8px; } .pitch-legend .sw { width:13px;height:13px;border-radius:50%; }

/* player detail card */
.player-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; position: relative; min-height: 200px;
}
.player-card .empty { color: var(--faint); font-family: var(--mono); font-size: 13.5px; text-align: center; padding: 40px 10px; line-height: 1.7; }
.pc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.pc-avatar { width: 52px; height: 52px; border-radius: 14px; display:grid; place-items:center; font-family: var(--mono); font-weight: 700; font-size: 18px; flex: none; }
.pc-head h4 { font-size: 20px; letter-spacing: -.01em; }
.pc-head .pc-pos { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.pc-example { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); border: 1px solid rgba(236,58,47,.4); border-radius: 999px; padding: 3px 9px; }
.pc-section-t { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 20px 0 10px; }
.pc-raters { display: grid; gap: 8px; }
.pc-rater { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; padding: 9px 13px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.pc-rater .who { color: var(--muted); display:flex; align-items:center; gap:9px; }
.pc-rater .who svg { width:16px;height:16px;stroke:var(--red);fill:none;stroke-width:1.8; }
.pc-rater .cnt { font-family: var(--mono); font-weight: 700; }
.pc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pc-stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 13px; }
.pc-stat .k { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .05em; text-transform: uppercase; }
.pc-stat .v { font-family: var(--mono); font-weight: 700; font-size: 21px; margin-top: 4px; }
.pc-stat .v.red { color: var(--red); }
.pc-note { margin-top: 14px; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.pc-callout { font-size: 13.5px; line-height: 1.5; color: var(--text); background: rgba(236,58,47,.08); border: 1px solid rgba(236,58,47,.25); border-radius: 10px; padding: 11px 13px; margin-bottom: 16px; }
.pc-callout b { color: var(--red); font-weight: 700; }
.pc-close { display: none; }

/* on mobile the player detail becomes a bottom sheet so it's never buried */
@media (max-width: 979px){
  .player-card {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; min-height: 0;
    max-height: 80vh; overflow-y: auto; border-radius: 20px 20px 0 0;
    transform: translateY(112%); transition: transform .36s var(--ease);
    box-shadow: 0 -16px 44px rgba(0,0,0,.55);
    padding: 24px 20px max(24px, env(safe-area-inset-bottom));
  }
  .player-card.open { transform: translateY(0); }
  /* the bottom sheet must never be governed by the scroll-reveal transform */
  .player-card.reveal { opacity: 1; transition: transform .36s var(--ease); }
  .player-card.reveal.in { transform: translateY(112%); }
  .player-card.reveal.in.open { transform: translateY(0); }
  .player-card .empty { display: none; }
  .player-card::before {
    content: ""; position: sticky; top: 0; display: block; width: 42px; height: 4px;
    border-radius: 999px; background: var(--line-2); margin: -6px auto 14px;
  }
  .pc-close { display: grid; place-items: center; position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); z-index: 2; }
  .pc-close:hover { color: #fff; }
}
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.sheet-backdrop.show { opacity: 1; visibility: visible; }
@media (min-width: 980px){ .sheet-backdrop { display: none; } }

/* ============================================================
   G · AI TEAM BUILDING
   ============================================================ */
.build-area { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px,4vw,40px); }
.build-top { display:flex; flex-wrap:wrap; gap:14px; align-items:center; justify-content:space-between; margin-bottom:26px; }
.pos-legend { display:flex; flex-wrap:wrap; gap:14px; font-size:13px; color:var(--muted); }
.pos-legend .pl { display:flex; align-items:center; gap:7px; } .pos-legend .sw{ width:12px;height:12px;border-radius:3px; }
.teams-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:10px; }
@media (min-width:720px){ .teams-grid { grid-template-columns: repeat(6,1fr); } }
.team-col { background: var(--bg-2); border:1px solid var(--line); border-radius:12px; padding:12px 10px; display:flex; flex-direction:column; gap:7px; min-height:200px; }
.team-col .tc-name { font-family:var(--mono); font-weight:700; font-size:13px; text-align:center; color:var(--muted); }
.slot { height:24px; border-radius:6px; background: var(--surface-3); opacity:.4; }
.chip { height:24px; border-radius:6px; display:flex; align-items:center; gap:6px; padding:0 8px; font-family:var(--mono); font-size:11px; font-weight:700; color:#fff; opacity:0; transform: translateY(-8px); transition: opacity .35s, transform .35s var(--ease); }
.chip.in { opacity:1; transform:none; }
.chip .sc { margin-left:auto; opacity:.85; }
.strength { margin-top:14px; }
.strength .sb-label { display:flex; justify-content:space-between; font-family:var(--mono); font-size:11px; color:var(--faint); margin-bottom:4px; }
.strbar { height:7px; border-radius:4px; background: var(--surface-3); overflow:hidden; }
.strbar i { display:block; height:100%; background: linear-gradient(90deg, var(--red-deep), var(--red)); width:0; transition: width 1s var(--ease); border-radius:4px; }

/* ============================================================
   H · BRACKET
   ============================================================ */
.bracket { display:grid; gap:14px; }
.bracket > .bk-block { position: relative; }
.bracket > .bk-block:not(:last-child) { padding-bottom: 24px; }
.bracket > .bk-block:not(:last-child)::after {
  content: ""; position:absolute; left:50%; bottom:6px; transform:translateX(-50%);
  width:10px; height:10px; border-right:2px solid #c7c6bf; border-bottom:2px solid #c7c6bf; rotate:45deg;
}
.bk-stage-title { font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:#7a7972; margin-bottom:14px; display:flex; align-items:center; gap:8px 10px; flex-wrap:wrap; }
.bk-stage-title .dur { color:var(--red); }
.groups { display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width:680px){ .groups { grid-template-columns:1fr 1fr; } }
.group-box { background:#fff; border:1px solid var(--paper-2); border-radius:var(--radius); padding:18px; box-shadow:0 1px 2px rgba(0,0,0,.03); }
.group-box h4 { font-size:16px; margin-bottom:4px; color:var(--ink); }
.group-box .rr { font-family:var(--mono); font-size:11.5px; color:#8a8980; margin-bottom:14px; }
.bk-team { display:flex; align-items:center; gap:11px; padding:11px 13px; border-radius:10px; background:var(--paper); border:1px solid var(--paper-2); margin-bottom:8px; transition: all .4s var(--ease); }
.bk-team:last-child { margin-bottom:0; }
.bk-team .badge { width:30px;height:30px;border-radius:8px;display:grid;place-items:center;font-family:var(--mono);font-weight:700;font-size:13px; background:#e2e1db; color:#5a594f; flex:none; }
.bk-team .nm { font-weight:700; font-size:14.5px; color:var(--ink); }
.bk-team .adv { margin-left:auto; font-family:var(--mono); font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:#a8a79e; opacity:0; transition:opacity .4s; }
.bk-team.qualified { border-color: var(--red); background: rgba(236,58,47,.07); }
.bk-team.qualified .badge { background: var(--red); color:#fff; }
.bk-team.qualified .adv { opacity:1; color: var(--red); }
.finals-row { display:grid; gap:16px; grid-template-columns:1fr; align-items:stretch; }
@media (min-width:820px){ .finals-row { grid-template-columns: 1fr 1fr; } }
.semi, .final-box { background:#fff; border:1px solid var(--paper-2); border-radius:var(--radius); padding:16px; }
.final-box { border-color: var(--red); background: linear-gradient(180deg, rgba(236,58,47,.10), #fff); }
.trophy-wrap { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; text-align:center; padding:16px 8px; background:#fff; border:1px solid var(--paper-2); border-radius:var(--radius); }
.trophy { width:54px; height:54px; color: var(--red); } .trophy svg{ width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:1.6; }
.champion-name { font-family:var(--mono); font-weight:700; font-size:14.5px; color:#7a7972; max-width:18ch; }

/* ============================================================
   I · PLAYING TIME  (light chapter)
   ============================================================ */
.time-rows { display:grid; gap:14px; }
.time-row { display:grid; grid-template-columns: 1fr; gap:8px; }
@media (min-width:680px){ .time-row { grid-template-columns: 168px 1fr; align-items:center; gap:20px; } }
.time-label { display:flex; flex-direction:column; gap:2px; }
.time-label .tl-name { font-weight:800; font-size:16px; color: var(--ink); display:flex; align-items:center; gap:9px; letter-spacing:-.01em; }
.time-label .tl-name::before { content:""; width:11px; height:11px; border-radius:3px; flex:none; }
.time-label .tl-sub { font-family:var(--mono); font-size:12px; color:#7a7972; padding-left:20px; }
.time-bar { height:46px; background: #fff; border:1px solid var(--paper-2); border-radius:11px; position:relative; overflow:hidden; }
.time-bar i { position:absolute; inset:0; width:0; border-radius:10px; transition: width 1.05s var(--ease); }
.time-bar .val { position:absolute; right: calc(100% - var(--w, 100%) + 15px); top:50%; transform:translateY(-50%); font-family:var(--mono); font-weight:700; font-size:14px; color:#fff; z-index:2; display:flex; align-items:center; }
.time-note { margin-top:20px; font-family:var(--mono); font-size:13px; color:#7a7972; display:flex; gap:9px; align-items:center; }

/* escalating colour per stage — building toward the final */
.time-row.s1 .tl-name::before { background:#9a9892; }
.time-row.s2 .tl-name::before { background:#d98b2b; }
.time-row.s3 .tl-name::before { background:#e3582c; }
.time-row.s4 .tl-name::before { background:var(--red); }
.time-row.s1 .time-bar i { background: linear-gradient(90deg,#a8a69f,#8d8b84); }
.time-row.s2 .time-bar i { background: linear-gradient(90deg,#e7a955,#d98b2b); }
.time-row.s3 .time-bar i { background: linear-gradient(90deg,#f0814e,#e3582c); }
.time-row.s4 .time-bar i { background: linear-gradient(90deg,#ff6258,#ec3a2f); }
.time-row.s4 .time-bar { height:54px; border-color: rgba(236,58,47,.45); box-shadow: 0 10px 26px -10px var(--red-glow); }
.time-row.s4 .time-bar .val { font-size:15.5px; }
.time-row.s4 .tl-name { color: var(--red); }

/* ============================================================
   J · REGISTRATION FORM
   ============================================================ */
.reg-section { position: relative; }
.reg-card {
  max-width: 560px; margin: 0 auto;
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px,5vw,40px);
}
.field { margin-bottom: 20px; }
.field label { display:block; font-weight:600; font-size:14.5px; margin-bottom:9px; }
.field label .req { color: var(--red); }
.field input[type=text], .field input[type=tel], .field select {
  width:100%; background: var(--bg-2); border:1px solid var(--line); border-radius:11px;
  padding: 14px 15px; color: var(--text); font-family: var(--font); font-size:16px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance:none; appearance:none;
}
.field input:focus, .field select:focus { outline:none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a6a6ad' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position: right 16px center; padding-right: 42px; }
.field .err { color: var(--red-bright); font-size: 13px; font-family: var(--mono); margin-top:7px; display:none; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.field.invalid .err { display:block; }
.field .hint { color: var(--faint); font-size: 12.5px; font-family: var(--mono); margin-top:7px; }

/* self-assessment selector */
.rating-pills { display:flex; gap:6px; flex-wrap:wrap; }
.rating-pills button {
  flex:1; min-width: 38px; aspect-ratio:1; border-radius:10px; font-family:var(--mono); font-weight:700; font-size:15px;
  background: var(--bg-2); border:1px solid var(--line); color: var(--muted); transition: all .18s;
}
.rating-pills button:hover { border-color: var(--line-2); color: var(--text); }
.rating-pills button.active { background: var(--red); border-color: var(--red); color:#fff; transform: translateY(-2px); }

.check-row { display:flex; gap:12px; align-items:flex-start; cursor:pointer; }
.check-row input { margin-top:3px; width:18px; height:18px; accent-color: var(--red); flex:none; }
.check-row span { font-size:14px; color: var(--muted); }

.form-status { margin-top:14px; font-family:var(--mono); font-size:13px; min-height:18px; }
.form-status.error { color: var(--red-bright); }
.form-status.info { color: var(--muted); }

.reg-success { text-align:center; padding: 20px 6px; display:none; }
.reg-success.show { display:block; animation: popin .5s var(--ease); }
@keyframes popin { from{ opacity:0; transform: scale(.94);} to{opacity:1;transform:none;} }
.reg-success .check { width:64px;height:64px;border-radius:50%; background: rgba(236,58,47,.12); display:grid; place-items:center; margin:0 auto 18px; }
.reg-success .check svg { width:32px;height:32px;stroke:var(--red);fill:none;stroke-width:2.4; }
.reg-success h3 { font-size:24px; margin-bottom:8px; }
.reg-success p { color: var(--muted); }

.btn-block { width:100%; }
.btn[disabled] { opacity:.55; pointer-events:none; }
.spinner { width:17px;height:17px;border-radius:50%;border:2px solid rgba(255,255,255,.4); border-top-color:#fff; animation: spin .7s linear infinite; display:none; }
.btn.loading .spinner { display:inline-block; } .btn.loading .btxt { opacity:.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   K · FAQ + FOOTER
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; text-align:left; background:none; border:none; color:var(--text); padding: 22px 4px; font-size: clamp(16px,3.8vw,19px); font-weight:600; }
.faq-q .pm { flex:none; width:26px;height:26px; position:relative; }
.faq-q .pm::before, .faq-q .pm::after { content:""; position:absolute; background: var(--red); border-radius:2px; transition: transform .3s var(--ease); }
.faq-q .pm::before { left:4px; right:4px; top:12px; height:2px; }
.faq-q .pm::after { top:4px; bottom:4px; left:12px; width:2px; }
.faq-item.open .pm::after { transform: scaleY(0); }
.faq-a { max-height:0; overflow:hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 4px 24px; color: var(--muted); max-width:64ch; }

.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2); }
.footer-grid { display:flex; flex-direction:column; gap:26px; align-items:flex-start; }
@media (min-width:720px){ .footer-grid { flex-direction:row; justify-content:space-between; align-items:center; } }
.footer-logo { height:22px; opacity:.9; }
.footer .tag { color: var(--faint); font-size:13.5px; font-family:var(--mono); margin-top:12px; }
.footer-cta { display:flex; gap:12px; flex-wrap:wrap; }
.footer-legal { margin-top:30px; padding-top:24px; border-top:1px solid var(--line); color: var(--faint); font-size:12.5px; font-family:var(--mono); display:flex; flex-wrap:wrap; gap:8px 18px; }

/* logo placeholder ring */
.logo-ph { display:inline-flex; align-items:center; gap:10px; }
.logo-ph .ph-tag { font-family:var(--mono); font-size:9px; color:var(--faint); border:1px dashed var(--line-2); border-radius:5px; padding:2px 5px; letter-spacing:.05em; }
