/* Matchup web shell — the design system's confirmed vocabulary (D1):
   Sunlit language: Fredoka over Nunito, cream/teal/sun (decision: Sunlit note)
   #3E7C84 with green #3F8231, gold #F6B62E accents, 6-10px radii.
   Tokens copied verbatim from the handoff's _ds/styles.css. */

:root {
  --purple: #3E7C84;
  --purple-deep: #244F55;
  --purple-soft: #DDEEF0;
  --green: #3F8231;
  --green-soft: #D9EFCF;
  --gold: #F6B62E;
  --gold-soft: #FBEECB;
  --amber: #8A6414;
  --amber-soft: #FBEECB;
  --success: #F6B62E;
  --red: #D8402E;
  --wa: #25D366;
  --ground: #FFF8EA;
  --card: #FFFFFF;
  --ink: #1F2A2E;
  --muted: #617076;
  --line: #E7DFCF;
  --shadow: 0 4px 0 rgba(31,42,46,.08);
  --shadow-lg: 0 8px 0 rgba(31,42,46,.10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
}
main { max-width: 640px; margin: 0 auto; padding: 16px 16px 96px; }

h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600;
  margin: 0 0 8px; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; margin-top: 24px; }
p { margin: 0 0 12px; }
a { color: var(--purple); }

