/* ============================================================
   ELEVEN XI — FLOODLIGHTS UI  (loads after tokens.css + style.css)
   Part 1: global base, app shell, home / bento screen.
   Every value references a semantic/component token.
   ============================================================ */

/* ---------- global base ---------- */
body {
  background: var(--bg-gradient) !important;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100dvh;
  transition: background-color var(--dur-3) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.wrap { max-width: 1120px; }

h1, h2, h3, .fl-display { font-family: var(--font-display); letter-spacing: -.015em; }

/* accessible focus */
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 6px; }
button:focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

/* ---------- app bar ---------- */
header { margin-bottom: var(--sp-6); }
.brand { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); }
.brand-icon { width: clamp(36px,7vw,46px); height: clamp(36px,7vw,46px); border-radius: var(--r-md); box-shadow: var(--sh-1); }
header h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--t-display); margin: 0; letter-spacing: -.02em;
  background: linear-gradient(96deg, var(--text) 30%, var(--primary-hi));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: none;
}

/* ---------- buttons (token-mapped; legacy classes inherit the new look) ---------- */
.btn-primary, .start-btn, .spin, .fl-btn {
  font-family: var(--font-body); font-weight: 700; cursor: pointer;
  border: none; border-radius: var(--r-md); color: var(--btn-primary-fg);
  background: var(--btn-primary-bg); box-shadow: var(--sh-glow-primary);
  padding: 14px 22px; font-size: var(--t-sm); min-height: 46px;
  transition: transform var(--dur-1) var(--ease-spring), box-shadow var(--dur-2) var(--ease-out), filter var(--dur-1) var(--ease-out);
  touch-action: manipulation;
}
.btn-primary:hover, .start-btn:hover, .spin:hover, .fl-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-primary:active, .start-btn:active, .spin:active, .fl-btn:active { transform: translateY(0) scale(.98); }
.btn-primary:disabled, .start-btn:disabled, .spin:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; transform: none; }

.btn-ghost, .fl-btn.ghost {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 18px; font-weight: 600; font-size: var(--t-sm);
  min-height: 46px; cursor: pointer; box-shadow: none;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-spring);
}
.btn-ghost:hover, .fl-btn.ghost:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.fl-btn.cta { background: var(--warning); color: var(--on-warning); box-shadow: 0 8px 24px rgba(255,122,89,.3); }
.fl-btn.pos { background: var(--positive); color: var(--on-positive); box-shadow: var(--sh-glow-cyan); }

.back {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim);
  border-radius: var(--r-pill); padding: 8px 16px; font-weight: 600; font-size: var(--t-sm);
  cursor: pointer; transition: all var(--dur-1) var(--ease-out);
}
.back:hover { color: var(--text); border-color: var(--line-strong); }

/* ---------- HOME / bento ---------- */
#homeView { animation: fl-rise var(--dur-3) var(--ease-out); }
.fl-hero { text-align: center; max-width: 640px; margin: 0 auto var(--sp-6); }
.fl-hero-title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--t-h1);
  margin: 0 0 var(--sp-2); line-height: 1.05;
}
.fl-hero-title .accent { color: var(--primary-hi); }
.fl-hero-sub { color: var(--text-dim); font-size: var(--t-body); margin: 0; line-height: 1.55; }

.fl-modes {
  display: grid; gap: var(--sp-3); max-width: 760px; margin: 0 auto var(--sp-5);
  grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr;
}
.fl-mode {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: var(--sp-2);
  background: var(--card-bg); border: var(--card-border); border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-4) var(--sp-5); color: var(--text); min-height: 132px;
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease-spring), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.fl-mode::after { /* accent wash on hover */
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0%, var(--mode-accent, var(--primary)), transparent 60%);
  transition: opacity var(--dur-2) var(--ease-out); mix-blend-mode: screen;
}
.fl-mode:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--mode-accent, var(--primary)) 55%, var(--line)); box-shadow: var(--sh-2); }
.fl-mode:hover::after { opacity: .16; }
.fl-mode:active { transform: translateY(-2px) scale(.995); }
.fl-mode-ico {
  width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center;
  color: var(--mode-accent, var(--primary-hi));
  background: color-mix(in srgb, var(--mode-accent, var(--primary)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--mode-accent, var(--primary)) 35%, transparent);
}
.fl-mode-ico svg { width: 24px; height: 24px; }
.fl-mode-name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h3); }
.fl-mode-hint { color: var(--text-mute); font-size: var(--t-xs); line-height: 1.4; }
.fl-mode-badge {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  font-size: var(--t-2xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-positive); background: var(--positive); padding: 3px 9px; border-radius: var(--r-pill);
}
.fl-mode-stat {
  font-size: var(--t-xs); color: var(--text-mute); font-weight: 600;
  font-variant-numeric: tabular-nums; margin-top: auto; display: block; min-height: 1em;
}
.fl-mode-stat:empty { display: none; }
/* per-mode accents */
.m-wc   { --mode-accent: var(--champion); }
.m-cl   { --mode-accent: var(--primary); }
.m-lg   { --mode-accent: var(--positive); }
.m-mp   { --mode-accent: var(--p-violet-300); }
.m-dvc  { --mode-accent: var(--warning); }
.m-euro { --mode-accent: #4A90E2; }
.m-rw   { --mode-accent: var(--warning); }

/* ============================================================
   HOME REDESIGN (v2) — hero, stats strip, mode list, daily bar
   ============================================================ */
/* ── Home — change 5: bottom padding makes room for pinned daily bar */
#homeView { --h2-green: #00e46a; max-width: 560px; margin: 0 auto; padding: 0 2px 90px; }

/* ── Hero ── */
.h2-hero {
  background: linear-gradient(160deg, #0b0b18 0%, #14142a 100%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px; padding: 22px 20px 20px; margin-bottom: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
}

/* change 1: hero-top row holds badge + streak chip side by side */
.h2-hero-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.h2-badge { display:inline-flex; align-items:center; background: rgba(0,228,106,.13); color: var(--h2-green); font-size:11px; font-weight:700; padding:4px 12px; border-radius:999px; letter-spacing:.03em; }

/* change 8: streak chip */
.h2-streak-chip { display:inline-flex; align-items:center; background: rgba(245,180,60,.14); color: #F5B43C; font-size:11px; font-weight:700; padding:4px 11px; border-radius:999px; letter-spacing:.02em; border:1px solid rgba(245,180,60,.25); }

/* change 1: punchy headline + 3-verb sub */
.h2-title { font-family: var(--font-display); font-size: clamp(28px, 7.8vw, 42px); font-weight: 800; color:#fff; line-height:1.06; margin:0 0 6px; }
.h2-title span { color: var(--h2-green); }
.h2-sub { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.55); margin:0 0 18px; letter-spacing:.01em; }

.h2-cta-row { display:flex; gap:10px; margin-bottom:16px; }
.h2-cta { flex:1; border:none; border-radius:12px; padding:10px 10px; font-size:13px; font-weight:800; cursor:pointer; font-family: var(--font-body); transition: transform .12s var(--ease-spring), filter .15s var(--ease-out), background .15s; }
.h2-cta:active { transform: scale(.97); }
.h2-cta.primary { background: var(--h2-green); color:#04140c; box-shadow: 0 6px 22px rgba(0,228,106,.35); }
.h2-cta.primary:hover { filter: brightness(1.07); }
.h2-cta.secondary { background: rgba(255,255,255,.08); color: rgba(255,255,255,.82); border:1px solid rgba(255,255,255,.12); }
.h2-cta.secondary:hover { background: rgba(255,255,255,.13); }

/* change 2: stats chips — more pill-like, tighter */
.h2-stats { display:flex; gap:7px; margin-bottom:14px; }
.h2-stat { flex:1; background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.07); border-radius:12px; padding:10px 4px; text-align:center; }
.h2-stat .n { display:block; font-family: var(--font-display); font-size:17px; font-weight:800; color: var(--h2-green); font-variant-numeric: tabular-nums; }
.h2-stat .l { display:block; font-size:9.5px; color: rgba(255,255,255,.38); margin-top:2px; text-transform:uppercase; letter-spacing:.04em; }

/* change 6: social proof line */
.h2-social-proof { font-size:11px; color: rgba(255,255,255,.3); text-align:center; margin-top:2px; }
.h2-social-proof:empty { display:none; }

.h2-hero .fl-prog-bar { margin-top: 12px; }

/* ── Mode cards (change 3) ── */
.h2-modes { margin-bottom: 12px; }
.h2-modes-label { font-size:11px; color: var(--text-mute); letter-spacing:.12em; text-transform:uppercase; font-weight:800; margin: 4px 4px 10px; }
.h2-mode { display:flex; align-items:center; gap:12px; width:100%; text-align:left; background: var(--card-bg); border:1px solid var(--line); border-radius:14px; padding:13px 14px; margin-bottom:8px; cursor:pointer; color: var(--text); font-family: var(--font-body); transition: transform .12s var(--ease-spring), border-color .15s var(--ease-out), background .15s var(--ease-out); animation: fl-rise var(--dur-3) var(--ease-out) both; }
.h2-mode:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.h2-mode:active { transform: scale(.99); }
.h2-mode.active { border-color: color-mix(in srgb, var(--h2-green) 45%, var(--line)); background: linear-gradient(180deg, rgba(0,228,106,.07), transparent); }
.h2-mode-ico { flex:0 0 auto; width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; background: rgba(255,255,255,.05); border:1px solid var(--line); color: var(--h2-green); }
.h2-mode-ico svg { width:20px; height:20px; }
.h2-mode-body { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:1px; }
.h2-mode-name { font-size:15px; font-weight:800; color: var(--text); }
.h2-mode-desc { font-size:11.5px; color: var(--text-mute); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.h2-mode .fl-mode-stat { font-size:11px; color: var(--h2-green); margin-top:2px; }
.h2-mode .fl-mode-stat:empty { display:none; }
/* change 4: LIVE badge pulses */
.h2-mode-badge { flex:0 0 auto; font-size:10px; font-weight:800; background: var(--h2-green); color:#04140c; padding:3px 8px; border-radius:7px; letter-spacing:.04em; }
.h2-mode-badge:empty { display:none; }
.h2-mode-badge--live { background: #ff4545; color:#fff; animation: live-pulse 2.4s ease-in-out infinite; }
@keyframes live-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,69,69,.5); }
  50%      { box-shadow: 0 0 0 5px rgba(255,69,69,0); }
}
.h2-mode-arrow { flex:0 0 auto; font-size:18px; color: var(--text-dim); line-height:1; }

/* ── Light mode hero overrides ── */
body.light .h2-hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 8px 40px rgba(15,23,42,.22);
}
body.light .h2-stat {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.09);
}
body.light .h2-cta.secondary {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.16);
}
body.light .h2-cta.secondary:hover { background: rgba(255,255,255,.16); }

