/* Kit Cup v2 — Impeccable pass
   Scene: fan on mobile, halftime, thumb-scrolling 48 kits. Competitive, tribal, fun.
   Strategy: Committed. Warm amber gold carries the surface. Navy anchors. White breathes.
   Color: OKLCH-informed warm neutrals, no cold greys fighting the gold.
   Register: Product (design serves the tournament experience)
*/

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Warm neutrals — tinted amber, not cold grey */
  --ink:        oklch(18% 0.02 60);
  --ink-2:      oklch(38% 0.025 60);
  --ink-3:      oklch(55% 0.02 60);
  --ink-4:      oklch(72% 0.015 60);
  --paper:      oklch(99% 0.006 80);
  --paper-2:    oklch(96% 0.008 75);
  --paper-3:    oklch(93% 0.010 70);
  --rule:       oklch(88% 0.010 70);
  --rule-2:     oklch(80% 0.012 65);

  /* Gold — the primary action color */
  --gold:       oklch(72% 0.165 68);
  --gold-deep:  oklch(58% 0.155 62);
  --gold-pale:  oklch(94% 0.05  78);
  --gold-text:  oklch(42% 0.12  62);

  /* Navy — anchor, text on gold */
  --navy:       oklch(22% 0.06  258);
  --navy-mid:   oklch(34% 0.07  258);

  /* Signal colours */
  --go:         oklch(52% 0.14  152);
  --go-pale:    oklch(94% 0.04  152);
  --go-text:    oklch(36% 0.10  152);
  --stop:       oklch(52% 0.17  25);

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Type */
  --ff-disp: 'Syne', system-ui, sans-serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;

  /* Motion — ease-out-quart */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-fast: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Reset (scoped) ──────────────────────────────────────────────────────── */
#wckc-v2-root *, #wckc-v2-root *::before, #wckc-v2-root *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
#wckc-v2-root {
  font-family: var(--ff-body);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#wckc-v2-root img { display: block; max-width: 100%; height: auto; }
#wckc-v2-root button { font-family: inherit; border: none; background: none; cursor: pointer; }
#wckc-v2-root details > summary { list-style: none; }
#wckc-v2-root details > summary::-webkit-details-marker { display: none; }

/* ── App shell ───────────────────────────────────────────────────────────── */
.wckc {
  background: var(--paper);
  width: 100%;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
#wckc-header {
  background: var(--navy);
  padding: 20px 22px 0;
  display: block;
  width: 100%;
}

.app-hd-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-eye {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
  opacity: .85;
}

.brand-name {
  font-family: var(--ff-disp);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: var(--paper);
  letter-spacing: -.025em;
  line-height: .95;
}

/* Reset button in header */
.reset-btn {
  font-size: 11px;
  font-weight: 600;
  color: oklch(70% 0.04 258);
  padding: 6px 12px;
  border: 1px solid oklch(35% 0.05 258);
  border-radius: var(--r-sm);
  background: transparent;
  transition: all .12s;
}
.reset-btn:hover {
  color: var(--paper);
  border-color: oklch(55% 0.05 258);
}

/* ── Step nav ────────────────────────────────────────────────────────────── */
.step-nav {
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.step-nav::-webkit-scrollbar { display: none; }

.step-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  color: oklch(55% 0.04 258);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  letter-spacing: .01em;
}
.step-btn:hover:not(:disabled) {
  color: oklch(80% 0.04 258);
}
.step-on {
  color: var(--paper);
  border-bottom-color: var(--gold);
  font-weight: 700;
}
.step-done { color: var(--go); }
.step-lock { opacity: .3; cursor: not-allowed; }

