/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img.emoji { height:1.1em; width:1.1em; vertical-align:-0.15em; display:inline-block; }

:root {
  /* ── Wimbledon editorial light theme ── */
  --purple:      #4f2d7f;   /* Wimbledon purple */
  --purple-dark: #efe9f6;   /* light purple wash (was dark) */
  --purple-dim:  #ece4f5;   /* light purple chip bg */
  --purple-mid:  #6b3fa0;
  --grass:       #2c7a39;   /* Wimbledon grass green */
  --grass-dim:   #e4efe1;   /* light green chip bg (win) */
  --grass-deep:  #16432a;   /* deep court green */
  --gold:        #9a7b1c;   /* readable gold on cream */
  --strawberry:  #d83a3a;   /* strawberries-and-cream red — CTA */
  --blue:        #2563eb;
  --orange:      #d83a3a;
  --bg:          #ece6d3;   /* cream / parchment */
  --surface:     #faf6ea;   /* card cream */
  --border:      #ddd3bb;   /* warm border */
  --ink:         #16241a;   /* deep green-black ink */
  --text:        #16241a;
  --muted:       #6f6850;   /* warm grey-brown */
  --subtle:      #9a9078;
  --loss-bg:     #f6dcdc;   /* light red chip bg (loss) */
  --loss:        #c0392b;
}

body {
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, .logo, .display { font-family: 'Fraunces', Georgia, serif; }

/* ── SCREENS ────────────────────────────────────────────────── */
.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; flex-direction: column; }