/* ── Pinned daily bar (change 5) ── */
.h2-daily {
  display:flex; align-items:center; gap:12px; width:100%; text-align:left; cursor:pointer;
  font-family: var(--font-body);
  background: linear-gradient(100deg, color-mix(in srgb, var(--champion, #F5B43C) 13%, var(--card-bg)), var(--card-bg));
  border:1px solid color-mix(in srgb, var(--champion, #F5B43C) 32%, var(--line));
  border-radius:14px; padding:12px 14px;
  transition: transform .12s var(--ease-spring);
}
.h2-daily--pinned {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  max-width: 560px; margin: 0 auto;
  border-radius: 14px 14px 0 0;
  border-bottom: none;
  box-shadow: 0 -8px 32px rgba(0,0,0,.45);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.h2-daily--footer {
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .h2-daily--footer {
    margin-bottom: 24px;
  }
}
.h2-daily:active { transform: scale(.99); }
.h2-daily-ico { flex:0 0 auto; width:38px; height:38px; border-radius:10px; background: color-mix(in srgb, var(--champion, #F5B43C) 18%, transparent); display:flex; align-items:center; justify-content:center; font-size:20px; }
.h2-daily-text { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.h2-daily-text .t { font-size:13px; font-weight:800; color: var(--text); }
.h2-daily-text .s { font-size:11px; color: var(--text-mute); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* change 6: live count in daily bar */
.h2-daily-count { flex:0 0 auto; font-size:10px; color: rgba(255,255,255,.35); white-space:nowrap; display:none; }
@media (min-width:380px) { .h2-daily-count { display:block; } }
.h2-daily-cta { flex:0 0 auto; font-size:12px; font-weight:800; background: var(--h2-green); color:#04140c; padding:7px 16px; border-radius:9px; }

/* ── Bottom links (change 7: Share game removed) ── */
.home-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.home-board-link {
  background: transparent; border: 1px solid var(--line);
  color: var(--text-dim); border-radius: var(--r-pill); padding: 11px 24px; font-weight: 600;
  font-size: var(--t-sm); cursor: pointer; transition: all var(--dur-1) var(--ease-out);
}
.home-board-link:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }

@keyframes fl-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Hero mode card ── */
.h2-mode--hero { padding: 16px 16px; }
.h2-mode--hero .h2-mode-name { font-size: 17px; }

/* ── Secondary trio (3 compact side-by-side cards) ── */
.h2-modes-trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px;
}
.h2-mode--sm {
  flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 12px 12px 10px;
}
.h2-mode--sm .h2-mode-ico { width: 32px; height: 32px; }
.h2-mode--sm .h2-mode-ico svg { width: 17px; height: 17px; }
.h2-mode--sm .h2-mode-name { font-size: 12px; }
.h2-mode--sm .h2-mode-desc { font-size: 10px; white-space: normal; line-height: 1.4; }
@media (max-width: 380px) {
  .h2-modes-trio { grid-template-columns: 1fr 1fr; }
  .h2-modes-trio .h2-mode--sm:last-child { grid-column: 1 / -1; }
}

/* ── More modes toggle ── */
.h2-more-toggle {
  width: 100%; background: transparent; border: 1px dashed var(--line);
  color: var(--text-dim); border-radius: 12px; padding: 10px 14px;
  font-size: 13px; font-weight: 700; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  transition: border-color .15s, color .15s; margin-bottom: 8px;
  font-family: var(--font-body);
}
.h2-more-toggle:hover { border-color: var(--line-strong); color: var(--text); }
.h2-more-toggle[aria-expanded="true"] .h2-more-arrow { transform: rotate(90deg); }
.h2-more-arrow { display: inline-block; transition: transform .2s var(--ease-spring); font-size: 16px; }
.h2-more-modes { margin-bottom: 8px; }

/* ── Email capture ── */
.email-capture {
  background: color-mix(in srgb, var(--primary) 6%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-radius: 14px; padding: 16px; margin-bottom: 16px;
}
.ec-label {
  font-size: 13px; font-weight: 800; color: var(--text); margin: 0 0 10px;
}
.ec-form { display: flex; gap: 8px; }
.ec-input {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 10px 13px; font-size: 14px; color: var(--text);
  font-family: var(--font-body); outline: none;
  transition: border-color .15s;
}
.ec-input:focus { border-color: var(--primary); }
.ec-input::placeholder { color: var(--text-dim); }
.ec-submit {
  background: var(--primary); color: #fff; border: none; border-radius: 10px;
  padding: 10px 16px; font-size: 13px; font-weight: 800; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap;
  transition: filter .15s;
}
.ec-submit:hover { filter: brightness(1.1); }
.ec-success { font-size: 13px; color: var(--positive); margin: 10px 0 0; }
body.light .ec-input {
  background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.12); color: #1a1a2e;
}

/* ── Hide continent filter — adds complexity before fun ── */
#continentWrap { display: none !important; }

/* ── Shareable Results Card ──────────────────────────────────────────────── */
/* Visual identity: Gold #C9AA71 on Navy #1A1A2E                             */

/* Label above the card */
.sc-card-label {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,.3);
  text-align: center; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 10px;
}

/* The card itself */
.share-card {
  background: linear-gradient(155deg, #111827 0%, #1a2235 60%, #0d111c 100%);
  border: 1px solid rgba(201,170,113,.18);  /* gold border */
  border-radius: 18px; padding: 18px 16px 14px; margin-bottom: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,.55), 0 0 0 0.5px rgba(201,170,113,.1) inset;
  position: relative; overflow: hidden;
}
/* Subtle top accent stripe */
.share-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #C9AA71 40%, #C9AA71 60%, transparent);
  opacity: .6;
}
/* Champion glow variant */
.share-card--champ { border-color: rgba(201,170,113,.4); }
.share-card--champ::before { opacity: 1; }

.sc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sc-logo { font-family: var(--font-display); font-size: 12px; font-weight: 900; color: #C9AA71; letter-spacing: .1em; }
.sc-date { font-size: 10px; color: rgba(255,255,255,.3); }
.sc-title { font-size: 16px; font-weight: 900; color: #fff; margin: 0 0 2px; }
.sc-sub { font-size: 10px; color: rgba(255,255,255,.4); margin: 0 0 12px; }

/* Formation grid */
.formation-grid { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.f-row { display: flex; justify-content: center; gap: 4px; }
.f-player {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 6px 4px; min-width: 50px; flex: 1; max-width: 70px;
  gap: 1px;
}
.f-player.gk { background: rgba(45,106,79,.3); border-color: rgba(45,106,79,.6); }
.f-player.goat { background: rgba(201,170,113,.14); border-color: rgba(201,170,113,.5); }
.f-player.elite { background: rgba(124,92,252,.12); border-color: rgba(124,92,252,.3); }
.f-rating { font-size: 13px; font-weight: 900; color: rgba(255,255,255,.85); line-height: 1; font-family: var(--font-display); }
.f-player.goat .f-rating { color: #C9AA71; }
.f-player.gk .f-rating { color: #4ade80; }
.f-player.elite .f-rating { color: #a78bfa; }
.f-name { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.f-year { font-size: 8px; color: rgba(255,255,255,.3); }

/* Result row */
.sc-result {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(201,170,113,.07); border: 1px solid rgba(201,170,113,.18);
  border-radius: 10px; padding: 9px 12px; margin-bottom: 10px;
}
.sc-rt { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 2px; }
.sc-rv { font-size: 15px; font-weight: 900; color: #fff; }
.sc-rv--champ { color: #C9AA71; }
.sc-rrank { font-size: 14px; font-weight: 900; color: rgba(255,255,255,.7); }

/* URL footer */
.sc-url {
  font-size: 9px; color: rgba(255,255,255,.2); text-align: center;
  letter-spacing: .05em; margin-top: 10px;
}

/* Share buttons */
.sc-share-row { display: flex; gap: 7px; margin-top: 2px; }
.sc-btn {
  flex: 1; border: none; border-radius: 10px; padding: 11px 10px;
  font-size: 12px; font-weight: 800; cursor: pointer; font-family: var(--font-body);
  transition: filter .15s, transform .1s;
}
.sc-btn:active { transform: scale(.97); }
.sc-btn-primary { background: #C9AA71; color: #0d0d0d; }
.sc-btn-primary:hover { filter: brightness(1.08); }
.sc-btn-sec { background: rgba(255,255,255,.09); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.13); }
.sc-btn-sec:hover { background: rgba(255,255,255,.15); }

/* ---------- responsive ---------- */
@media (max-width: 540px) {
  .fl-modes { grid-template-columns: 1fr; max-width: 420px; }
  .fl-mode { min-height: 0; }
}
@media (min-width: 1024px) {
  .fl-modes { max-width: 820px; gap: var(--sp-4); }
}

/* ---------- toast (used now for placeholders, grows in later parts) ---------- */
.fl-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line-strong);
  padding: 12px 20px; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600;
  box-shadow: var(--sh-2); z-index: var(--z-toast); opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-spring);
}
.fl-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== How To Play overlay ===== */
/* ── Onboarding 3-screen overlay ──────────────────────────────────────── */
.htp-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 9998;
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
@media (min-height: 560px) { .htp-overlay { align-items: center; padding: var(--sp-4); } }
.htp-overlay[hidden] { display: none; }
.htp-panel {
  background: #0f0f1e; border: 1px solid rgba(255,255,255,.1); border-radius: 24px 24px 0 0;
  padding: 20px 20px 32px; max-width: 480px; width: 100%; position: relative;
  box-shadow: 0 -20px 60px rgba(0,0,0,.5); animation: htp-in 340ms cubic-bezier(.22,1,.36,1);
}
@media (min-height: 560px) {
  .htp-panel { border-radius: 24px; padding: 24px 24px 24px; }
}
@keyframes htp-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.htp-top-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.htp-brand { font-size:12px; font-weight:800; color: rgba(0,228,106,.7); letter-spacing:.1em; }
.htp-skip {
  background: transparent; border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.45); font-size:12px; font-weight:600; padding:5px 14px;
  border-radius:999px; cursor:pointer; font-family: var(--font-body);
  transition: color .15s, border-color .15s;
}
.htp-skip:hover { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.3); }

/* Visual illustrations per slide */
.htp-visual { border-radius:14px; overflow:hidden; margin-bottom:14px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); padding:16px; display:flex; flex-direction:column; align-items:center; gap:8px; }
.htp-reel-mock { width:100%; border:1px solid rgba(255,255,255,.08); border-radius:10px; overflow:hidden; }
.htp-reel-row { display:flex; justify-content:space-between; padding:7px 14px; font-size:12px; color:rgba(255,255,255,.4); }
.htp-reel-row--sel { background: rgba(0,228,106,.1); border-top:1px solid rgba(0,228,106,.2); border-bottom:1px solid rgba(0,228,106,.2); color:#fff; font-weight:700; }
.htp-spin-btn-mock { background:#00e46a; color:#04140c; font-size:13px; font-weight:800; padding:9px 28px; border-radius:10px; letter-spacing:.06em; margin-top:4px; }

.htp-mini-pitch { display:flex; flex-direction:column; gap:8px; align-items:center; padding:4px 0; }
.htp-mini-row { display:flex; gap:8px; }
.htp-dot-player { width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.08); border:1.5px solid rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:700; color:rgba(255,255,255,.55); }
.htp-dot-player.gk { border-color:rgba(0,228,106,.5); color:#00e46a; background:rgba(0,228,106,.1); }
.htp-dot-player.fwd { border-color:rgba(255,122,89,.5); color:#FF7A59; background:rgba(255,122,89,.1); }

.htp-result-mock { width:100%; display:flex; flex-direction:column; gap:8px; }
.htp-res-row { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; background:rgba(255,255,255,.05); border-radius:8px; }
.htp-res-badge { font-size:13px; font-weight:700; color:#fff; }
.htp-res-label { font-size:11px; color:rgba(255,255,255,.4); }
.htp-gold { color:#ffd700; }
.htp-rank-row { background: rgba(0,228,106,.08); border:1px solid rgba(0,228,106,.2); justify-content:center; }
.htp-rank-anim { font-family: var(--font-display); font-size:22px; font-weight:800; color:#00e46a; font-variant-numeric:tabular-nums; }

.htp-step-num { font-size:10px; font-weight:700; color:rgba(255,255,255,.25); letter-spacing:.12em; text-transform:uppercase; margin-bottom:2px; }
.htp-slides { overflow: hidden; }
.htp-slide { display: none; flex-direction: column; text-align: center; }
.htp-slide.active { display: flex; }
.htp-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.htp-body { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; margin: 0; }
.htp-body strong { color: rgba(255,255,255,.85); }
.htp-dots { display: flex; gap: 8px; justify-content: center; margin: 18px 0 16px; }
.htp-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); transition: background .2s, transform .2s, width .2s; }
.htp-dot.active { background: #00e46a; width: 20px; border-radius: 3px; }
.htp-btns { display: flex; gap: var(--sp-3); justify-content: flex-end; }

/* ── In-draft tooltip ──────────────────────────────────────────────────── */
.ob-tooltip {
  position: absolute; z-index: 9000;
  max-width: 280px; pointer-events: auto;
}
.ob-tooltip[hidden] { display: none; }
.ob-tooltip-inner {
  background: #1a1a2e; border: 1px solid rgba(0,228,106,.35);
  border-radius: 12px; padding: 12px 14px 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 8px;
  animation: ob-tip-in 220ms cubic-bezier(.22,1,.36,1);
}
@keyframes ob-tip-in { from { opacity:0; transform:translateY(6px) scale(.97); } to { opacity:1; transform:none; } }
.ob-tooltip-text { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.45; }
.ob-tooltip-skip { align-self: flex-end; background: transparent; border: none; color: rgba(255,255,255,.35); font-size: 11px; font-weight: 600; cursor: pointer; padding: 0; font-family: var(--font-body); }
.ob-tooltip-skip:hover { color: rgba(255,255,255,.7); }
.ob-tooltip-arrow {
  width: 12px; height: 7px; margin: 0 auto;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: rgba(0,228,106,.35);
}
.ob-tooltip--above .ob-tooltip-arrow { order: -1; transform: rotate(180deg); margin-bottom:-1px; }
.ob-tooltip--bottom .ob-tooltip-arrow { margin-top: -1px; }

/* ── Post-result rank reveal ───────────────────────────────────────────── */
.ob-rank-reveal {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  z-index: 8000; pointer-events: none;
}
.ob-rank-reveal[hidden] { display: none; }
.ob-rank-inner {
  background: linear-gradient(135deg, #0d1f14, #0b1820);
  border: 1.5px solid rgba(0,228,106,.4); border-radius: 16px;
  padding: 16px 28px; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(0,228,106,.1);
  white-space: nowrap;
}
.ob-rank-label { font-size: 11px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.ob-rank-num { font-family: var(--font-display); font-size: 42px; font-weight: 800; color: #00e46a; line-height: 1; font-variant-numeric: tabular-nums; }
.ob-rank-sub { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 4px; }
.ob-rank-reveal--in { animation: rank-in 400ms cubic-bezier(.22,1,.36,1) both; }
.ob-rank-reveal--out { animation: rank-out 400ms ease-in both; }
@keyframes rank-in  { from { opacity:0; transform:translateX(-50%) scale(.85) translateY(16px); } to { opacity:1; transform:translateX(-50%) scale(1) translateY(0); } }
@keyframes rank-out { from { opacity:1; transform:translateX(-50%) scale(1); } to { opacity:0; transform:translateX(-50%) scale(.9) translateY(-8px); } }

/* ===== Theme toggle ===== */
.theme-toggle {
  position: fixed; top: 10px; right: 56px; z-index: 100;
  width: 38px; height: 30px; border-radius: 999px;
  background: rgba(8,8,16,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 1px 8px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; line-height: 1;
  transition: background var(--dur-1);
}
.theme-toggle:hover { background: rgba(8,8,16,0.9); }
body.light .theme-toggle {
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,0,0,0.1);
}

/* ===== Sound toggle ===== */
.sound-toggle {
  position: fixed; top: 10px; right: 12px; z-index: 100;
  width: 38px; height: 30px; border-radius: 999px;
  background: rgba(8,8,16,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 1px 8px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,0.45);
  transition: color var(--dur-1), background var(--dur-1);
}
.sound-toggle:hover { color: rgba(255,255,255,0.9); }
.sound-toggle[aria-pressed="true"] { color: rgba(255,255,255,0.22); }

/* ===== Group preview interstitial ===== */
.group-preview { display: flex; flex-direction: column; gap: var(--sp-2); margin: var(--sp-5) 0; }
.gp-row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 14px var(--sp-4); border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.gp-row.gp-me {
  background: rgba(124,92,252,0.14); border-color: rgba(124,92,252,0.4);
}
.gp-flag { font-size: 1.5rem; line-height: 1; min-width: 2rem; text-align: center; }
.gp-name { flex: 1; font-size: 1rem; font-weight: 600; color: var(--text); }
.gp-me .gp-name { color: var(--violet); }
body.light .gp-row { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
body.light .gp-row.gp-me { background: rgba(124,92,252,0.10); border-color: rgba(124,92,252,0.3); }

/* ── League event before/after comparison panel ─────────────── */
.lge-compare {
  display: flex; align-items: stretch; gap: var(--sp-3);
  margin: var(--sp-3) 0;
}
.lge-before, .lge-after {
  flex: 1; padding: var(--sp-3) var(--sp-4); border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 4px; text-align: center;
}
.lge-after { background: rgba(124,92,252,0.12); border-color: rgba(124,92,252,0.35); }
.lge-arrow { display:flex; align-items:center; font-size:1.25rem; color:var(--txt-muted); padding: 0 2px; }
.lge-cl { font-size:.65rem; text-transform:uppercase; letter-spacing:.06em; color:var(--txt-muted); }
.lge-cname { font-size:.95rem; font-weight:700; color:var(--txt); }
.lge-cstyle { font-size:.78rem; color:var(--txt-sub); }
.lge-cbonuses { font-size:.82rem; color:var(--txt-sub); display:flex; gap:6px; justify-content:center; flex-wrap:wrap; }
.lge-delta { font-weight:700; padding:1px 6px; border-radius:999px; font-size:.78rem; }
.lge-delta.pos { color:#22E0C8; background:rgba(34,224,200,.15); }
.lge-delta.neg { color:#FF7A59; background:rgba(255,122,89,.15); }
.lge-delta.neu { color:var(--txt-sub); background:rgba(255,255,255,.08); }
body.light .lge-before { background:rgba(0,0,0,0.04); border-color:rgba(0,0,0,0.08); }
body.light .lge-after  { background:rgba(124,92,252,0.10); border-color:rgba(124,92,252,0.3); }

/* ============================================================
   Part 2 — GLOBAL COHESION
   Re-point every legacy CSS variable at a Floodlights token so
   all existing screens (setup, draft, reels, results, board,
   modals) inherit the new identity with no markup rewrite.
   ============================================================ */
:root {
  --bg2: var(--p-midnight-2);
  --card: var(--surface); --card2: var(--surface); --card3: var(--surface-2);
  --panel: var(--surface); --modecard: var(--surface);
  --glass: rgba(255,255,255,.04);
  --reel: #0C1426; --reelbox: var(--surface-2);
  --line: rgba(255,255,255,.09);
  --text: var(--p-white); --txt: var(--p-white); --txt-dim: var(--p-mist);
  --muted: var(--p-mute);
  --gold: var(--primary); --gold2: var(--primary-hi);
  --green: var(--positive); --green2: var(--positive);
  --red: var(--warning);
  --radius-card: var(--r-lg); --radius-btn: var(--r-md); --radius-pill: var(--r-pill);
  --shadow-card: var(--sh-1);
  --shadow-glow-gold: var(--sh-glow-primary); --shadow-glow-blue: var(--sh-glow-cyan);
}
body.light {
  --bg2: #E9EDF8;
  --card: #fff; --card2: #fff; --card3: #EEF1FA; --panel:#fff; --modecard:#fff;
  --glass: rgba(14,20,38,.03);
  --reel: #EAF6F3; --reelbox: #EEF1FA;
  --line: rgba(14,20,38,.10);
  --text: var(--p-ink); --txt: var(--p-ink); --txt-dim: var(--p-ink-dim);
  --muted: var(--p-ink-mute);
  --gold: var(--primary); --gold2: var(--primary-hi);
  --green: var(--positive); --green2: var(--positive);
  --red: var(--warning);
}

/* panels & surfaces pick up token elevation/border consistently */
.setup, .machine, .squad-card, .xi, .board-list, .lg-modal, .verdict-card,
.score-banner, .lgr2-card, .lgr2-narr, .lgr2-xi, .lgr2-break, .lgr2-ptable,
.draft-head, .group-card, .stats-summary, .mcard, .lg-card, .home-mode-card {
  border-radius: var(--r-lg);
}
/* slot-machine reel + pitch on the token language */
.reel { border-radius: var(--r-md); }
.pitch, .draft-pitch-wrap .pitch { background: var(--pitch-bg); border:1px solid var(--pitch-line); box-shadow: 0 0 0 1px rgba(0,0,0,0.4), inset 0 0 60px rgba(0,0,0,0.5); }
/* glassy dots — filled per-position colour handled by premium styles in style.css */
.pdot { border-color: var(--pitch-line); }
/* active chips/segments → violet */
.formation-opt.active, .manager-opt.active, .seg-opt.active, .tg-opt.active, .diff-opt.active, .lg-card:hover {
  border-color: var(--primary) !important; color: var(--text) !important;
  background: color-mix(in srgb, var(--primary) 13%, var(--surface-2)) !important;
}
/* headings across screens use the display face */
.lg-title, .res-title, .draft-team, .xi-head h2, .mp-sq-title, h2.sec, .sec { font-family: var(--font-display); }

/* ============================================================
   RATINGS WAR
   ============================================================ */
#rwView { animation: fl-rise var(--dur-3) var(--ease-out); }
.rw-hero, .rw-handoff { text-align: center; max-width: 620px; margin: var(--sp-5) auto; }
.rw-kicker { color: var(--warning); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: var(--t-xs); }
.rw-title { font-family: var(--font-display); font-weight: 800; font-size: var(--t-h1); margin: var(--sp-2) 0; }
.rw-accent { color: var(--warning); }
.rw-sub { color: var(--text-dim); font-size: var(--t-body); line-height: 1.55; }
.rw-names { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); margin: var(--sp-5) 0; flex-wrap: wrap; }
.rw-name-field { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.rw-name-field span { font-size: var(--t-2xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); font-weight: 700; }
.rw-input { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-md); padding: 12px 14px; font-size: var(--t-body); font-family: var(--font-body); width: 150px; }
.rw-input:focus { outline: none; border-color: var(--primary); }
.rw-vs-badge { font-family: var(--font-display); font-weight: 800; color: var(--warning); font-size: var(--t-h3); }
.rw-start { width: 100%; max-width: 420px; }

.rw-build-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-2); }
.rw-turn { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h3); }
.rw-blind { display: inline-block; margin-left: var(--sp-2); font-family: var(--font-body); font-size: var(--t-2xs); font-weight: 700; letter-spacing: .04em; color: var(--warning); background: rgba(255,122,89,.14); border: 1px solid rgba(255,122,89,.4); padding: 3px 9px; border-radius: var(--r-pill); }
.rw-prog-row { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-1); flex-shrink: 0; }
.rw-prog { font-weight: 800; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rw-rerolls { color: var(--text-mute); font-size: var(--t-xs); margin-bottom: var(--sp-3); }
.rw-reroll-badge { font-size: var(--t-2xs); font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(34,224,200,.12); border: 1px solid rgba(34,224,200,.35); color: var(--positive); white-space: nowrap; }
.rw-reroll-badge.rw-reroll-empty { background: rgba(255,122,89,.12); border-color: rgba(255,122,89,.35); color: var(--warning); }
/* Online build countdown clock (6-minute simultaneous build) */
.rw-build-clock { display: inline-block; margin-left: var(--sp-2); font-variant-numeric: tabular-nums; font-weight: 800; font-size: var(--t-sm); padding: 2px 9px; border-radius: var(--r-pill); background: rgba(34,224,200,.14); border: 1px solid rgba(34,224,200,.4); color: var(--positive); }
.rw-build-clock.rw-timer-urgent { background: rgba(255,122,89,.16); border-color: rgba(255,122,89,.5); color: var(--warning); animation: rw-clock-pulse 1s ease-in-out infinite; }
@keyframes rw-clock-pulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.06); } }
/* Local alternating-draft hint (replaces the lock button while passing back and forth) */
.rw-alt-hint { margin-top: var(--sp-4); text-align: center; font-size: var(--t-sm); color: var(--text-mute); padding: var(--sp-3); border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--surface-2); }
/* MP draft reroll counter inline in draft-meta */
.mp-reroll-badge { font-size: var(--t-2xs); font-weight: 700; padding: 2px 7px; border-radius: var(--r-pill); background: rgba(34,224,200,.12); border: 1px solid rgba(34,224,200,.35); color: var(--positive); }
.mp-reroll-badge.mp-reroll-empty { background: rgba(255,122,89,.12); border-color: rgba(255,122,89,.35); color: var(--warning); }
.rw-slots { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-2); margin-bottom: var(--sp-4); }
@media (max-width: 560px){ .rw-slots { grid-template-columns: 1fr; } }
.rw-slot { display: flex; align-items: center; gap: var(--sp-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; min-height: 56px; }
.rw-slot.filled { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.rw-slot .pos { flex: 0 0 auto; min-width: 38px; text-align: center; font-weight: 800; font-size: var(--t-2xs); padding: 5px 6px; border-radius: 6px; }
.rw-slot-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; word-break: break-word; line-height: 1.3; }
.rw-slot-name.dim { color: var(--text-mute); font-weight: 500; }
.rw-slot-meta { flex: 0 0 auto; font-size: var(--t-2xs); color: var(--text-mute); max-width: 90px; text-align: right; line-height: 1.3; }
.rw-spin { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border: none; border-radius: var(--r-sm); padding: 7px 13px; font-weight: 700; font-size: var(--t-xs); cursor: pointer; }
.rw-respin { background: var(--surface-3); color: var(--text-dim); border: 1px solid var(--line); border-radius: var(--r-sm); width: 32px; height: 32px; cursor: pointer; font-size: 15px; }
.rw-lock { width: 100%; }
.rw-handoff-ico { font-size: 3rem; }

/* reveal */
.rw-scorebar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-3); background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); margin: var(--sp-4) 0; position: sticky; top: 8px; z-index: var(--z-sticky); box-shadow: var(--sh-1); }
.rw-team { text-align: center; } .rw-team.a { text-align: left; } .rw-team.b { text-align: right; }
.rw-team-name { color: var(--text-dim); font-size: var(--t-sm); font-weight: 600; }
.rw-team-score { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px,8vw,52px); font-variant-numeric: tabular-nums; }
.rw-team.a .rw-team-score { color: var(--positive); } .rw-team.b .rw-team-score { color: var(--primary-hi); }
.rw-scorebar-vs { font-family: var(--font-display); font-weight: 800; color: var(--text-mute); font-size: var(--t-xs); letter-spacing: .12em; }
.rw-rev-list { display: grid; gap: var(--sp-2); }
.rw-rev-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; animation: rw-pop var(--dur-3) var(--ease-spring); }
@keyframes rw-pop { from { opacity:0; transform: scale(.96) translateY(6px);} to { opacity:1; transform:none; } }
.rw-rev-side { display: flex; align-items: center; gap: var(--sp-2); }
.rw-rev-side.right { justify-content: flex-end; }
.rw-rev-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; word-break: break-word; line-height: 1.25; }
.rw-rev-rating { font-family: var(--font-display); font-weight: 800; font-size: var(--t-h3); font-variant-numeric: tabular-nums; color: var(--text-mute); }
.rw-rev-side.win .rw-rev-rating { color: var(--positive); }
.rw-rev-side.right.win .rw-rev-rating { color: var(--primary-hi); }
.rw-rev-side.win .rw-rev-name { color: var(--text); }
.rw-rev-mid { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rw-rev-mid .pos { min-width: 40px; text-align: center; font-weight: 800; font-size: var(--t-2xs); padding: 4px 6px; border-radius: 6px; }
.rw-rev-arrow { font-size: 11px; color: var(--positive); } .rw-rev-arrow.r { color: var(--primary-hi); }
.rw-rev-eq { font-size: 11px; color: var(--text-mute); }
.rw-rev-row.draw { opacity: .8; }

/* result */
.rw-result-card { text-align: center; max-width: 540px; margin: var(--sp-6) auto; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-6) var(--sp-5); box-shadow: var(--sh-2); }
.rw-result-emoji { font-size: 3.4rem; }
.rw-result-score { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px,11vw,72px); font-variant-numeric: tabular-nums; }
.rw-result-score span { color: var(--text-mute); }
.rw-result-btns { display: flex; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-4); }

/* ============================================================
   UNIVERSAL SQUAD DOCK (FAB + slide-in panel)
   ============================================================ */
.fl-squad-fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  z-index: var(--z-dock); display: none; align-items: center; gap: 8px;
  background: var(--btn-primary-bg); color: var(--btn-primary-fg); border: none;
  border-radius: var(--r-pill); padding: 12px 18px; font-weight: 700; font-size: var(--t-sm);
  box-shadow: var(--sh-glow-primary); cursor: pointer; font-family: var(--font-body);
  transform: translateY(8px); opacity: 0; transition: transform var(--dur-2) var(--ease-spring), opacity var(--dur-2) var(--ease-out), filter var(--dur-1) var(--ease-out);
}
/* FAB only allowed on draft (mobile only) and results pages */
.fl-squad-fab.show { display: none; }
body[data-view="results"] .fl-squad-fab.show { display: inline-flex; transform: translateY(0); opacity: 1; }
@media (max-width: 720px) {
  body[data-view="draft"] .fl-squad-fab.show { display: inline-flex; transform: translateY(0); opacity: 1; }
}
.fl-squad-fab:hover { filter: brightness(1.06); }
.fl-squad-fab svg { width: 20px; height: 20px; }
.fl-squad-fab-n { font-variant-numeric: tabular-nums; opacity: .85; }

.fl-dock { position: fixed; inset: 0; z-index: var(--z-modal); pointer-events: none; }
.fl-dock-backdrop { position: absolute; inset: 0; background: rgba(4,6,14,.5); opacity: 0; transition: opacity var(--dur-2) var(--ease-out); }
.fl-dock-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(380px, 88vw);
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--sh-2);
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform var(--dur-3) var(--ease-spring);
}
.fl-dock.show { pointer-events: auto; }
.fl-dock.show .fl-dock-backdrop { opacity: 1; }
.fl-dock.show .fl-dock-panel { transform: translateX(0); }
.fl-dock-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-4) var(--sp-3); border-bottom: 1px solid var(--line); }
.fl-dock-head h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-h3); }
.fl-dock-x { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: 9px; cursor: pointer; font-size: 15px; }
.fl-dock-body { flex: 1; overflow-y: auto; padding: var(--sp-3) var(--sp-4) var(--sp-5); -webkit-overflow-scrolling: touch; }
.fl-dock-line { font-size: var(--t-2xs); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--text-mute); margin: var(--sp-3) 0 var(--sp-2); }
.fl-dock-row { display: flex; align-items: flex-start; gap: var(--sp-2); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.fl-dock-row .pos { flex: 0 0 auto; min-width: 36px; text-align: center; font-weight: 800; font-size: var(--t-2xs); padding: 4px 6px; border-radius: 6px; }
.fl-dock-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; word-break: break-word; line-height: 1.3; }
.fl-dock-meta { flex: 0 0 auto; font-size: var(--t-2xs); color: var(--text-mute); text-align: right; line-height: 1.3; }
.fl-dock-empty { color: var(--text-mute); font-size: var(--t-sm); text-align: center; padding: var(--sp-6) var(--sp-3); }
body.light .fl-dock-row { border-bottom-color: rgba(14,20,38,.06); }
/* mobile: bottom sheet */
@media (max-width: 560px) {
  .fl-dock-panel { top: auto; bottom: 0; right: 0; width: 100%; height: min(78dvh, 560px); border-left: none; border-top: 1px solid var(--line); border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(100%); }
  .fl-dock.show .fl-dock-panel { transform: translateY(0); }
  .fl-squad-fab-t { display: none; }
}