.step-ico {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: oklch(30% 0.04 258);
  color: oklch(55% 0.04 258);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.step-on   .step-ico { background: var(--gold); color: var(--navy); }
.step-done .step-ico { background: var(--go);   color: var(--paper); }

.step-arrow {
  font-size: 16px;
  color: oklch(35% 0.04 258);
  padding: 0 2px;
  flex-shrink: 0;
}
.step-arrow-done { color: var(--go); }

/* ── Body ────────────────────────────────────────────────────────────────── */
.wckc-body { padding: 24px 22px; }

/* ── Phase ───────────────────────────────────────────────────────────────── */
.phase { display: flex; flex-direction: column; gap: 20px; }

/* ── Progress strip ──────────────────────────────────────────────────────── */
.prog-wrap { display: flex; flex-direction: column; gap: 6px; }
.prog-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.prog-pct { font-weight: 700; color: var(--ink-2); }
.prog-track {
  height: 5px;
  background: var(--paper-3);
  border-radius: 999px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
  transition: width .5s var(--ease);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: all .12s var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

#wckc-v2-root .btn-gold {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-color: var(--gold) !important;
  font-weight: 800 !important;
}
#wckc-v2-root .btn-gold:hover { background: var(--gold-deep) !important; border-color: var(--gold-deep) !important; color: var(--paper) !important; }

.btn-outline {
  background: transparent;
  border-color: var(--rule-2);
  color: var(--ink-3);
}
.btn-outline:hover { border-color: var(--ink-3); color: var(--ink); }

.btn-ghost:hover { background: var(--paper-2); }

.btn-share { background: #1da1f2; color: oklch(99% 0.005 78); border-color: #1da1f2; }
.btn-share:hover { background: #1890de; }

.btn-sm  { padding: 7px 14px; font-size: 12px; }
.btn-lg  { padding: 14px 28px; font-size: 15px; border-radius: var(--r); }
.btn-dim { opacity: .5; }

/* Vote button — always visible, always tappable */
.btn-vote {
  display: block;
  width: 100%;
  padding: 11px 8px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  text-align: center;
  background: var(--navy);
  color: var(--paper);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  min-height: 40px;
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.duel-side:hover .btn-vote,
.duel-side:active .btn-vote {
  background: var(--gold);
  color: var(--navy);
}

/* ── Select phase top bar ────────────────────────────────────────────────── */
.top-bar {
  background: var(--gold-pale);
  border-radius: var(--r);
  padding: 14px 18px;
}
.top-bar-inner { display: flex; flex-direction: column; gap: 8px; }
.top-bar-txt { font-size: 14px; color: var(--gold-text); font-weight: 500; }
.top-bar-txt strong { color: var(--ink); font-weight: 800; }

/* ── Intro card ──────────────────────────────────────────────────────────── */
.intro-card {
  padding: 28px 24px;
  text-align: center;
}
.intro-icon { font-size: 40px; margin-bottom: 12px; }
.intro-title {
  font-family: var(--ff-disp);
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.intro-body {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 auto;
  text-align: left;
}

/* ── Group section ───────────────────────────────────────────────────────── */
.group-section { display: flex; flex-direction: column; gap: 10px; }
.group-hd { display: flex; align-items: baseline; gap: 10px; }
.group-lbl {
  font-family: var(--ff-disp);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.group-ct { font-size: 13px; color: var(--ink-3); }

/* ── Group pills ─────────────────────────────────────────────────────────── */
.gnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Group pills — scoped with ID to beat WP theme and button[data-group] specificity */
#wckc-v2-root .gpill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 11px;
  border-radius: var(--r-sm);
  font-family: var(--ff-disp);
  font-size: 14px;
  font-weight: 800;
  background: var(--paper-2);
  border: 1.5px solid var(--rule);
  color: var(--ink-3);
  cursor: pointer;
  transition: all .12s;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
#wckc-v2-root .gpill:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--paper-3);
}

/* Active — gold */
#wckc-v2-root .gpill-on {
  background: var(--gold) !important;
  border-color: var(--gold-deep) !important;
  color: var(--navy) !important;
  box-shadow: 0 2px 8px oklch(72% 0.165 68 / .3);
}

/* Complete — green */
#wckc-v2-root .gpill-done {
  background: var(--go-pale) !important;
  border-color: var(--go) !important;
  color: var(--go-text) !important;
}
#wckc-v2-root .gpill-done:hover {
  background: oklch(93% 0.035 148) !important;
}

/* Partial — amber */
#wckc-v2-root .gpill-partial {
  background: var(--gold-pale) !important;
  border-color: oklch(82% 0.06 78) !important;
  color: var(--gold-text) !important;
}
#wckc-v2-root .gpill-partial:hover {
  border-color: var(--gold) !important;
}

/* Legend */
.gnav-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.gnav-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 500;
}
.gnav-swatch {
  width: 12px; height: 12px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  flex-shrink: 0;
}
.gnav-swatch-done    { background: var(--go-pale);    border-color: var(--go); }
.gnav-swatch-partial { background: var(--gold-pale);   border-color: oklch(82% 0.06 78); }
.gnav-swatch-none    { background: var(--paper-2);     border-color: var(--rule); }


/* ── Selection grid ──────────────────────────────────────────────────────── */
.sel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 560px) { .sel-grid { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .sel-grid { grid-template-columns: repeat(4, 1fr); } }

/* Team card — no card wrapping, use background tint + shape */
.team-card:hover { border-color: var(--rule-2); }

.team-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.team-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.team-check { font-size: 11px; font-weight: 800; color: var(--go); }
.team-pick-hint { font-size: 11px; color: var(--ink-4); }

.kit-rows { display: flex; flex-direction: column; }
.kit-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0;
  padding: 0;
  cursor: default;
  border-bottom: 1px solid var(--rule);
  transition: background .1s;
  min-width: 0;
  overflow: hidden;
}
.kit-row:last-child { border-bottom: none; }
.kit-row:hover { background: var(--paper-2); }

/* Selected row — background tint, no side stripe */
.kit-row-sel {
  background: var(--gold-pale);
}
.kit-row-sel:hover { background: oklch(92% 0.07 78); }

.kit-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--r-xs);
  overflow: hidden;
  background: var(--paper-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kit-thumb-img { width: 100%; height: 100%; object-fit: contain; }
.kit-thumb-clickable { cursor: zoom-in; }
.kit-thumb-clickable:hover { opacity: .82; }

.kit-type {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kit-row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.kit-preview-btn:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--gold-text);
}