header.top {
  background: var(--card);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
header.top .brand {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600; font-size: 1.2rem; color: var(--ink);
  text-decoration: none;
}
header.top .brand::before { content: "📈"; content: ""; }
header.top nav a { color: var(--muted); text-decoration: none;
  margin-left: 14px; font-size: .9rem; font-weight: 500; }
header.top nav a:hover { color: var(--ink); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; margin: 12px 0;
}
.card h3 { font-size: 1.05rem; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: grid; gap: 10px; }

button, .btn {
  appearance: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 100px;
  font: 600 1rem 'Fredoka', 'Nunito', sans-serif; padding: 12px 22px;
  background: var(--gold); color: var(--ink); text-decoration: none;
  display: inline-block; text-align: center;
  box-shadow: 0 4px 0 #C98E12;
}
button.green, .btn.green {
  background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 #C98E12;
}
button.purple, .btn.purple {
  background: var(--purple); color: #fff; box-shadow: 0 4px 0 var(--purple-deep);
}
button.ghost, .btn.ghost {
  background: transparent; color: var(--purple);
  border-color: var(--purple); box-shadow: none;
}
button.small, .btn.small { padding: 7px 16px; font-size: .85rem; box-shadow: 0 3px 0 #C98E12; }
button.small.ghost, .btn.small.ghost { box-shadow: none; }
button.small.purple, .btn.small.purple { box-shadow: 0 3px 0 var(--purple-deep); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

input, select {
  font: inherit; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 16px; width: 100%; background: var(--ground); color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--purple);
}
label { font-size: .8rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }
.field { margin-bottom: 12px; }

.pill {
  display: inline-block; font-size: .72rem; font-weight: 700;
  border-radius: 999px; padding: 3px 10px; vertical-align: middle;
}
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.purple { background: var(--purple-soft); color: var(--purple); }

.consequence {
  background: var(--purple-soft); color: var(--purple);
  border-radius: 18px; padding: 14px 16px; font-weight: 700;
}
.notice { background: var(--amber-soft); color: var(--amber); border-radius: 18px; padding: 12px 14px; }
.ok { background: var(--green-soft); color: var(--green); border-radius: 18px; padding: 12px 14px; }

.playerpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.playerpick label {
  display: flex; align-items: center; gap: 8px; font-size: .92rem;
  font-weight: 600; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 18px;
  padding: 10px; margin: 0; cursor: pointer;
}
.playerpick input { width: auto; }
.q3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.match {
  display: grid; grid-template-columns: 1fr auto; gap: 6px;
  border-top: 1px solid var(--line); padding: 10px 0;
}
.match .names div { padding: 2px 0; }
.match .won { font-weight: 700; color: var(--green); }
.roundhead { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-top: 14px; }

table.plain { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.plain td { padding: 8px 6px; border-bottom: 1px solid var(--line); }

.err { color: var(--red); font-weight: 600; }

@media print {
  header.top, .no-print, button, .btn { display: none !important; }
  body { background: #fff; }
  .card { border: 1px solid #999; break-inside: avoid; }
}

/* --- Sprint 8: toasts, modals, tabs, tables, chips ----------------------- */

.userchip { color:var(--ink); font-weight:600; font-size:.85rem; margin-right:6px; }

#toasts { position:fixed; left:0; right:0; bottom:18px; display:grid; gap:8px;
  justify-items:center; z-index:60; pointer-events:none; }
.toast { background:var(--ink); color:#fff; border-radius:999px; padding:10px 18px;
  font-weight:600; font-size:.9rem; opacity:0; transform:translateY(8px);
  transition:all .25s; max-width:90vw; }
.toast.show { opacity:1; transform:none; }
.toast.err { background:var(--red); }

.overlay { position:fixed; inset:0; background:rgba(31,42,46,.55); z-index:50;
  display:flex; align-items:flex-end; justify-content:center; }
.sheet { background:var(--card); border-radius:30px 14px 0 0; width:100%;
  max-width:640px; padding:20px 18px 26px; max-height:85vh; overflow:auto; }
@media (min-width:700px){ .overlay{align-items:center;} .sheet{border-radius:30px;} }
.sheet h3 { margin-bottom:12px; }

.tabs { display:flex; gap:4px; border-bottom:2px solid var(--line); margin:14px 0 16px;
  overflow-x:auto; }
.tabs button { background:none; color:var(--muted); border-radius:18px 8px 0 0;
  padding:9px 14px; font-weight:700; font-size:.92rem; white-space:nowrap; }
.tabs button.active { color:var(--purple); box-shadow:inset 0 -3px 0 var(--purple); }

.statgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.stat { background:var(--card); border:1px solid var(--line); border-radius:18px;
  padding:12px; text-align:center; }
.stat .n { font-family:"Fredoka","Nunito",sans-serif; font-size:1.5rem; font-weight: 600; }
.stat .l { font-size:.72rem; color:var(--muted); font-weight:700;
  text-transform:uppercase; letter-spacing:.06em; }

table.data { width:100%; border-collapse:collapse; font-size:.9rem; background:var(--card);
  border:1px solid var(--line); border-radius:18px; overflow:hidden; }
table.data th { text-align:left; font-size:.7rem; text-transform:uppercase;
  letter-spacing:.07em; color:var(--muted); padding:10px 10px;
  border-bottom:2px solid var(--line); background:#FBFAFE; }
table.data td { padding:10px; border-bottom:1px solid var(--line); vertical-align:middle; }
table.data tr:last-child td { border-bottom:none; }
.tablewrap { overflow-x:auto; border-radius:18px; }

.scorepick { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:10px 0; }
.scorepick button { background:#fff; color:var(--ink); border:2px solid var(--line);
  font-weight:700; }
.scorepick button.sel { border-color:var(--green); color:var(--green);
  background:var(--green-soft); }
.setrow { display:grid; grid-template-columns:1fr auto auto; gap:8px;
  align-items:center; margin-bottom:8px; }
.setrow input { width:64px; text-align:center; }

.empty { text-align:center; color:var(--muted); padding:26px 10px; }
.subtle { color:var(--muted); font-size:.88rem; }
.linkbtn { background:none; color:var(--purple); padding:4px 6px; font-weight:700; }
.spin { text-align:center; color:var(--muted); padding:30px; }

/* --- Sprint 9: player shell ---------------------------------------------- */

.bottomnav { position:fixed; left:0; right:0; bottom:0; background:var(--card);
  border-top:1px solid var(--line); display:grid; grid-template-columns:repeat(5,1fr);
  z-index:40; padding:6px 0 max(6px, env(safe-area-inset-bottom)); }
.bottomnav a { text-align:center; text-decoration:none; color:var(--muted);
  font-size:.68rem; font-weight:700; }
.bottomnav a .ic { display:block; font-size:1.15rem; line-height:1.2; }
.bottomnav a.active { color:var(--purple); }

.ratecard { background:var(--purple); color:#fff; border-radius:24px;
  padding:20px; box-shadow: var(--shadow-lg); }
.ratecard .lbl { font-size:.72rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--gold); font-weight:700; }
.ratecard .num { font-family:"Fredoka","Nunito",sans-serif; font-size:2.8rem;
  font-weight: 600; line-height:1.15; }
.ratecard .sub { color:#CFE3E6; font-size:.85rem; }
.ratecard .chips { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.ratecard .chips span { background:rgba(255,255,255,.14); border-radius:999px;
  padding:4px 10px; font-size:.75rem; font-weight:700; }

.otpboxes { display:flex; gap:10px; justify-content:center; margin:16px 0; }
.otpboxes input { width:48px; height:56px; text-align:center; font-size:1.4rem;
  font-weight:700; }

.canlist { list-style:none; margin:0; padding:0; }
.canlist li { padding:6px 0; font-size:.93rem; }
.canlist li::before { content:"✓ "; color:var(--green); font-weight:700; }
.canlist.not li::before { content:"✕ "; color:var(--red); }

.steps { display:flex; gap:6px; margin:14px 0 18px; }
.steps span { flex:1; text-align:center; font-size:.72rem; font-weight:700;
  color:var(--muted); padding:7px 2px; border-radius:18px; background:var(--card);
  border:1px solid var(--line); }
.steps span.on { color:#fff; background:var(--purple); border-color:var(--purple); }

.claimcard { border:2px solid var(--line); border-radius:18px; padding:12px;
  cursor:pointer; background:#fff; }
.claimcard.sel { border-color:var(--green); background:var(--green-soft); }
.rangecard { text-align:center; background:var(--card); border:1px solid var(--line);
  border-radius:26px; padding:22px; }
.rangecard .range { font-family:"Fredoka","Nunito",sans-serif; font-size:2.2rem; font-weight: 600; }

.formstrip { display:flex; gap:4px; margin-top:8px; }
.formstrip span { width:20px; height:20px; border-radius:5px; display:inline-flex;
  align-items:center; justify-content:center; font-size:.65rem; font-weight:800;
  color:#fff; }
.formstrip .w { background:var(--green); }
.formstrip .l { background:#B9B2D6; }

.chiprow { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0; }
.chiprow button { background:#fff; color:var(--ink); border:1.5px solid var(--line);
  border-radius:999px; padding:7px 14px; font-size:.85rem; }
.chiprow button.on { background:var(--purple-soft); color:var(--purple);
  border-color:var(--purple); }

/* --- Sprint 10: wizard, schedule, bracket -------------------------------- */
.selcard { border: 1.5px solid var(--line); border-radius: 26px;
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.selcard.sel { border-color: var(--purple); background: var(--purple-soft); }
.typelist { display: flex; flex-direction: column; gap: 6px; }
.typelist button { text-align: left; border: 1.5px solid var(--line);
  background: #fff; border-radius: 24px; padding: 10px 14px; cursor: pointer;
  font: inherit; }
.typelist button.sel { border-color: var(--purple); background: var(--purple-soft);
  font-weight: 600; }
.typelist button:disabled { color: var(--muted); cursor: not-allowed; }
textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 24px;
  padding: 10px 12px; font: inherit; background: #fff; }
.filterstrip { display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin: 4px 0 14px; }
.filterstrip select { border: 1.5px solid var(--line); border-radius: 24px;
  padding: 8px 12px; font: inherit; background: #fff; }
#calpop { position: absolute; z-index: 30; top: 40px; left: 0; }
.cal { width: 300px; background: #fff; border: 1px solid var(--line);
  border-radius: 26px; box-shadow: 0 8px 0 rgba(31,42,46,.10);
  padding: 14px; }
.calhead { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  text-align: center; font-size: .82rem; }
.calgrid span { padding: 4px 0; }
.calgrid button { border: none; background: none; border-radius: 18px;
  padding: 6px 0; cursor: pointer; font: inherit; }
.calgrid button.has { background: var(--purple-soft); color: var(--purple);
  font-weight: 700; }
.calgrid button.sel { background: var(--purple); color: #fff; }
.mpr-num { color: var(--purple); font-weight: 700; font-size: .85em;
  margin-left: 4px; }
.bracketwrap { overflow-x: auto; padding-bottom: 8px; }
.bracket { display: flex; gap: 22px; align-items: stretch; min-width: 0; }
.bcol { display: flex; flex-direction: column; justify-content: space-around;
  gap: 14px; min-width: 250px; }
.bhead { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: 26px;
  padding: 10px 12px; }
.bcard.bbye { opacity: .65; }
.bwhen { font-size: .74rem; color: var(--muted); margin-bottom: 6px; }
.brow { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.brow .bname { flex: 1; }
.brow.bwon .bname { font-weight: 700; color: var(--green); }
.bset { display: inline-block; min-width: 18px; text-align: center;
  font-weight: 600; font-size: .85em; }
.bmark { color: var(--green); font-size: .8em; }
.bfoot { display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px;
  font-size: .74rem; color: var(--muted); }

/* --- Sprint 11: profiles and rankings ------------------------------------ */
.formchart { display: flex; gap: 6px; align-items: flex-end;
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  padding: 14px 14px 8px; margin-bottom: 14px; overflow-x: auto; }
.fcol { flex: 1; min-width: 26px; text-align: center; }
.fbars { display: flex; gap: 2px; align-items: flex-end; height: 48px;
  justify-content: center; }
.fw, .fl { width: 8px; border-radius: 3px 3px 0 0; min-height: 2px; }
.fw { background: var(--green); }
.fl { background: #D8CFF0; }
.fmon { font-size: .68rem; color: var(--muted); margin-top: 4px; }

/* --- Sprint 12: check-in, media grid -------------------------------------- */
.mediagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px; margin-top: 14px; }
.mitem { margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 26px; overflow: hidden; }
.mitem img, .mitem video { width: 100%; height: 140px; object-fit: cover;
  display: block; background: #EEE; }
.mitem figcaption { padding: 8px 10px; font-size: .78rem;
  display: flex; justify-content: space-between; align-items: center; gap: 6px; }

/* --- Sprint 13: sport worlds ---------------------------------------------- */
.sportbar { margin: 2px 0 14px; overflow-x: auto; flex-wrap: nowrap;
  padding-bottom: 4px; }
.sportbar button { white-space: nowrap; }

/* --- Sprint 15: desktop layouts (design d* variants) ---------------------- */
/* Mobile stays the source of truth below 900px; wider screens get the
   design's desktop shells: top navigation, wider content, split layouts. */
.topnav { display: none; }
@media (min-width: 900px) {
  main { max-width: 1400px; padding: 24px 40px 72px; }
  /* Header contents line up with the centred 1320px content box. */
  header.top { padding: 14px max(40px, calc(50vw - 660px)); }
  .bottomnav { display: none; }
  .topnav { display: flex; gap: 22px; margin-left: 34px; flex: 1; }
  .topnav a { color: var(--muted); text-decoration: none; font-size: .92rem;
    font-weight: 600; }
  .topnav a.active, .topnav a:hover { color: var(--purple); }

  /* Focused single-column pages stay comfortable, not stretched. */
  .authwrap { max-width: 960px !important; }
  .colmid { max-width: 760px !important; }
  .colwide { max-width: 1000px !important; margin: 0 auto; }
  #page.playerpage { max-width: none; margin: 0; }

  /* Login (design isDesktop): hero left, card right. */
  .authwrap > div[id^="door-"] {
    display: grid; grid-template-columns: 1fr 430px;
    column-gap: 56px; align-items: start;
  }
  .authwrap > div[id^="door-"] > h1 { grid-column: 1; font-size: 2.6rem; }
  .authwrap > div[id^="door-"] > p,
  .authwrap > div[id^="door-"] > .notice { grid-column: 1; }
  .authwrap > div[id^="door-"] > .card { grid-column: 2; grid-row: 1 / span 4; }
  /* A second card in the door (the venue panel) takes the next row. */
  .authwrap > div[id^="door-"] > .card ~ .card { grid-row: 5; align-self: start; }

  /* Player home (design dLogged): sections side by side under the hero. */
  .twocol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px;
    align-items: start; }
  .twocol > div { min-width: 0; }

  /* Profile (design dAny): identity rail left, tabbed body right. */
  .profgrid { display: grid; grid-template-columns: 320px 1fr;
    column-gap: 44px; align-items: start; }
  .profgrid .pid { position: sticky; top: 20px; }

  /* Bracket and schedule breathe. */
  .bcol { min-width: 280px; }
}

/* --- Design-fidelity pass: sign-in hero, SSO row -------------------------- */
.ssorow { display: flex; gap: 10px; margin-top: 14px; }
.ssorow button { flex: 1; }
.herostats { display: none; }
@media (min-width: 900px) {
  .authwrap > div[id^="door-"] {
    background: linear-gradient(100deg, var(--purple) 0 55%, transparent 55%);
    border-radius: 20px; padding: 44px 44px 36px;
    min-height: 560px; grid-template-rows: auto auto 1fr;
  }
  .authwrap > div[id^="door-"] > h1 { color: #fff; }
  .authwrap > div[id^="door-"] > p { color: #CFE3E6; }
  .authwrap > div[id^="door-"] > .notice { align-self: start; }
  .herostats { display: flex; gap: 44px; align-self: end; grid-column: 1; }
  .herostats .hn { font-family: "Fredoka", "Nunito", sans-serif;
    font-size: 2rem; color: #fff; }
  .herostats .hl { font-size: .72rem; letter-spacing: .1em;
    text-transform: uppercase; color: #9FC0C5; }
  #door-code { background: var(--purple); }
  #door-code > .card { grid-row: 1 / span 4; }
}

/* --- Console sign-in (dark, internal) ------------------------------------- */
.consoleauth { background: #17132B; margin: -16px -16px -96px;
  min-height: calc(100vh - 60px); display: flex; justify-content: center;
  padding: 60px 16px; }
.cbox { max-width: 420px; width: 100%; }
.cbrand { font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.3rem;
  color: #fff; }
.consoleauth input { background: #221C3D; border-color: #2F5A61; color: #fff; }
.cwide { width: 100%; margin-top: 8px; }
.consoleauth .ghost { border-color: #2F5A61; color: #fff; background: #221C3D; }
.cnote { border-left: 3px solid #E2A85C; padding: 10px 14px; margin-top: 16px;
  color: #9FC0C5; font-size: .85rem; background: #221C3D; }
@media (min-width: 900px) {
  .consoleauth { margin: -24px -36px -64px; }
}

.deskonly { display: none; }
.deskonly-note { display: block; }
@media (min-width: 900px) {
  .deskonly { display: block; }
  .deskonly-note { display: none; }
}

/* --- Home Treatment A (D2 decision): centred ceremony, purple bands ------- */
.homeA .sechead {
  display: flex; align-items: center; gap: 18px; text-align: left;
  font: 600 1.5rem 'Fredoka', 'Nunito', sans-serif; margin: 34px 0 14px;
}
.sechead::after {
  content: ""; flex: 1; height: 2px; background: var(--line);
  border-radius: 2px;
}
.homeA .sechead::after { content: ""; display: block; width: 150px;
  margin: 12px auto 22px; border-top: 1px solid var(--line);
  position: relative; }
.homeA .sechead { position: relative; }
.homeA .sechead + * { margin-top: 0; }
.homeA .sechead::before { content: "•"; color: var(--success);
  display: block; font-size: .8rem; position: absolute; left: 50%;
  transform: translateX(-50%); bottom: -24px; z-index: 1; }
.band { background: var(--purple); color: #fff;
  margin: 28px calc(50% - 50vw); padding: 34px 0 40px; }
.bandin { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.band .sechead.ondark { color: #fff; }
.band .sechead.ondark::after { border-color: rgba(255,255,255,.25); }
.band.hero { margin-top: -16px; padding: 30px 0; }
.herogrid { display: grid; grid-template-columns: 1fr; gap: 22px;
  align-items: center; }
.hero .lbl { font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero .bignum { font-family: "Fredoka", "Nunito", sans-serif; font-size: 3.4rem;
  line-height: 1.1; }
.hero .hsub { color: #CFE3E6; font-size: .85rem; }
.hero .chips span { background: rgba(255,255,255,.14); border-radius: 999px;
  padding: 4px 10px; font-size: .75rem; font-weight: 700; margin-right: 6px; }
.hero .delta.up { color: var(--success); font-weight: 700; }
.hero .delta.down { color: var(--gold); font-weight: 700; }
.curvebox { min-width: 0; }
.heroside { display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start; }
.herobtn { background: #fff; color: var(--purple); font-weight: 700; }
.herolink { color: #fff; text-decoration: underline; font-size: .9rem; }
.cardsrow { display: grid; grid-template-columns: 1fr; gap: 16px; }
.evcard { margin: 0; box-shadow: var(--shadow); border-radius: 24px; }
.evcard.dashed { border: 1.5px dashed var(--line-strong, #C9C4E0);
  background: var(--ground); box-shadow: none; }
.evtop { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; }
.evdate { font-size: .72rem; letter-spacing: .08em; color: var(--muted);
  font-weight: 700; }
.evline { border: 0; border-top: 1px solid var(--line); margin: 12px 0 10px; }
.viewall { text-align: center; margin: 18px 0 8px; }

/* App-chrome header: search + avatar (design home). */
.hsearch { display: none; }
.avatar { display: none; }
@media (min-width: 900px) {
  .herogrid { grid-template-columns: 240px 1fr 170px; }
  .cardsrow { grid-template-columns: repeat(3, 1fr); }
  .homeA .cardsrow:has(> :nth-child(2):last-child)
    { grid-template-columns: repeat(2, 1fr); }
  .hsearch { display: block; margin-left: 26px; }
  .hsearch input { width: 230px; padding: 8px 12px; font-size: .85rem;
    border-radius: 18px; }
  .avatar { display: inline-flex; width: 34px; height: 34px;
    border-radius: 50%; background: var(--purple); color: #fff;
    align-items: center; justify-content: center; font-size: .8rem;
    font-weight: 700; margin-left: 10px; }
  .topnav a.active { color: var(--purple); border-bottom: 2px solid
    var(--purple); padding-bottom: 4px; }
}

/* --- Chrome per design: logo mark, aligned header, dark footer ------------ */
.logomark { width: 26px; height: 26px; vertical-align: -6px; margin-right: 6px; }
header.top { gap: 10px; }
header.top .brand { display: inline-flex; align-items: center; }
.hspacer { flex: 1; }
.topnav { display: none; }
.signout { color: var(--muted); text-decoration: none; font-size: .85rem; }
.userchip { display: none; }
@media (min-width: 900px) {
  .topnav { display: flex; gap: 22px; margin-left: 26px; flex: initial; }
  .userchip { display: inline; }
}
.foot { background: #244F55; color: #B7C0CF; margin-top: 40px;
  padding: 40px 0 18px; }
.footin { max-width: 1320px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr; gap: 26px; }
.fbrand { font-family: "Fredoka", "Nunito", sans-serif; color: #fff;
  font-size: 1.2rem; margin: 0 0 8px; }
.fsub { font-size: .88rem; max-width: 300px; }
.fhead { font-family: "Fredoka", "Nunito", sans-serif; color: #fff;
  margin: 0 0 10px; }
.foot a { display: block; color: #B7C0CF; text-decoration: none;
  margin-bottom: 8px; font-size: .92rem; }
.foot a:hover { color: #fff; }
.fcopy { text-align: center; border-top: 1px solid rgba(255,255,255,.12);
  max-width: 1320px; margin: 26px auto 0; padding: 16px 24px 0;
  font-size: .85rem; }
@media (min-width: 900px) {
  .footin { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
main { padding-bottom: 24px; }
@media (max-width: 899px) { .foot { margin-bottom: 64px; } }

/* --- Page hero band (design: Find Matches et al.) ------------------------- */
.pagehero { background: var(--purple); color: #fff;
  margin: -16px calc(50% - 50vw) 0; padding: 34px 0 44px;
  position: relative; overflow: hidden; }
.pagehero h1 { color: #fff; margin: 0; font-size: 2.2rem; }
.pagehero .bandin { position: relative; z-index: 1; }
.pagehero::after { content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 50%; }
.pagehero::before { content: ""; position: absolute; right: 40px; top: 30px;
  width: 120px; height: 120px; border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 50%; }
.herocard { background: #fff; color: var(--ink); border-radius: 26px;
  box-shadow: var(--shadow-lg); padding: 14px 18px;
  margin: -30px 0 18px; position: relative; z-index: 2; }
@media (min-width: 900px) { .pagehero { margin-top: -24px; } }

/* --- Event list cards (design: Find Matches) ------------------------------ */
.evlist { display: grid; gap: 14px; }
.evrow { display: grid; grid-template-columns: 86px 1fr auto; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow); padding: 18px; align-items: center; }
.evrow.best { border: 1.5px solid var(--green); }
.dateblock { background: var(--purple); color: #fff; border-radius: 24px;
  text-align: center; padding: 12px 6px; }
.dateblock .d { font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.7rem;
  line-height: 1.1; }
.dateblock .m { font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; }
.dateblock .y { font-size: .72rem; color: #CFE3E6; }
.clubchip { display: inline-block; background: var(--green); color: #fff;
  border-radius: 999px; padding: 3px 12px; font-size: .74rem;
  font-weight: 700; margin-bottom: 6px; }
.bestchip { display: inline-block; background: var(--gold-soft);
  color: #8a6410; border-radius: 999px; padding: 3px 12px; font-size: .74rem;
  font-weight: 700; margin-left: 6px; }
.evrow h3 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600;
  font-size: 1.25rem; margin: 0 0 4px; }
.evside { text-align: right; display: grid; gap: 8px; justify-items: end; }
@media (max-width: 640px) {
  .evrow { grid-template-columns: 66px 1fr; }
  .evside { grid-column: 1 / -1; justify-items: start; text-align: left; }
}

/* -- Find Matches filter chips (design dFind) --------------------------- */
.filterbar { position: relative; }
.fchips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fchip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 100px; padding: 8px 14px; cursor: pointer;
  font: 600 13px 'Nunito', system-ui, sans-serif;
}
.fchip.on { background: var(--purple-soft); border-color: var(--purple); color: var(--purple); }
.fresetlink {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  color: var(--purple); font: 600 13.5px 'Nunito', system-ui, sans-serif;
}
.fpanel {
  position: absolute; top: calc(100% - 6px); left: 20px; width: 340px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 8px 0 rgba(31,42,46,.10); padding: 18px 20px; z-index: 20;
}
.fpanelhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fpanelhead a { color: var(--gray); font-size: 12.5px; cursor: pointer; }
.fradrow {
  display: flex; align-items: center; gap: 11px; padding: 5px 0;
  font: 500 14px 'Nunito', system-ui, sans-serif; cursor: pointer;
}
.frad {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); background: #fff;
}
.frad.on { border-color: var(--green); box-shadow: inset 0 0 0 3px #fff; background: var(--green); }
.fpanelband { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.fpanelband input { width: 100%; }
.countline {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 18px 0 4px; color: var(--gray); font-size: 13.5px;
}
.countline strong { color: var(--ink); }
.sortlink { color: var(--purple); font-weight: 600; cursor: pointer; }
.evmeta { color: var(--gray); font-size: 13px; margin-top: 2px; }
.pillrow { display: inline-flex; align-items: center; gap: 8px; }
.vtick {
  width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft);
  color: var(--green); display: inline-grid; place-items: center;
  font: 700 11px 'Nunito', system-ui, sans-serif;
}

/* -- Sessions week strip (design pBrowse) ------------------------------- */
.weekstrip { display: flex; gap: 10px; margin-top: 16px; overflow-x: auto; }
.daycell {
  flex: 1; min-width: 76px; border: 1px solid var(--line); background: #fff;
  border-radius: 24px; padding: 10px 8px; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; gap: 2px; align-items: center;
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
}
.daycell .dl { font: 500 11px/1.4 'Nunito', system-ui, sans-serif;
  color: var(--gray); letter-spacing: .08em; text-transform: uppercase; }
.daycell .dn { font: 600 22px/1.2 'Fredoka', 'Nunito', sans-serif; color: var(--ink); }
.daycell .dc { font-size: 11.5px; color: var(--gray); }
.daycell.on { border-color: var(--purple); background: var(--purple-soft); }
.daycell.on .dn { color: var(--purple); }

/* -- My clubs cards (design home section) ------------------------------- */
.clubgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.clubcard {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 24px; padding: 16px 18px;
  text-decoration: none; color: var(--ink);
}
.clubcard:hover { border-color: var(--purple); }
.clubinit {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--purple-soft); color: var(--purple);
  display: grid; place-items: center;
  font: 600 14px 'Nunito', system-ui, sans-serif;
}
@media (min-width: 900px) {
  .clubgrid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .clubgrid { grid-template-columns: 1fr 1fr 1fr; }
}

/* -- Club page (design "A club page", screen 35) ------------------------ */
.clubhero { padding: 64px 0 88px; }
.clubhero h1 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pill.vclub { background: rgba(230, 241, 235, .92); color: var(--green); }
.clubhero p { color: #CFE3E6; margin: 10px 0 0; }
.whatson {
  margin-top: 18px; background: #fff; color: var(--purple);
  border: 0; font-weight: 700;
}
.clubstats {
  background: var(--purple-deep); color: #fff;
  margin: 0 calc(50% - 50vw); padding: 18px 0;
}
.csin { display: flex; gap: 0; }
.csin > div {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  padding: 4px 22px; border-left: 1px solid rgba(255, 255, 255, .16);
}
.csin > div:first-child { border-left: 0; padding-left: 0; }
.csin .l {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: #9FC0C5;
}
.csin .v { font-weight: 700; font-size: 1.05rem; }
.clubcols { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 26px; }
.clubh2 {
  font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600;
}
.tourngrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tourncard {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 18px 20px;
}
.tdate {
  font-size: .78rem; letter-spacing: .1em; color: var(--gray); font-weight: 600;
}
.tname {
  display: block; margin: 8px 0 6px; color: var(--green);
  font: 600 1.25rem "Fredoka", "Nunito", sans-serif; text-decoration: none;
}
.memgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.memcard {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: var(--ink);
}
.memcard:hover { border-color: var(--purple); }
.mnum {
  font: 600 1.5rem "Fredoka", "Nunito", sans-serif; color: var(--purple);
  display: flex; align-items: center; gap: 8px;
}
.mnum .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); }
.coachrow { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
@media (min-width: 900px) {
  .clubcols { grid-template-columns: 1fr 340px; gap: 34px; }
  .tourngrid { grid-template-columns: 1fr 1fr; }
  .memgrid { grid-template-columns: repeat(4, 1fr); }
  .clubstats { margin-top: 0; }
}
@media (max-width: 899px) { .csin { flex-wrap: wrap; }
  .csin > div { flex: 1 1 40%; border-left: 0; padding: 6px 0; } }

/* -- Sign-in venue panel (research: the B2B door, visible not shouting) -- */
.venuecard { background: var(--purple-soft); border-color: #DCD4EE; margin-top: 14px; }
.venuecard h3 { color: var(--purple); }

/* -- Registration drawer (design rDivision / rPay / rDone) -------------- */
.drawerdim {
  position: fixed; inset: 0; background: rgba(62, 124, 132, .55); z-index: 120;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(470px, 100vw);
  background: var(--ground); box-shadow: -8px 0 0 rgba(31,42,46,.10);
  padding: 26px 28px; overflow: auto; z-index: 125;
}
.drawerhead { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.dtitle { font-weight: 700; font-size: 1.05rem; }
.dback { font-weight: 600; font-size: 18px; color: var(--purple); cursor: pointer; }
.dclose {
  width: 28px; height: 28px; border-radius: 50%; background: #E8E6F0;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  color: var(--ink); cursor: pointer; flex: none;
}
.divrow {
  display: flex; align-items: flex-start; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 24px; padding: 18px;
  cursor: pointer;
}
.divrow.on { border-color: var(--green); }
.divrow.entered { cursor: default; background: var(--ground); align-items: center; }
.divrow .frad { margin-top: 3px; }
.dnote {
  background: var(--purple-soft); border-left: 3px solid var(--purple);
  border-radius: 18px; padding: 14px 16px; margin-top: 16px;
  font-size: .88rem; color: #3E3462;
}
.dwide { width: 100%; margin-top: 18px; }
.dwide:disabled { opacity: .45; cursor: default; }
.dcard {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 18px;
}
.dtotal { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.dnum { font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.4rem; color: var(--ink); }
.dagree { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
.doneover {
  position: fixed; inset: 0; z-index: 125; display: grid; place-items: center;
  padding: 24px;
}
.donecard {
  width: min(660px, 100%); background: var(--card);
  border-radius: 24px 24px 0 0; padding: 0; position: relative;
  box-shadow: 0 10px 0 rgba(31,42,46,.12);
}
.donecard .tk-top { padding: 36px 44px 0; }
.donecard .tk-stub { padding: 4px 44px 8px; }
.donecard .tear { position: relative; border-top: 2px dashed var(--line); margin: 20px 0 14px; }
.donecard .tear::before, .donecard .tear::after {
  content: ""; position: absolute; top: -14px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--purple-deep);
}
.donecard .tear::before { left: -14px; }
.donecard .tear::after { right: -14px; }
.donecard .scallop {
  height: 12px; margin-top: 16px;
  background: radial-gradient(circle at 12px 12px, var(--purple-deep) 7px, var(--card) 8px);
  background-size: 24px 12px; background-repeat: repeat-x;
}
.donecard h2 {
  font: 600 1.7rem/1.3 "Fredoka", "Nunito", sans-serif; max-width: 24ch;
  margin: 0;
}
.donerule { display: flex; align-items: center; gap: 12px; margin: 18px 0 16px; }
.donerule > span { width: 56px; height: 1px; background: #D9D6E4; }
.donegrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 18px 0 22px;
}
.donegrid > div { padding: 14px 16px 14px 0; display: flex; flex-direction: column; gap: 3px; }
.donegrid > div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.donegrid .l {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray); font-weight: 600;
}
@media (max-width: 640px) { .donegrid { grid-template-columns: 1fr; }
  .donegrid > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* -- Sunlit: chips are quiet pills, not raised buttons ------------------ */
.fchip, .chiprow button, .daycell, .fresetlink, .linkbtn,
.otpboxes input, .sportbar button {
  box-shadow: none;
}
.fchip, .chiprow button {
  background: var(--card); color: var(--purple);
  border: 1px solid #DAD2C0; border-radius: 100px;
  font-family: 'Nunito', sans-serif; font-weight: 700;
}
.fchip.on, .chiprow button.on {
  background: var(--purple); border-color: var(--purple); color: #fff;
}

/* -- Sunlit structural motifs (hand-built per the Sunlit note §6) ------- */

/* Numbered category header: a large ordinal on a tinted band. */
.ordhead {
  display: flex; align-items: center; gap: 16px;
  border-radius: 18px; padding: 12px 18px; margin: 6px 0 16px;
  background: var(--purple-soft);
}
.ordhead .ord {
  font: 600 1.7rem/1 'Fredoka', 'Nunito', sans-serif;
  color: var(--purple); background: var(--card);
  min-width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 3px 0 rgba(31,42,46,.10);
}
.ordhead .oh1 {
  font: 600 1.35rem/1.2 'Fredoka', 'Nunito', sans-serif; color: var(--ink);
}
.ordhead .osub { font-size: .8rem; color: var(--gray); margin-top: 2px; }
.ordhead.leaf { background: var(--green-soft); }
.ordhead.leaf .ord { color: var(--green); }
.ordhead.sun { background: var(--gold-soft); }
.ordhead.sun .ord { color: var(--amber); }
.ordhead.deep { background: #D3E4E6; }

/* Ticket stub: tear line with side notches + scalloped bottom edge. */
.ticket {
  position: relative; background: var(--card); border-radius: 24px 24px 0 0;
  box-shadow: 0 8px 0 rgba(31,42,46,.10);
}
.ticket .tear {
  position: relative; border-top: 2px dashed var(--line);
  margin: 18px 0 0;
}
.ticket .tear::before, .ticket .tear::after {
  content: ""; position: absolute; top: -13px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--ground);
}
.ticket .tear::before { left: -13px; }
.ticket .tear::after { right: -13px; }
.ticket .scallop {
  height: 12px;
  background: radial-gradient(circle at 12px 12px, var(--ground) 7px, var(--card) 8px);
  background-size: 24px 12px; background-repeat: repeat-x;
}

/* -- App Home (phone design: greeting, bell, tappable hero) ------------- */
.aphead { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; }
.aphead > div:first-child { flex: 1; }
.apeyebrow {
  font: 700 .72rem 'Nunito', sans-serif; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.aphi { font: 600 1.6rem 'Fredoka', 'Nunito', sans-serif; margin: 2px 0 0; }
.apbell {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); color: var(--ink); display: grid;
  place-items: center; box-shadow: var(--shadow); flex: none;
}
.apdot {
  position: absolute; top: 8px; right: 9px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--red); border: 2px solid #fff;
}
.aphero {
  display: block; position: relative; overflow: hidden;
  background: var(--purple); color: #fff; border-radius: 24px;
  padding: 20px 20px 18px; margin-top: 14px; text-decoration: none;
  box-shadow: 0 6px 0 var(--purple-deep);
}
.apheroart { position: absolute; right: -40px; top: -60px; opacity: .14; }
.apnumrow { display: flex; align-items: flex-end; gap: 12px; margin-top: 4px; }
.apnum {
  font: 600 3.1rem/0.95 'Fredoka', 'Nunito', sans-serif;
  font-variant-numeric: tabular-nums;
}
.apdelta { font: 800 .9rem 'Nunito', sans-serif; color: var(--gold); }
.apdelta em { font: 600 .8rem 'Nunito', sans-serif; font-style: normal;
  color: rgba(255,255,255,.7); }
.apbars { display: flex; align-items: flex-end; gap: 4px; height: 40px;
  margin-top: 14px; }
.apbars i { flex: 1; background: rgba(255,255,255,.28); border-radius: 4px; }
.apfoot { font: 700 .74rem 'Nunito', sans-serif; color: rgba(255,255,255,.7);
  margin-top: 9px; font-variant-numeric: tabular-nums; }

/* -- Events-tab segment control (app: one tab, three views) ------------- */
.apseg {
  display: flex; background: var(--card); border: 1px solid var(--line);
  border-radius: 100px; padding: 4px; gap: 4px; margin: 14px 0 4px;
}
.apseg a, .apseg span {
  flex: 1; text-align: center; padding: 9px 6px; border-radius: 100px;
  font: 700 .85rem 'Nunito', sans-serif; color: var(--muted);
  text-decoration: none;
}
.apseg .on { background: var(--purple); color: #fff; }
/* The segment sits above the page band; the band must not climb over it,
   and on a wide screen three tabs should not stretch across the page. */
.apseg + .pagehero { margin-top: 0; }
@media (min-width: 900px) { .apseg { max-width: 520px; margin-bottom: 14px; }
  .apseg + .pagehero { margin-top: 0; } }

/* --- Me tab: settings rows + toggle switches (App note) ------------- */
.setrow { display: flex; align-items: center; gap: 12px; padding: 13px 0;
  border-bottom: 2px dashed var(--line); }
.setrow:last-child { border-bottom: none; }
.setrow .st { flex: 1; }
.setrow .st strong { font-size: 13.5px; }
.setrow .st .subtle { font-size: 11.5px; margin: 2px 0 0; }
.tog { width: 48px; height: 28px; border-radius: 100px; background: #D9D1BE;
  border: none; box-shadow: none; position: relative; flex: none; padding: 0;
  cursor: pointer; transition: background .15s; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(31, 42, 46, .25); transition: left .15s; }
.tog.on { background: var(--purple); }
.tog.on::after { left: 23px; }
.tog:hover, .tog:active { transform: none; box-shadow: none; }

/* --- Live scoring (Live Scoring Note) ---------------------------------- */
:root { --lv-sun-deep: #C98E12; --lv-sun-soft: #FFF0C7; --lv-brick: #D8402E;
  --lv-brick-soft: #FBE3DF; --lv-leaf-soft: #D9EFCF; --lv-teal-soft: #DDEEF0; }
.lv-dark { background: var(--ink); color: #fff; min-height: 100vh;
  padding: 54px 14px 30px; display: flex; flex-direction: column;
  box-sizing: border-box; }
.lv-dark a { color: rgba(255,255,255,.75); }
.lv-top { display: flex; align-items: center; gap: 8px; padding: 0 4px;
  font-family: var(--head); font-weight: 600; font-size: 13px; }
.lv-tag { padding: 4px 10px; border-radius: 100px; font-weight: 800;
  font-size: 10px; letter-spacing: .05em; white-space: nowrap;
  font-family: var(--body); }
.lv-tag.live { background: var(--lv-brick); color: #fff; }
.lv-tag.final { background: var(--lv-leaf-soft); color: var(--green); }
.lv-tag.soft { background: var(--lv-brick-soft); color: var(--lv-brick); }
.lv-tag.sun { background: var(--lv-sun-soft); color: var(--lv-sun-deep); }
.lv-tag.teal { background: var(--lv-teal-soft); color: var(--purple); }
.lv-tag.leaf { background: var(--lv-leaf-soft); color: var(--green); }
.lv-tag.ink { background: var(--gold); color: var(--ink); }
.lv-watch { margin-left: auto; font-weight: 700; font-size: 11px;
  color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.lv-head { display: flex; justify-content: space-between; margin-top: 14px;
  padding: 0 4px; gap: 10px; }
.lv-eyebrow { font-weight: 700; font-size: 10.5px; letter-spacing: .12em;
  color: rgba(255,255,255,.55); text-transform: uppercase; }
.lv-stage { font-family: var(--head); font-weight: 600; font-size: 15px;
  margin-top: 2px; }
.lv-sets { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lv-set { padding: 5px 11px; border-radius: 100px; font-weight: 800;
  font-size: 12.5px; background: rgba(255,255,255,.12);
  font-variant-numeric: tabular-nums; }
.lv-prompt { display: flex; align-items: center; gap: 10px; margin-top: 12px;
  padding: 12px 14px; background: var(--gold); color: var(--ink);
  border-radius: 16px; font-weight: 700; font-size: 13px; }
.lv-prompt b { font-family: var(--head); font-weight: 600; font-size: 16px; }
.lv-zones { display: flex; gap: 10px; flex: 1; margin-top: 12px; min-height: 340px; }
.lv-zone { flex: 1; border-radius: 26px; padding: 18px 14px 20px;
  display: flex; flex-direction: column; align-items: center;
  border: 2px solid transparent; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent; transition: transform .06s; }
.lv-zone:active { transform: scale(.98); }
.lv-zone.a { background: rgba(62,124,132,.28); }
.lv-zone.b { background: rgba(246,182,46,.16); }
.lv-zone.srv { border-color: var(--gold); }
.lv-zone.off { cursor: default; opacity: .6; }
.lv-name { font-weight: 800; font-size: 14px; text-align: center;
  display: flex; align-items: center; gap: 6px; }
.lv-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold);
  display: inline-block; }
.lv-mpr { font-weight: 600; font-size: 12px; color: rgba(255,255,255,.55);
  font-variant-numeric: tabular-nums; }
.lv-big { font-family: var(--head); font-weight: 600; font-size: 92px;
  line-height: 1; margin: auto 0; font-variant-numeric: tabular-nums; }
.lv-sub { font-weight: 800; font-size: 13px; color: rgba(255,255,255,.7);
  font-variant-numeric: tabular-nums; }
.lv-tap { font-weight: 700; font-size: 10.5px; letter-spacing: .1em;
  color: rgba(255,255,255,.4); margin-top: 10px; }
.lv-call { text-align: center; font-weight: 700; font-size: 12.5px;
  color: rgba(255,255,255,.65); margin-top: 12px; font-variant-numeric: tabular-nums; }
.lv-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.lv-dk { background: rgba(255,255,255,.1); color: #fff;
  border: 2px solid rgba(255,255,255,.22); border-radius: 100px;
  padding: 13px; font-family: var(--head); font-weight: 600; font-size: 13.5px;
  box-shadow: none; cursor: pointer; }
.lv-dk:hover, .lv-dk:active { transform: none; box-shadow: none;
  background: rgba(255,255,255,.16); }
.lv-dk.wide { width: 100%; padding: 14px; }
.lv-dk.flag { background: rgba(216,64,46,.18); color: #FFB3A8;
  border-color: rgba(216,64,46,.4); }
.lv-foot { display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding: 0 6px; font-weight: 700; font-size: 11px;
  color: rgba(255,255,255,.45); }
.lv-foot .share { color: var(--gold); cursor: pointer; }
.lv-foot .off { color: var(--gold); }
.lv-done { flex: 1; display: flex; flex-direction: column; justify-content: center;
  gap: 14px; margin-top: 16px; }
.lv-result { background: rgba(255,255,255,.08); border-radius: 26px;
  padding: 26px 20px; text-align: center; }
.lv-result .k { font-weight: 700; font-size: 10.5px; letter-spacing: .14em;
  color: var(--gold); }
.lv-result .w { font-family: var(--head); font-weight: 600; font-size: 30px;
  margin-top: 6px; }
.lv-result .s { font-family: var(--head); font-weight: 600; font-size: 26px;
  margin-top: 6px; letter-spacing: .04em; color: rgba(255,255,255,.85);
  font-variant-numeric: tabular-nums; }
.lv-result .n { font-weight: 600; font-size: 12px; color: rgba(255,255,255,.6);
  margin-top: 8px; }
.lv-sunbtn { width: 100%; padding: 17px; font-size: 16px; }
/* sport tiles + chips (New match) */
.lv-sports { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.lv-sp { background: #fff; border: 2px solid var(--line); border-radius: 18px;
  padding: 14px 8px; text-align: center; font-family: var(--head); font-weight: 600;
  font-size: 14px; cursor: pointer; box-shadow: none; color: var(--ink); }
.lv-sp.on { border-color: var(--purple); background: var(--lv-teal-soft);
  color: var(--purple); }
.lv-sp:hover { transform: none; box-shadow: none; }
.lv-pick { display: flex; gap: 12px; align-items: center; border: 2px solid transparent;
  cursor: pointer; }
.lv-pick.on { border-color: var(--purple); background: var(--lv-teal-soft); }
.lv-rad { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #CFC6B4;
  flex: none; box-sizing: border-box; }
.lv-pick.on .lv-rad { border: 5px solid var(--purple); }
.lv-av { width: 42px; height: 42px; border-radius: 50%; display: grid;
  place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.lv-av.a { background: var(--lv-teal-soft); color: var(--purple); }
.lv-av.b { background: var(--lv-sun-soft); color: var(--lv-sun-deep); }
.lv-eyebrow-lt { font-weight: 700; font-size: 11px; letter-spacing: .1em;
  color: var(--gray); margin: 16px 0 8px; text-transform: uppercase; }
/* live link */
.lv-hero { background: var(--purple-deep); color: #fff; padding: 56px 18px 22px;
  position: relative; overflow: hidden; margin: -24px -18px 0; }
.lv-hero svg.deco { position: absolute; right: -80px; top: -60px; opacity: .12; }
.lv-hero .row { display: flex; gap: 8px; align-items: center; position: relative; }
.lv-hero .meta { font-weight: 700; font-size: 11.5px; color: rgba(255,255,255,.75);
  font-variant-numeric: tabular-nums; }
.lv-score { display: flex; gap: 10px; margin-top: 16px; align-items: flex-start;
  position: relative; }
.lv-score .side { flex: 1; text-align: center; }
.lv-score .nm { font-weight: 800; font-size: 14px; display: flex;
  justify-content: center; align-items: center; gap: 6px; }
.lv-score .pt { font-family: var(--head); font-weight: 600; font-size: 62px;
  line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.lv-score .sep { font-family: var(--head); font-weight: 600; font-size: 16px;
  color: rgba(255,255,255,.5); align-self: center; }
.lv-hero .chips { display: flex; justify-content: center; gap: 6px; margin-top: 14px;
  flex-wrap: wrap; position: relative; }
.lv-hero .chips .lv-set { background: rgba(255,255,255,.14); }
.lv-hero .call { text-align: center; font-weight: 700; font-size: 12px;
  color: rgba(255,255,255,.7); margin-top: 10px; position: relative; }
.lv-log { display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 2px dashed var(--line); font-size: 13px; }
.lv-log:last-child { border-bottom: none; }
.lv-log .n { width: 30px; color: var(--gray); font-size: 11px;
  font-variant-numeric: tabular-nums; }
.lv-log .c { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lv-log .who { flex: 1; font-weight: 800; }
.lv-log .d { color: var(--gray); font-variant-numeric: tabular-nums; }
/* momentum */
.lv-mom { display: flex; gap: 3px; height: 90px; align-items: stretch; }
.lv-mom i { flex: 1; border-radius: 3px; display: block; }
.lv-base { height: 2px; background: var(--line); margin-top: -46px; position: relative; }
.lv-axis { display: flex; justify-content: space-between; font-weight: 700;
  font-size: 10px; color: var(--gray); margin-top: 48px; }
.lv-split { display: flex; height: 12px; border-radius: 6px; overflow: hidden;
  margin-top: 8px; background: #F3EAD6; }
.lv-split i, .lv-bar i { display: block; height: 100%; }
.lv-split .a, .lv-bar .a { background: var(--purple); }
.lv-split .b, .lv-bar .b { background: var(--gold); flex: 1; }
.lv-bar { flex: 1; height: 8px; border-radius: 4px; overflow: hidden;
  background: #F3EAD6; display: flex; }
.lv-stat { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
  margin-top: 14px; font-weight: 700; font-size: 12.5px; align-items: center; }
.lv-stat .l { text-align: right; font-family: var(--head); font-weight: 600;
  font-size: 20px; color: var(--purple); font-variant-numeric: tabular-nums; }
.lv-stat .m { text-align: center; color: var(--gray); font-size: 10.5px;
  letter-spacing: .08em; }
.lv-stat .r { font-family: var(--head); font-weight: 600; font-size: 20px;
  color: var(--lv-sun-deep); font-variant-numeric: tabular-nums; }
.lv-setrow { display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 2px dashed var(--line); }
.lv-setrow:last-child { border-bottom: none; }
.lv-setrow .lb { width: 52px; font-weight: 800; font-size: 12.5px; color: var(--gray); }
.lv-setrow .va { width: 44px; font-family: var(--head); font-weight: 600;
  font-size: 17px; color: var(--purple); }
.lv-setrow .vb { width: 44px; text-align: right; font-family: var(--head);
  font-weight: 600; font-size: 17px; color: var(--lv-sun-deep); }
.lv-setrow .sc { width: 54px; text-align: right; font-weight: 800; font-size: 12px;
  color: var(--gray); }
/* stub (post the result) */
.lv-stub { background: #fff; border-radius: 24px; box-shadow: 0 8px 0 rgba(31,42,46,.1); }
.lv-stub .up { padding: 18px 18px 16px; }
.lv-stub .perf { height: 0; border-top: 2px dashed var(--line); margin: 0 18px;
  position: relative; }
.lv-stub .perf::before, .lv-stub .perf::after { content: ""; position: absolute;
  top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--page); }
.lv-stub .perf::before { left: -30px; }
.lv-stub .perf::after { right: -30px; }
.lv-stub .lo { padding: 16px 18px 18px; display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; text-align: center; }
.lv-stub .lo b { display: block; font-family: var(--head); font-weight: 600;
  font-size: 22px; color: var(--purple); font-variant-numeric: tabular-nums; }
.lv-stub .lo span { font-weight: 700; font-size: 10px; letter-spacing: .08em;
  color: var(--gray); }
.lv-final { font-family: var(--head); font-weight: 600; font-size: 26px;
  letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.lv-callout { display: flex; gap: 10px; padding: 14px 16px; background: var(--lv-sun-soft);
  border-radius: 18px; font-weight: 600; font-size: 12.5px; line-height: 1.6;
  color: #6B4A00; }
.lv-callout i { width: 3px; border-radius: 2px; background: var(--lv-sun-deep); flex: none; }
/* court screen (TV) */
.lv-tv { background: var(--ink); color: #fff; min-height: 100vh; padding: 36px 44px;
  position: relative; overflow: hidden; box-sizing: border-box; font-family: var(--body); }
.lv-tv .hd { display: flex; gap: 14px; align-items: center; position: relative; }
.lv-tv .club { font-family: var(--head); font-weight: 600; font-size: 22px; }
.lv-tv .st { margin-left: auto; font-weight: 700; font-size: 14px;
  color: rgba(255,255,255,.55); letter-spacing: .1em; }
.lv-tv .grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px;
  align-items: center; margin-top: 28px; position: relative; }
.lv-tv .side { display: flex; gap: 22px; align-items: center; }
.lv-tv .side.b { flex-direction: row-reverse; text-align: right; }
.lv-tv .tdot { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.lv-tv .nm { font-weight: 800; font-size: 34px; }
.lv-tv .mp { font-weight: 600; font-size: 18px; color: rgba(255,255,255,.55);
  margin-top: 2px; font-variant-numeric: tabular-nums; }
.lv-tv .boxes { display: flex; gap: 10px; margin-left: auto; }
.lv-tv .side.b .boxes { margin-left: 0; margin-right: auto; }
.lv-tv .box { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.1);
  display: grid; place-items: center; font-family: var(--head); font-weight: 600;
  font-size: 34px; font-variant-numeric: tabular-nums; }
.lv-tv .pt { width: 150px; text-align: center; font-family: var(--head); font-weight: 600;
  font-size: 120px; line-height: 1; font-variant-numeric: tabular-nums; }
.lv-tv .mid { font-family: var(--head); font-weight: 600; font-size: 30px;
  color: rgba(255,255,255,.35); }
.lv-tv .ft { display: flex; justify-content: space-between; align-items: center;
  margin-top: 26px; padding-top: 20px; border-top: 2px dashed rgba(255,255,255,.15);
  position: relative; gap: 20px; }
.lv-tv .ft .cl { font-weight: 700; font-size: 18px; color: rgba(255,255,255,.75); }
.lv-tv .ft .pr { font-weight: 700; font-size: 16px; color: var(--gold); }
.lv-tv .ft .ur { font-weight: 700; font-size: 14px; color: rgba(255,255,255,.45); }
@media (max-width: 900px) { .lv-tv .pt { font-size: 72px; width: 100px; }
  .lv-tv .nm { font-size: 22px; } .lv-tv .grid { gap: 16px; } }
.backlink { display: inline-block; font-family: var(--head); font-weight: 600;
  font-size: 14px; color: var(--purple); text-decoration: none; margin-bottom: 12px; }