/* ============================================================
   COMPACT SPIN WHEEL — full size only on World Cup (#draftView
   WITHOUT body.mode-cl). Champions League (body.mode-cl),
   League (#leagueView) and Multiplayer (#mpView) get a slimmer
   inline wheel so it doesn't dominate the screen.
   ============================================================ */
body.mode-cl .machine, #leagueView .machine, #mpView .machine, #dvcView .machine {
  padding: var(--sp-3) var(--sp-4); max-width: 480px; margin-left: auto; margin-right: auto;
}
body.mode-cl .reels, #leagueView .reels, #mpView .reels, #dvcView .reels { gap: var(--sp-3); }
body.mode-cl .reel-box, #leagueView .reel-box, #mpView .reel-box, #dvcView .reel-box { padding: var(--sp-2); }
body.mode-cl .reel-label, #leagueView .reel-label, #mpView .reel-label, #dvcView .reel-label { font-size: 10px; margin-bottom: 5px; }
/* slim reel viewport + items (final pick is re-rendered explicitly, so this is safe) */
body.mode-cl .reel,  #leagueView .reel,  #mpView .reel,  #dvcView .reel,
body.mode-cl .reel::after, #leagueView .reel::after, #mpView .reel::after, #dvcView .reel::after { height: 58px; }
body.mode-cl .reel-item, #leagueView .reel-item, #mpView .reel-item, #dvcView .reel-item { height: 58px; gap: 2px; }
body.mode-cl .reel-item .name, #leagueView .reel-item .name, #mpView .reel-item .name, #dvcView .reel-item .name { font-size: 14px; }
body.mode-cl .reel-item-noflag .name, #leagueView .reel-item-noflag .name, #mpView .reel-item-noflag .name, #dvcView .reel-item-noflag .name { font-size: clamp(14px, 3.4vw, 19px); }
body.mode-cl .reel-item .year, #leagueView .reel-item .year, #mpView .reel-item .year, #dvcView .reel-item .year { font-size: 22px; letter-spacing: 1px; }
body.mode-cl .reel-item .flag, #leagueView .reel-item .flag, #mpView .reel-item .flag, #dvcView .reel-item .flag { font-size: 24px; }
/* slimmer SPIN control row */
body.mode-cl .machine .controls, #leagueView .machine .controls, #mpView .machine .controls, #dvcView .machine .controls { gap: var(--sp-2); margin-top: var(--sp-2); }
body.mode-cl .spin, #leagueView .spin, #mpView .spin, #dvcView .spin { padding: 10px 22px; font-size: var(--t-sm); min-height: 42px; }
/* World Cup keeps the full reel (unchanged) — #draftView without .mode-cl */