.kit-sel-btn:hover { border-color: var(--gold); color: var(--gold-text); }
.kit-sel-btn-on { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ── Footer nav ──────────────────────────────────────────────────────────── */
.sel-footer {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sel-footer-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.all-done-bar {
  background: var(--go-pale);
  border-radius: var(--r);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.all-done-txt { font-size: 14px; font-weight: 700; color: var(--go-text); }

/* ── Kit swatch (SVG fallback) ───────────────────────────────────────────── */
.kit-swatch { width: 100%; height: 100%; background: var(--p, oklch(60% 0.01 60)); position: relative; overflow: hidden; }
.ks-body { position: absolute; inset: 0; clip-path: polygon(14% 0,86% 0,100% 100%,0 100%); background: var(--p, oklch(60% 0.01 60)); }
.ks-collar { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30%; height: 20%; border-radius: 0 0 50% 50%; background: var(--s, var(--paper)); opacity: .9; }

/* ── Vote phase ──────────────────────────────────────────────────────────── */
.vote-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.vote-strip-l { display: flex; align-items: center; gap: 10px; }
.vote-group-badge {
  background: var(--navy);
  border-radius: var(--r-xs);
  padding: 4px 11px;
  font-family: var(--ff-disp);
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: .01em;
}
.vote-match-ct { font-size: 13px; font-weight: 700; color: var(--ink); }
.vote-overall { font-size: 12px; color: var(--ink-3); }

.vote-prompt {
  text-align: center;
  font-family: var(--ff-disp);
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ── Duel ────────────────────────────────────────────────────────────────── */
.duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
}

.duel-side {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 16px 12px !important;
  gap: 8px !important;
  background: var(--paper) !important;
  border: 2px solid var(--rule) !important;
  border-radius: var(--r-lg) !important;
  cursor: pointer !important;
  overflow: visible !important;
  transition: border-color .12s, background .12s !important;
  -webkit-tap-highlight-color: rgba(232,160,0,.12) !important;
}
.duel-side:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.duel-side:active { transform: scale(.98); }

.duel-nation {
  font-family: var(--ff-disp);
  font-size: clamp(13px, 3vw, 17px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.01em;
  width: 100%;
}
.duel-ktype {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
  width: 100%;
}
.duel-img {
  width: 100% !important;
  height: 240px !important;
  flex-shrink: 0 !important;
  border-radius: var(--r-sm) !important;
  background: var(--paper) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 8px 16px 0 !important;
  box-sizing: border-box !important;
}
.duel-kit-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center top !important;
  display: block !important;
}

.duel-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-disp);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-4);
  writing-mode: vertical-lr;
  letter-spacing: .1em;
  padding: 0;
  flex-shrink: 0;
  width: 24px;
}

@media (max-width: 380px) {
  .duel-img { height: 160px; padding: 8px 10px; }
  .duel-nation { font-size: 12px; }
  .btn-vote { font-size: 11px; padding: 9px 4px; }
}

/* ── Group jumper ────────────────────────────────────────────────────────── */
.group-jumper {
  background: transparent;
  border-top: 1px solid var(--rule);
}
.group-jumper-tog {
  padding: 10px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .12s;
  user-select: none;
}
.group-jumper-tog::before { content: '▸'; font-size: 9px; transition: transform .15s var(--ease); }
details[open] .group-jumper-tog::before { transform: rotate(90deg); }
.group-jumper-tog:hover { color: var(--ink); }
.group-jumper-inner { padding: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.group-jumper-note { font-size: 12px; color: var(--ink-3); }

/* ── Section label ───────────────────────────────────────────────────────── */
.section-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Group results ───────────────────────────────────────────────────────── */
.results-hd {
  padding: 20px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.results-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--go);
}
.results-title {
  font-family: var(--ff-disp);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.015em;
}
.results-sub { font-size: 13px; color: var(--ink-3); }

/* Standings */
.standings { display: flex; flex-direction: column; gap: 2px; }

.srow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--paper);
  transition: background .1s;
}
.srow:nth-child(odd) { background: var(--paper-2); }
.srow-q { background: var(--go-pale); }

.srow-rank {
  font-family: var(--ff-disp);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-4);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}
.srow-q .srow-rank { color: var(--go); }