/* ── LOGO ───────────────────────────────────────────────────── */
.logo { font-size: 72px; font-weight: 900; letter-spacing: -4px; line-height: 1; }
.logo-dash { color: var(--purple); }
.logo-sub { font-size: 11px; color: var(--muted); letter-spacing: 3px; text-transform: uppercase; margin-top: 2px; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn { display: block; width: 100%; padding: 17px; border-radius: 14px; border: none; font-size: 16px; font-weight: 800; cursor: pointer; text-align: center; }
.btn:active { opacity: 0.85; }
.btn-primary   { background: var(--strawberry); color: #fff; box-shadow: 0 2px 0 #a82b2b; }
.btn-secondary { background: transparent; color: var(--muted); border: 1.5px solid var(--border); font-size: 14px; }
.btn:disabled  { opacity: 0.4; cursor: not-allowed; }

/* ── GENDER PICKER ──────────────────────────────────────────── */
.gender-btn { flex:1; padding:14px 10px; border-radius:14px; border:1.5px solid var(--border); background:var(--surface); cursor:pointer; text-align:center; -webkit-tap-highlight-color:transparent; }
.gender-btn.selected { border-color:var(--purple); background:var(--purple-dark); }
.gender-btn.selected div:last-child { color:var(--purple); }

/* ── STYLE PICKER ───────────────────────────────────────────── */
.style-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.style-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.style-option.selected { border-color: var(--purple); background: var(--purple-dark); }
.so-icon  { font-size: 26px; flex-shrink: 0; }
.so-text  { flex: 1; }
.so-name  { font-size: 15px; font-weight: 800; }
.so-desc  { font-size: 12px; color: var(--muted); margin-top: 3px; }
.style-option.selected .so-desc { color: var(--purple); }
.so-check { font-size: 18px; color: var(--purple); opacity: 0; flex-shrink: 0; }
.style-option.selected .so-check { opacity: 1; }

/* ── TOP BAR ────────────────────────────────────────────────── */
.top-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; flex-shrink: 0; }
.back-btn { font-size: 22px; color: var(--muted); cursor: pointer; padding: 4px; }
.slot-pill, .respin-pill { padding: 5px 12px; border-radius: 20px; font-size: 12px; }
.slot-pill { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.slot-pill strong { color: var(--text); }
.slot-pill .attr { color: var(--purple); font-weight: 700; }
.respin-pill { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.respin-pill .count { color: var(--blue); font-weight: 800; }

/* ── DRAWN YEAR ─────────────────────────────────────────────── */
.drawn-year { margin: 0 18px 16px; padding: 18px 16px; background: var(--purple-dark); border: 1.5px solid rgba(139,92,246,0.25); border-radius: 14px; text-align: center; }
.drawn-year .year-num  { font-size: 42px; font-weight: 900; color: var(--purple); line-height: 1; display: block; margin-bottom: 4px; }
.drawn-year .year-sub  { font-size: 13px; color: var(--purple); font-weight: 700; }
.drawn-year .year-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── PLAYER CARDS ───────────────────────────────────────────── */
.pick-label { padding: 0 18px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.player-list { display: flex; flex-direction: column; gap: 8px; padding: 0 18px; }
.player-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.player-card.selected  { border-color: var(--purple); background: var(--purple-dark); }
.player-card.attr-match { border-color: rgba(139,92,246,0.4); }
.rating-box { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; flex-shrink: 0; }
.rating-box.elite { background: #2a120d; border: 1.5px solid rgba(249,115,22,0.35); color: var(--orange); }
.rating-box.great { background: #2a1e0d; border: 1.5px solid rgba(251,191,36,0.35); color: var(--gold); }
.rating-box.good  { background: var(--purple-dim); border: 1.5px solid rgba(139,92,246,0.35); color: var(--purple); }
.p-name  { font-size: 15px; font-weight: 700; }
.p-meta  { font-size: 11px; color: var(--muted); margin-top: 2px; }
.p-attr  { margin-left: auto; padding: 3px 8px; background: #1a1a2e; border: 1px solid var(--border); border-radius: 6px; font-size: 10px; color: var(--subtle); font-weight: 600; flex-shrink: 0; }
.p-attr.match { background: var(--purple-dim); color: var(--purple); border-color: rgba(139,92,246,0.3); }

/* ── BOOST BADGES ───────────────────────────────────────────── */
.boost-badge { display: inline-block; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 4px; margin-left: 5px; vertical-align: middle; }
.boost-W  { background: rgba(251,191,36,0.2); color: var(--gold); border: 1px solid rgba(251,191,36,0.3); }
.boost-F  { background: rgba(139,92,246,0.2); color: var(--purple); border: 1px solid rgba(139,92,246,0.3); }
.boost-SF { background: rgba(96,165,250,0.2); color: var(--blue); border: 1px solid rgba(96,165,250,0.3); }
.boost-QF { background: rgba(100,116,139,0.2); color: var(--muted); border: 1px solid var(--border); }
.boost-other { background: rgba(71,85,105,0.2); color: var(--subtle); border: 1px solid var(--border); }

/* ── BUILD COURT ────────────────────────────────────────────── */
.court { margin: 0 18px 14px; padding: 16px 12px; background: repeating-linear-gradient(0deg, #2f7a3a 0 22px, #2b7136 22px 44px); border: 2px solid #cdbf9a; border-radius: 16px; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.12); }
.court-label { text-align: center; font-size: 10px; color: rgba(78,139,58,0.5); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; }
.build-grid { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.build-slot { width: 88px; min-height: 72px; background: var(--purple-dark); border: 1.5px dashed var(--purple-mid); border-radius: 10px; padding: 7px 5px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.build-slot.filled { border-style: solid; border-color: rgba(139,92,246,0.35); background: rgba(10,5,20,0.9); }
.bs-attr  { font-size: 8px; color: var(--purple); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.bs-flag  { font-size: 15px; margin-bottom: 2px; }
.bs-name  { font-size: 10px; font-weight: 700; line-height: 1.2; }
.bs-yr    { font-size: 9px; color: var(--muted); margin-top: 1px; }
.bs-ovr   { font-size: 10px; color: var(--purple); font-weight: 700; margin-top: 2px; }
.bs-empty { font-size: 22px; color: var(--purple-mid); }

/* ── PLAYER STATS BAR ───────────────────────────────────────── */
.player-stats { display: flex; align-items: center; justify-content: space-between; margin: 0 18px 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.ps-ovr-label { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.ps-ovr-val   { font-size: 34px; font-weight: 900; color: var(--purple); line-height: 1; }
.ps-right { text-align: right; }
.ps-prob-label { font-size: 11px; color: var(--muted); }
.ps-prob-val   { font-size: 22px; font-weight: 800; color: var(--purple); }
.ps-remaining  { font-size: 11px; color: var(--subtle); margin-top: 4px; }

/* ── MATCH LIST ─────────────────────────────────────────────── */
.match-list { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 18px; }
.match-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.match-num     { font-size: 11px; color: var(--subtle); width: 18px; flex-shrink: 0; font-weight: 700; }
.match-body    { flex: 1; }
.match-fixture { font-size: 14px; font-weight: 700; }
.match-stage   { font-size: 10px; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 1px; }
.match-score   { font-size: 12px; color: var(--muted); margin-top: 4px; font-family: monospace; letter-spacing: 0.5px; display: flex; gap: 6px; min-height: 18px; }
.set-score     { display: inline-block; padding: 1px 6px; border-radius: 5px; font-weight: 700; animation: setPop 0.32s cubic-bezier(0.34,1.56,0.64,1); }
.set-score.won  { background: var(--grass-dim); color: var(--grass); }
.set-score.lost { background: var(--loss-bg); color: var(--loss); }
@keyframes setPop { 0% { opacity: 0; transform: scale(0.5) translateY(4px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
.match-row.revealing { animation: rowIn 0.3s ease; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.result-badge  { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; flex-shrink: 0; transition: all 0.2s; }
.result-badge.pending { background: var(--surface); color: var(--subtle); border: 1px solid var(--border); font-size: 11px; letter-spacing: 1px; }
.result-badge.pop { animation: badgePop 0.34s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes badgePop { 0% { transform: scale(0.4); } 100% { transform: scale(1); } }
.result-badge.w { background: var(--grass-dim); color: var(--grass); border: 1px solid rgba(74,222,128,0.3); }
.result-badge.l { background: #2a0d0d; color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }

/* ── RESULT SCREEN ──────────────────────────────────────────── */
.final-score { font-size: 80px; font-weight: 900; line-height: 1; }
.final-score.perfect { color: var(--gold); }
.final-score.close   { color: var(--purple); }
.final-score.bad     { color: #f87171; }
.share-card { width: 100%; padding: 14px 16px; background: var(--purple-dark); border: 1.5px solid rgba(139,92,246,0.25); border-radius: 14px; margin-bottom: 16px; }
.share-card-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.share-card-text  { font-size: 14px; font-weight: 700; line-height: 1.6; white-space: pre-line; }
.build-result-list { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 24px; text-align: left; }
.build-result-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; font-weight: 700; }
.build-result-row  { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #141425; }
.build-result-row:last-child { border-bottom: none; }
.br-num  { font-size: 10px; color: var(--subtle); width: 14px; font-weight: 700; }
.br-flag { font-size: 17px; }
.br-name { font-size: 13px; font-weight: 700; flex: 1; }
.br-year { font-size: 10px; color: var(--subtle); }
.br-attr { font-size: 10px; color: var(--purple); font-weight: 700; padding: 1px 6px; background: var(--purple-dim); border-radius: 4px; }
.br-ovr  { font-size: 13px; color: var(--purple); font-weight: 800; }

@keyframes trophy-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.trophy-icon { display: block; font-size: 64px; margin: 0 auto 12px; animation: trophy-pulse 2s ease-in-out infinite; }

/* ── RACKET LOADING ─────────────────────────────────────────── */
@keyframes racket-swing {
  0%   { transform: rotate(-40deg) scale(0.9); }
  30%  { transform: rotate(25deg)  scale(1.15); }
  60%  { transform: rotate(-20deg) scale(1.05); }
  80%  { transform: rotate(12deg)  scale(1.1); }
  100% { transform: rotate(-40deg) scale(0.9); }
}
.racket-loading { font-size: 52px; display: inline-block; animation: racket-swing 0.55s ease-in-out infinite; }

/* ── SINGLE DRAWN CARD ──────────────────────────────────────── */
@keyframes card-in {
  0%   { transform: translateY(28px) scale(0.94); opacity: 0; }
  100% { transform: translateY(0)    scale(1);    opacity: 1; }
}
.drawn-card {
  animation: card-in 0.32s cubic-bezier(.22,.68,0,1.2) forwards;
  margin: 0 18px 16px;
  padding: 28px 22px 22px;
  background: var(--purple-dark);
  border: 1.5px solid rgba(139,79,191,0.35);
  border-radius: 18px;
  text-align: center;
}
.dc-year   { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.dc-flag   { font-size: 44px; margin-bottom: 10px; display: block; }
.dc-flag img.emoji { width: 52px; height: 52px; }
.dc-name   { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.dc-result { margin-bottom: 14px; }
.dc-attr   { font-size: 11px; color: var(--purple); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.dc-rating { font-size: 72px; font-weight: 900; line-height: 1; color: var(--purple); margin-bottom: 8px; }
.dc-rating.elite { color: var(--gold); }
.dc-rating.great { color: var(--purple); }
.dc-rating.avg   { color: var(--grass); }
.dc-stats  { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.dc-others { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.dc-other-pill { font-size: 11px; padding: 3px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--subtle); }

/* ── ENTRY ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popUp  { 0% { opacity: 0; transform: scale(0.92) translateY(10px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

/* Landing: staggered entrance of each block */
#screen-landing.active > * { animation: fadeUp 0.55s cubic-bezier(.22,.68,0,1.1) both; }
#screen-landing.active > *:nth-child(1)  { animation-delay: 0.00s; }
#screen-landing.active > *:nth-child(2)  { animation-delay: 0.05s; }
#screen-landing.active > *:nth-child(3)  { animation-delay: 0.10s; }
#screen-landing.active > *:nth-child(4)  { animation-delay: 0.15s; }
#screen-landing.active > *:nth-child(5)  { animation-delay: 0.20s; }
#screen-landing.active > *:nth-child(6)  { animation-delay: 0.25s; }
#screen-landing.active > *:nth-child(7)  { animation-delay: 0.30s; }
#screen-landing.active > *:nth-child(8)  { animation-delay: 0.35s; }
#screen-landing.active > *:nth-child(9)  { animation-delay: 0.40s; }
#screen-landing.active > *:nth-child(10) { animation-delay: 0.45s; }
.logo { animation: popUp 0.6s cubic-bezier(.22,.68,0,1.3) both; }

/* Result screen: gentle fade-up of each block */
#screen-result.active > * { animation: fadeUp 0.5s ease both; }
#screen-result.active > *:nth-child(2) { animation-delay: 0.06s; }
#screen-result.active > *:nth-child(3) { animation-delay: 0.12s; }
#screen-result.active > *:nth-child(4) { animation-delay: 0.18s; }
#screen-result.active > *:nth-child(5) { animation-delay: 0.24s; }
#screen-result.active > *:nth-child(6) { animation-delay: 0.30s; }

/* Draw screen: player cards cascade in */
.player-card { animation: popUp 0.4s cubic-bezier(.22,.68,0,1.1) both; }
.player-card:nth-child(1) { animation-delay: 0.03s; }
.player-card:nth-child(2) { animation-delay: 0.08s; }
.player-card:nth-child(3) { animation-delay: 0.13s; }
.player-card:nth-child(4) { animation-delay: 0.18s; }
.player-card:nth-child(5) { animation-delay: 0.23s; }
.player-card:nth-child(6) { animation-delay: 0.28s; }
.player-card:nth-child(7) { animation-delay: 0.33s; }

@media (prefers-reduced-motion: reduce) {
  #screen-landing.active > *, #screen-result.active > *, .player-card, .logo { animation: none !important; }
}

/* ── FOMO ───────────────────────────────────────────────────── */
.fomo-bar { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 16px; min-height: 40px; }
.fomo-online { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.fomo-online b { color: var(--text); font-weight: 800; }
.fomo-dot { width: 8px; height: 8px; border-radius: 50%; background: #36d36b; box-shadow: 0 0 0 0 rgba(54,211,107,0.6); animation: fomoPulse 1.8s infinite; }
@keyframes fomoPulse { 0% { box-shadow: 0 0 0 0 rgba(54,211,107,0.55); } 70% { box-shadow: 0 0 0 8px rgba(54,211,107,0); } 100% { box-shadow: 0 0 0 0 rgba(54,211,107,0); } }
.fomo-ticker { font-size: 12px; font-weight: 700; color: var(--gold); transition: opacity 0.3s ease; min-height: 16px; }

.scarcity { width: 100%; max-width: 340px; margin-bottom: 20px; padding: 11px 14px; background: linear-gradient(100deg, var(--purple-dim), var(--surface)); border: 1px solid rgba(79,45,127,0.18); border-radius: 12px; font-size: 12px; color: var(--muted); line-height: 1.5; text-align: center; }
.scarcity b { color: var(--strawberry); font-weight: 800; }
.scarcity span { display: block; margin-top: 3px; color: var(--purple); font-weight: 800; font-size: 13px; }

/* ════════════════════════════════════════════════════════════════
   EDITORIAL LIGHT THEME — landing redesign, court, support, modals
   (later rules override earlier dark-era styles)
   ════════════════════════════════════════════════════════════════ */

/* Fix leftover dark-era hardcoded colours for light theme */
.result-badge.l { background: var(--loss-bg); color: var(--loss); border: 1px solid rgba(192,57,43,0.25); }
.result-badge.w { background: var(--grass-dim); color: var(--grass); border: 1px solid rgba(44,122,57,0.3); }
.result-badge.pending { background: var(--surface); color: var(--subtle); border: 1px solid var(--border); }
.final-score.bad { color: var(--strawberry); }
.final-score.close { color: var(--purple); }
.final-score.perfect { color: var(--gold); }
.build-result-row { border-bottom: 1px solid var(--border); }
.match-row, .player-card, .player-stats, .build-slot, .drawn-card, .share-card, .build-result-list,
.match-list .match-row { box-shadow: 0 1px 2px rgba(20,36,26,0.04); }
.fomo-online b { color: var(--ink); }
.fomo-ticker { color: var(--strawberry); }

/* ── LANDING: editorial layout ── */
#screen-landing.active { display: block; min-height: 100vh; padding: 0; text-align: left;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 380px at 78% -8%, rgba(44,122,57,0.10), transparent 60%),
    radial-gradient(900px 320px at 0% 110%, rgba(79,45,127,0.08), transparent 60%); }
.land-wrap { max-width: 1040px; margin: 0 auto; padding: 22px 24px 60px; }

.land-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; }
.land-kicker { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.land-actions { display: flex; align-items: center; gap: 8px; }
.chip-btn { font-family: 'Archivo',sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: all .15s; }
.chip-btn:hover { background: var(--ink); color: var(--bg); }
.chip-btn.support { border-color: var(--strawberry); color: #fff; background: var(--strawberry); box-shadow: 0 2px 0 #a82b2b; }
.chip-btn.support:hover { filter: brightness(1.05); }

.land-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.land-left { min-width: 0; }
.land-eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: 14px; }
.logo { font-size: 132px; line-height: 0.82; letter-spacing: -4px; font-weight: 900; color: var(--ink);
  text-shadow: 6px 6px 0 rgba(44,122,57,0.16); }
.logo-dash { display: inline-block; width: 0.42em; height: 0.16em; background: var(--gold); border-radius: 4px; vertical-align: 0.22em; margin: 0 0.04em; }
#screen-landing .logo-sub { display: none; }
.land-left h1 { font-size: 46px; line-height: 1.02; font-weight: 900; color: var(--ink); margin: 22px 0 16px; letter-spacing: -0.5px; }
.land-lede { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 440px; margin-bottom: 26px; }
.land-lede b { color: var(--ink); }
.land-cta { display: inline-flex; align-items: center; gap: 10px; width: auto; padding: 16px 30px; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; border-radius: 10px; }

.land-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 34px; }
.land-step { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 16px; }
.land-step .ls-num { font-family:'Fraunces',serif; font-size: 26px; font-weight: 900; color: var(--strawberry); line-height: 1; }
.land-step .ls-name { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin: 8px 0 4px; color: var(--ink); }
.land-step .ls-desc { font-size: 11px; color: var(--muted); line-height: 1.45; }

/* ── TENNIS COURT MOCKUP ── */
.land-court-card { background: #fffdf6; border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: 0 18px 40px -24px rgba(20,36,26,0.4); }
.tcourt { position: relative; width: 100%; aspect-ratio: 0.74; border-radius: 10px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, #2f7a3a 0 24px, #2b7136 24px 48px);
  border: 3px solid #cdbf9a; }
.tcourt::before { content:''; position:absolute; inset:7%; border:2px solid rgba(255,255,255,0.92); }
.tcourt .net { position:absolute; left:0; right:0; top:50%; height:0; border-top:3px dashed rgba(255,255,255,0.95); }
.tcourt .cline-v { position:absolute; top:7%; bottom:7%; left:50%; width:2px; background:rgba(255,255,255,0.55); }
.tcourt .cline-svc { position:absolute; left:7%; right:7%; height:2px; background:rgba(255,255,255,0.75); }
.tcourt .cline-svc.top { top:30%; } .tcourt .cline-svc.bot { top:70%; }
.tchip { position:absolute; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; gap:2px; z-index:2; }
.tchip .dot { width:30px; height:30px; border-radius:50%; background:#fff; color:var(--ink); font-size:9px; font-weight:800; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 5px rgba(0,0,0,0.3); border:2px solid var(--ink); }
.tchip .lbl { font-size:8.5px; font-weight:800; color:#fff; text-transform:uppercase; letter-spacing:0.3px; text-shadow:0 1px 2px rgba(0,0,0,0.6); }
.court-cap { display:flex; align-items:center; justify-content:space-between; margin-top:10px; padding:0 2px; }
.court-cap .cc-title { font-family:'Fraunces',serif; font-size:13px; font-weight:800; color:var(--ink); }
.court-cap .cc-sub { font-size:10px; color:var(--muted); }

/* ── STATS BAR ── */
.land-statsbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 18px; margin:34px auto 0; padding:16px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); font-size:12px; color:var(--muted); }
.land-statsbar b { color:var(--ink); font-weight:800; }
.land-statsbar .dot-sep { color:var(--subtle); }
.land-statsbar .rate-link { color:var(--purple); font-weight:800; cursor:pointer; text-decoration:underline; text-underline-offset:2px; background:none; border:none; font-size:12px; font-family:'Archivo',sans-serif; }
.land-statsbar .rate-link:hover { color:var(--strawberry); }

/* ── FOOTER ── */
.land-footer { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:30px; font-size:11px; color:var(--subtle); letter-spacing:1px; }
.land-footer .ft-support { background:var(--strawberry); color:#fff; font-weight:800; letter-spacing:1px; text-transform:uppercase; padding:8px 16px; border-radius:999px; border:none; cursor:pointer; font-size:11px; box-shadow:0 2px 0 #a82b2b; }

/* FOMO on light */
.fomo-bar { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; margin: 18px 0 0; }
#screen-landing .scarcity { display: none; }

/* ── MODALS (setup + feedback + support) ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(22,36,26,0.45); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; padding: 24px; box-shadow: 0 30px 60px -20px rgba(20,36,26,0.5); animation: popUp .28s cubic-bezier(.22,.68,0,1.1); }
.modal-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:6px; }
.modal-title { font-family:'Fraunces',serif; font-size:22px; font-weight:900; color:var(--ink); }
.modal-sub { font-size:12px; color:var(--muted); margin-bottom:18px; line-height:1.5; }
.modal-close { background:none; border:none; font-size:24px; line-height:1; color:var(--muted); cursor:pointer; padding:0 2px; }
.modal-close:hover { color:var(--ink); }
.modal label { display:block; font-size:11px; font-weight:800; letter-spacing:1px; text-transform:uppercase; color:var(--muted); margin:14px 0 6px; }
.modal input, .modal textarea, .modal select { width:100%; padding:11px 13px; border:1.5px solid var(--border); border-radius:10px; background:#fffdf6; color:var(--ink); font-family:'Archivo',sans-serif; font-size:14px; }
.modal textarea { min-height:84px; resize:vertical; }
.modal .seg { display:flex; gap:10px; }
.modal .seg .seg-opt { flex:1; text-align:center; padding:13px; border:1.5px solid var(--border); border-radius:12px; background:#fffdf6; cursor:pointer; font-weight:800; }
.modal .seg .seg-opt.sel { border-color:var(--purple); background:var(--purple-dim); color:var(--purple); }
.modal .seg .seg-opt .sm { display:block; font-size:10px; font-weight:600; color:var(--muted); margin-top:2px; }
.modal .feedback-ok { background:var(--grass-dim); color:var(--grass); border:1px solid rgba(44,122,57,0.3); border-radius:10px; padding:12px; font-size:13px; font-weight:700; text-align:center; margin-top:14px; }

/* gender + style pickers inside modal on light */
.gender-btn { background:#fffdf6; border:1.5px solid var(--border); }
.gender-btn.selected { border-color:var(--purple); background:var(--purple-dim); }
.gender-btn.selected div:last-child { color:var(--purple); }
.style-option { background:#fffdf6; border:1.5px solid var(--border); }
.style-option.selected { border-color:var(--purple); background:var(--purple-dim); }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .land-hero { grid-template-columns: 1fr; gap: 26px; }
  .land-right { order: -1; max-width: 340px; }
  .logo { font-size: 96px; }
  .land-left h1 { font-size: 34px; }
  .land-steps { grid-template-columns: 1fr; }
  .land-top { flex-wrap: wrap; }
}

/* ════════════════════════════════════════════════════════════════
   v2 — make it OURS: cream + deep green + purple, rounder, no pitch
   ════════════════════════════════════════════════════════════════ */
:root { --green-deep: #14502f; --green-cta: #1c6b39; }

/* Rounder, greener buttons */
.btn { border-radius: 999px; }
.btn-primary { background: var(--green-cta); color: #fff; box-shadow: 0 3px 0 #11422599; }
.btn-secondary { border-radius: 999px; }
.land-cta { border-radius: 999px; padding: 17px 36px; box-shadow: 0 4px 0 #114225; }
.chip-btn { border-radius: 999px; }
.chip-btn.support, .land-footer .ft-support { background: var(--purple); border-color: var(--purple); box-shadow: 0 2px 0 #3a2160; }
.chip-btn.support:hover { background: var(--purple-mid); }

/* Purple accents instead of red */
.logo-dash { background: var(--purple); height: 0.14em; border-radius: 999px; }
.logo { text-shadow: 6px 6px 0 rgba(79,45,127,0.14); }
.land-step { border-radius: 22px; }
.land-step .ls-num { color: var(--green-cta); }
.land-statsbar .rate-link { color: var(--purple); }
.land-statsbar .rate-link:hover { color: var(--green-cta); }
.modal { border-radius: 26px; }
.match-row, .player-card, .player-stats, .build-slot, .share-card, .build-result-list,
.gender-btn, .style-option, .land-step { border-radius: 22px; }

/* Old football-style pitch removed */
.land-court-card, .tcourt { display: none !important; }

/* ── 1-v-1 tennis card with strawberries (our hero motif) ── */
.vs-card { position: relative; border-radius: 28px; padding: 22px; overflow: hidden;
  background: repeating-linear-gradient(0deg, #1c5a33 0 26px, #18502f 26px 52px);
  border: 3px solid #cdbf9a; box-shadow: 0 24px 48px -26px rgba(20,36,26,0.55);
  display: flex; flex-direction: column; gap: 14px; }
.vs-card .berry { position: absolute; font-size: 22px; z-index: 3; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); }
.vs-card .berry.b1 { top: 12px; left: 14px; }
.vs-card .berry.b2 { bottom: 12px; right: 14px; }
.vs-side { background: rgba(255,253,246,0.95); border-radius: 20px; padding: 16px; text-align: center; }
.vs-racket { font-size: 30px; line-height: 1; }
.vs-label { font-family: 'Fraunces', serif; font-weight: 900; font-size: 17px; color: var(--ink); margin-top: 6px; }
.vs-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.vs-net { position: relative; height: 2px; margin: 0 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.95) 0 9px, transparent 9px 16px);
  display: flex; align-items: center; justify-content: center; }
.vs-badge { position: absolute; background: var(--purple); color: #fff; font-family: 'Fraunces', serif;
  font-weight: 900; font-size: 13px; letter-spacing: 1px; padding: 7px 16px; border-radius: 999px; box-shadow: 0 3px 0 #3a2160; }
.vs-foot { text-align: center; color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

/* ════════════════════════════════════════════════════════════════
   v3 — IMPECCABLE EDITORIAL LAYOUT (THE SLAM masthead + hero)
   ════════════════════════════════════════════════════════════════ */
#screen-landing.active .land-wrap { max-width: 1120px; padding: 26px 32px 56px; }

/* Masthead */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 22px; margin-bottom: 46px; border-bottom: 1.5px solid var(--ink); }
.wordmark { font-family: 'Fraunces', serif; font-weight: 900; font-size: 26px; letter-spacing: -0.5px;
  color: var(--ink); line-height: 1; }
.wm-dot { color: var(--green-cta); }
.mast-nav { display: flex; gap: 9px; }

/* Hero — asymmetric editorial split */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.hero-copy { min-width: 0; }
.eyebrow { font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.headline { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98; letter-spacing: -1.5px; color: var(--ink); margin-bottom: 24px; }
.headline em { font-style: italic; font-weight: 900; color: var(--green-cta);
  border-bottom: 4px solid var(--gold); padding-bottom: 2px; }
.lede { font-family: 'Archivo', sans-serif; font-size: 16px; line-height: 1.68; color: var(--muted);
  max-width: 46ch; margin-bottom: 30px; }
.lede b { color: var(--ink); font-weight: 700; }

.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-cta .land-cta { animation: none; }
.cta-note { font-size: 13px; color: var(--muted); }
.cta-note b { color: var(--strawberry); font-weight: 800; }

/* Steps — editorial numbered list with hairlines */
.steps { list-style: none; border-top: 1.5px solid var(--border); }
.step { display: grid; grid-template-columns: auto 96px 1fr; align-items: baseline; gap: 16px;
  padding: 15px 2px; border-bottom: 1px solid var(--border); }
.step-n { font-family: 'Fraunces', serif; font-weight: 900; font-size: 22px; color: var(--green-cta); }
.step-t { font-family: 'Fraunces', serif; font-weight: 700; font-size: 16px; color: var(--ink); }
.step-d { font-size: 13px; color: var(--muted); }

/* Aside column */
.hero-aside { display: flex; flex-direction: column; gap: 18px; }
.hero-aside .fomo-bar { flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }

/* Meta footer */
.land-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 44px;
  padding-top: 20px; border-top: 1.5px solid var(--ink); font-size: 12.5px; color: var(--muted); }
.land-meta b { color: var(--ink); font-weight: 800; }
.land-meta i { color: var(--subtle); font-style: normal; }
.land-meta .rate-link { color: var(--purple); font-weight: 700; cursor: pointer; background: none;
  border: none; font-size: 12.5px; font-family: 'Archivo', sans-serif; text-decoration: underline; text-underline-offset: 2px; }
.land-meta .rate-link:hover { color: var(--green-cta); }

@media (max-width: 820px) {
  #screen-landing.active .land-wrap { padding: 20px 20px 48px; }
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .masthead { margin-bottom: 30px; }
  .step { grid-template-columns: auto 78px 1fr; gap: 12px; }
}

/* ════════════════════════════════════════════════════════════════
   v3.1 — drop the "copied" gold, add Wimbledon colour identity,
   refine masthead + footer buttons
   ════════════════════════════════════════════════════════════════ */

/* Headline accent: purple highlighter marker, not a gold rule */
.headline em { border-bottom: none; padding-bottom: 0; color: var(--green-cta);
  background: linear-gradient(transparent 60%, rgba(79,45,127,0.22) 60% 94%, transparent 94%); }

/* Colour the framing rules green/purple instead of generic black */
.masthead { border-bottom: 2px solid var(--green-cta); }
.land-meta { border-top: 2px solid var(--purple); gap: 10px 14px; }
.steps { border-top: 1.5px solid var(--border); }

/* Masthead buttons — refined, cohesive */
.chip-btn { border: 1.5px solid var(--border); color: var(--ink); background: #fffdf6;
  padding: 9px 17px; font-size: 11px; letter-spacing: 0.6px; transition: all .15s ease; }
.chip-btn:hover { background: var(--green-cta); border-color: var(--green-cta); color: #fff; }
.chip-btn.support { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: 0 2px 0 #3a2160; }
.chip-btn.support:hover { background: var(--purple-mid); border-color: var(--purple-mid); color: #fff; transform: translateY(-1px); }

/* Footer: 'Support THE SLAM' becomes a real pill, matching the top */
.land-meta .rate-link { text-decoration: underline; text-underline-offset: 3px; }
.land-meta i:last-of-type { display: none; }
.land-meta .rate-link:last-child { text-decoration: none; background: var(--purple); color: #fff;
  padding: 8px 16px; border-radius: 999px; font-weight: 800; letter-spacing: 0.5px;
  box-shadow: 0 2px 0 #3a2160; margin-left: 2px; }
.land-meta .rate-link:last-child:hover { background: var(--purple-mid); color: #fff; transform: translateY(-1px); }

/* Trophy gold stays only where it earns it (perfect-run score) */
.final-score.perfect { color: var(--gold); }

/* ════════════════════════════════════════════════════════════════
   v4 — menu entrance animations, info button, "coming soon" + waitlist
   ════════════════════════════════════════════════════════════════ */

/* Mini staggered entrance for the editorial menu */
@keyframes slamIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
#screen-landing.active .masthead,
#screen-landing.active .eyebrow,
#screen-landing.active .headline,
#screen-landing.active .lede,
#screen-landing.active .hero-cta,
#screen-landing.active .steps,
#screen-landing.active .hero-aside,
#screen-landing.active .land-meta,
#screen-landing.active .coming-soon { animation: slamIn 0.6s cubic-bezier(.22,.68,0,1.05) both; }
#screen-landing.active .masthead   { animation-delay: 0.00s; }
#screen-landing.active .eyebrow    { animation-delay: 0.08s; }
#screen-landing.active .headline   { animation-delay: 0.15s; }
#screen-landing.active .lede       { animation-delay: 0.24s; }
#screen-landing.active .hero-cta   { animation-delay: 0.32s; }
#screen-landing.active .steps      { animation-delay: 0.40s; }
#screen-landing.active .hero-aside { animation-delay: 0.22s; }
#screen-landing.active .land-meta  { animation-delay: 0.48s; }
#screen-landing.active .coming-soon{ animation-delay: 0.54s; }
.headline em { animation: none; }
@media (prefers-reduced-motion: reduce) {
  #screen-landing.active [class] { animation: none !important; }
}

/* Info button (round) */
.chip-btn.icon-btn { width: 34px; padding: 0; height: 34px; border-radius: 50%; font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }

/* How-to-play list */
.info-list { margin: 4px 0 0; padding-left: 20px; }
.info-list li { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 10px; }
.info-list li b { color: var(--ink); }

/* Coming soon */
.coming-soon { margin-top: 40px; padding: 22px; border: 1.5px solid var(--border); border-radius: 22px;
  background: linear-gradient(180deg, #fffdf6, var(--surface)); }
.cs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cs-eyebrow { font-family: 'Fraunces', serif; font-weight: 800; font-size: 17px; color: var(--ink); }
.cs-tag { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-cta);
  background: var(--grass-dim); padding: 4px 10px; border-radius: 999px; }
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.cs-card { display: flex; flex-direction: column; gap: 3px; padding: 14px; border: 1px solid var(--border);
  border-radius: 16px; background: var(--bg); opacity: 0.85; }
.cs-emoji { font-size: 18px; }
.cs-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 14px; color: var(--ink); }
.cs-sub { font-size: 11px; color: var(--muted); }
.cs-waitlist { width: 100%; padding: 13px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--ink); color: var(--bg); font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 13px; letter-spacing: 0.5px; transition: all .15s; }
.cs-waitlist:hover { background: var(--green-cta); transform: translateY(-1px); }
@media (max-width: 560px) { .cs-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════
   v5 — SHAREABLE SCOREBOARD (constant animations, screenshot-ready)
   ════════════════════════════════════════════════════════════════ */
#screen-result.active { display: flex; flex-direction: column; align-items: center; }
.scoreboard { position: relative; width: 100%; max-width: 380px; margin: 0 auto;
  padding: 28px 24px 22px; border-radius: 26px; text-align: center; overflow: hidden;
  background: linear-gradient(170deg, #fffdf6 0%, var(--surface) 100%);
  box-shadow: 0 24px 60px -28px rgba(20,36,26,0.55); isolation: isolate; }
/* rotating gradient frame */
.scoreboard::before { content:''; position:absolute; inset:0; padding:2.5px; border-radius:26px; z-index:-1;
  background: conic-gradient(from 0deg, var(--green-cta), var(--purple), var(--gold), var(--strawberry), var(--green-cta));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: sbSpin 7s linear infinite; }
@keyframes sbSpin { to { transform: rotate(360deg); } }
.scoreboard.champ::before { animation-duration: 3.5s; }

.sb-berry { position: absolute; font-size: 20px; z-index: 2; }
.sb-berry.s1 { top: 14px; left: 16px; animation: berryFloat 3.2s ease-in-out infinite; }
.sb-berry.s2 { top: 16px; right: 16px; animation: berryFloat 3.8s ease-in-out infinite 0.4s; }
@keyframes berryFloat { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-7px) rotate(8deg); } }

.sb-brand { font-family: 'Fraunces', serif; font-weight: 900; font-size: 18px; letter-spacing: -0.4px; color: var(--ink); }
.sb-brand .wm-dot { color: var(--green-cta); }
.sb-event { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 2px 0 8px; }
.sb-trophy { font-size: 54px; line-height: 1; margin: 4px 0 2px; display: inline-block; animation: trophyBob 2.4s ease-in-out infinite; }
@keyframes trophyBob { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.06); } }

.sb-outcome { font-family: 'Fraunces', serif; font-weight: 900; font-size: 26px; letter-spacing: 0.5px; color: var(--ink); margin-top: 4px; }
.scoreboard.champ .sb-outcome { background: linear-gradient(90deg, var(--gold), #e9c45a, var(--gold), #e9c45a); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
.sb-score { font-family: 'Fraunces', serif; font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -2px; margin: 2px 0 6px; }
.scoreboard.champ .sb-score { color: var(--green-cta); }
.scoreboard.close .sb-score { color: var(--purple); }
.scoreboard.early .sb-score { color: var(--strawberry); }
.sb-phrase { font-family: 'Fraunces', serif; font-style: italic; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 280px; margin: 0 auto 16px; }

.sb-rounds { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.rd { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rd-ab { font-size: 9px; font-weight: 800; letter-spacing: 0.5px; color: var(--subtle); }
.rd-dot { width: 16px; height: 16px; border-radius: 50%; }
.rd.w .rd-dot { background: var(--green-cta); }
.rd.w .rd-ab { color: var(--green-cta); }
.rd.l .rd-dot { background: var(--strawberry); animation: dotPop 0.4s ease; }
.rd.l .rd-ab { color: var(--strawberry); }
.rd.na .rd-dot { background: var(--border); }
@keyframes dotPop { from { transform: scale(0.4); } to { transform: scale(1); } }

.sb-build { border-top: 1px solid var(--border); padding-top: 12px; text-align: left; }
.sb-build-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 700; text-align: center; }
.sb-bp { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; }
.sb-bp-flag { font-size: 15px; }
.sb-bp-name { font-weight: 700; color: var(--ink); flex: 1; }
.sb-bp-attr { font-size: 10px; color: var(--purple); font-weight: 700; padding: 1px 7px; background: var(--purple-dim); border-radius: 999px; }
.sb-bp-ovr { font-family: 'Fraunces', serif; font-weight: 900; color: var(--green-cta); width: 26px; text-align: right; }
.sb-foot { margin-top: 14px; font-size: 10px; letter-spacing: 1px; color: var(--subtle); text-transform: uppercase; }

.sb-hint { font-size: 12px; color: var(--muted); margin: 16px 0 14px; animation: hintPulse 2s ease-in-out infinite; }
@keyframes hintPulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
.sb-actions { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; }
@media (prefers-reduced-motion: reduce) {
  .scoreboard::before, .sb-berry, .sb-trophy, .sb-outcome, .sb-hint { animation: none !important; }
}

/* ── SHARE BUTTON + MENU ── */
.share-btn { position: relative; overflow: hidden; animation: sharePulse 2.4s ease-in-out infinite; }
@keyframes sharePulse { 0%,100% { transform: translateY(0); box-shadow: 0 3px 0 #114225, 0 0 0 0 rgba(28,107,57,0.4); }
  50% { transform: translateY(-1px); box-shadow: 0 4px 0 #114225, 0 0 0 8px rgba(28,107,57,0); } }
.share-sheen { position: absolute; top: 0; left: -60%; width: 45%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg); animation: sheen 2.8s ease-in-out infinite; }
@keyframes sheen { 0% { left: -60%; } 55%,100% { left: 130%; } }

.share-preview { background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-family: 'Archivo', sans-serif; font-size: 12.5px; line-height: 1.5;
  color: var(--ink); white-space: pre-wrap; margin: 4px 0 16px; max-height: 130px; overflow: auto; }
.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.share-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px;
  border: 1.5px solid var(--border); border-radius: 16px; background: #fffdf6; cursor: pointer;
  font-size: 22px; transition: all .15s; }
.share-opt span { font-size: 12px; font-weight: 700; color: var(--ink); font-family: 'Archivo', sans-serif; }
.share-opt:hover { transform: translateY(-2px); border-color: var(--green-cta); box-shadow: 0 6px 16px -8px rgba(20,36,26,0.3); }
.share-opt.x:hover  { border-color: #111; }
.share-opt.wa:hover { border-color: #25d366; }
.share-opt.ig:hover { border-color: #c13584; }
@media (prefers-reduced-motion: reduce) { .share-btn, .share-sheen { animation: none !important; } }

/* ════════════════════════════════════════════════════════════════
   v7 — opening-page restructure (audit + anti-slop)
   ════════════════════════════════════════════════════════════════ */

/* Masthead: how-to-play as a quiet text link */
.how-link { background: none; border: none; cursor: pointer; font-family: 'Archivo', sans-serif;
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--green-cta); }
.how-link:hover { color: var(--green-cta); }

/* Tension line above the CTA */
.tension { font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 600; color: var(--ink);
  margin-bottom: 16px; }
.tension b { color: var(--strawberry); font-weight: 800; }
.hero-cta { margin-bottom: 34px; }

/* Round ladder — replaces the generic numbered steps */
.ladder { border-top: 1.5px solid var(--border); padding-top: 16px; }
.ladder-label { font-family: 'Archivo', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); }
.ladder-rungs { display: flex; align-items: center; gap: 6px; margin: 12px 0 10px; }
.rung { flex: 1; display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 11px;
  background: repeating-linear-gradient(0deg, #e4efe1 0 6px, #dcebd8 6px 12px); border: 1px solid #cbe0c5; }
.rung i { font-family: 'Fraunces', serif; font-style: normal; font-weight: 800; font-size: 13px; color: var(--green-cta); }
.rung.final { background: var(--green-cta); border-color: var(--green-cta); box-shadow: 0 3px 0 #114225; }
.rung.final i { color: #fff; }
.ladder-foot { font-size: 12px; color: var(--muted); }

/* Court-surface chips for "coming soon" (real surfaces, not blocks) */
.cs-surface { width: 100%; height: 26px; border-radius: 8px; display: block; }
.cs-surface.clay     { background: repeating-linear-gradient(135deg, #c4622f 0 7px, #b85726 7px 14px); }
.cs-surface.hard     { background: linear-gradient(180deg, #2f6db0, #2459a0); }
.cs-surface.ausgrass { background: repeating-linear-gradient(0deg, #2f7a3a 0 6px, #2b7136 6px 12px); }
.cs-card { gap: 7px; }

/* Entrance animation: include the new ladder + tension, drop old steps */
#screen-landing.active .tension,
#screen-landing.active .ladder { animation: slamIn 0.6s cubic-bezier(.22,.68,0,1.05) both; }
#screen-landing.active .tension { animation-delay: 0.30s; }
#screen-landing.active .ladder  { animation-delay: 0.42s; }

@media (max-width: 560px) { .ladder-rungs { gap: 4px; } .rung { height: 34px; } }

/* ════════════════════════════════════════════════════════════════
   v8 — WTA bo3, support toast, modes, suggestions/contact, palette
   ════════════════════════════════════════════════════════════════ */

/* Slightly different cream + greener title so it isn't the old 7-0 look */
:root { --bg: #e3ebd9; --surface: #f4f6ea; }
.wordmark { color: var(--green-deep); }
.wordmark .wm-dot { color: var(--strawberry); }

/* Support cost toast (dismissible) */
.cost-toast { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 10px 12px;
  background: linear-gradient(100deg, var(--green-cta), #2f7a3a); color: #fff; border-radius: 14px;
  box-shadow: 0 6px 18px -10px rgba(20,36,26,0.6); animation: toastDrop 0.5s cubic-bezier(.22,.68,0,1.2) both; }
.cost-toast.gone { display: none; }
.ct-text { flex: 1; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.ct-support { background: #fff; color: var(--green-cta); border: none; border-radius: 999px; padding: 7px 14px;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 12px; cursor: pointer; white-space: nowrap; }
.ct-support:hover { background: var(--gold); color: #fff; }
.ct-close { background: rgba(255,255,255,0.2); color: #fff; border: none; width: 26px; height: 26px; border-radius: 50%;
  font-size: 17px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.ct-close:hover { background: rgba(255,255,255,0.35); }
@keyframes toastDrop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

/* Mode toggle in setup (mirror seg-opt) */
.modal .seg .mode-opt { flex: 1; text-align: center; padding: 13px; border: 1.5px solid var(--border);
  border-radius: 12px; background: #fffdf6; cursor: pointer; font-weight: 800; transition: all .15s; }
.modal .seg .mode-opt.sel { border-color: var(--purple); background: var(--purple-dim); color: var(--purple); }
.modal .seg .mode-opt .sm { display: block; font-size: 10px; font-weight: 600; color: var(--muted); margin-top: 2px; }

/* Classic-mode hidden rating chip */
.rating-box.hidden-rating { background: var(--purple-dim); color: var(--purple); border: 1.5px dashed var(--purple); }

/* Contact tab — small, bottom of the menu */
.contact-tab { text-align: center; margin-top: 22px; }
.contact-tab button { background: none; border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px;
  font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: var(--muted);
  cursor: pointer; transition: all .15s; }
.contact-tab button:hover { border-color: var(--green-cta); color: var(--green-cta); }

/* Quick entrance animations to hook the player */
#screen-landing.active .cost-toast { animation: toastDrop 0.45s cubic-bezier(.22,.68,0,1.2) both; }
.player-card { animation: cardPop 0.32s cubic-bezier(.22,.68,0,1.15) both; }
.player-card:nth-child(2){animation-delay:.04s} .player-card:nth-child(3){animation-delay:.08s}
.player-card:nth-child(4){animation-delay:.12s} .player-card:nth-child(5){animation-delay:.16s}
.player-card:nth-child(6){animation-delay:.20s} .player-card:nth-child(7){animation-delay:.24s}
@keyframes cardPop { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .cost-toast, .player-card { animation: none !important; } }

/* Locked draw card (already used in your build) */
.player-card.locked { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.5); }
.player-card.locked:hover { border-color: var(--border); transform: none; box-shadow: none; }
.locked-tag { font-size: 9px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--purple); background: var(--purple-dim); padding: 1px 6px; border-radius: 999px; margin-left: 4px; }

/* Bouncing tennis ball replacing the title dot */
.wm-ball { display: inline-block; width: 0.46em; height: 0.46em; margin-left: 0.08em; border-radius: 50%;
  position: relative; vertical-align: baseline;
  background: radial-gradient(circle at 34% 30%, #eaff5a 0%, #c9e21f 55%, #a8bf16 100%);
  box-shadow: inset -1px -1px 2px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.2);
  animation: wmBounce 0.95s cubic-bezier(.3,0,.35,1) infinite; }
.wm-ball::before { content: ''; position: absolute; left: -8%; right: -8%; top: 42%; height: 0.5em;
  border-top: 1.5px solid rgba(255,255,255,0.9); border-radius: 50%; transform: rotate(-18deg); }
@keyframes wmBounce { 0%, 100% { transform: translateY(0) scaleY(1); }
  45% { transform: translateY(-0.4em) scaleY(1.05); }
  90% { transform: translateY(0) scaleY(0.9); } }
@media (prefers-reduced-motion: reduce) { .wm-ball { animation: none !important; } }

/* The attribute chip on a draw card — glows to flag the shot on offer */
.p-attr.shine { position: relative; overflow: hidden; color: #fff; border: none;
  background: linear-gradient(120deg, var(--green-cta), #2f7a3a);
  box-shadow: 0 0 0 0 rgba(28,107,57,0.5); animation: attrGlow 1.8s ease-in-out infinite; }
.p-attr.shine::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); animation: attrSheen 2.4s ease-in-out infinite; }
@keyframes attrGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(28,107,57,0.5); } 50% { box-shadow: 0 0 0 5px rgba(28,107,57,0); } }
@keyframes attrSheen { 0% { left: -120%; } 55%,100% { left: 160%; } }
.player-card.selected .p-attr.shine { background: linear-gradient(120deg, var(--purple), var(--purple-mid)); }
@media (prefers-reduced-motion: reduce) { .p-attr.shine, .p-attr.shine::after { animation: none !important; } }

/* Lineup slot the selected card would fill — click to confirm */
.build-slot.target { border-color: var(--green-cta); background: var(--grass-dim); cursor: pointer;
  box-shadow: 0 0 0 2px var(--green-cta) inset; animation: slotPulse 1s ease-in-out infinite; }
.build-slot.target .bs-empty { color: var(--green-cta); }
@keyframes slotPulse { 0%,100% { box-shadow: 0 0 0 2px var(--green-cta) inset; } 50% { box-shadow: 0 0 0 3px var(--green-cta) inset; } }
@media (prefers-reduced-motion: reduce) { .build-slot.target { animation: none !important; } }