/* ============================================================
   UNIFIED RESULTS / SUMMARY LANGUAGE
   Bring the World Cup / Champions League / Multiplayer result
   components onto the same Floodlights summary language as the
   redesigned League summary (lgr2-*): token cards, display
   headings, accent tabular numbers, generous radii.
   ============================================================ */
.results-head { margin-bottom: var(--sp-4); }
.res-title { font-family: var(--font-display); font-weight: 800; font-size: var(--t-h2); text-align: center; }

/* hero result line → premium hero card */
.champion, .champion.big {
  font-family: var(--font-display); font-weight: 800; font-size: var(--t-h2);
  text-align: center; background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--sp-5) var(--sp-4); margin: 0 auto var(--sp-4);
  max-width: 680px; box-shadow: var(--sh-1); line-height: 1.15;
}
.champion .flag, .champion b { color: var(--champion); }

/* score banner → Floodlights stat card */
.score-banner {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); max-width: 680px; margin: 0 auto var(--sp-4); padding: var(--sp-4);
}
.score-banner b { color: var(--champion); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.score-banner span { color: var(--text-mute); }
.sb-break-h { font-family: var(--font-display); color: var(--text-dim); }

/* verdict card → matches lgr2 cards */
.verdict-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); max-width: 680px; margin: 0 auto var(--sp-4); padding: var(--sp-4);
}
.vc-k { color: var(--text-mute); }
.vc-v { color: var(--primary-hi); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.vc-comment { color: var(--text); }

/* stats summary block */
.stats-summary { max-width: 680px; margin: 0 auto var(--sp-4); }
.stat-pill { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.stat-pill b { color: var(--text); font-variant-numeric: tabular-nums; }
.stat-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.stat-h { font-family: var(--font-display); color: var(--text-dim); }
.sv { font-variant-numeric: tabular-nums; color: var(--positive); font-weight: 800; }
.sec { font-family: var(--font-display); font-weight: 700; color: var(--text); }

/* match cards (journey) on the token language */
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.mscore b { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.mscore .me { color: var(--champion); }

/* leaderboard rows */
.board-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.board-row.top3 { border-color: color-mix(in srgb, var(--champion) 45%, var(--line)); }
.bscore { color: var(--positive); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.brank { color: var(--text-mute); font-variant-numeric: tabular-nums; }

/* ============================================================
   MULTIPLAYER MODE SELECT (Tournament vs Duels)
   ============================================================ */
.mp-modeselect { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); max-width: 720px; margin: var(--sp-4) auto 0;
  animation: fl-rise var(--dur-3) var(--ease-out); }
.mp-code-card, .mp-join-row { animation: fl-rise var(--dur-3) var(--ease-out); }
@media (max-width: 600px){ .mp-modeselect { grid-template-columns: 1fr; max-width: 440px; } }
.mp-ms-card {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: var(--sp-2);
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4); color: var(--text); min-height: 150px;
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease-spring), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.mp-ms-card::after { content:""; position:absolute; inset:0; opacity:0; pointer-events:none; mix-blend-mode:screen;
  background: radial-gradient(120% 90% at 100% 0%, var(--mode-accent, var(--primary)), transparent 60%); transition: opacity var(--dur-2) var(--ease-out); }
.mp-ms-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--mode-accent, var(--primary)) 55%, var(--line)); box-shadow: var(--sh-2); }
.mp-ms-card:hover::after { opacity:.15; }
.mp-ms-card.m-mp { --mode-accent: var(--p-violet-300); }
.mp-ms-card.m-rw { --mode-accent: var(--warning); }
.mp-ms-ico { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center;
  color: var(--mode-accent); background: color-mix(in srgb, var(--mode-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--mode-accent) 35%, transparent); }