.srow-img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--r-xs);
  background: var(--paper-3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.srow-kit-img { width: 100%; height: 100%; object-fit: contain; }
.srow-info { flex: 1; min-width: 0; }
.srow-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.srow-kit  { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.srow-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.srow-pts {
  font-family: var(--ff-disp);
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-text);
}
.srow-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.srow-badge-q { color: var(--go-text); background: var(--go-pale); }
.srow-badge-x { color: var(--ink-4); }

/* Match history */
.hist-details {
  border-top: 1px solid var(--rule);
}
.hist-tog {
  padding: 10px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: color .12s;
}
.hist-tog::before { content: '▸'; font-size: 9px; transition: transform .15s; }
details[open] .hist-tog::before { transform: rotate(90deg); }
.hist-tog:hover { color: var(--ink); }
.hist-list { padding: 0 0 14px; display: flex; flex-direction: column; gap: 5px; }
.hist-item {
  font-size: 12px;
  color: var(--ink-3);
  padding: 6px 10px;
  background: var(--paper-2);
  border-radius: var(--r-xs);
}

/* All-groups-done CTA */
.all-groups-done {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.agd-icon { font-size: 44px; }
.agd-title {
  font-family: var(--ff-disp);
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -.01em;
}
.agd-desc { font-size: 14px; color: oklch(70% 0.04 258); line-height: 1.6; max-width: 38ch; }

.results-nav {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.results-nav-info { font-size: 14px; color: var(--ink-3); }
.results-nav-info strong { color: var(--ink); font-weight: 700; }
.results-next-btn { align-self: flex-start; }

/* ── Summary phase ───────────────────────────────────────────────────────── */
.summary-hero {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
.summary-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: .85;
}
.summary-title {
  font-family: var(--ff-disp);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  color: var(--paper);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.summary-sub {
  font-size: 14px;
  color: oklch(72% 0.04 258);
  line-height: 1.5;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sstat {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--r);
  padding: 16px 14px;
  text-align: center;
}
.sstat-gold { background: var(--gold-pale); border-color: var(--gold); }
.sstat-n {
  font-family: var(--ff-disp);
  font-size: 38px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.sstat-gold .sstat-n { color: var(--gold-text); }
.sstat-l { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 4px; }
.sstat-s { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.seed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
}
.seed-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background .1s;
}
.seed-card:hover { background: var(--paper-2); }
.seed-top { background: var(--gold-pale); border-color: var(--gold); }
.seed-top:hover { background: oklch(92% 0.07 78); }
.seed-num {
  font-family: var(--ff-disp);
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-text);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.seed-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--r-xs);
  background: var(--paper-3);
  flex-shrink: 0;
}
.seed-info { flex: 1; min-width: 0; }
.seed-team { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seed-meta { font-size: 10px; color: var(--ink-3); margin-top: 1px; }

.summary-cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── Knockout phase ──────────────────────────────────────────────────────── */
.ko-hd { padding-bottom: 4px; }
.ko-round-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: block;
  margin-bottom: 4px;
}
.ko-title {
  font-family: var(--ff-disp);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.015em;
  margin-bottom: 4px;
}
.ko-sub { font-size: 13px; color: var(--ink-3); }

/* Advance CTA bar */
.ko-advance {
  background: var(--paper-2);
  border-radius: var(--r);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  min-height: 58px;
}
.ko-advance-rdy {
  background: var(--navy);
  padding: 10px 18px;
}
#wckc-v2-root .ko-advance-rdy .btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold-deep);
  width: 100%;
  justify-content: center;
  font-size: 15px;
  min-height: 48px;
}
.ko-waiting { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ko-advance__bar { height: 5px; background: var(--rule); border-radius: 999px; overflow: hidden; }
.ko-advance__fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width .3s var(--ease); }
.ko-waiting-txt { font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* Matchup grid — 2 per row on desktop, 1 per row on mobile
   Each card is one complete matchup: wide enough to show both kits clearly */
.ko-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .ko-grid { grid-template-columns: 1fr; } }
@media (min-width: 1100px) { .ko-grid { gap: 20px; } }

/* Matchup card — the whole card is one matchup, visually distinct */
.ko-card {
  background: var(--paper);
  /* Heavier border so each matchup reads as a contained unit */
  border: 2px solid var(--rule-2);
  border-radius: var(--r-lg);
  /* No overflow:hidden — it clips button text */
  overflow: visible;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 2px 8px oklch(18% 0.02 60 / .06);
}
.ko-card:hover {
  border-color: oklch(72% 0.015 60);
  box-shadow: 0 4px 16px oklch(18% 0.02 60 / .1);
}
/* Decided matchup — slightly receded, winner obvious */
.ko-card-done {
  border-color: var(--rule);
  box-shadow: none;
}

/* Card header — match number + seed info, clearly tied to card below */
.ko-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--navy);
  border-radius: calc(var(--r-lg) - 2px) calc(var(--r-lg) - 2px) 0 0;
}
.ko-card-num {
  font-family: var(--ff-disp);
  font-size: 12px;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: .02em;
}
.ko-card-seeds {
  font-size: 10px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .04em;
}

/* Two sides + VS divider */
.ko-sides {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  /* Clip only the rounded bottom corners */
  border-radius: 0 0 calc(var(--r-lg) - 2px) calc(var(--r-lg) - 2px);
  overflow: visible;
}

/* VS column — bold enough to read as a separator */
.ko-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-disp);
  font-size: 11px;
  font-weight: 800;
  color: var(--paper);
  background: var(--navy);
  writing-mode: vertical-lr;
  letter-spacing: .1em;
  /* No side borders — the background contrast is the separator */
}

/* Each side */
.ko-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 16px 14px 18px;
  cursor: pointer;
  transition: background .12s;
  position: relative;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
}
.ko-side:hover { background: var(--paper-2); }
/* Winner — warm gold tint */
.ko-win { background: var(--gold-pale); }
/* Loser — fade out */
.ko-lose { opacity: .28; }

/* Win checkmark badge */
.ko-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px oklch(72% 0.165 68 / .4);
}

/* Kit image — taller on desktop now that cards are wider */
.ko-side-img {
  width: 80px;
  height: 90px;
  border-radius: var(--r-xs);
  background: var(--paper-3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ko-kit-img { width: 100%; height: 100%; object-fit: contain; }

.ko-side-name {
  font-family: var(--ff-disp);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.ko-side-kit {
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Pick button — always visible, never clipped */
.ko-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--rule-2);
  color: var(--ink-3);
  background: transparent;
  transition: all .12s;
  white-space: nowrap;
  cursor: pointer;
  margin-top: 2px;
}
.ko-side:hover .ko-btn { border-color: var(--gold); color: var(--gold-text); background: var(--gold-pale); }
.ko-btn-on { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 800; }

/* KO history */
.ko-hist-wrap {
  border-top: 1px solid var(--rule);
}
.ko-hist-tog {
  padding: 10px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: color .12s;
}
.ko-hist-tog::before { content: '▸'; font-size: 9px; transition: transform .15s; }
details[open] .ko-hist-tog::before { transform: rotate(90deg); }
.ko-hist-tog:hover { color: var(--ink); }
.ko-hist-list { padding: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.ko-hist-r { display: flex; flex-direction: column; gap: 4px; }
.ko-hist-rname {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 2px;
}
.ko-hist-m { font-size: 12px; color: var(--ink-3); padding: 5px 10px; background: var(--paper-2); border-radius: var(--r-xs); }

/* ── Champion screen — single authoritative block ───────────────────────── */

.champion {
  position: relative;
  background: oklch(16% 0.045 258);
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 48px;
  animation: scene-in .4s ease both;
}
@keyframes scene-in { from { opacity:0; } to { opacity:1; } }

.champ-glow {
  position: absolute; top:-10%; left:50%;
  transform: translateX(-50%); width:90%; height:500px;
  background: radial-gradient(ellipse, oklch(72% 0.165 68 / .28) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 3.2s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { opacity:.6; transform:translateX(-50%) scale(1); }
  50%      { opacity:1;  transform:translateX(-50%) scale(1.08); }
}

.champ-spotlight {
  position: absolute; top:0; left:50%;
  transform: translateX(-50%); width:360px; height:100%;
  background: radial-gradient(ellipse 55% 45% at 50% 20%, oklch(90% 0.08 80 / .18) 0%, transparent 100%);
  pointer-events: none; z-index:0;
}

.champ-confetti {
  position: absolute; inset:0;
  pointer-events: none; overflow:hidden; z-index:1;
}
.confetti {
  position: absolute; top:-10%;
  left: var(--l,50%);
  width: var(--sz,8px); height: calc(var(--sz,8px) * 1.6);
  border-radius: 2px; opacity: 0;
  animation: confetti-fall 5.5s linear infinite;
  animation-delay: var(--d,0s);
}
.confetti:nth-child(5n+1) { background: oklch(72% 0.165 68); }
.confetti:nth-child(5n+2) { background: oklch(68% 0.16 250); border-radius:50%; }
.confetti:nth-child(5n+3) { background: oklch(70% 0.18 15);  transform:rotate(28deg); }
.confetti:nth-child(5n+4) { background: oklch(78% 0.14 152); }
.confetti:nth-child(5n+5) { background: oklch(75% 0.16 320); border-radius:50%; }
@keyframes confetti-fall {
  0%   { transform:translate(0,0) rotate(0deg) scale(1);    opacity:0; }
  6%   { opacity:1; }
  92%  { opacity:.8; }
  100% { transform:translate(24px,110vh) rotate(380deg) scale(.8); opacity:0; }
}

.champ-body {
  position: relative; z-index:2;
  display: flex; flex-direction: column;
  align-items: center; gap:10px;
  width: 100%; max-width: 440px;
  margin: 0 auto; text-align: center;
}

/* Beat 1 — eyebrow fades in */
.champ-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  animation: fade-up .5s .2s ease both;
  opacity: 1;
}

/* Beat 2 — CHAMPION stamps in */
.champ-stamp {
  font-family: var(--ff-disp);
  font-size: clamp(44px,12vw,72px); font-weight: 800;
  letter-spacing: -.02em; line-height: .9;
  color: var(--gold);
  animation: stamp-in .55s .5s cubic-bezier(0.22,1,0.36,1) both;
  opacity: 1;
}
@keyframes stamp-in {
  0%   { opacity:0; transform:scaleX(.3) scaleY(1.4); }
  60%  { opacity:1; transform:scaleX(1.06) scaleY(.96); }
  100% { opacity:1; transform:none; }
}

/* Beat 3 — shirt drops in */
.champ-stage {
  position: relative; width:280px; height:300px;
  margin: 8px auto 0; flex-shrink:0;
}
.champ-shadow {
  position: absolute; bottom:-8px; left:50%;
  transform: translateX(-50%); width:60%; height:18px;
  background: radial-gradient(ellipse, rgba(0,0,0,.55) 0%, transparent 70%);
  border-radius: 50%;
  animation: shadow-grow .6s .85s ease both;
  opacity: 1;
}
@keyframes shadow-grow {
  from { opacity:0; transform:translateX(-50%) scaleX(.4); }
  to   { opacity:1; transform:translateX(-50%) scaleX(1); }
}
.champ-shirt {
  position: absolute; top:0; left:50%;
  transform: translateX(-50%);
  width:280px; height:280px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.65)) drop-shadow(0 4px 10px rgba(0,0,0,.45));
  animation:
    shirt-drop .65s .7s cubic-bezier(0.22,1,0.36,1) both,
    shirt-rock  6s  1.5s ease-in-out infinite;
  opacity: 1;
}
@keyframes shirt-drop {
  0%   { opacity:0; transform:translateX(-50%) translateY(-90px) scale(.9); }
  65%  { opacity:1; transform:translateX(-50%) translateY(8px) scale(1.03); }
  100% { opacity:1; transform:translateX(-50%) translateY(0) scale(1); }
}

/* Beat 4 — name slams in */
.champ-name {
  font-family: var(--ff-disp);
  font-size: clamp(28px,7vw,48px); font-weight: 800;
  letter-spacing: -.025em; line-height:1;
  color: oklch(97% 0.01 80);
  animation: name-slam .5s 1.3s cubic-bezier(0.22,1,0.36,1) both;
  opacity: 1;
}
@keyframes name-slam {
  0%   { opacity:0; transform:translateY(20px) scale(.92); }
  65%  { opacity:1; transform:translateY(-3px) scale(1.02); }
  100% { opacity:1; transform:none; }
}

/* Beat 4b — kit label */
.champ-kit-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
  animation: fade-up .4s 1.55s ease both;
  opacity: 1;
}

/* Beat 5 — copy */
.champ-copy {
  font-size: 14px; color: oklch(58% 0.04 258);
  line-height: 1.65; max-width: 34ch;
  animation: fade-up .4s 1.8s ease both;
  opacity: 1;
}