.mp-ms-ico svg { width: 26px; height: 26px; }
.mp-ms-name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h3); }
.mp-ms-hint { color: var(--text-mute); font-size: var(--t-xs); line-height: 1.45; }
.mp-ms-badge { position: absolute; top: var(--sp-3); right: var(--sp-3); font-size: var(--t-2xs); font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--on-warning); background: var(--warning);
  padding: 3px 9px; border-radius: var(--r-pill); }
.mp-ms-card.m-local  { --mode-accent: var(--p-cyan-300, var(--positive)); }
.mp-ms-card.m-online { --mode-accent: var(--p-violet-300); }
.mp-ms-card.m-create { --mode-accent: var(--positive); }
.mp-ms-card.m-join   { --mode-accent: var(--p-violet-300); }

/* ════════════════════════════════════════════════════════════════
   ONLINE LOBBY — create / join / waiting (Floodlights)
════════════════════════════════════════════════════════════════ */
.mp-lobby { max-width: 480px; margin: 0 auto; text-align: center; }
.mp-code-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-4); margin: var(--sp-4) auto 0; max-width: 360px;
  box-shadow: var(--sh-1); display: grid; gap: var(--sp-3); justify-items: center;
}
.mp-code-label { font-size: var(--t-2xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; }
.mp-code {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 12vw, 60px);
  letter-spacing: .16em; color: var(--primary-hi); line-height: 1;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 26px color-mix(in srgb, var(--primary) 40%, transparent);
}
.mp-code-dim { color: var(--text-mute); text-shadow: none; opacity: .6; }
.mp-copy-btn {
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 8px 18px; font-weight: 700; font-size: var(--t-xs); cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.mp-copy-btn:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); background: var(--surface); }
.mp-wait { display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  margin: var(--sp-4) 0 var(--sp-2); color: var(--text-dim); font-size: var(--t-sm); }
.mp-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--primary) 30%, var(--line));
  border-top-color: var(--primary); animation: mp-spin .8s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .mp-spinner { animation-duration: 1.6s; } }
.mp-join-row { display: flex; justify-content: center; margin: var(--sp-4) 0; }
.mp-code-input {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 11vw, 52px);
  letter-spacing: .22em; text-align: center; text-transform: uppercase; width: min(320px, 86vw);
  background: var(--card-bg); color: var(--primary-hi); border: 2px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-2); caret-color: var(--primary);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.mp-code-input::placeholder { color: var(--text-mute); opacity: .45; letter-spacing: .22em; }
.mp-code-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
.mp-net-err { color: var(--coral, var(--warning)); font-weight: 600; font-size: var(--t-sm); margin-top: var(--sp-3); }
.mp-ghost-btn {
  background: transparent; color: var(--text-mute); border: none; cursor: pointer;
  font-weight: 600; font-size: var(--t-sm); padding: var(--sp-3); margin-top: var(--sp-2);
}
.mp-ghost-btn:hover { color: var(--text); }
.mp-online-tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-2xs); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--positive);
  background: color-mix(in srgb, var(--positive) 14%, transparent); border: 1px solid color-mix(in srgb, var(--positive) 32%, transparent);
  padding: 4px 11px; border-radius: var(--r-pill); margin: var(--sp-2) auto 0; }
.mp-online-tag::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--positive);
  box-shadow: 0 0 8px var(--positive); }
.mp-ms-card.mp-ms-soon { opacity: .62; }
.mp-ms-card.mp-ms-soon:hover { transform: none; box-shadow: var(--sh-1); }
.rw-input-static { display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-weight: 700; }
.rw-you { color: var(--positive); font-weight: 700; font-size: .85em; }

/* ════════════════════════════════════════════════════════════════
   DUELS — POOL SELECT
   ============================================================ */
.rw-pool-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
  max-width: 680px; margin: var(--sp-4) auto 0;
  animation: fl-rise var(--dur-3) var(--ease-out);
}
@media (max-width: 600px) { .rw-pool-grid { grid-template-columns: 1fr 1fr; max-width: 440px; } }
@media (max-width: 380px) { .rw-pool-grid { grid-template-columns: 1fr; max-width: 360px; } }
.rw-pool-card {
  position: relative; overflow: hidden; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: var(--sp-2);
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-3); color: var(--text);
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease-spring), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.rw-pool-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(120% 90% at 100% 0%, var(--positive), transparent 60%);
  transition: opacity var(--dur-2) var(--ease-out);
}
.rw-pool-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--positive) 50%, var(--line)); box-shadow: var(--sh-2); }
.rw-pool-card:hover::after { opacity: .12; }
.rw-pool-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.rw-pool-disabled { opacity: .42; cursor: not-allowed; pointer-events: none; }
.rw-pool-selected { border-color: var(--positive); box-shadow: 0 0 0 2px var(--positive); }
.rw-pool-name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-body); line-height: 1.2; }
.rw-pool-hint { color: var(--text-mute); font-size: var(--t-2xs); line-height: 1.4; }

/* ════════════════════════════════════════════════════════════════
   DUELS — RULES MODAL
   ============================================================ */
.rw-rules-link {
  background: none; border: none; cursor: pointer;
  color: var(--text-mute); font-size: var(--t-xs); font-weight: 600;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-pill);
  transition: color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent;
}
.rw-rules-link:hover { color: var(--text); text-decoration-color: currentColor; }
.rw-rules-inline { margin-left: var(--sp-3); }
.rw-rules-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(11,16,32,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: var(--sp-4);
  animation: fl-rise var(--dur-2) var(--ease-out);
}
.rw-rules-card {
  position: relative; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-xl); padding: var(--sp-6) var(--sp-5); max-width: 480px; width: 100%;
  box-shadow: var(--sh-2), 0 0 0 1px rgba(0,0,0,.4);
  animation: fl-rise var(--dur-3) var(--ease-spring);
}
.rw-rules-close {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--text-mute); font-size: 14px; width: 32px; height: 32px;
  cursor: pointer; display: grid; place-items: center;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.rw-rules-close:hover { background: var(--surface-2); color: var(--text); }
.rw-rules-kicker { font-size: var(--t-2xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--warning); margin-bottom: var(--sp-1); }
.rw-rules-title { font-family: var(--font-display); font-weight: 800; font-size: var(--t-h2); color: var(--text); margin: 0 0 var(--sp-4); }
.rw-rules-list {
  margin: 0 0 var(--sp-4); padding-left: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
  color: var(--text-dim); font-size: var(--t-sm); line-height: 1.55;
}
.rw-rules-list li strong { color: var(--text); }
.rw-rules-note {
  background: color-mix(in srgb, var(--positive) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--positive) 28%, transparent);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
  color: var(--text-dim); font-size: var(--t-xs); line-height: 1.5; margin-bottom: var(--sp-5);
}
.rw-rules-ok { width: 100%; }

/* ════════════════════════════════════════════════════════════════
   DUELS — PLAYER COUNT PICKER + TOURNAMENT
   ============================================================ */
.rw-player-count {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  margin: var(--sp-4) auto; justify-content: center;
}
.rw-pc-label { font-size: var(--t-xs); font-weight: 700; color: var(--text-mute); text-transform: uppercase; letter-spacing: .1em; }
.rw-pc-btns { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }
.rw-pc-btn {
  min-width: 44px; min-height: 40px; height: auto; padding: 8px 14px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1.5px solid var(--line);
  color: var(--text-dim); font-weight: 800; font-size: var(--t-body); cursor: pointer;
  flex: 1; max-width: 160px;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.rw-pc-btn:hover { background: var(--surface-3); color: var(--text); border-color: var(--line-strong); }
.rw-pc-btn:disabled, .rw-pc-btn.rw-pc-locked { opacity: .5; cursor: not-allowed; }
.rw-pc-btn:disabled:hover, .rw-pc-btn.rw-pc-locked:hover { background: var(--surface-2); color: var(--text-dim); border-color: var(--line); }
.rw-pc-btn.rw-pc-active {
  background: color-mix(in srgb, var(--warning) 18%, transparent);
  border-color: color-mix(in srgb, var(--warning) 55%, transparent);
  color: var(--warning);
}
.rw-pc-hint { font-size: var(--t-2xs); color: var(--text-mute); font-style: italic; }
.rw-handoff-prog { font-size: var(--t-xs); font-weight: 700; color: var(--positive); letter-spacing: .06em; margin-bottom: var(--sp-3); }
.rw-match-label { text-align: center; font-size: var(--t-2xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--warning); margin-bottom: var(--sp-2); }
.rw-result-matchlabel { font-size: var(--t-2xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--warning); margin-bottom: var(--sp-2); }
.rw-matchup { display: flex; align-items: center; gap: var(--sp-4); justify-content: center; margin: var(--sp-4) 0; }
.rw-mu-name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h3); color: var(--text); }
.rw-mu-vs { font-size: var(--t-2xs); font-weight: 900; letter-spacing: .14em; color: var(--text-mute); }
.rw-tourn-table { display: flex; flex-direction: column; gap: var(--sp-2); margin: var(--sp-4) 0; max-width: 340px; margin-left: auto; margin-right: auto; }
.rw-tourn-row {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-4);
}
.rw-tourn-row.rw-tourn-winner {
  background: color-mix(in srgb, var(--champion) 14%, var(--surface-2));
  border-color: color-mix(in srgb, var(--champion) 40%, var(--line));
}
.rw-tourn-rank { font-size: var(--t-2xs); font-weight: 800; color: var(--text-mute); width: 28px; }
.rw-tourn-winner .rw-tourn-rank { color: var(--champion); }
.rw-tourn-name { flex: 1; font-weight: 700; font-size: var(--t-sm); color: var(--text); }
.rw-tourn-pts { font-weight: 700; font-size: var(--t-xs); color: var(--positive); font-variant-numeric: tabular-nums; }
.rw-tourn-gd { font-weight: 600; font-size: var(--t-xs); color: var(--text-mute); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }

/* ════════════════════════════════════════════════════════════════
   T8 MAKEOVER — RATING TIER COLORS EVERYWHERE + SPIN WHEEL POLISH
   ============================================================ */