/* Beat 6 — buttons */
.champ-btns {
  display: flex; gap:10px;
  justify-content: center; flex-wrap: wrap;
  margin-top: 6px;
  animation: fade-up .5s 2.1s ease both;
  opacity: 1;
}
.champ-play-btn {
  color: oklch(55% 0.04 258);
  border-color: oklch(35% 0.05 258);
}
.champ-play-btn:hover {
  color: oklch(80% 0.04 258);
  border-color: oklch(55% 0.05 258);
}

/* Shared keyframe */
@keyframes fade-up {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:none; }
}

/* Mobile */
@media (max-width: 480px) {
  .champion { padding:32px 16px 40px; min-height:520px; }
  .champ-stage { width:240px; height:256px; }
  .champ-shirt { width:240px; height:240px; }
  .champ-stamp { font-size:clamp(38px,11vw,56px); }
}

/* Suppress all old champion classes */
.champ-img,
.champ-composite,
.champ-composite-kit,
.champ-composite-trophy { display: none; }

/* ── Kit row centre + selected badge (restored) ─────────────────────────── */
.kit-row-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  cursor: zoom-in;
  -webkit-tap-highlight-color: rgba(0,0,0,.06);
}
.kit-row-centre:hover .kit-thumb { opacity: .85; }
.kit-row-centre .kit-thumb {
  width: 56px; height: 56px;
  border-radius: var(--r-xs);
  overflow: hidden;
  background: var(--paper-3);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .12s;
}
.kit-row-centre .kit-type {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); text-align: center;
  flex: none;
}

.kit-selected-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  margin: 8px 10px 8px 0;
  border-radius: var(--r-xs);
  background: var(--go-pale);
  border: 1.5px solid var(--go);
  color: var(--go-text);
  font-family: var(--ff-body);
  font-size: 11px; font-weight: 800;
  white-space: nowrap; flex-shrink: 0;
}

/* Kit sel btn — gold CTA */
.kit-sel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  margin: 8px 10px 8px 0;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  font-family: var(--ff-body);
  font-size: 12px; font-weight: 800;
  cursor: pointer; white-space: nowrap;
  flex-shrink: 0; transition: all .12s;
  min-width: 0;
}
.kit-sel-btn:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--paper);
}

/* Preview btn — eye icon square */
.kit-preview-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  padding: 0; margin: 0 0 0 10px;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--rule-2);
  background: var(--paper-2);
  color: var(--ink-2);
  cursor: pointer; flex-shrink: 0;
  transition: all .12s;
  -webkit-tap-highlight-color: transparent;
}
.kit-preview-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}
.kit-preview-btn svg { display: block; pointer-events: none; }

@media (min-width: 700px) {
  .kit-row-centre .kit-thumb { width: 60px; height: 60px; }
}
@media (min-width: 900px) {
  .kit-row-centre .kit-thumb { width: 68px; height: 68px; }
}
@media (min-width: 900px) {
  .sel-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
.team-card { overflow: hidden; min-width: 0; }

/* ── Reset menu (restored) ───────────────────────────────────────────────── */
.rm-overlay {
  position: fixed; inset: 0;
  background: oklch(10% 0.02 258 / .65);
  z-index: 9999998;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.rm-overlay.rm-open { opacity: 1; }
.rm-panel {
  background: var(--paper);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%; max-width: 540px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  transform: translateY(100%);
  transition: transform .22s var(--ease);
  overflow: hidden;
}
.rm-open .rm-panel { transform: translateY(0); }
.rm-panel::before {
  content: ''; display: block;
  width: 36px; height: 4px;
  background: var(--rule-2); border-radius: 999px;
  margin: 10px auto 0;
}
.rm-hd { padding: 14px 20px 12px; border-bottom: 1px solid var(--rule); }
.rm-hd-title { font-family: var(--ff-disp); font-size: 16px; font-weight: 800; color: var(--ink); }
.rm-hd-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.rm-item {
  width: 100%; display: flex; align-items: center;
  gap: 13px; padding: 13px 20px;
  background: transparent; border: none;
  border-bottom: 1px solid var(--rule);
  cursor: pointer; text-align: left;
  transition: background .1s; -webkit-tap-highlight-color: transparent;
}
.rm-item:hover { background: var(--paper-2); }
.rm-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.rm-amber { background: oklch(94% 0.05 78); }
.rm-blue  { background: oklch(94% 0.03 258); }
.rm-red   { background: oklch(96% 0.02 25); }
.rm-txt { flex: 1; min-width: 0; }
.rm-item-title { font-size: 14px; font-weight: 700; color: var(--ink); font-style: normal; }
.rm-danger { color: var(--stop); }
.rm-item-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; font-style: normal; }
.rm-arrow { font-size: 20px; color: var(--ink-4); flex-shrink: 0; }
.rm-cancel {
  width: 100%; padding: 14px;
  background: var(--paper-2); border: none;
  border-top: 1px solid var(--rule);
  font-family: var(--ff-body); font-size: 14px; font-weight: 700;
  color: var(--ink-3); cursor: pointer;
  transition: background .1s;
}
.rm-cancel:hover { background: var(--paper-3); color: var(--ink); }

/* ── Welcome modal (restored) ────────────────────────────────────────────── */
.welcome-overlay {
  position: fixed; inset: 0;
  background: oklch(10% 0.02 258 / .78);
  z-index: 9999999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity .22s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.welcome-overlay.welcome-open { opacity: 1; }
.welcome-modal {
  background: var(--paper); border-radius: var(--r-xl);
  overflow: hidden; max-width: 400px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 32px 80px oklch(10% 0.02 258 / .45);
  transform: translateY(16px) scale(.98); transition: transform .24s var(--ease);
}
.welcome-open .welcome-modal { transform: none; }
.welcome-hdr { background: var(--navy); padding: 24px 22px 20px; text-align: center; }
.welcome-trophy { font-size: 38px; margin-bottom: 10px; line-height: 1; }
.welcome-title {
  font-family: var(--ff-disp); font-size: clamp(17px,4vw,21px);
  font-weight: 800; color: var(--paper); letter-spacing: -.015em;
  line-height: 1.2; margin-bottom: 6px;
}
.welcome-sub { font-size: 12px; color: oklch(65% 0.04 258); letter-spacing: .04em; }
.welcome-steps { padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--rule); }
.welcome-step { display: flex; align-items: flex-start; gap: 12px; }
.welcome-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.welcome-step-txt { display: flex; flex-direction: column; gap: 2px; }
.welcome-step-txt strong { font-size: 14px; font-weight: 700; color: var(--ink); display: block; }
.welcome-step-txt span { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.welcome-ctas { padding: 16px 20px 12px; display: flex; flex-direction: column; gap: 8px; }
.welcome-btn-go { width: 100%; justify-content: center; font-size: 15px; }
.welcome-btn-demo { width: 100%; justify-content: center; font-size: 13px; gap: 7px; display: inline-flex; align-items: center; }
.welcome-skip { width: 100%; text-align: center; font-size: 12px; color: var(--ink-4); padding: 6px; background: transparent; border: none; cursor: pointer; margin-bottom: 4px; transition: color .12s; }
.welcome-skip:hover { color: var(--ink-2); }

/* ── Preview modal (restored) ────────────────────────────────────────────── */
.preview-overlay {
  position: fixed; inset: 0;
  background: oklch(10% 0.02 258 / .82);
  z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity .18s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.preview-overlay.preview-open { opacity: 1; }
.preview-modal {
  background: var(--paper); border-radius: var(--r-xl);
  padding: 22px 20px 20px; max-width: 420px;
  width: calc(100% - 32px); max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 32px 80px oklch(10% 0.02 258 / .4);
  transform: translateY(14px); transition: transform .22s var(--ease);
}
.preview-open .preview-modal { transform: none; }
.preview-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper-2); border: none;
  color: var(--ink-3); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .12s;
}
.preview-close:hover { background: var(--paper-3); }
.preview-content { display: flex; flex-direction: column; gap: 14px; }
.preview-hdr { margin-bottom: 4px; padding-right: 40px; }
.preview-name { font-family: var(--ff-disp); font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.preview-type { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; }
.preview-tabs { display: flex; gap: 6px; }
.preview-tab { flex: 1; padding: 7px 10px; border-radius: var(--r-xs); font-family: var(--ff-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--paper-2); border: 1.5px solid var(--rule); color: var(--ink-3); cursor: pointer; transition: all .12s; }
.preview-tab:hover { border-color: var(--gold); color: var(--gold-text); }
.preview-tab-on { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.preview-img-wrap { width: 100%; aspect-ratio: 1; border-radius: var(--r); background: var(--paper-3); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.preview-img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.preview-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.preview-nav-btn { font-family: var(--ff-body); font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: var(--r-xs); border: 1.5px solid var(--rule-2); background: transparent; color: var(--ink-2); cursor: pointer; transition: all .12s; flex: 1; text-align: center; }
.preview-nav-btn:hover:not(.preview-nav-dim) { border-color: var(--navy); color: var(--navy); background: var(--paper-2); }
.preview-nav-dim { opacity: .3; cursor: default; }
.preview-confirmed { display: flex; flex-direction: column; gap: 10px; }
.preview-confirmed-badge { text-align: center; font-size: 13px; font-weight: 800; color: var(--go-text); background: var(--go-pale); border: 1.5px solid var(--go); border-radius: var(--r-sm); padding: 10px; }
.preview-sel-btn { width: 100%; justify-content: center; min-height: 44px; }

/* ── Champion screen animation fallback ─────────────────────────────────── */
/* If WP theme suppresses animations, all elements remain visible */
#wckc-v2-root .champ-eyebrow,
#wckc-v2-root .champ-stamp,
#wckc-v2-root .champ-shirt,
#wckc-v2-root .champ-name,
#wckc-v2-root .champ-kit-label,
#wckc-v2-root .champ-copy,
#wckc-v2-root .champ-btns,
#wckc-v2-root .champ-shadow {
  opacity: 1;
}

/* ── Demo completed badge in welcome modal ───────────────────────────────── */
.welcome-demo-done {
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--go-pale);
  border: 1.5px solid var(--go);
  color: var(--go-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ── 7-fix pass CSS ─────────────────────────────────────────────────────── */

/* Fix 1: Preview modal back button — full width, always at bottom */
.preview-back-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--paper-2);
  border: none;
  border-top: 1px solid var(--rule);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  text-align: center;
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}
.preview-back-btn:hover { background: var(--paper-3); color: var(--ink); }

/* Fix 2: Select phase back button */
.sel-back-btn {
  margin: 8px 0 0;
  align-self: flex-start;
}

/* Fix 5: Summary CTA back link */
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 12px;
  transition: color .12s;
}
.btn-ghost:hover { color: var(--ink); }

/* ── Champion screen button visibility fix ───────────────────────────────── */
/* Remove animation from btns entirely — opacity:1 is the base, no fade needed */
#wckc-v2-root .champ-btns {
  animation: none;
  opacity: 1;
  transform: none;
}