/* Rating tier on xi-rate (squad list) and rw-rev-rating (Duels reveal) */
.xi-rate { font-weight: 800; font-size: 13px; border-radius: 4px; padding: 1px 5px; }
.xi-rate.r-gold   { color: var(--champion); background: color-mix(in srgb, var(--champion) 15%, transparent); }
.xi-rate.r-elite  { color: #FF4D8B; background: color-mix(in srgb, #FF4D8B 12%, transparent); }
.xi-rate.r-great  { color: #FF9800; background: color-mix(in srgb, #FF9800 12%, transparent); }
.xi-rate.r-good   { color: #C6E040; background: color-mix(in srgb, #C6E040 10%, transparent); }
.xi-rate.r-amber  { color: #E8A020; background: color-mix(in srgb, #E8A020 12%, transparent); }
.xi-rate.r-orange { color: #FF8C42; background: color-mix(in srgb, #FF8C42 12%, transparent); }
.xi-rate.r-red    { color: #E04040; background: color-mix(in srgb, #E04040 12%, transparent); }

/* Duels reveal row rating — tier colors */
.rw-rev-rating.r-gold   { color: var(--champion) !important; text-shadow: 0 0 8px color-mix(in srgb, var(--champion) 55%, transparent); }
.rw-rev-rating.r-elite  { color: #FF4D8B !important; text-shadow: 0 0 8px color-mix(in srgb, #FF4D8B 50%, transparent); }
.rw-rev-rating.r-great  { color: #FF9800 !important; text-shadow: 0 0 8px color-mix(in srgb, #FF9800 50%, transparent); }
.rw-rev-rating.r-good   { color: #C6E040 !important; text-shadow: 0 0 6px color-mix(in srgb, #C6E040 30%, transparent); }
.rw-rev-rating.r-amber  { color: #E8A020 !important; text-shadow: 0 0 6px color-mix(in srgb, #E8A020 45%, transparent); }
.rw-rev-rating.r-orange { color: #FF8C42 !important; text-shadow: 0 0 6px color-mix(in srgb, #FF8C42 45%, transparent); }
.rw-rev-rating.r-red    { color: #E04040 !important; text-shadow: 0 0 6px color-mix(in srgb, #E04040 45%, transparent); }

/* Player pop-out squad panel — rating badges with solid background + tier color.
   Prefixed with body to beat the body.light .mp-r-badge override in style.css. */
.mp-r-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; padding: 2px 6px; border-radius: 5px;
  font-weight: 800; font-size: var(--t-xs); font-variant-numeric: tabular-nums;
  background: var(--surface-3); color: var(--text-mute);
}
/* Rating badge colours — no purple anywhere */
body .mp-r-badge.r-gold   { background: color-mix(in srgb, #FFD700 22%, var(--surface-2)); color: #FFD700; }   /* gold  ≥90 */
body .mp-r-badge.r-elite  { background: color-mix(in srgb, #FF4D8B 18%, var(--surface-2)); color: #FF4D8B; }   /* rose  ≥85 */
body .mp-r-badge.r-great  { background: color-mix(in srgb, #FF9800 18%, var(--surface-2)); color: #FF9800; }   /* orange ≥80 */
body .mp-r-badge.r-good   { background: color-mix(in srgb, #C6E040 18%, var(--surface-2)); color: #C6E040; }   /* lime   ≥75 */
body .mp-r-badge.r-amber  { background: color-mix(in srgb, #FFB74D 18%, var(--surface-2)); color: #FFB74D; }   /* amber ≥70 */
body .mp-r-badge.r-orange { background: color-mix(in srgb, #FF8C42 18%, var(--surface-2)); color: #FF8C42; }   /* orange≥60 */
body .mp-r-badge.r-red    { background: color-mix(in srgb, #E04040 18%, var(--surface-2)); color: #E04040; }   /* red   <60  */

/* Player names in squad pop-outs must be full brightness — no inheritance ambiguity */
.player .pname { color: var(--text); }

/* Light mode overrides — re-darken r-good/r-great text so they read on light cards */
body.light .mp-r-badge.r-great { background: color-mix(in srgb, #D97706 18%, var(--surface-2)); color: #D97706; }
body.light .mp-r-badge.r-good  { background: color-mix(in srgb, #7A9E10 18%, var(--surface-2)); color: #7A9E10; }
body.light .xi-rate.r-great    { color: #D97706; background: color-mix(in srgb, #D97706 12%, transparent); }
body.light .xi-rate.r-good     { color: #7A9E10; background: color-mix(in srgb, #7A9E10 10%, transparent); }

/* Spin wheel machine — remap legacy green glow to Floodlights cyan */
.machine {
  background:
    radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--positive) 7%, transparent), transparent 60%),
    var(--card-bg) !important;
  border-color: var(--line) !important;
  animation: fl-rise var(--dur-3) var(--ease-out);
}
/* Reel selection line: cyan glow instead of gold */
.reel::after { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--positive) 35%, transparent) !important; }
/* Reel label: use positive (cyan) consistent with Floodlights */
.reel-label { color: var(--positive) !important; }

/* Squad XI list — gentle rise animation */
.xi { animation: fl-rise var(--dur-3) var(--ease-out); }

/* Champion div — token-based Floodlights polish */
.champion, .champion.big {
  color: var(--champion); font-weight: 800;
  text-shadow: 0 0 20px color-mix(in srgb, var(--champion) 40%, transparent);
}

/* Results score-banner — tighten up */
.score-banner { border-radius: var(--r-lg); }

/* Pitch container in draft view — gentle rise */
.draft-pitch-wrap { animation: fl-rise var(--dur-3) var(--ease-out); }

/* ── Duels Phase 2: feature toggles in setup screen ── */
.rw-features { margin: var(--sp-5) 0 var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.rw-feat-title { font-size: var(--t-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); padding: var(--sp-3) var(--sp-4); background: var(--surface-2); display: flex; align-items: center; gap: var(--sp-2); }
.rw-feat-sub { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-sub); font-size: var(--t-2xs); }
.rw-feat-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line); transition: background var(--dur-1); }
.rw-feat-row:hover { background: var(--surface-2); }
.rw-feat-label { flex: 1; font-size: var(--t-sm); font-weight: 600; color: var(--text); }
.rw-feat-info { position: relative; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: var(--t-xs); color: var(--text-mute); cursor: pointer; border-radius: 50%; transition: color var(--dur-1); flex-shrink: 0; }
.rw-feat-info:hover, .rw-feat-info:focus-visible { color: var(--primary); outline: none; }
.rw-tip { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); width: 220px; background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: var(--sp-3); font-size: var(--t-2xs); color: var(--text-sub); line-height: 1.5; pointer-events: none; opacity: 0; transition: opacity var(--dur-1); z-index: 20; }
.rw-tip-show .rw-tip { opacity: 1; pointer-events: auto; }
@media (max-width: 540px) { .rw-tip { right: auto; left: 0; top: calc(100% + 6px); transform: none; width: 240px; } }
.rw-feat-toggle { position: relative; width: 32px; height: 18px; border: none; border-radius: 9px; background: var(--line-strong); cursor: pointer; flex-shrink: 0; transition: background var(--dur-1); padding: 0; }
.rw-feat-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.rw-feat-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-sub); transition: transform var(--dur-1) var(--ease-spring), background var(--dur-1); }
.rw-feat-on { background: var(--primary); }
.rw-feat-on .rw-feat-knob { transform: translateX(14px); background: #fff; }

/* ── Phase screens (posban / captain / blindswap) ── */
.rw-phase-screen { max-width: 520px; margin: var(--sp-5) auto; text-align: center; }
.rw-phase-sub { font-size: var(--t-sm); color: var(--text-sub); margin: var(--sp-2) 0 var(--sp-5); line-height: 1.6; }
.rw-slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin: 0 auto var(--sp-5); max-width: 360px; }
@media (max-width: 400px) { .rw-slot-grid { grid-template-columns: repeat(3, 1fr); } }
.rw-slot-pick { padding: var(--sp-2) var(--sp-1); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--t-xs); font-weight: 700; color: var(--text); cursor: pointer; transition: background var(--dur-1), border-color var(--dur-1), transform var(--dur-1); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rw-slot-pick:hover { background: var(--surface-3); border-color: var(--line-strong); }
.rw-slot-pick.rw-slot-selected { background: color-mix(in srgb, var(--primary) 18%, var(--surface-2)); border-color: var(--primary); color: var(--primary); }
.rw-slot-pick.rw-slot-disabled { opacity: .38; cursor: not-allowed; }
.rw-ban-chip { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--warning); }

/* ── Blind swap specifics ── */
.rw-swap-header { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.rw-swap-timer { font-size: var(--t-h3); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--positive); min-width: 3ch; }
.rw-timer-urgent { color: var(--warning); animation: rw-pulse 0.8s infinite; }
@keyframes rw-pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.rw-swap-grid { max-width: 440px; }
.rw-swap-pos { font-size: var(--t-2xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.rw-swap-player { font-size: var(--t-xs); font-weight: 600; color: var(--text); }
.rw-swap-actions { margin-top: var(--sp-4); }

/* ── Reveal: feature badges (×2, C, banned) ── */
.rw-badge { display: inline-flex; align-items: center; font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 1px 5px; border-radius: 4px; margin-left: 3px; vertical-align: middle; text-transform: uppercase; }
.rw-badge.xf { background: color-mix(in srgb, var(--champion) 20%, transparent); color: var(--champion); border: 1px solid color-mix(in srgb, var(--champion) 35%, transparent); }
.rw-badge.cap-a { background: color-mix(in srgb, var(--primary) 20%, transparent); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); }
.rw-badge.cap-b { background: color-mix(in srgb, var(--positive) 20%, transparent); color: var(--positive); border: 1px solid color-mix(in srgb, var(--positive) 35%, transparent); }
.rw-ban { font-size: var(--t-2xs); color: var(--text-mute); font-style: italic; }
.rw-badge.form-a { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); }
.rw-badge.form-b { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); }

/* Formation draft grid */
.rw-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin: 0 auto var(--sp-5); max-width: 480px; }
@media (max-width: 400px) { .rw-form-grid { grid-template-columns: repeat(2, 1fr); } }
.rw-form-card { padding: var(--sp-3) var(--sp-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 3px; align-items: center; cursor: pointer; transition: background var(--dur-1), border-color var(--dur-1); text-align: center; }
.rw-form-card:hover { background: var(--surface-3); border-color: var(--line-strong); }
.rw-form-card.rw-slot-selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface-2)); }
.rw-form-name { font-size: var(--t-sm); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.rw-form-style { font-size: var(--t-2xs); font-weight: 700; color: var(--primary); letter-spacing: .06em; text-transform: uppercase; }
.rw-form-hint { font-size: 10px; color: var(--text-mute); line-height: 1.4; }

/* Steal Power-Up */
.rw-steal-row { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin: var(--sp-3) 0; }
.rw-steal-btn { background: color-mix(in srgb, var(--coral) 14%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--coral) 40%, var(--line)); border-radius: var(--r-md); color: var(--coral); font-size: var(--t-xs); font-weight: 700; padding: var(--sp-2) var(--sp-4); cursor: pointer; transition: background var(--dur-1); letter-spacing: .04em; }
.rw-steal-btn:hover { background: color-mix(in srgb, var(--coral) 22%, var(--surface-2)); }

/* Async Online Mode */
.rw-async-url { font-size: var(--t-2xs); font-family: monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-3); word-break: break-all; color: var(--text-sub); margin: var(--sp-4) 0; max-height: 80px; overflow-y: auto; text-align: left; }
.rw-async-btns { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* Wildcard spin button (during build) */
.rw-wildcard-btn { background: transparent; border: 1px dashed color-mix(in srgb, var(--champion) 50%, var(--line)); border-radius: var(--r-md); color: var(--champion); font-size: var(--t-xs); font-weight: 700; padding: var(--sp-2) var(--sp-4); cursor: pointer; letter-spacing: .04em; margin-top: var(--sp-2); transition: background var(--dur-1), border-color var(--dur-1); }
.rw-wildcard-btn:hover { background: color-mix(in srgb, var(--champion) 10%, transparent); border-style: solid; }

/* Best of 3 series score bar */
.rw-series-bar { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); margin: var(--sp-3) 0; font-size: var(--t-sm); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.rw-series-sep { font-size: var(--t-2xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }

/* ── Shared Pool draft ── */
.rw-sp-pool { margin-top: var(--sp-5); }
.rw-sp-pool-head { font-size: var(--t-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin-bottom: var(--sp-3); }
.rw-sp-pool-list { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.rw-sp-player { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); cursor: pointer; transition: background var(--dur-1); border-bottom: 1px solid var(--line); }
.rw-sp-player:last-child { border-bottom: none; }
.rw-sp-player:hover { background: var(--surface-2); }
.rw-sp-player.noslot { opacity: .38; cursor: not-allowed; }
.rw-sp-player.rw-sp-pending { background: color-mix(in srgb, var(--primary) 12%, var(--surface-2)); }
.rw-sp-name { flex: 1; font-size: var(--t-sm); font-weight: 600; color: var(--text); }
.rw-sp-club { font-size: var(--t-2xs); color: var(--text-mute); min-width: 100px; }
.rw-sp-empty { text-align: center; color: var(--text-mute); padding: var(--sp-5); font-style: italic; }
.rw-sp-teams { display: flex; gap: var(--sp-4); margin: var(--sp-4) 0; overflow-x: auto; }
.rw-sp-team { flex: 1; min-width: 140px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); }
.rw-sp-team.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.rw-sp-team-name { font-size: var(--t-xs); font-weight: 800; color: var(--text); margin-bottom: var(--sp-2); text-align: center; }
.rw-sp-slot { display: flex; align-items: center; gap: var(--sp-1); font-size: var(--t-2xs); padding: 1px 0; }
.rw-sp-slot.empty { opacity: .45; }
.rw-sp-slot-name { color: var(--text-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }

/* ============================================================
   DRAFT vs COMPUTER MODE
   ============================================================ */
#dvcView { animation: fl-rise var(--dur-3) var(--ease-out); }

/* Setup screen */
#dvcView .setup { max-width: 540px; margin: 0 auto; }

/* Draft layout */
.dvc-draft-wrap { max-width: 1080px; margin: 0 auto; }
.dvc-draft-header { margin-bottom: var(--sp-4); }
.dvc-draft-progress { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.dvc-round-badge { font-weight: 700; font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); white-space: nowrap; }
.dvc-progress-bar { flex: 1; height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.dvc-progress-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width var(--dur-3) var(--ease-out); }
.dvc-turn-banner { padding: var(--sp-2) var(--sp-4); border-radius: var(--r-md); font-weight: 700; font-size: var(--t-sm); display: inline-flex; align-items: center; }
.dvc-your-turn { background: color-mix(in srgb, var(--positive) 14%, var(--surface-2)); color: var(--positive); }
.dvc-cpu-turn  { background: color-mix(in srgb, var(--warning) 14%, var(--surface-2)); color: var(--warning); }
.dvc-last-cpu-pick { font-size: var(--t-xs); color: var(--text-mute); margin-top: var(--sp-2); }

.dvc-main { display: grid; grid-template-columns: 1fr 340px; gap: var(--sp-4); align-items: start; }
@media (max-width: 700px) { .dvc-main { grid-template-columns: 1fr; } }

/* Spin-wheel draft layout */
.dvc-spin-section { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); padding: var(--sp-4) 0; }
.dvc-reels { justify-content: center; }
.dvc-xi-panels { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-4); }
@media (max-width: 600px) { .dvc-xi-panels { grid-template-columns: 1fr; } }

.dvc-col-title { font-family: var(--font-display); font-size: var(--t-sm); font-weight: 700; color: var(--text-mute); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 var(--sp-3); }
.dvc-pool-line-label { font-size: var(--t-2xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); padding: var(--sp-2) 0 var(--sp-1); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-1); }

.dvc-pool-grid { display: flex; flex-direction: column; gap: 2px; max-height: 560px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-2); }
.dvc-player-card { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm); border: none; background: transparent; cursor: pointer; text-align: left; width: 100%; transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-spring); }
.dvc-player-card:hover:not(:disabled) { background: color-mix(in srgb, var(--primary) 10%, var(--surface-2)); transform: translateX(2px); }
.dvc-player-card:active:not(:disabled) { transform: scale(.98); }
.dvc-player-card:disabled { opacity: .4; cursor: not-allowed; }
.dvc-name { flex: 1; font-size: var(--t-sm); font-weight: 600; color: var(--text); }
.dvc-meta { font-size: var(--t-2xs); color: var(--text-mute); white-space: nowrap; }

.dvc-xi-col { display: flex; flex-direction: column; gap: var(--sp-3); }
.dvc-xi-panel { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); }
.dvc-cpu-xi { border-color: color-mix(in srgb, var(--warning) 30%, var(--line)); }
.dvc-cpu-label { color: var(--warning) !important; }
.dvc-xi-list { display: flex; flex-direction: column; gap: 2px; }
.dvc-xi-row { display: flex; align-items: center; gap: var(--sp-2); padding: 3px 0; }
.dvc-xi-name { flex: 1; font-size: var(--t-xs); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dvc-empty-slot { color: var(--text-mute); font-style: italic; }

/* Difficulty bar */
.diff-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.diff-opt { padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text-dim); font-weight: 600; cursor: pointer; font-size: var(--t-sm); transition: all var(--dur-1) var(--ease-out); }
.diff-opt:hover, .diff-opt.active { border-color: var(--primary); color: var(--text); background: color-mix(in srgb, var(--primary) 10%, var(--surface-2)); }
.diff-opt.active { font-weight: 700; }

/* Result screen */
.dvc-result-wrap { max-width: 900px; margin: 0 auto; }
.dvc-verdict { text-align: center; padding: var(--sp-5); border-radius: var(--r-lg); margin-bottom: var(--sp-5); }
.dvc-win    { background: color-mix(in srgb, var(--positive) 14%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--positive) 35%, transparent); }
.dvc-loss   { background: color-mix(in srgb, var(--warning) 10%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--warning) 25%, transparent); }
.dvc-draw   { background: var(--surface-2); border: 1px solid var(--line); }
.dvc-verdict-title { font-family: var(--font-display); font-size: var(--t-h2); font-weight: 800; margin-bottom: var(--sp-2); }
.dvc-win .dvc-verdict-title { color: var(--positive); }
.dvc-loss .dvc-verdict-title { color: var(--warning); }
.dvc-verdict-score { font-size: var(--t-h3); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.dvc-verdict-record { margin-top: var(--sp-2); font-size: var(--t-sm); color: var(--text-mute); font-variant-numeric: tabular-nums; }
.dvc-record { margin-top: var(--sp-3); font-size: var(--t-sm); display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.dvc-rec-label { color: var(--text-mute); }
.dvc-rec-val { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.dvc-rec-pct { font-size: var(--t-xs); color: var(--text-mute); background: var(--surface-2); border-radius: var(--r-pill); padding: 2px 7px; }
.dvc-rec-none { color: var(--text-mute); font-style: italic; }

/* Manager bonus chips — shown below desc in setup screens */
.mgr-bonus-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-2); }
.mgr-bonus { font-size: 11px; font-weight: 700; border-radius: var(--r-sm); padding: 2px 7px; font-variant-numeric: tabular-nums; }
.mgr-atk-pos { background: color-mix(in srgb, var(--warning) 16%, var(--surface-2)); color: var(--warning); }
.mgr-atk-neg { background: color-mix(in srgb, var(--text-mute) 14%, var(--surface-2)); color: var(--text-mute); }
.mgr-def-pos { background: color-mix(in srgb, var(--positive) 16%, var(--surface-2)); color: var(--positive); }
.mgr-def-neg { background: color-mix(in srgb, var(--text-mute) 14%, var(--surface-2)); color: var(--text-mute); }
.mgr-ko-pos  { background: color-mix(in srgb, var(--champion) 16%, var(--surface-2)); color: var(--champion); }
.dvc-result-pitches { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
@media (max-width: 600px) { .dvc-result-pitches { grid-template-columns: 1fr; } }
.dvc-result-xi { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); }
.dvc-xi-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.dvc-xi-title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm); color: var(--text); }
.dvc-xi-avg { margin-left: auto; }
.dvc-result-list { margin-top: var(--sp-3); max-height: 220px; overflow-y: auto; }
.dvc-goals { font-size: var(--t-xs); color: var(--text-mute); margin-bottom: var(--sp-4); padding: var(--sp-2) var(--sp-3); background: var(--surface-2); border-radius: var(--r-md); }
.dvc-goals-label { font-weight: 700; color: var(--text); }
.dvc-result-cta { display: flex; gap: var(--sp-3); justify-content: center; padding-bottom: var(--sp-6); }

/* Pitch in DVC result */
.dvc-pitch { display: flex; flex-direction: column; gap: 6px; padding: var(--sp-3); min-height: 180px; background: var(--pitch-bg); border: 1px solid var(--pitch-line); border-radius: var(--r-md); margin-bottom: var(--sp-2); }
.dvc-pitch .pitch-row { display: flex; justify-content: center; gap: 8px; }
.dvc-pitch .pdot { width: 42px; height: 42px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; border: 2px solid rgba(255,255,255,.18); }
.dvc-pitch .pdot.filled { border-color: rgba(255,255,255,.35); }
.dvc-pitch .pdot.GK.filled  { background: color-mix(in srgb, var(--champion) 55%, transparent); }
.dvc-pitch .pdot.DEF.filled { background: color-mix(in srgb, var(--positive) 45%, transparent); }
.dvc-pitch .pdot.MID.filled { background: color-mix(in srgb, var(--primary) 55%, transparent); }
.dvc-pitch .pdot.FWD.filled { background: color-mix(in srgb, var(--warning) 55%, transparent); }
.dvc-pitch .dot-pos { color: rgba(255,255,255,.65); font-size: 8px; }
.dvc-pitch .dot-init { color: #fff; font-size: 13px; font-weight: 900; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.dvc-pitch .dot-name { color: #fff; font-size: 8px; font-weight: 700; text-align: center; line-height: 1.1; max-width: 38px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* small draft-header pitches (MP/WC): keep the rating number compact */
.draft-pitch-wrap .pdot .dot-init { font-size: 9px; }
.rw-sp-chooser { background: var(--surface-2); border: 1px solid var(--primary); border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-4); text-align: center; }
.rw-sp-chooser-q { font-size: var(--t-sm); color: var(--text); display: block; margin-bottom: var(--sp-3); }
.rw-sp-cancel { margin-top: var(--sp-3); }
.rw-sp-turn { font-weight: 700; color: var(--primary); }
.rw-sp-wait { color: var(--text-mute); }
.rw-sp-sep { color: var(--line-strong); }

/* ============================================================
   T3 POLISH — 3D BUTTONS + ANIMATION PASS
   Applied last so these rules take precedence. Targets primary
   CTAs and key interactive elements; not applied to every
   element so the effect remains meaningful.
   ============================================================ */

/* ── 3D tactile effect on primary action buttons ── */
.btn-primary, .start-btn, .spin, .fl-btn {
  box-shadow:
    var(--sh-glow-primary),
    0 4px 0 0 color-mix(in srgb, var(--p-violet-600) 80%, #000),
    0 8px 20px rgba(0,0,0,.28);
  transition:
    transform 120ms var(--ease-spring),
    box-shadow 120ms var(--ease-out),
    filter 120ms var(--ease-out);
}
.btn-primary:hover:not(:disabled),
.start-btn:hover:not(:disabled),
.spin:hover:not(:disabled),
.fl-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow:
    var(--sh-glow-primary),
    0 8px 0 0 color-mix(in srgb, var(--p-violet-600) 80%, #000),
    0 16px 30px rgba(0,0,0,.32);
  filter: brightness(1.08);
}
.btn-primary:active:not(:disabled),
.start-btn:active:not(:disabled),
.spin:active:not(:disabled),
.fl-btn:active:not(:disabled) {
  transform: translateY(3px);
  transition-duration: 50ms;
  box-shadow:
    0 1px 0 0 color-mix(in srgb, var(--p-violet-600) 80%, #000),
    0 2px 8px rgba(0,0,0,.18);
  filter: brightness(.95);
}

/* SPIN gets extra size + punchier glow to feel like the hero action */
.spin {
  font-size: var(--t-h3) !important;
  letter-spacing: .04em;
  padding: 16px 32px !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent),
    var(--sh-glow-primary),
    0 5px 0 0 color-mix(in srgb, var(--p-violet-600) 80%, #000),
    0 10px 24px rgba(0,0,0,.3);
}

/* ── Ghost buttons: lift + shadow ── */
.btn-ghost, .fl-btn.ghost, .back {
  transition:
    background var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    box-shadow 120ms var(--ease-out),
    transform 120ms var(--ease-spring);
}
.btn-ghost:hover:not(:disabled), .fl-btn.ghost:hover { transform: translateY(-2px); box-shadow: var(--sh-1); }
.btn-ghost:active:not(:disabled), .fl-btn.ghost:active { transform: translateY(1px); transition-duration: 50ms; box-shadow: none; }

/* ── CTA / warning / positive variant buttons ── */
.fl-btn.cta {
  box-shadow: 0 4px 0 0 color-mix(in srgb, var(--warning) 55%, #000), 0 10px 28px rgba(255,122,89,.35);
}
.fl-btn.cta:hover { box-shadow: 0 8px 0 0 color-mix(in srgb, var(--warning) 55%, #000), 0 16px 32px rgba(255,122,89,.4); }
.fl-btn.cta:active { box-shadow: 0 1px 0 0 color-mix(in srgb, var(--warning) 55%, #000); transition-duration:50ms; }
.fl-btn.pos {
  box-shadow: 0 4px 0 0 color-mix(in srgb, var(--positive) 45%, #000), var(--sh-glow-cyan);
}

/* ── Segment / formation / option chips — press-down feedback ── */
.formation-opt, .seg-opt, .tg-opt, .diff-opt, .era-btn, .mp-ms-card {
  transition:
    background var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    transform 80ms var(--ease-spring),
    box-shadow 80ms var(--ease-out);
}
.formation-opt:hover:not(.active),
.seg-opt:hover:not(.active),
.era-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-1); }
.formation-opt:active, .seg-opt:active, .tg-opt:active, .diff-opt:active, .era-btn:active, .mp-ms-card:active {
  transform: scale(.96) translateY(1px);
  transition-duration: 50ms;
}

/* ── Squad player cards — light press ── */
.player, .dvc-player-card, .rw-sp-player {
  transition: background var(--dur-1) var(--ease-out), transform 80ms var(--ease-spring);
}
.player:hover:not(.taken):not(.noslot), .rw-sp-player:hover:not(.noslot) { transform: translateX(2px); }
.player:active:not(.taken):not(.noslot), .rw-sp-player:active:not(.noslot) { transform: scale(.97); transition-duration: 50ms; }

/* ── Home mode cards — staggered entrance + stronger lift ── */
.fl-mode { animation: fl-rise var(--dur-3) var(--ease-out) both; }
.fl-modes .fl-mode:nth-child(1) { animation-delay:  30ms; }
.fl-modes .fl-mode:nth-child(2) { animation-delay:  80ms; }
.fl-modes .fl-mode:nth-child(3) { animation-delay: 130ms; }
.fl-modes .fl-mode:nth-child(4) { animation-delay: 180ms; }
.fl-modes .fl-mode:nth-child(5) { animation-delay: 230ms; }
.fl-modes .fl-mode:nth-child(6) { animation-delay: 280ms; }
.fl-mode:hover { box-shadow: var(--sh-2), 0 0 0 1px color-mix(in srgb, var(--mode-accent, var(--primary)) 50%, transparent); }
.fl-mode:hover .fl-mode-ico { transform: scale(1.14) translateY(-2px); }
.fl-mode:active { transform: translateY(-1px) scale(.99); transition-duration: 60ms; }
.fl-mode-ico { transition: transform 200ms var(--ease-spring); }

/* ── Screen entrance — apply fl-rise consistently to all major views ── */
#setupView, #draftView, #resultsView, #leagueView, #boardView {
  animation: fl-rise var(--dur-3) var(--ease-out);
}
.setup, .machine, .squad-card, .xi, .results-head, .verdict-card, .lgr2-card, .lgr2-narr {
  animation: fl-rise var(--dur-3) var(--ease-out);
}

/* ── Result / stat sections — stagger in ── */
@keyframes fl-slide-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.stat-grid    { animation: fl-slide-up var(--dur-3) var(--ease-out) 60ms both; }
.lgr2-ptable  { animation: fl-slide-up var(--dur-3) var(--ease-out) 100ms both; }
.lgr2-xi      { animation: fl-slide-up var(--dur-3) var(--ease-out) 140ms both; }
.lgr2-break   { animation: fl-slide-up var(--dur-3) var(--ease-out) 180ms both; }
.score-banner { animation: fl-slide-up 220ms var(--ease-spring) 80ms both; }

/* ── Pitch player dot pop ── */
.pdot.filled { animation: dvc-dot-pop 280ms var(--ease-spring) both; }
@keyframes dvc-dot-pop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: none; }
}

/* ── Toast ── */
.fl-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--surface-3); color: var(--text); padding: 10px 20px;
  border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600;
  box-shadow: var(--sh-2); opacity: 0; pointer-events: none; z-index: 9999;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-spring);
  border: 1px solid var(--line-strong);
  white-space: nowrap;
}
.fl-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── MP-2: Auto-fill button ─────────────────────────────────── */
.mp-autofill-btn {
  width: 100%; margin-top: var(--sp-3); font-size: .85rem;
  border: 1px dashed rgba(124,92,252,.5); color: var(--violet);
  padding: 10px 16px; border-radius: var(--r-md);
  background: rgba(124,92,252,.07);
  transition: background var(--dur-1) var(--ease-out);
}
.mp-autofill-btn:hover { background: rgba(124,92,252,.14); }

/* ── MP-1: Squad reveal carousel ────────────────────────────── */
.mp-champion { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mp-champ-trophy { font-size: 2.5rem; line-height: 1; }
.mp-reveal-cta { display: flex; flex-direction: column; gap: var(--sp-2); align-items: center; }
.mp-reveal-cta .btn-ghost { font-size: .82rem; color: var(--txt-sub); }
.mp-squad-reveal { }
.mp-rev-meta { font-size: .8rem; color: var(--txt-sub); margin-bottom: var(--sp-3); }
.mp-rev-pitch { display: flex; justify-content: center; margin: var(--sp-3) 0; }
.mp-rev-pitch .pitch { width: 240px; }

/* ── MP-3: Session history ───────────────────────────────────── */
.mp-history-sec {
  margin-top: var(--sp-5); padding: var(--sp-4);
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
}
.mp-hist-row {
  display: flex; align-items: baseline; gap: var(--sp-3);
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: .82rem;
}
.mp-hist-row:last-child { border-bottom: none; }
.mp-hist-winner { font-weight: 700; color: #F5B43C; flex: 0 0 auto; min-width: 110px; }
.mp-hist-players { color: var(--txt-sub); flex: 1; font-size: .78rem; }
.mp-hist-date { color: var(--txt-muted); font-size: .72rem; flex: 0 0 auto; }
body.light .mp-history-sec { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.07); }
body.light .mp-hist-row { border-color: rgba(0,0,0,0.05); }

/* ── D-1: Duels feature presets ──────────────────────────────── */
.rw-presets {
  display: flex; gap: var(--sp-2); margin-bottom: var(--sp-4);
}
.rw-preset-btn {
  flex: 1; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer; text-align: center; transition: background var(--dur-1) var(--ease-out);
  display: flex; flex-direction: column; gap: 2px;
}
.rw-preset-btn:hover { background: rgba(124,92,252,0.12); border-color: rgba(124,92,252,.3); }
.rw-preset-btn.rw-preset-active { background: rgba(124,92,252,0.18); border-color: var(--violet); }
.rw-preset-label { font-size: .82rem; font-weight: 700; color: var(--txt); }
.rw-preset-desc { font-size: .68rem; color: var(--txt-sub); }
body.light .rw-preset-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
body.light .rw-preset-btn.rw-preset-active { background: rgba(124,92,252,0.12); }

/* ── D-3: Series resume banner ───────────────────────────────── */
.rw-resume-banner {
  margin: var(--sp-3) 0 var(--sp-4);
  padding: var(--sp-4); border-radius: var(--r-md);
  background: rgba(245,180,60,.1); border: 1px solid rgba(245,180,60,.3);
}
.rw-resume-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: #F5B43C; margin-bottom: 4px; }
.rw-resume-score { font-size: 1rem; font-weight: 700; color: var(--txt); }
.rw-resume-hint { font-size: .75rem; color: var(--txt-sub); margin-bottom: var(--sp-3); }
.rw-resume-btns { display: flex; gap: var(--sp-2); align-items: center; }
.rw-resume-btn { padding: 8px 18px; font-size: .85rem; }
.rw-discard-btn { font-size: .78rem; color: var(--txt-sub); }
body.light .rw-resume-banner { background: rgba(245,180,60,.08); border-color: rgba(245,180,60,.25); }

/* ── D-4: Duels result history ───────────────────────────────── */
.rw-duel-history {
  margin-top: var(--sp-5); padding: var(--sp-4);
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
}
.rw-hist-head { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--txt-sub); margin-bottom: var(--sp-3); }
.rw-hist-row {
  display: flex; align-items: baseline; gap: var(--sp-3);
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: .8rem;
}
.rw-hist-row:last-child { border-bottom: none; }
.rw-hist-winner { font-weight: 700; color: #F5B43C; min-width: 90px; flex: 0 0 auto; }
.rw-hist-vs { color: var(--txt-sub); flex: 1; }
.rw-hist-score { font-weight: 700; color: var(--txt); flex: 0 0 auto; }
.rw-hist-date { color: var(--txt-muted); font-size: .7rem; flex: 0 0 auto; }
body.light .rw-duel-history { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.07); }
body.light .rw-hist-row { border-color: rgba(0,0,0,0.05); }

/* ── Progression bar on home screen ─────────────────────────── */
.fl-prog-bar {
  display: flex; gap: var(--sp-3); align-items: center;
  margin-top: var(--sp-3); flex-wrap: wrap;
}
.fl-prog-games { font-size: .78rem; color: var(--txt-sub); }
.fl-prog-streak { font-size: .78rem; color: var(--cyan); font-weight: 600; }
.fl-prog-streak:not(:empty)::before { content: "·"; color: var(--txt-muted); margin-right: var(--sp-2); }

/* ── League lazy-load state ──────────────────────────────────── */
.lg-loading {
  display: block; font-size: .68rem; color: var(--txt-muted);
  margin-top: 4px; font-style: italic;
}

/* ── Rare event modal styles (Task 18) ────────────────────────── */
.lg-event-rare {
  border-top: 3px solid var(--gold);
  background: linear-gradient(160deg, rgba(245,180,60,.06) 0%, transparent 60%);
}
.lg-event-rare-badge {
  display: inline-block; font-size: .6rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); background: rgba(245,180,60,.15);
  border: 1px solid rgba(245,180,60,.35); border-radius: 999px;
  padding: 2px 10px; margin-bottom: .6rem;
}
/* Form Surge: featured player card */
.lg-boost-hero {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  background: rgba(245,180,60,.08); border: 1px solid rgba(245,180,60,.25);
  border-radius: var(--radius-md); padding: .9rem 1.2rem; margin-bottom: .9rem;
}
.lg-boost-name { font-size: 1.25rem; font-weight: 900; color: var(--txt); }
.lg-boost-pos  { font-size: .75rem; }
.lg-boost-rating {
  font-size: 2rem; font-weight: 900; color: var(--gold);
  line-height: 1; margin-top: .15rem;
}
/* Windfall upgrade badge */
.lg-wf-up {
  font-size: .68rem; font-weight: 800; color: var(--cyan);
  background: rgba(34,224,200,.12); border-radius: 999px; padding: 1px 6px;
  margin-left: auto;
}
/* Cup result score line */
.lg-cup-result {
  font-size: .92rem; font-weight: 700; padding: .65rem 1rem;
  border-radius: var(--radius-sm); margin-bottom: .8rem; text-align: center;
}
.lg-cup-result.W { color: var(--cyan);  background: rgba(34,224,200,.12); border: 1px solid rgba(34,224,200,.25); }
.lg-cup-result.L { color: var(--coral); background: rgba(255,122,89,.10);  border: 1px solid rgba(255,122,89,.2); }
body.light .lg-event-rare { background: linear-gradient(160deg, rgba(245,180,60,.04) 0%, transparent 60%); }
body.light .lg-cup-result.W { background: rgba(34,224,200,.08); }
body.light .lg-cup-result.L { background: rgba(255,122,89,.07); }

/* ── Spin wheel redesign (Task 19) ──────────────────────────── */
/* Gradient accent bar pinned to the top of every .machine card */
.machine { position: relative; }
.machine::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--cyan) 28%, var(--gold) 62%, var(--coral) 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  opacity: 0.82;
  pointer-events: none;
  z-index: 1;
}
/* Flash the reel border gold when the strip settles */
@keyframes reelSettle {
  0%   { box-shadow: none; }
  16%  { box-shadow: 0 0 0 2px var(--gold), 0 0 28px rgba(245,180,60,.65), inset 0 0 14px rgba(245,180,60,.14); }
  100% { box-shadow: none; }
}
.reel--settled { animation: reelSettle 0.95s cubic-bezier(.15,.08,.12,1) both; }

/* ── Reduced-motion: strip all extras cleanly ── */
@media (prefers-reduced-motion: reduce) {
  .fl-mode, .setup, .machine, .squad-card, .xi, .stat-grid,
  .lgr2-ptable, .lgr2-xi, .lgr2-break, .lgr2-narr, .lgr2-card,
  .score-banner, #setupView, #draftView, #resultsView, #leagueView, #boardView,
  .pdot.filled, .reel--settled { animation: none !important; }
}

/* ── DvC tile grid (kept, not duplicate) ── */
.dvc-tile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