/* "Continue to the tournament" — gold, full width, clearly a button */
#wckc-v2-root .champ-btns .btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold-deep);
  opacity: 1;
  flex: 1 1 100%;          /* full row */
  justify-content: center;
  min-height: 52px;
  font-size: 16px;
}
#wckc-v2-root .champ-btns .btn-gold:hover {
  background: var(--gold-deep);
  color: var(--paper);
}

/* Share + reset row beneath */
#wckc-v2-root .champ-btns .btn-share,
#wckc-v2-root .champ-btns .champ-play-btn {
  opacity: 1;
  animation: none;
}

/* ── Fix pass: team cards, kit rows, share ────────────────────────────────── */

/* Fix 7: Clearer team card borders */
#wckc-v2-root .team-card {
  border: 2px solid var(--rule-2) !important;
  box-shadow: 0 1px 4px oklch(18% 0.02 60 / .06) !important;
}
#wckc-v2-root .team-card:hover {
  border-color: oklch(76% 0.02 78) !important;
}

/* Fix 7: Larger, clearer eye icon button */
#wckc-v2-root .kit-preview-btn {
  width: 44px !important;
  height: 44px !important;
  margin: 0 0 0 8px !important;
  background: var(--paper-3) !important;
  border: 2px solid var(--rule-2) !important;
  color: var(--ink-2) !important;
  border-radius: var(--r-sm) !important;
}
#wckc-v2-root .kit-preview-btn:hover {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: var(--paper) !important;
}
#wckc-v2-root .kit-preview-btn svg {
  width: 20px !important;
  height: 20px !important;
}

/* Fix 7: Larger, clearer Select button */
#wckc-v2-root .kit-sel-btn {
  padding: 8px 14px !important;
  margin: 8px 8px 8px 0 !important;
  font-size: 12px !important;
  height: 44px !important;
  background: var(--gold) !important;
  border-color: var(--gold-deep) !important;
  color: var(--navy) !important;
  border-width: 2px !important;
}
#wckc-v2-root .kit-sel-btn:hover {
  background: var(--gold-deep) !important;
  color: var(--paper) !important;
}

/* Fix 7: Selected badge larger */
#wckc-v2-root .kit-selected-badge {
  height: 44px !important;
  padding: 8px 10px !important;
  margin: 8px 8px 8px 0 !important;
  font-size: 12px !important;
}

/* Fix 7: Kit row centre images taller */
#wckc-v2-root .kit-row-centre .kit-thumb {
  width: 64px !important;
  height: 64px !important;
}

/* Fix 7: Separate eye icon and select button visually */
#wckc-v2-root .kit-row {
  gap: 0 !important;
  min-height: 76px !important;
}

/* Share buttons */
.champ-share-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.champ-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .12s;
  text-decoration: none;
}
.champ-share-x {
  background: oklch(18% 0.01 258);
  color: oklch(97% 0.005 78);
  border-color: oklch(30% 0.02 258);
}
.champ-share-x:hover { background: oklch(25% 0.02 258); }
.champ-share-bsky {
  background: oklch(52% 0.18 252);
  color: oklch(99% 0.005 78);
  border-color: oklch(45% 0.16 252);
}
.champ-share-bsky:hover { background: oklch(46% 0.18 252); }
.champ-share-ig {
  background: linear-gradient(135deg, oklch(60% 0.22 30), oklch(55% 0.22 340), oklch(55% 0.18 270));
  color: oklch(99% 0.005 78);
  border-color: transparent;
}
.champ-share-ig:hover { opacity: .88; }
.champ-share-dl {
  background: transparent;
  color: var(--ink-3);
  border-color: var(--rule-2);
  font-size: 13px;
}
.champ-share-dl:hover { border-color: var(--navy); color: var(--navy); }

/* ── Preview modal bottom nav — two buttons side by side ─────────────────── */
.preview-bottom-nav {
  display: flex;
  border-top: 1px solid var(--rule);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
}
.preview-back-btn {
  flex: 1;
  padding: 14px 12px;
  background: var(--paper-2);
  border: none;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  text-align: center;
  transition: background .12s;
}
.preview-back-btn:hover { background: var(--paper-3); color: var(--ink); }
.preview-back-left { border-right: 1px solid var(--rule); text-align: left; padding-left: 16px; }
.preview-back-right {
  background: var(--navy);
  color: var(--paper);
  text-align: right;
  padding-right: 16px;
  font-weight: 700;
}
.preview-back-right:hover { background: var(--navy-mid); color: var(--paper); }

/* ── Hide Enfold post-nav arrows that navigate away from Kit Cup ─────────── */
.avia-post-nav,
.avia-post-prev,
.avia-post-next,
a.avia-post-prev,
a.avia-post-next {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── Save-state reassurance note ────────────────────────────────────────── */
.save-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  margin: 0 0 14px;
  background: oklch(97% 0.012 145);
  border: 1px solid oklch(80% 0.08 145);
  border-radius: 8px;
  font-size: 12.5px;
  color: oklch(38% 0.1 145);
  line-height: 1.4;
}
.save-note-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.save-note-txt {
  font-weight: 500;
}
/* Inline variant in group voting — slightly more muted */
.save-note-inline {
  background: oklch(98% 0.006 220);
  border-color: oklch(88% 0.03 220);
  color: oklch(50% 0.06 220);
  margin: -4px 0 12px;
}
