/* ============================================================
   Tuani's Mundial 2026 — customer SPA
   Aesthetic: premium sportsbook. Dark navy field, sharp amber +
   cyan accents, characterful typography (Anton display + Plus
   Jakarta body). Mobile-first portrait. The face-off card is
   the visual centerpiece.
   ============================================================ */

:root {
  /* Spec tokens (do not adjust) */
  --bg-primary: #0F1E32;
  --bg-card: rgba(255,255,255,0.06);
  --bg-card-elevated: rgba(255,255,255,0.04);
  --text-primary: #FFFFFF;
  --text-secondary: #9FB3CC;
  --text-tertiary: #6E839E;
  --accent-amber: #EF9F27;
  --accent-amber-light: #FAC775;
  --accent-cyan: #2DDED4;
  --status-win: #5BC785;
  --status-lose: #C8342E;
  --status-pending: #FAC775;
  --team-a-color: var(--accent-cyan);
  --team-b-color: #2853A8;
  --radius-card: 22px;
  --radius-pill: 14px;

  /* Type system — modular scale 1.25 (major third) */
  --font-display: 'Anton', 'Helvetica Neue', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --fs-xs: 0.75rem;    /* 12 */
  --fs-sm: 0.875rem;   /* 14 */
  --fs-base: 1rem;     /* 16 */
  --fs-md: 1.25rem;    /* 20 */
  --fs-lg: 1.5rem;     /* 24 */
  --fs-xl: 1.875rem;   /* 30 */
  --fs-2xl: 2.25rem;   /* 36 */
  --fs-3xl: 3rem;      /* 48 */
  --fs-hero: 3.75rem;  /* 60 */

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
  --sp-12: 3rem; --sp-16: 4rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-mid: 260ms;
  --t-slow: 420ms;

  /* Bottom-nav reserved height (so content can't be hidden behind it) */
  --nav-h: 76px;
}

/* UFC Freedom 250 — black/red theme for the /ufc/ entry (set via
   <html data-sport="ufc"> in /ufc/index.html). Recolors the shared, otherwise
   sport-agnostic play LP from the World-Cup navy/cyan to a UFC black/red look:
   red accents on the hero eyebrow, links, prize flourish + team-A, on a near-
   black field with a subtle red glow. Our own theme — no FOX broadcast art. */
html[data-sport="ufc"] {
  --bg-primary: #0E0E10;
  --accent-cyan: #E11D2A;
  --accent-amber: #E11D2A;
  --accent-amber-light: #ff5a64;
  --team-a-color: #E11D2A;
  --team-b-color: #4a4a4f;
}
html[data-sport="ufc"] body {
  background: radial-gradient(120% 80% at 50% -10%, #2a0d12 0%, #141416 45%, #0E0E10 100%);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.45;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  /* Atmospheric mesh — three radial pools on the navy field. */
  background-image:
    radial-gradient(60% 50% at 12% 8%,  rgba(45, 222, 212, 0.10), transparent 60%),
    radial-gradient(70% 55% at 92% 18%, rgba(239, 159, 39, 0.10), transparent 60%),
    radial-gradient(80% 60% at 50% 95%, rgba(40, 83, 168, 0.18), transparent 60%);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-cyan); text-decoration: none; }

/* ---------- App shell ---------- */
#app {
  max-width: 480px;
  margin: 0 auto;
  /* Bottom padding clears the fixed bottom-nav with breathing room — the
     prior calc(nav-h + sp-8) left the last list row hugging the nav. */
  padding: var(--sp-5) var(--sp-4) calc(var(--nav-h) + var(--sp-12));
  min-height: 100dvh;
}

.tab-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--sp-5);
}
.tab-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.tab-subtitle {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}

/* Tournament header */
.t-header {
  text-align: center;
  margin: var(--sp-4) 0 var(--sp-8);
  opacity: 0; transform: translateY(8px);
  animation: rise var(--t-slow) var(--ease-out) forwards;
}
.t-header .pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(45,222,212,0.12);
  color: var(--accent-cyan);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.t-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

/* ---------- Face-off card (THE centerpiece) ---------- */
.face-off {
  position: relative;
  margin-bottom: var(--sp-5);
  padding: var(--sp-5) 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-card);
  box-shadow:
    0 30px 60px -30px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  opacity: 0; transform: translateY(14px);
  animation: rise var(--t-slow) var(--ease-out) forwards;
}
.face-off .meta {
  position: relative; z-index: 2;
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
  padding-bottom: var(--sp-3);
}
.face-off .row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}
.face-off .team {
  position: relative;
  padding: var(--sp-6) var(--sp-3) var(--sp-5);
  text-align: center;
  border-radius: 18px;
  margin: 0 var(--sp-2);
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out),
              opacity var(--t-mid) var(--ease-out);
  /* team color → CSS var on .team via inline style */
  --team-c: var(--accent-cyan);
  background:
    radial-gradient(120% 100% at 50% 0%, color-mix(in oklab, var(--team-c) 22%, transparent), transparent 70%),
    rgba(255,255,255,0.03);
  outline: 1px solid rgba(255,255,255,0.05);
}
.face-off .team .flag {
  font-size: 56px; line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.4));
  margin-bottom: var(--sp-3);
}
/* Club crest — colored circle with short code, used when there's no
   national flag (Champions League and similar club tournaments). */
.face-off .team .flag.club-crest {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  margin: 0 auto var(--sp-3);
  border-radius: 50%;
  background: var(--team-c);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
  font-weight: 800;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5));
}
/* Image crest — official club logo SVG (Champions League etc.).
   Sized to match the country-flag glyph footprint (~56px) so the
   face-off layout doesn't shift between WC and CL tournaments. */
.face-off .team .flag.flag-img {
  display: flex; align-items: center; justify-content: center;
  height: 64px;
  margin: 0 auto var(--sp-3);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5));
}
.face-off .team .flag.flag-img img {
  height: 100%; width: auto; display: block;
}

/* Lock badge + locked-card visual. The deck driver skips locked cards on
   mount/advance; this state shows when a card locks mid-view (transition
   detected by the countdown tick). */
.face-off[data-locked="true"] {
  opacity: 0.65;
}
.face-off .lock-badge {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  background: var(--status-lose);
  color: var(--text-primary);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 4;
}
.face-off[data-locked="true"] button.team {
  cursor: not-allowed;
  filter: grayscale(0.5);
}
.face-off .team .name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--text-primary);
}
.face-off .team .short {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: var(--team-c);
  margin-bottom: var(--sp-2);
  text-shadow: 0 0 24px color-mix(in oklab, var(--team-c) 60%, transparent);
}
.face-off .team .check {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--team-c);
  color: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: var(--fs-lg);
  opacity: 0; transform: scale(0.6);
  transition: opacity var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
  box-shadow: 0 6px 16px color-mix(in oklab, var(--team-c) 60%, transparent);
}
.face-off .team[data-picked="true"] {
  /* Moderately amplified picked-state — read stronger on phone without going
     cartoonish. Tunable values; Charles will judge on device. */
  transform: scale(1.03);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--team-c) 90%, transparent),
              0 24px 70px -10px color-mix(in oklab, var(--team-c) 80%, transparent),
              0 0 100px color-mix(in oklab, var(--team-c) 55%, transparent);
}
.face-off .team[data-picked="true"] .check {
  opacity: 1; transform: scale(1);
}
.face-off .team[data-dimmed="true"] {
  opacity: 0.35;
  filter: grayscale(0.4);
}

/* VS badge — absolutely positioned, sits between panels */
.face-off .vs {
  align-self: center;
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, #1A2A45, #0F1E32);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: 0.06em;
  color: var(--text-primary);
  box-shadow:
    0 0 0 2px rgba(45,222,212,0.6),
    0 0 24px rgba(45,222,212,0.4),
    inset 0 -8px 16px rgba(0,0,0,0.4);
  z-index: 3;
}
.face-off .kickoff {
  position: relative; z-index: 2;
  text-align: center;
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Cascade entrance: nth-child delay so cards stagger in */
.deck .face-off:nth-child(1) { animation-delay: 40ms; }
.deck .face-off:nth-child(2) { animation-delay: 100ms; }
.deck .face-off:nth-child(3) { animation-delay: 160ms; }
.deck .face-off:nth-child(4) { animation-delay: 220ms; }
.deck .face-off:nth-child(5) { animation-delay: 280ms; }
.deck .face-off:nth-child(6) { animation-delay: 340ms; }
.deck .face-off:nth-child(7) { animation-delay: 400ms; }
.deck .face-off:nth-child(n+8) { animation-delay: 460ms; }

/* ---------- Mis Picks tab ---------- */
.pick-row {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4); margin-bottom: var(--sp-3);
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.05);
  opacity: 0; transform: translateY(8px);
  animation: rise var(--t-mid) var(--ease-out) forwards;
}
.pick-row .band {
  flex: 0 0 6px; align-self: stretch;
  border-radius: 6px;
  background: var(--status-pending);
}
.pick-row[data-outcome="won"]  .band { background: var(--status-win); }
.pick-row[data-outcome="lost"] .band { background: var(--status-lose); }
.pick-row .body { flex: 1; }
.pick-row .match-label {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pick-row .you-picked {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}
.pick-row .pick-team {
  color: var(--accent-cyan);
  font-weight: 700;
}
.pick-row .status-tag {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(250,199,117,0.16);
  color: var(--status-pending);
}
.pick-row[data-outcome="won"]  .status-tag { background: rgba(91,199,133,0.16); color: var(--status-win); }
.pick-row[data-outcome="lost"] .status-tag { background: rgba(200,52,46,0.16); color: var(--status-lose); }

/* Stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.stat-strip .stat {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: var(--sp-3) var(--sp-2);
  text-align: center;
}
.stat .n {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: 0.04em;
  line-height: 1;
}
.stat .l {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}
.stat[data-key="won"] .n  { color: var(--status-win); }
.stat[data-key="lost"] .n { color: var(--status-lose); }
.stat[data-key="pending"] .n { color: var(--status-pending); }

/* ---------- Premios tab ---------- */
.coupon-hero {
  background:
    linear-gradient(180deg, var(--accent-amber-light) 0%, var(--accent-amber) 100%);
  color: var(--bg-primary);
  padding: var(--sp-6) var(--sp-5);
  border-radius: var(--radius-card);
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(239,159,39,0.5);
  overflow: hidden;
  margin-bottom: var(--sp-5);
  opacity: 0; transform: translateY(10px);
  animation: rise var(--t-slow) var(--ease-out) forwards;
}
.coupon-hero .badge {
  display: inline-block;
  background: rgba(15,30,50,0.22);
  color: var(--bg-primary);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: var(--sp-3);
}
.coupon-hero .hero-row {
  display: flex; align-items: center; gap: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.coupon-hero .emoji { font-size: 56px; line-height: 1; }
.coupon-hero .prize-label {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}
.coupon-hero .match-tag {
  font-size: var(--fs-sm);
  font-weight: 600;
  opacity: 0.7;
  margin-top: 6px;
}
.coupon-hero .qr-wrap {
  background: var(--text-primary);
  border-radius: 12px;
  padding: var(--sp-3);
  display: flex; justify-content: center;
  margin: var(--sp-4) auto;
  width: fit-content;
}
.coupon-hero .qr-wrap img { width: 180px; height: 180px; }
.coupon-hero .code {
  text-align: center;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: var(--fs-lg);
  letter-spacing: 0.24em;
  font-weight: 800;
  margin: var(--sp-2) 0;
}
.coupon-hero .countdown {
  text-align: center;
  font-size: var(--fs-sm);
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.85;
}
.coupon-secondary {
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-card);
  padding: var(--sp-4); margin-bottom: var(--sp-3);
  opacity: 0; transform: translateY(8px);
  animation: rise var(--t-mid) var(--ease-out) forwards;
}
.coupon-secondary .em { font-size: 32px; }
.coupon-secondary .lbl { font-weight: 700; }
.coupon-secondary .meta { color: var(--text-tertiary); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px; }
.coupon-secondary[data-state="used"]    { opacity: 0.55; }
.coupon-secondary[data-state="expired"] { opacity: 0.4; filter: grayscale(0.6); }
.coupon-secondary .state-tag {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: var(--sp-6) 0 var(--sp-3);
}

/* ---------- Bottom nav ---------- */
#bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--nav-h);
  background: rgba(15,30,50,0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-tab {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  color: var(--text-tertiary);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  transition: color var(--t-fast) var(--ease-out);
}
.nav-tab .icon { font-size: 22px; line-height: 1; }
.nav-tab[aria-current="page"] { color: var(--accent-cyan); }
.nav-tab[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px; border-radius: 3px;
  background: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(45,222,212,0.6);
}
.nav-tab .badge {
  position: absolute;
  top: 12px; right: calc(50% - 28px);
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-amber);
  color: var(--bg-primary);
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}

/* ---------- First-visit modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 16, 28, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 100;
  animation: fade-in var(--t-mid) var(--ease-out);
}
.modal {
  position: relative; /* anchor the .sheet-x close button */
  width: 100%; max-width: 480px;
  background: linear-gradient(180deg, #16263F 0%, #0F1E32 100%);
  border-top-left-radius: 28px; border-top-right-radius: 28px;
  padding: var(--sp-6) var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom));
  box-shadow: 0 -30px 80px rgba(0,0,0,0.5);
  animation: slide-up var(--t-slow) var(--ease-out);
}
/* Sheet close (X) — top-right, persists across the phone→OTP state swap. */
.sheet-x {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: var(--text-secondary, #93A4B8);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sheet-x:hover { background: rgba(255,255,255,0.12); color: var(--text-primary, #EEF3F8); }
.sheet-x:focus-visible { outline: 2px solid var(--tuanis-cyan, #32C1CC); outline-offset: 2px; }
/* CTA microcopy under the fixed dock button (mockup .micro). */
.cta-dock .micro {
  font-size: 11.5px; line-height: 1.45; text-align: center;
  color: var(--text-secondary, #93A4B8); margin-top: 10px;
}
/* Sheet sub-note under the WhatsApp button (mockup .wa-note). */
.wa-note {
  font-size: 11.5px; line-height: 1.4; text-align: center;
  color: var(--text-secondary, #93A4B8); margin-top: 12px;
}
/* WhatsApp action button — green + WA icon so it's obvious the code arrives via
   WhatsApp (mockup .wa-btn). Used for "Recibir mi código" + the OTP "Confirmar". */
.wa-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: #04210f; border: 0; border-radius: 12px;
  padding: 15px; font-family: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
}
.wa-btn i { font-size: 20px; line-height: 1; }
.wa-btn:hover { background: #20bd5a; }
.wa-btn:active { transform: translateY(1px); }
.wa-btn:focus-visible { outline: 3px solid var(--tuanis-cyan, #32C1CC); outline-offset: 3px; }
.wa-btn:disabled { opacity: 0.6; cursor: default; }
/* ALWAYS a bottom sheet — every width. This is a QR→phone app; desktop is rare,
   and the bottom sheet reads fine there too (centered horizontally at max-width,
   anchored to the bottom). We deliberately dropped the desktop "centered dialog"
   variant (previously gated on min-height:640px, which mis-fired on tall phones
   and centered the modal on mobile — the reported bug). One pattern, no breakpoint. */
.modal .grip {
  width: 44px; height: 5px; border-radius: 5px;
  background: rgba(255,255,255,0.15);
  margin: 0 auto var(--sp-4);
}
.modal h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.modal .lead {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-6);
  padding: 0 var(--sp-2);
}
.lang-switch {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  margin-bottom: var(--sp-5);
}
.lang-switch button {
  padding: 10px;
  border-radius: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast);
}
.lang-switch button[data-active="true"] {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}
.field {
  margin-bottom: var(--sp-4);
}
.field label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  font-weight: 700;
}
.field input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-primary);
  font-size: var(--fs-md);
  letter-spacing: 0.02em;
}
.field input[type="tel"]:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(45,222,212,0.18);
}
.checkbox {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding: var(--sp-3);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  cursor: pointer;
  position: relative;
}
/* Visually hidden but keyboard- and AT-reachable. The previous display:none
   removed the input from the a11y tree and from Playwright's interaction layer.
   This pattern keeps it in the layout (so :checked + .box still resolves),
   while clipping it to a 1px box at the start of the label. */
.checkbox input {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.checkbox .box {
  flex: 0 0 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.checkbox input:checked + .box {
  background: var(--accent-cyan); border-color: var(--accent-cyan);
}
.checkbox input:checked + .box::after { content: "✓"; color: var(--bg-primary); font-weight: 800; font-size: 14px; }
.checkbox input:focus-visible + .box {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}
.checkbox .copy {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}
.btn-primary {
  display: block; width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: var(--accent-amber);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 10px 28px -8px rgba(239,159,39,0.6);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
}
.btn-primary:active { transform: scale(0.985); box-shadow: 0 6px 20px -6px rgba(239,159,39,0.5); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.form-error {
  font-size: var(--fs-xs);
  color: var(--status-lose);
  margin-top: -8px; margin-bottom: var(--sp-3);
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ---------- Misc ---------- */
.empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: var(--sp-12) var(--sp-4);
}
.empty .em { font-size: 48px; margin-bottom: var(--sp-3); }
.empty .msg { font-size: var(--fs-sm); letter-spacing: 0.05em; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--sp-3));
  background: rgba(15,30,50,0.95);
  border: 1px solid rgba(45,222,212,0.5);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  z-index: 80;
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
  animation: rise var(--t-mid) var(--ease-out);
}

/* ---------- Keyframes ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .face-off, .pick-row, .coupon-secondary, .t-header { opacity: 1; transform: none; }
}

/* ============================================================
   Landing page (first-visit). Sells the game in 3 seconds: what,
   what you get, what it costs. CTA reveals the capture sheet.
   ============================================================ */
.landing-wrap {
  position: relative;
  max-width: 480px; margin: 0 auto;
  padding: var(--sp-5) var(--sp-4) calc(var(--nav-h) + var(--sp-8));
  min-height: 100dvh;
}
.landing-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-6);
}
.landing-topbar .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 600;
  color: var(--text-secondary);
}
.landing-topbar .kicker .tuani-mark {
  height: 16px; width: auto;
  color: var(--text-primary);
}
.landing-topbar .kicker .dot-sep { color: var(--text-tertiary); opacity: 0.7; }
.landing-topbar .kicker .t-name {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.landing-hero {
  text-align: left;
  margin-bottom: var(--sp-8);
  opacity: 0; transform: translateY(14px);
  animation: rise var(--t-slow) var(--ease-out) 60ms forwards;
}
/* Hero row: headline left, white FIFA emblem right (World Cup landing only).
   Emblem scales with viewport + never collides — it's its own flex cell, the
   headline takes the rest, and the lang pill lives in the topbar above. */
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hero-row .stack { flex: 1 1 auto; min-width: 0; }
.hero-wcmark { flex: 0 0 auto; height: clamp(74px, 22vw, 132px); width: auto; display: block; }
/* Per-campaign hero POSTER (themed entry door, e.g. /ufc/) — the optimized
   image spans the column under the Tuani's logo, headline below as support. */
.hero-poster { display: block; width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); margin: 2px 0 14px; }
.hero-headline { font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.45rem, 7.5vw, 2.2rem); line-height: 1.05; letter-spacing: .4px;
  color: var(--text-primary); margin: 0; }
/* Focused event-landing eyebrow: iconic sport glyph + event name */
.landing-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.landing-eyebrow .ev-glyph { font-size: 22px; line-height: 1; }
.landing-eyebrow .ev-name { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; color: var(--accent-cyan, #25d8c4); text-transform: uppercase; }
/* Secondary bridge to the global /play/ hub */
.landing-allevents { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 0; padding: 4px; font-size: 11px; color: #8499ad; text-decoration: none; }
.landing-allevents .ti { font-size: 13px; }
.landing-allevents:active { opacity: 0.7; }
.landing-hero .stack {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 13vw, var(--fs-hero));
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.landing-hero .stack span { display: block; }
.landing-hero .stack span:nth-child(1) { color: var(--text-primary); }
.landing-hero .stack span:nth-child(2) { color: var(--accent-amber); }
.landing-hero .stack span:nth-child(3) {
  color: var(--accent-cyan);
  text-shadow: 0 0 32px rgba(45,222,212,0.5);
}
.landing-hero .sub {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.35;
  max-width: 32ch;
}
/* Single-match-event meta line, e.g. "Final · PSG vs Arsenal". Renders below
   the hero subtitle to anchor the page to the specific event without making
   the SPA itself match-aware in multi-match tournaments. */
.landing-hero .hero-meta {
  margin-top: var(--sp-3);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(45,222,212,0.10);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  font-weight: 600;
  border: 1px solid rgba(45,222,212,0.3);
}
.landing-hero .hero-meta strong {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 4px;
}

.prize-card {
  position: relative;
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5);
  background:
    linear-gradient(135deg, rgba(239,159,39,0.18), rgba(239,159,39,0.04) 60%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(239,159,39,0.35);
  border-radius: var(--radius-card);
  margin-bottom: var(--sp-8);
  box-shadow: 0 20px 50px -20px rgba(239,159,39,0.4);
  opacity: 0; transform: translateY(14px);
  animation: rise var(--t-slow) var(--ease-out) 160ms forwards;
}
.prize-card .emoji {
  font-size: 64px; line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}
.prize-card .body { flex: 1; }
.prize-card .badge {
  display: inline-block;
  font-size: 10px; letter-spacing: 0.22em;
  font-weight: 800; text-transform: uppercase;
  color: var(--accent-amber-light);
  margin-bottom: 4px;
}
.prize-card .tag {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.prize-card .for {
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.steps-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-4);
}
.steps {
  display: grid; gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.step {
  display: grid; grid-template-columns: 44px 1fr; align-items: start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  opacity: 0; transform: translateY(10px);
  animation: rise var(--t-mid) var(--ease-out) forwards;
}
.step:nth-child(1) { animation-delay: 240ms; }
.step:nth-child(2) { animation-delay: 320ms; }
.step:nth-child(3) { animation-delay: 400ms; }
.step .n {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(45,222,212,0.12);
  color: var(--accent-cyan);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(45,222,212,0.35);
}
.step .ttl {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.step .body {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}

.cta-block {
  opacity: 0; transform: translateY(10px);
  animation: rise var(--t-slow) var(--ease-out) 520ms forwards;
}
.cta-block .free {
  margin-top: var(--sp-3);
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}
/* Live countdown pill — final nudge above the CTA. Updates every 30s; the
   text content is set by landing.js's tick. Stays tight on purpose (not a
   big banner) — it's a confidence cue, not the hero. */
.landing-countdown {
  text-align: center;
  margin-bottom: var(--sp-3);
  display: inline-block;
  align-self: center;
  margin-left: auto; margin-right: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(239,159,39,0.10);
  border: 1px solid rgba(239,159,39,0.32);
  color: var(--accent-amber-light);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cta-block { display: flex; flex-direction: column; align-items: stretch; }
.cta-block .landing-countdown { align-self: center; }

/* ============================================================
   World-Cup landing redesign (2026). Two-line headline (white over
   gold) + official 2026 emblem + demoted cyan brand signature, a
   social-proof stat, and a CTA anchored to the bottom of the
   viewport. Scoped to .landing-hero-wc / .cta-dock so the /ufc/
   poster branch and other alt-entry landings are untouched.
   ============================================================ */

/* Two-line headline stack. White line over gold line; the old three-beat
   brand line is demoted to a small cyan signature beneath. */
.hero-row-wc { align-items: flex-start; }
.hero-headline-2 {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: 0.01em;
}
.hero-headline-2 span { display: block; }
.hero-headline-2 .hl-white {
  color: var(--text-primary);
  font-size: clamp(2.1rem, 10.5vw, 3.1rem);
}
.hero-headline-2 .hl-gold {
  color: var(--accent-amber);
  font-size: clamp(2.1rem, 10.5vw, 3.1rem);
  text-shadow: 0 0 30px rgba(239,159,39,0.35);
}
.hero-headline-2 .hl-sig {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--accent-cyan);
}

/* Official 2026 emblem — its own flex cell to the right of the headline.
   Scales with viewport, never collides. */
.hero-emblem {
  flex: 0 0 auto;
  height: clamp(96px, 27vw, 170px);
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
}

/* Social-proof stat under the subhead. ⚠️ The number is wired to a string
   key (socialProof) so it's trivially editable pending confirmation. */
.social-proof {
  margin-top: var(--sp-4);
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(45,222,212,0.10);
  border: 1px solid rgba(45,222,212,0.28);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* CTA dock — anchored to the bottom of the viewport, tappable from any scroll
   position. Safe-area aware (iOS home indicator). */
.cta-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(to top, var(--bg-primary) 60%, rgba(15,30,50,0));
}
.cta-dock .btn-primary { margin: 0; }
/* Reserve room so the fixed dock never overlaps the in-flow content (the free
   assurance copy, all-events link, etc.). Pads beyond the bottom-nav reserve. */
.landing-wrap:has(.cta-dock) {
  padding-bottom: calc(var(--nav-h) + var(--sp-12) + env(safe-area-inset-bottom, 0px));
}

/* ============================================================
   Reused review-funnel components — themed for WC.
   These class names MUST match what phone-input.js / lang-toggle.js
   emit. Visual treatment is WC (navy/cyan/amber, Anton/Jakarta),
   behavior comes from the imported JS unchanged.
   ============================================================ */
.form-group { margin-bottom: var(--sp-4); }
.form-label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.phone-group {
  display: flex; gap: var(--sp-2);
}
.phone-cc {
  flex: 0 0 96px;
  padding: 14px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-primary);
  font-size: var(--fs-base);
  font-weight: 600;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-tertiary) 50%),
                    linear-gradient(135deg, var(--text-tertiary) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.phone-cc:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 4px rgba(45,222,212,0.18); }
.phone-cc option { background: var(--bg-primary); color: var(--text-primary); }
.phone-number,
.input {
  flex: 1; min-width: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-primary);
  font-size: var(--fs-md);
  letter-spacing: 0.02em;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.phone-number:focus, .input:focus {
  outline: none; border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(45,222,212,0.18);
}
/* Error state — set on .phone-group when validation fails. Both the cc
   select and the number input pick it up so the whole group reads "wrong". */
.phone-group[data-error="true"] .phone-number,
.phone-group[data-error="true"] .phone-cc {
  border-color: var(--status-lose);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--status-lose) 22%, transparent);
}
.input-error {
  margin-top: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--status-lose);
}
.hidden { display: none !important; }

.lang-toggle {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.lang-toggle:hover, .lang-toggle:focus { color: var(--accent-cyan); border-color: rgba(45,222,212,0.4); outline: none; }

/* Brand-bar compact variant — two-letter "ES"/"EN" pill sized for the
   thin header that persists across Partidos / Mis Picks / Premios. */
.lang-toggle.compact {
  padding: 4px 8px;
  margin-left: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1;
  min-width: 32px;
}

/* ============================================================
   Partidos DECK — one match at a time, advance after pick.
   See partials/tab-partidos.js for the controller; this is purely
   the visual treatment for progress, card transitions, and summary.
   ============================================================ */
.deck-progress { margin-bottom: var(--sp-5); }
.deck-progress-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-2);
}
.deck-progress-label strong {
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: var(--fs-sm);
}
.deck-dots {
  display: flex; gap: 6px;
}
.deck-dots .dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.deck-dots .dot.done { background: var(--accent-cyan); }
.deck-dots .dot.current {
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(45,222,212,0.6);
}

.deck-stage { position: relative; }
.deck-card {
  transition: opacity var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.deck-card.leaving {
  opacity: 0;
  transform: translateX(-24px);
}

/* Summary — payoff after the last pick (Section 1.9 upsell will sit
   between the last pick and this screen once it's built). */
.deck-summary {
  text-align: center;
  opacity: 0; transform: translateY(14px);
  animation: rise var(--t-slow) var(--ease-out) forwards;
}
.deck-summary .kicker {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(45,222,212,0.12);
  color: var(--accent-cyan);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.summary-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--sp-3);
}
.summary-lead {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-6);
}
.summary-list {
  list-style: none;
  display: grid; gap: var(--sp-2);
  margin: 0 0 var(--sp-6);
  padding: 0;
  text-align: left;
}
.summary-row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
}
.summary-row .flag { font-size: 28px; line-height: 1; }
.summary-row .flag.flag-img { display: inline-flex; align-items: center; height: 36px; }
.summary-row .flag.flag-img img { height: 100%; width: auto; display: block; }
.summary-row .grow { flex: 1; }
.summary-row .picked-name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  line-height: 1;
}
.summary-row .match-lbl {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.summary-potential {
  padding: var(--sp-6) var(--sp-5);
  background:
    linear-gradient(135deg, rgba(239,159,39,0.22), rgba(239,159,39,0.06) 60%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(239,159,39,0.4);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px -20px rgba(239,159,39,0.5);
  text-align: center;
}
.summary-potential .if-line {
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--accent-amber-light);
  margin-bottom: var(--sp-2);
  font-weight: 600;
}
.summary-potential .shots-line {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}
.summary-potential .shot-n {
  color: var(--accent-amber);
  font-size: var(--fs-3xl);
  text-shadow: 0 0 24px rgba(239,159,39,0.5);
  margin: 0 4px;
}
.summary-cta { margin-top: var(--sp-6); }

/* ============================================================
   OTP entry — second step of the capture sheet. Large centered
   numeric input, resend link with cooldown, help line.
   ============================================================ */
.input.otp-input {
  text-align: center;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: var(--fs-2xl);
  letter-spacing: 0.5em;
  font-weight: 700;
  padding: var(--sp-4);
}
.resend-link {
  color: var(--accent-cyan);
  background: transparent;
  border: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  cursor: pointer;
}
.resend-link:disabled {
  color: var(--text-tertiary);
  cursor: not-allowed;
}
/* OTP resend + change-number actions (revealed together when the timer ends) */
.otp-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.otp-actions #otp-change {
  color: var(--text-secondary, #8499ad);
}

/* ============================================================
   Cross-campaign switcher (above Mis Picks / Premios). Chip row
   that lets the customer see picks/prizes in other tournaments
   they've played. Default chip = current tournament.
   ============================================================ */
.campaign-switcher {
  display: flex; gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.campaign-switcher .chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.campaign-switcher .chip[aria-current="true"] {
  background: rgba(45,222,212,0.14);
  color: var(--accent-cyan);
  border-color: rgba(45,222,212,0.4);
}
.campaign-switcher .chip:hover { color: var(--text-primary); }
.campaign-switcher .label {
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 700;
  flex-basis: 100%;
  margin-bottom: 4px;
}

/* ============================================================
   Win-rate callout (Mis Picks, above the stat strip).
   Only renders when the customer has ≥1 resolved pick — avoids
   showing 0% to fresh customers whose picks are all pending.
   ============================================================ */
.win-rate {
  display: flex; align-items: baseline; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background:
    linear-gradient(135deg, rgba(91,199,133,0.14), rgba(45,222,212,0.04) 60%),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(91,199,133,0.32);
  border-radius: 14px;
  margin-bottom: var(--sp-3);
}
.win-rate .pct {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  letter-spacing: 0.02em;
  color: var(--status-win);
  text-shadow: 0 0 24px rgba(91,199,133,0.35);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.win-rate .lbl {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.win-rate .lbl strong {
  color: var(--text-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.win-rate.empty {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}
.win-rate.empty .lbl {
  font-style: italic;
  color: var(--text-tertiary);
}


/* ============================================================
   DESIGN-REFERENCE-ALIGNED COMPONENTS (added 2026-05-25)
   Implements docs/design-references/mockup-* exactly. Where these
   classes overlap with older blocks above, the templates have been
   updated to use the new names — old classes left in place in case
   stragglers reference them, but are unreachable from the SPA.
   ============================================================ */

/* ---------- Brand bar (top of every gameplay tab) ---------- */
.brand-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-2);
}
.brand-bar .brand-left {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-primary);
  min-width: 0;
}
.brand-bar .brand-right {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.brand-bar .tuani-mark {
  height: 18px; width: auto;
  color: var(--text-primary);
}
.brand-bar .dot-sep {
  color: var(--text-tertiary);
  opacity: 0.7;
}
.brand-bar .brand-tournament {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.brand-dots {
  display: inline-flex; gap: 6px; align-items: center;
}
.brand-dots .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.brand-dots .dot.current { background: var(--accent-cyan); transform: scale(1.1); }
.brand-dots .dot.done { background: rgba(45,222,212,0.55); }
.meta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Partidos head (subline, headline, amber pill) ---------- */
.partidos-head {
  text-align: center;
  padding: var(--sp-3) 0 var(--sp-5);
}
.partidos-head .round-line {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.partidos-head .kickoff-line {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.partidos-head .partidos-headline {
  /* Sentence-case heavy sans — references explicitly NOT condensed display */
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--sp-4);
}
.partidos-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(239,159,39,0.10);
  border: 1px solid rgba(239,159,39,0.45);
  padding: 8px 14px;
  border-radius: 999px;
}
.partidos-pill .pill-icon { font-size: 14px; }
.partidos-pill .pill-time {
  font-variant-numeric: tabular-nums;
  color: var(--accent-amber-light);
  margin-left: 2px;
}

/* ---------- Face-off card (two colored team panels) ---------- */
.face-off {
  position: relative;
  border-radius: var(--radius-card);
  padding: 0;
  background: transparent;
  /* the deck-card wrap already provides spacing; we paint the panels edge-to-edge */
}
.face-off .row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  align-items: stretch;
  min-height: 280px;
}
.face-off .team {
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  transition: transform var(--t-mid) var(--ease-out), opacity var(--t-mid) var(--ease-out);
  isolation: isolate;
}
.face-off .team .panel {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-3) var(--sp-3);
  min-height: 280px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--team-c) 78%, white 10%) 0%,
                            color-mix(in srgb, var(--team-c) 55%, #0F1E32 30%) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 14px 30px -16px rgba(0,0,0,0.55);
  overflow: hidden;
}
.face-off .team[data-side="team_a"] .panel { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.face-off .team[data-side="team_b"] .panel { border-top-left-radius: 6px;  border-bottom-left-radius: 6px;  }
.face-off .team .flag {
  font-size: 78px;
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.40));
  margin-top: 6px;
}
.face-off .team .flag.club-crest {
  display: inline-flex; align-items: center; justify-content: center;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.18);
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: #fff;
}
.face-off .team .name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.30);
  text-align: center;
  word-break: break-word;
  /* Override the older .face-off .team .name rule that set uppercase */
  text-transform: none;
}
.face-off .team .cta {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-align: center;
  letter-spacing: 0.01em;
  transition: background var(--t-fast) var(--ease-out);
}
.face-off .team:hover:not([disabled]) .cta { background: rgba(0,0,0,0.32); }
.face-off .team .check {
  position: absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #0F1E32;
  font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out);
  z-index: 2;
}
.face-off .team[data-picked="true"] .check { opacity: 1; transform: scale(1); }
.face-off .team[data-picked="true"] .cta { background: rgba(45,222,212,0.92); color: #0F1E32; }
.face-off .team[data-picked="true"] .panel {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24),
              0 18px 36px -16px color-mix(in srgb, var(--team-c) 60%, transparent),
              0 0 0 2px var(--accent-cyan);
}
.face-off .team[data-dimmed="true"] { opacity: 0.55; transform: scale(0.985); }
.face-off .team[data-dimmed="true"] .cta { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }

.face-off .vs {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #0F1E32;
  border: 3px solid rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  color: #fff;
  z-index: 3;
  box-shadow: 0 6px 18px rgba(0,0,0,0.40);
}
.face-off .kickoff {
  text-align: center;
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.face-off .lock-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(200,52,46,0.85);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Reward strip (SI ACERTÁS · Trago gratis · válido 24h) ---------- */
.partidos-reward {
  margin-top: var(--sp-5);
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(239,159,39,0.10), rgba(239,159,39,0.04) 80%);
  border: 1px solid rgba(239,159,39,0.32);
  border-left: 4px solid var(--accent-amber);
  border-radius: 14px;
}
.partidos-reward .reward-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--accent-amber);
  margin-bottom: 4px;
}
.partidos-reward .reward-body {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-primary);
}
.partidos-reward .reward-body .emoji { font-size: 22px; }
.partidos-reward .reward-body .dot-sep { color: var(--text-tertiary); }
.partidos-reward .reward-body .valid { color: var(--text-secondary); font-weight: 500; font-size: var(--fs-sm); }

/* ---------- Tab intro (Mis Picks / Mis Premios sentence-case title) ---------- */
.tab-intro {
  padding: 0 var(--sp-1) var(--sp-4);
}
.tab-intro .tab-title {
  /* Sentence case heavy sans (NOT Anton) per reference */
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
  text-transform: none;
}
.tab-intro .tab-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.4;
  /* Older .tab-subtitle rule sets uppercase; reset here */
  text-transform: none;
  letter-spacing: normal;
}

/* ---------- Status filter row (primary, Mis Picks) ---------- */
.status-filter {
  display: flex; gap: 8px;
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}
.status-filter .chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.status-filter .chip:hover { color: var(--text-primary); }
.status-filter .chip[aria-current="true"] {
  background: rgba(45,222,212,0.16);
  border-color: rgba(45,222,212,0.55);
  color: var(--accent-cyan);
}

/* ---------- Campaign switcher (secondary, subtle) ---------- */
.campaign-switcher {
  display: flex; gap: 6px;
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}
.chip.subtle {
  padding: 5px 10px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-tertiary);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
}
.chip.subtle[aria-current="true"] {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.06);
}

/* ---------- Pick card (Mis Picks list row) ---------- */
.pick-card {
  position: relative;
  background: var(--bg-card-elevated);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 14px 14px 14px 18px;
  margin-bottom: 12px;
  animation: pick-card-in 360ms var(--ease-out) backwards;
}
@keyframes pick-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pick-card::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 4px;
  border-radius: 4px;
  background: var(--status-pending);
}
.pick-card[data-outcome="won"]::before  { background: var(--status-win); }
.pick-card[data-outcome="lost"]::before { background: var(--status-lose); }

.pick-card .row-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: 10px;
}
.pick-card .meta-line {
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick-card .status {
  font-size: 10px;
  letter-spacing: 0.10em;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.pick-card .status.pending { background: rgba(250,199,117,0.16); color: var(--accent-amber-light); border: 1px solid rgba(250,199,117,0.35); }
.pick-card .status.won     { background: rgba(91,199,133,0.18); color: var(--status-win);  border: 1px solid rgba(91,199,133,0.45); }
.pick-card .status.lost    { background: rgba(200,52,46,0.16);  color: #FF8A82;            border: 1px solid rgba(200,52,46,0.42); }

.pick-card .row-pills {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pick-card .team-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 700;
  min-width: 0;
}
.pick-card .team-pill .flag { font-size: 18px; line-height: 1; }
.pick-card .team-pill .flag.flag-img { display: inline-flex; align-items: center; height: 22px; }
.pick-card .team-pill .flag.flag-img img { height: 100%; width: auto; display: block; }
.pick-card .team-pill .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pick-card .team-pill .ck { color: var(--accent-cyan); font-weight: 900; }
.pick-card .team-pill.picked {
  background: rgba(45,222,212,0.14);
  border-color: rgba(45,222,212,0.55);
  color: var(--text-primary);
}
.pick-card .vs-sep {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  font-weight: 700;
}
.pick-card .score {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: var(--fs-base);
  color: var(--text-primary);
  padding: 2px 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
}

.pick-card .row-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}
.pick-card .row-bottom .muted { color: var(--text-tertiary); }
.pick-card .row-bottom .muted code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-xs);
  background: rgba(255,255,255,0.05);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text-secondary);
}
.pick-card .row-bottom .action {
  font-weight: 700;
  color: var(--accent-cyan);
  white-space: nowrap;
}
.pick-card .row-bottom .action.gold { color: var(--accent-amber); }

/* ---------- Coupon hero (Premios HERO card) ---------- */
.coupon-hero {
  position: relative;
  background: linear-gradient(170deg, #F5B440 0%, #E68F1A 80%, #D17A0C 100%);
  border-radius: 22px;
  padding: 20px 18px 18px;
  color: #0F1E32;
  box-shadow: 0 20px 50px -20px rgba(239,159,39,0.55), inset 0 1px 0 rgba(255,255,255,0.30);
  margin-bottom: var(--sp-4);
  overflow: hidden;
}
.coupon-hero::before, .coupon-hero::after {
  /* Ticket notches on left/right at the QR row mid-point */
  content: '';
  position: absolute;
  top: 53%;
  width: 18px; height: 18px;
  background: var(--bg-primary);
  border-radius: 50%;
  transform: translateY(-50%);
}
.coupon-hero::before { left: -9px; }
.coupon-hero::after  { right: -9px; }
.coupon-hero .badge {
  display: block;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: #0F1E32;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(15,30,50,0.18);
  padding: 8px 14px;
  border-radius: 999px;
  margin: 0 auto var(--sp-4);
  max-width: 280px;
}
.coupon-hero .hero-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: var(--sp-4);
}
.coupon-hero .hero-head .emoji { font-size: 38px; line-height: 1; flex-shrink: 0; }
.coupon-hero .hero-head .prize {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-xl);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #0F1E32;
}
.coupon-hero .hero-head .ganaste {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(15,30,50,0.72);
  margin-top: 2px;
}
.coupon-hero .qr-card {
  position: relative;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(15,30,50,0.12);
  border-radius: 16px;
  padding: 18px 16px 16px;
  margin-bottom: var(--sp-3);
  text-align: center;
}
.coupon-hero .qr {
  display: block;
  width: 180px; max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto var(--sp-3);
  background: #fff;
  border-radius: 10px;
}
.coupon-hero .qr.failed { display: none; }
.coupon-hero .qr-fallback {
  display: none;
  width: 180px; aspect-ratio: 1 / 1;
  margin: 0 auto var(--sp-3);
  background: rgba(255,255,255,0.98);
  border-radius: 10px;
  align-items: center; justify-content: center;
  flex-direction: column;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  color: #0F1E32;
  font-size: 22px;
  letter-spacing: 0.08em;
}
.coupon-hero .qr-fallback small {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(15,30,50,0.7);
  margin-top: 6px;
}
.coupon-hero .qr.failed + .qr-fallback { display: flex; }
.coupon-hero .code-line {
  padding-top: 6px;
  border-top: 1px dashed rgba(15,30,50,0.18);
  margin-top: 6px;
}
.coupon-hero .code-line .lbl {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: rgba(15,30,50,0.78);
}
.coupon-hero .code-line .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-2xl);
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #0F1E32;
  margin-top: 4px;
}
.coupon-hero .confirm {
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(15,30,50,0.85);
  margin-bottom: var(--sp-3);
}
.coupon-hero .vence {
  background: rgba(15,30,50,0.12);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}
.coupon-hero .vence .lbl {
  font-size: 10px;
  letter-spacing: 0.20em;
  font-weight: 800;
  color: rgba(15,30,50,0.55);
}
.coupon-hero .vence .when {
  font-size: var(--fs-base);
  font-weight: 800;
  color: #0F1E32;
  margin-top: 2px;
}
.coupon-hero .vence .rel {
  font-weight: 500;
  color: rgba(15,30,50,0.65);
}

/* ---------- Coupon secondary rows (other active + HISTORIAL) ---------- */
.coupon-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--bg-card-elevated);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.coupon-row .em { font-size: 22px; line-height: 1; }
.coupon-row .lbl {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-primary);
}
.coupon-row .meta {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}
.coupon-row .state-tag {
  font-size: 10px;
  letter-spacing: 0.10em;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.coupon-row .state-tag.active  { background: rgba(91,199,133,0.16); color: var(--status-win);  border: 1px solid rgba(91,199,133,0.40); }
.coupon-row .state-tag.used    { background: rgba(91,199,133,0.16); color: var(--status-win);  border: 1px solid rgba(91,199,133,0.40); }
.coupon-row .state-tag.expired { background: rgba(110,131,158,0.20); color: var(--text-tertiary); border: 1px solid rgba(110,131,158,0.40); }
.coupon-row[data-state="expired"] { opacity: 0.72; }

.historial-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: var(--sp-5) 0 var(--sp-3);
  padding: 0 var(--sp-1);
}

/* ---- A2: "En vivo · Apuestas cerradas" closed-match section (tab-partidos) ---- */
.live-section { margin: 0 0 18px; }
.live-head {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
  color: var(--accent-cyan, #2DDED4); margin: 6px 4px 12px;
  display: flex; align-items: center; gap: 6px;
}
.live-section #live-cards { display: grid; gap: 14px; }
.live-section .face-off { opacity: .92; }  /* closed cards read as inert */
.partidos-note { text-align: center; color: rgba(255,255,255,.6); padding: 18px 12px; font-size: .95rem; }

/* ---- A5: phone identity bar (functional; §3 visual polish deferred) ---- */
.identity-bar { padding: 10px 15px; border-bottom: 1px solid rgba(255,255,255,0.07); background: #102338; }
.identity-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.identity-text { min-width: 0; }
.identity-line { font-size: 14px; font-weight: 500; color: #eaf1f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity-sub { font-size: 10px; color: #8499ad; margin-top: 2px; }
.identity-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.identity-lang, .identity-logout { background: none; border: 0; font-size: 12px; cursor: pointer; padding: 4px; }
.identity-lang { color: #8499ad; }
.identity-logout { color: #ff8f8a; }
.name-nudge { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(37,216,196,0.4); background: rgba(37,216,196,0.06); color: #eaf1f8; cursor: pointer; text-align: left; }
.name-nudge .nudge-txt { display: flex; flex-direction: column; flex: 1; }
.name-nudge .nudge-txt strong { font-size: 13px; font-weight: 500; }
.name-nudge .nudge-txt span { font-size: 11px; color: #8499ad; }
.name-nudge .nudge-arrow { color: #25d8c4; font-size: 16px; }

/* ========================================================================
   Sport-agnostic match card (.moff) — DESIGN-SPEC-PLAY-UI.md §4.
   New, spec-§1 brand tokens are scoped here (additive — the legacy :root
   palette is left untouched to avoid re-tinting the rest of the SPA).
   Flat only: three surface levels (base→card→inset), no gradients/shadows.
   ======================================================================== */
:root {
  --moff-base:   #081421;
  --moff-card:   #102338;
  --moff-inset:  #16304a;
  --moff-deep:   #0d2030;
  --moff-hair:   rgba(255,255,255,0.07);
  --moff-teal:   #25d8c4;  /* interactive / open */
  --moff-gold:   #f6b03c;  /* reward / CTA */
  --moff-won:    #46e08a;
  --moff-live:   #ff8f8a;
  --moff-dot:    #ff5b56;
  --moff-text:   #eaf1f8;
  --moff-text2:  #8499ad;
  --moff-name:   #dce7f1;
}

.moff {
  background: var(--moff-card);
  border: 1px solid var(--moff-hair);
  border-radius: 16px;
  padding: 13px 14px;
  margin: 0 auto 10px;
  max-width: 440px;
  font-weight: 400;
}
.moff[data-state="open"] { border-color: rgba(37,216,196,0.4); }
.moff[data-state="closed"] { opacity: 0.92; }

/* Meta row */
.moff-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.moff-comp { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--moff-text2); font-weight: 500; }
.moff-sport { color: var(--moff-teal); }
.moff-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.moff-pill { padding: 4px 9px; border-radius: 8px; background: rgba(37,216,196,0.1); color: var(--moff-teal); }
.moff-pill .ti { font-size: 13px; }
.moff-live { color: var(--moff-live); letter-spacing: .06em; text-transform: uppercase; }
.moff-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moff-dot); display: inline-block; animation: moff-pulse 1.4s ease-in-out infinite; }
@keyframes moff-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Competitors row */
.moff-vsrow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 6px; }
.moff-team { display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0; padding: 6px 4px; cursor: pointer; color: var(--moff-name); border-radius: 12px; }
.moff[data-state="closed"] .moff-team { cursor: default; opacity: 0.78; }
.moff-crest { width: 44px; height: 44px; border-radius: 50%; background: var(--moff-inset); display: grid; place-items: center; overflow: hidden; border: 2px solid transparent; }
.moff-crest .flag { font-size: 24px; line-height: 1; }
.moff-crest .flag-img { width: 100%; height: 100%; display: grid; place-items: center; }
.moff-crest .flag-img img { width: 80%; height: 80%; object-fit: contain; }
.moff-crest .club-crest { font-size: 13px; font-weight: 500; letter-spacing: .03em; color: var(--moff-text2); }
.moff-name { font-size: 12px; font-weight: 500; text-align: center; line-height: 1.2; color: var(--moff-name); }
.moff-vs { align-self: center; font-size: 11px; font-weight: 500; color: var(--moff-text2); letter-spacing: .08em; padding: 0 2px; }

/* Picked treatments */
.moff[data-state="open"] .moff-team[data-picked="true"] .moff-crest { border-color: var(--moff-teal); }
.moff[data-state="open"] .moff-team[data-picked="true"] .moff-name { color: var(--moff-teal); }
.moff-team[data-dimmed="true"] { opacity: 0.55; }
/* Closed + picked → green ring on the crest (spec §4) */
.moff[data-state="closed"] .moff-team[data-picked="true"] { opacity: 1; }
.moff[data-state="closed"] .moff-team[data-picked="true"] .moff-crest { border-color: var(--moff-won); box-shadow: 0 0 0 1px #1d6b5e inset; }

/* Footer line */
.moff-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--moff-hair); font-size: 12px; color: var(--moff-text2); display: flex; align-items: center; gap: 6px; }
.moff-foot .ti { font-size: 15px; color: var(--moff-teal); }
.moff-foot strong { color: var(--moff-name); font-weight: 500; }
.moff[data-state="closed"] .moff-foot .ti-check { color: var(--moff-won); }

/* ========================================================================
   POLISH PASS (Bucket D — match docs/mockups/). Presentation only; no logic.
   ======================================================================== */
:root { --tuanis-teal-logo: #00a0c2; }

/* Base background → spec navy #081421 to match the mockups */
body { background: #081421; }

/* A — branded header: the REAL logo.svg waveform (CSS-cropped to the bars) +
   TUANI'S wordmark + hairline divider */
.play-brand { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 0 10px; border-bottom: .5px solid rgba(255,255,255,.07); }
.play-wave { height: 22px; width: 44px; object-fit: cover; object-position: center top; display: block; }
.play-wordmark { font-size: 14px; font-weight: 500; color: #eaf1f8; letter-spacing: .22em; }
/* Full lockup, large — landing page only (the whole logo.svg, uncropped). */
.play-brand-full { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 4px 0 8px; border-bottom: none; }
.play-logo-full { height: 72px; width: auto; display: block; }
.play-brand-full .play-tagline { font-size: 12px; color: var(--text-secondary, #8AA6BE); max-width: 210px; line-height: 1.25; }

/* B — identity bar sits on the base; brand header on top; icon logout; Tabler nudge */
.identity-bar { background: #081421; border-bottom: .5px solid rgba(255,255,255,.07); }
.identity-bar .play-brand { margin: -10px -15px 8px; }
.identity-logout { color: #8499ad; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; }
.identity-logout .ti { font-size: 16px; }
.name-nudge .nudge-ic { font-size: 18px; color: #25d8c4; }
.name-nudge .nudge-arrow { font-size: 15px; color: #25d8c4; margin-left: auto; }

/* per-tab brand bar now carries only the Partidos deck dots */
.brand-bar:empty { display: none; padding: 0; border: 0; min-height: 0; }
.brand-bar.has-dots { display: flex; justify-content: center; }

/* A/C — landing: branded header as a space-between row so the brand (left) and
   the lang toggle (right) never collide — the wordmark is no longer centered
   across the full width, which is what overlapped the wide "ENGLISH VERSION"
   pill. Hairline divider moves to the topbar so it spans full width. */
.landing-topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border-bottom: .5px solid rgba(255,255,255,.07); }
.landing-topbar .play-brand { width: auto; justify-content: flex-start; border-bottom: 0; flex: 0 1 auto; min-width: 0; }
.landing-lang { flex: 0 0 auto; z-index: 2; }
.cta-block { position: sticky; bottom: 0; background: #081421; padding: 12px 0 14px; margin-top: 8px; z-index: 5; }
.cta-block::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; background: linear-gradient(to top, #081421 35%, rgba(8,20,33,0)); pointer-events: none; }

/* ── Mis Picks tab — v2 rebuild (docs/mockups-v2/play-mis-picks.html) ─────── */
/* SUMMARY-FIRST hero: flame streak + 3-stat row (PICKS/GANADOS/EFECTIVIDAD) */
.mp-hero { background: linear-gradient(160deg, #13314a, #0d2236); border: .5px solid rgba(246, 176, 60, .3); border-radius: 16px; padding: 14px; margin: 4px 0 0; }
.mp-hero-streak { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mp-hero-streak .ti-flame { font-size: 22px; color: #f6b03c; }
.mp-hero-num { font-size: 28px; font-weight: 500; color: #f4dbab; line-height: 1; }
.mp-hero-streaklbl { font-size: 12px; color: #cfe2f2; }
.mp-hero-stats { display: flex; border-top: .5px solid rgba(255, 255, 255, .08); padding-top: 11px; }
.mp-stat { flex: 1; text-align: center; }
.mp-statn { font-size: 22px; font-weight: 500; color: #eaf1f8; line-height: 1; }
.mp-statn-won { color: #46e08a; }
.mp-statn-rate { color: #25d8c4; }
.mp-statl { font-size: 9px; color: #8499ad; margin-top: 3px; letter-spacing: .04em; }
/* time-group labels + "Ver más" pagination */
.mp-grp { font-size: 10px; letter-spacing: .12em; color: #647a8f; margin: 14px 0 8px; }
.mp-more { width: 100%; background: none; border: 0; text-align: center; padding: 6px 0 14px; color: #25d8c4; font-size: 11px; font-weight: 500; cursor: pointer; }
.mp-more .ti { vertical-align: -2px; }
.mp-sport-ic { font-size: 15px; color: #8499ad; flex: 0 0 auto; }
.mp-card { background: #102338; border-radius: 14px; margin-bottom: 10px; }
.mp-card[data-outcome="lost"] { opacity: .75; }
.mp-card-row { display: flex; align-items: center; gap: 10px; padding: 12px 13px; }
.mp-card-body { flex: 1; min-width: 0; }
.mp-card-name { font-size: 12px; font-weight: 500; color: #eaf1f8; }
.mp-card-sub { font-size: 9px; color: #8499ad; }
.mp-crest { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #16304a; border: 2px solid #2c557d; display: flex; align-items: center; justify-content: center; color: #46627e; font-size: 10px; overflow: hidden; }
.mp-crest .flag, .mp-crest .flag-img, .mp-crest .club-crest { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.mp-crest img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mp-chip { font-size: 9px; font-weight: 500; padding: 3px 9px; border-radius: 7px; letter-spacing: .04em; white-space: nowrap; }
.mp-chip-won { background: #0f3322; color: #46e08a; }
.mp-chip-pending { background: #33270d; color: #f6c560; }
.mp-chip-lost { background: #2a1614; color: #ff8f8a; }
.mp-chip-live { background: #2a1018; color: #ff5b6e; }
.mp-footer { display: flex; align-items: center; gap: 6px; border-top: .5px solid rgba(255, 255, 255, .06); margin: 0 13px; padding: 9px 0 12px; font-size: 11px; font-weight: 500; text-decoration: none; }
.mp-footer-gold { color: #f6b03c; }
.mp-footer-teal { color: #25d8c4; }
.mp-footer-live { color: var(--moff-live); letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.mp-footer-pending { color: #f6c560; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.mp-footer .ti { font-size: 14px; }
.mp-footer-chev { margin-left: auto; }

/* ── Premios: list view ──────────────────────────────────────────────────── */
.premios-head { padding: 12px 0 2px; }
.premios-titlerow { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2px; }
.premios-title { font-size: 22px; font-weight: 500; color: #eaf1f8; }
.premios-count { font-size: 10px; color: #8499ad; }
.premios-sub { font-size: 11px; color: #8499ad; margin: 0 0 8px; }
.premios-cap { font-size: 9px; color: #f6c560; background: #33270d; border-radius: 8px; padding: 6px 9px; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.premios-cap .ti { font-size: 12px; }
.premio-sport-ic { font-size: 10px; vertical-align: -1px; margin-right: 1px; }
.premio-row { width: 100%; box-sizing: border-box; background: #102338; border: 0.5px solid transparent; border-radius: 14px; padding: 13px; margin-bottom: 10px; display: flex; align-items: center; gap: 11px; text-align: left; color: inherit; font: inherit; }
.premio-active { border-color: rgba(246, 176, 60, 0.45); cursor: pointer; -webkit-appearance: none; appearance: none; }
.premio-active:active { transform: scale(0.99); }
.premio-used { opacity: 0.6; }
.premio-expired { opacity: 0.5; }
.premio-emoji { font-size: 22px; line-height: 1; flex: none; }
.premio-ic-gold { font-size: 22px; color: #f6b03c; flex: none; }
.premio-ic-muted { font-size: 20px; color: #8499ad; flex: none; }
.premio-body { flex: 1; min-width: 0; display: block; }
.premio-label { display: block; font-size: 13px; font-weight: 500; color: #eaf1f8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.premio-used .premio-label, .premio-expired .premio-label { font-weight: 400; color: #cfe2f2; }
.premio-meta { display: block; font-size: 9px; color: #8499ad; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.premio-used .premio-meta, .premio-expired .premio-meta { color: #647a8f; }
.premio-chip { flex: none; font-size: 9px; font-weight: 500; padding: 3px 9px; border-radius: 7px; letter-spacing: 0.04em; }
.chip-active { background: #0f3322; color: #46e08a; }
.chip-used { background: #1a2738; color: #8499ad; }
.chip-expired { background: #2a1614; color: #c98682; }
.premio-chevron { font-size: 16px; color: #f6b03c; flex: none; }

/* ── Premios: golden ticket detail ───────────────────────────────────────── */
.ticket-back { display: flex; align-items: center; gap: 8px; padding: 12px 0 6px; color: #8499ad; cursor: pointer; }
.ticket-back i { font-size: 18px; }
.ticket-back span { font-size: 13px; }
.ticket { position: relative; background: linear-gradient(160deg, #f6b94a 0%, #e8941f 100%); border-radius: 20px; padding: 18px 16px; margin-top: 6px; color: #3a2702; }
.ticket-pill { background: rgba(58, 39, 2, 0.14); border: 1px solid rgba(58, 39, 2, 0.25); border-radius: 20px; padding: 7px 0; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: #3a2702; }
.ticket-head { display: flex; align-items: center; gap: 11px; margin-top: 14px; }
.ticket-emoji { font-size: 30px; line-height: 1; }
.ticket-prize { font-size: 21px; font-weight: 700; line-height: 1; }
.ticket-ganaste { font-size: 11px; opacity: 0.8; margin-top: 3px; }
.ticket-qrbox { background: #fff; border-radius: 14px; padding: 14px; display: flex; justify-content: center; align-items: center; margin: 14px 4px 0; min-height: 150px; }
.ticket-qrbox .qr { width: 150px; height: 150px; display: block; }
.ticket-qrbox .qr-fallback { display: none; font-size: 18px; font-weight: 700; letter-spacing: 0.08em; color: #0a1828; text-align: center; }
.ticket-qrbox .qr.failed { display: none; }
.ticket-qrbox .qr.failed + .qr-fallback { display: block; }
.ticket-divider { border-top: 1px dashed rgba(58, 39, 2, 0.3); margin: 14px 4px 0; }
.ticket-codewrap { text-align: center; margin-top: 12px; }
.ticket-codelbl { font-size: 10px; letter-spacing: 0.12em; opacity: 0.7; }
.ticket-code { font-size: 26px; font-weight: 700; letter-spacing: 0.1em; margin-top: 2px; }
.ticket-confirm { text-align: center; font-size: 11px; opacity: 0.75; margin-top: 10px; }
.ticket-wcmark { position: absolute; top: 12px; right: 14px; height: 48px; width: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.ticket-for { display: flex; align-items: center; justify-content: space-between; background: rgba(58,39,2,.1); border-radius: 12px; padding: 10px 13px; margin-top: 14px; }
.ticket-for-lbl { font-size: 9px; letter-spacing: .12em; opacity: .65; }
.ticket-for-lbl .ti { font-size: 11px; vertical-align: -1px; }
.ticket-for-val { font-size: 14px; font-weight: 600; margin-top: 1px; }
.ticket-qrcap { text-align: center; font-size: 11px; opacity: .7; margin-top: 9px; }
.ticket-vence { background: rgba(58, 39, 2, 0.13); border-radius: 12px; padding: 9px; text-align: center; margin-top: 13px; }
.ticket-vencelbl { font-size: 10px; letter-spacing: 0.12em; opacity: 0.7; }
.ticket-vence .when { font-size: 13px; font-weight: 600; margin-top: 2px; }

/* ── Partidos LIST — section labels (play-interface.html) ─────────────────── */
.play-seclabel { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; margin: 11px 0 8px; }
.play-seclabel .ti { font-size: 14px; }
.play-seclabel-open { color: #25d8c4; }
.play-seclabel-live { color: #ff8f8a; }
.play-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5b56; display: inline-block; animation: moff-pulse 1.4s ease-in-out infinite; }

/* Bottom nav — Tabler icons (replacing emoji) */
.nav-tab .icon .ti { font-size: 20px; line-height: 1; }

/* ── Partidos v2 — 3-state play screen (docs/mockups-v2/play-interface.html) ─ */
/* STATE A — gold hero tier */
.play-hero-label { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: #f6b03c; margin: 11px 0 8px; }
.play-hero-label .ti { font-size: 14px; }
.moff-hero { border-color: rgba(246,176,60,0.5); }
.moff-hero .moff-pill { background: rgba(246,176,60,0.14); color: #f6b03c; }
.moff-hero .moff-pill .ti { color: #f6b03c; }
/* competition section labels */
.play-seclabel-comp { color: #8499ad; }
.play-seclabel-comp .play-sport { color: #25d8c4; }
.play-seclabel-gold { color: #f6b03c; }
.play-sec { display: block; }
/* cross-sell + next-event teaser nudges */
.play-crosssell, .play-teaser { background: #102338; border: .5px solid rgba(255,255,255,.07); border-radius: 12px; padding: 11px 13px; margin: 6px 0 10px; }
.play-crosssell .xs-title, .play-teaser .te-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #dce7f1; }
.play-crosssell .xs-title .ti, .play-teaser .te-title .ti { font-size: 14px; color: #25d8c4; }
.play-crosssell .xs-sub, .play-teaser .te-sub { font-size: 10px; color: #8499ad; margin-top: 3px; }

/* DAILY-LIMIT */
.play-limit-card { background: #102338; border: .5px solid rgba(255,255,255,.07); border-radius: 14px; padding: 14px; margin: 8px 0 4px; text-align: center; }
.pl-title { font-size: 15px; font-weight: 500; color: #eaf1f8; display: inline-flex; align-items: center; gap: 7px; }
.pl-livedot { width: 7px; height: 7px; border-radius: 50%; background: #ff5b56; display: inline-block; animation: moff-pulse 1.4s ease-in-out infinite; }
.pl-sub { font-size: 11px; color: #8499ad; margin-top: 4px; }
.pl-pending { background: rgba(246,197,96,0.14); color: #f6c560; padding: 4px 9px; border-radius: 8px; font-size: 11px; font-weight: 500; letter-spacing: .04em; }

/* STATE B/C — engagement stack */
.play-empty-hero { text-align: center; padding: 22px 0 14px; }
.pe-title { font-size: 17px; font-weight: 500; color: #eaf1f8; }
.pe-sub { font-size: 11px; color: #8499ad; margin-top: 4px; }
.play-namenudge { display: flex; align-items: center; gap: 9px; width: 100%; box-sizing: border-box; background: #102338; border: .5px solid rgba(37,216,196,.3); border-radius: 12px; padding: 11px 13px; margin-bottom: 10px; color: #eaf1f8; cursor: pointer; text-align: left; }
.play-namenudge .ti-user-plus { font-size: 18px; color: #25d8c4; }
.play-namenudge .nn-txt { display: flex; flex-direction: column; flex: 1; }
.play-namenudge .nn-txt strong { font-size: 12px; font-weight: 500; }
.play-namenudge .nn-txt span { font-size: 10px; color: #8499ad; }
.play-namenudge .ti-arrow-right { font-size: 15px; color: #25d8c4; }
.play-review-card { background: #102338; border: .5px solid rgba(246,176,60,.3); border-radius: 14px; padding: 14px; margin-top: 10px; }
.play-review-card .rev-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.play-review-card .rev-emoji { font-size: 26px; }
.play-review-card .rev-title { font-size: 13px; font-weight: 500; color: #eaf1f8; }
.play-review-card .rev-sub { font-size: 10px; color: #8499ad; margin-top: 2px; }
.play-review-card .rev-cta { display: block; text-align: center; background: #f6b03c; color: #2a1c02; font-weight: 500; font-size: 14px; padding: 11px; border-radius: 10px; text-decoration: none; }
.play-review-card .rev-emoji .ti { font-size: 24px; color: #f6b03c; }

/* ========================================================================
   DAY-PAGER (play-interface-v3.html) — chip strip + arrow row + day body
   ======================================================================== */
/* Windowed strip: the ~4 chips share the full width (large tap targets), no scroll. */
.daystrip { display: flex; gap: 7px; flex: 1 1 auto; min-width: 0; padding: 10px 0 4px; }
.daystrip .chip { flex: 1 1 0; min-width: 0; text-align: center; background: #102338; border: .5px solid rgba(255,255,255,.08); border-radius: 13px; padding: 11px 6px; color: #8499ad; cursor: pointer; }
.daystrip .chip .cd { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.daystrip .chip .cc { display: block; font-size: 9.5px; margin-top: 3px; color: #647a8f; white-space: nowrap; }
.daystrip .chip.on { background: linear-gradient(160deg, #13314a, #0d2236); border-color: rgba(37,216,196,.55); color: #eaf1f8; }
.daystrip .chip.on .cc { color: #25d8c4; }
.daystrip .chip.empty { opacity: .5; }
.daystrip .chip.chip-done .cc { color: #46e08a; }
.daystrip .chip.on.chip-done .cc { color: #46e08a; }

.arrows { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 2px; }
.arrows .daytitle { font-size: 14px; font-weight: 500; color: #eaf1f8; }
.arrows .ar { width: 30px; height: 30px; border-radius: 50%; background: #102338; border: .5px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #8499ad; cursor: pointer; padding: 0; }
.arrows .ar .ti { font-size: 16px; }
.arrows .ar[disabled] { opacity: .35; cursor: default; }

.day-body { display: block; }
.play-swipehint { text-align: center; font-size: 10px; color: #647a8f; padding: 4px 0 2px; }
.play-swipehint .ti { vertical-align: -2px; }

/* Day-pager card-state pills (on top of the shared .moff card) */
.moff-meta .spt { font-size: 9px; letter-spacing: .06em; color: #8499ad; display: flex; align-items: center; gap: 5px; text-transform: uppercase; }
.pill-grace { background: rgba(246,176,60,.15); color: #f6b03c; padding: 4px 9px; border-radius: 8px; }
.pill-grace .ti { font-size: 12px; }
.pill-picked { background: #0f3322; color: #46e08a; padding: 4px 9px; border-radius: 8px; }
.pill-picked .ti { font-size: 12px; }
.pill-tbd { background: rgba(132,153,173,.12); color: #8499ad; padding: 4px 9px; border-radius: 8px; }
.pill-tbd .ti { font-size: 12px; }

/* picked card → soft green border */
.moff.moff-picked { border-color: rgba(70,224,138,.4) !important; }
.moff.moff-picked .moff-team[data-picked="true"] .moff-crest { border-color: var(--moff-won); }
.moff.moff-picked .moff-team[data-picked="true"] .moff-name { color: #46e08a; }
.moff.moff-picked .moff-foot .ti-check { color: #46e08a; }
/* grace card → amber accent border */
.moff.moff-grace { border-color: rgba(246,176,60,.45) !important; }
/* tbd card → muted, non-interactive */
.moff.moff-tbd { opacity: .72; }
.moff.moff-tbd .moff-team { cursor: default; }
.moff .foot-tbd { color: #8499ad; font-style: italic; }
/* Day-pager swipe: let the browser keep vertical scroll but hand horizontal
   gestures to our pointer-event handler (wireSwipe), so swipe-to-page works on
   mobile instead of being eaten by scroll / edge back-navigation. */
#play-root { touch-action: pan-y; }
/* Day-pager footers carry longer inline copy ("Tu pick: X · podés cambiarlo…")
   — let them flow inline so the team name doesn't get stranded on its own line. */
#play-root .moff-foot { display: block; line-height: 1.45; }
#play-root .moff-foot .ti { vertical-align: -3px; margin-right: 4px; }
#play-root .moff-foot strong { white-space: nowrap; }

/* ========================================================================
   DAY-PAGER REVISIONS (2026-06) — larger header+tagline, logout label,
   how-it-works, capped chip strip + arrow affordance, start-time under VS,
   earlier-today collapsed section.
   ======================================================================== */

/* 1 — larger left-aligned brand mark + bilingual tagline (identity bar) */
.play-brand.play-brand-lg { justify-content: flex-start; gap: 12px; padding: 11px 0 12px; }
.play-brand.play-brand-lg .play-wave { height: 34px; width: 66px; }
.play-brand .play-brand-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.play-brand.play-brand-lg .play-wordmark { font-size: 19px; letter-spacing: .2em; line-height: 1.05; }
.play-tagline { font-size: 10.5px; color: #8499ad; line-height: 1.2; margin-top: 2px; white-space: normal; }

/* 2 — logout reads as an action: icon + label */
.identity-logout { display: inline-flex; align-items: center; gap: 5px; color: #8499ad; }
.identity-logout .logout-label { font-size: 12px; }
.identity-logout:hover { color: #ff8f8a; }

/* 3 — compact how-it-works (one row of three steps, above the match list) */
.play-hiw { display: flex; align-items: stretch; gap: 7px; margin: 10px 0 4px; }
.play-hiw .hiw-step { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; background: #102338; border: .5px solid rgba(255,255,255,.07); border-radius: 10px; padding: 7px 8px; }
.play-hiw .hiw-num { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; background: rgba(37,216,196,.15); color: #25d8c4; font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.play-hiw .hiw-step > .ti { flex: 0 0 auto; font-size: 15px; color: #25d8c4; }
.play-hiw .hiw-txt { font-size: 10px; color: #cdd8e4; line-height: 1.15; }

/* 4 — windowed chip strip: a few big chips that fill the width, flanked by edge
   chevrons that page the window one day at a time. */
.daystrip-wrap { display: flex; align-items: stretch; gap: 6px; }
.daystrip-edge { flex: 0 0 auto; width: 30px; border: 0; padding: 0; border-radius: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: #0d2236; border: .5px solid rgba(255,255,255,.08); color: #9fb2c6; }
.daystrip-edge .ti { font-size: 20px; }
.daystrip-edge:active { background: #13314a; }

/* 5 — start date+time stacked under the VS */
.moff-vscol { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 2px; }
.moff-vscol .moff-vs { font-size: 11px; font-weight: 500; color: var(--moff-text2); letter-spacing: .08em; }
.moff-when { font-size: 9.5px; color: #8499ad; white-space: nowrap; line-height: 1.1; text-align: center; }

/* 7 — earlier-today collapsed section */
.play-played { margin: 14px 0 4px; border-top: .5px solid rgba(255,255,255,.07); padding-top: 10px; }
.play-played-head { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 4px 2px; cursor: pointer; color: #8499ad; }
.play-played-head .pp-title { font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.play-played-head .pp-count { background: #16304a; color: #cdd8e4; font-size: 10px; border-radius: 8px; padding: 1px 7px; }
.play-played-head .pp-caret { margin-left: auto; font-size: 16px; transition: transform .18s ease; }
.play-played.open .play-played-head .pp-caret { transform: rotate(180deg); }
.play-played-body { display: none; padding-top: 8px; }
.play-played.open .play-played-body { display: block; }

/* EN VIVO — live/in-progress games, shown expanded below the pickable cards. */
.play-live { margin: 16px 0 4px; }
.play-live-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 8px; color: var(--moff-live); }
.play-live-head .pl-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.play-live-head .pp-count { background: #16304a; color: #cdd8e4; font-size: 10px; border-radius: 8px; padding: 1px 7px; }

/* Missed — locked matches you didn't bet on, greyed at the very bottom. */
.play-missed { margin: 16px 0 4px; }
.play-missed-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 8px; color: #8499ad; }
.play-missed-head .pp-title { font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.play-missed-head .pp-count { background: #16304a; color: #cdd8e4; font-size: 10px; border-radius: 8px; padding: 1px 7px; }

/* Contracted card — for locked matches (live bets / missed). Smaller than the
   full pickable card by design; not actionable. */
.moff-cx { display: flex; flex-direction: column; gap: 6px; padding: 10px 13px; margin: 8px 0; border-radius: 12px; background: var(--moff-card, #102338); border: .5px solid var(--moff-hair, rgba(255,255,255,.07)); }
.moff-cx .cx-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.moff-cx .cx-status { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.moff-cx .cx-status-live { color: var(--moff-live, #ff8f8a); }
.moff-cx .cx-status-missed { color: #6b7a8d; }
.moff-cx .cx-matchup { font-size: 13px; font-weight: 600; color: #cdd8e4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moff-cx .cx-vs { font-size: 10px; color: #5a6b7d; margin: 0 2px; }
.moff-cx .cx-pick { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--moff-teal, #25d8c4); padding-left: 1px; }
.moff-cx .cx-pick .ti { font-size: 14px; }
.moff-cx .cx-pick strong { font-weight: 800; }
/* missed = dimmed/greyed */
.moff-cx.cx-missed { opacity: .5; }
.moff-cx.cx-missed .cx-matchup { color: #7f8c9b; }

/* ── RESULTS — resolved matches surfaced in the deck ───────────────────────── */
.play-wins { margin: 4px 0 2px; }
.play-results { margin: 16px 0 4px; }

/* Win — the payoff. Green, celebratory, with a claim CTA. */
.rz-win { display: flex; flex-direction: column; gap: 8px; padding: 13px 15px; margin: 10px 0; border-radius: 14px;
  background: linear-gradient(180deg, rgba(70,224,138,.14), rgba(70,224,138,.05)); border: 1px solid rgba(70,224,138,.45); }
.rz-win .rz-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--moff-won, #46e08a); }
.rz-win .rz-win-body { display: flex; flex-direction: column; gap: 2px; }
.rz-win .rz-winline { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 800; color: #eaf1f8; }
.rz-win .rz-winline .ti { color: var(--moff-won, #46e08a); font-size: 16px; }
.rz-win .rz-ctx { font-size: 12px; color: #8499ad; }
.rz-win .rz-score { font-size: 14px; font-weight: 700; color: var(--moff-won, #46e08a); }
.rz-claim { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 2px; padding: 10px; border-radius: 10px;
  background: var(--moff-won, #46e08a); color: #0b2417; font-size: 13px; font-weight: 800; text-decoration: none; }
.rz-claim .ti { font-size: 16px; }

/* Neutral result (loss / didn't bet) — compact row, winner highlighted. */
.rz-neutral { display: flex; flex-direction: column; gap: 5px; padding: 10px 13px; margin: 8px 0; border-radius: 12px;
  background: var(--moff-card, #102338); border: .5px solid var(--moff-hair, rgba(255,255,255,.07)); }
.rz-neutral .rz-winner { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #cdd8e4; }
.rz-neutral .rz-winner .ti { color: var(--moff-gold, #f6b03c); font-size: 14px; }
.rz-neutral .rz-score { font-size: 12px; font-weight: 700; color: #8499ad; }
.rz-neutral .rz-ctx { font-size: 12px; color: #5a6b7d; }
.rz-neutral .rz-lost { font-size: 11px; font-weight: 600; color: #ff8f8a; text-transform: uppercase; letter-spacing: .03em; }

/* Flag crests on resolved rows — small version of .moff-crest so results match
   the flag-rich live card. teamMarker() emits .flag / .flag-img / .club-crest. */
.rz-ctx { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.rz-crest { display: inline-grid; place-items: center; vertical-align: middle; flex: 0 0 auto;
  width: 18px; height: 18px; border-radius: 50%; background: var(--moff-inset, rgba(255,255,255,.06)); overflow: hidden; }
.rz-crest .flag { font-size: 12px; line-height: 1; }
.rz-crest .flag-img { width: 100%; height: 100%; display: grid; place-items: center; }
.rz-crest .flag-img img { width: 84%; height: 84%; object-fit: contain; }
.rz-crest .club-crest { font-size: 7.5px; font-weight: 700; color: var(--moff-text2, #93A4B8); }
.rz-win .rz-winline .rz-crest, .rz-neutral .rz-winner .rz-crest { width: 20px; height: 20px; }
.rz-win .rz-winline .rz-crest .flag { font-size: 13px; }

/* ── UFC main-event emphasis ───────────────────────────────────────────────── */
.moff-estelar { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #ff8f6b; background: rgba(255,143,107,.14); border: 1px solid rgba(255,143,107,.4); border-radius: 6px; padding: 2px 6px; margin-right: 7px; }
.moff-estelar .ti { font-size: 11px; }
.moff.moff-main { border-color: rgba(255,143,107,.5); box-shadow: 0 0 0 1px rgba(255,143,107,.18) inset; }

/* ── Cross-sell — another event at the foot of the deck ────────────────────── */
.play-xsell { display: flex; align-items: center; gap: 11px; width: 100%; margin: 18px 0 4px; padding: 12px 14px; border-radius: 12px;
  background: rgba(37,216,196,.06); border: 1px solid rgba(37,216,196,.28); color: #eaf1f8; cursor: pointer; text-align: left; }
.play-xsell .xs-ic { display: inline-flex; font-size: 20px; flex: 0 0 auto; }
.play-xsell .xs-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.play-xsell .xs-txt strong { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-xsell .xs-sub { font-size: 11px; color: #8499ad; }
.play-xsell .xs-arrow { color: #25d8c4; font-size: 18px; flex: 0 0 auto; }

/* engagement hero icon + birthday nudge (reuses name-nudge shape) */
.play-empty-hero .pe-icon { width: 46px; height: 46px; border-radius: 50%; background: #102338; display: flex; align-items: center; justify-content: center; margin: 0 auto 9px; }
.play-empty-hero .pe-icon .ti { font-size: 22px; color: #3f566c; }
.play-bdaynudge { display: flex; align-items: center; gap: 9px; width: 100%; box-sizing: border-box; background: #102338; border: .5px solid rgba(246,176,60,.3); border-radius: 12px; padding: 11px 13px; margin-bottom: 10px; color: #eaf1f8; cursor: pointer; text-align: left; }
.play-bdaynudge .ti-cake { font-size: 18px; color: #f6b03c; }
.play-bdaynudge .nn-txt { display: flex; flex-direction: column; flex: 1; }
.play-bdaynudge .nn-txt strong { font-size: 12px; font-weight: 500; }
.play-bdaynudge .nn-txt span { font-size: 10px; color: #8499ad; }
.play-bdaynudge .ti-arrow-right { font-size: 15px; color: #25d8c4; }

/* ── Web Push (Tier 3) opt-in card ──────────────────────────────────────────
   Subtle, dismissible. Slides up from the bottom above the tab nav; auto-
   dismisses on "Not now" / × and never re-shows (localStorage flag). */
/* Push opt-in — bottom-sheet overlay, reuses .modal-backdrop / .modal / .sheet-x
   / .grip (same pattern as the WhatsApp capture sheet). z-index above the deck
   so it reads as a focused modal, not an in-page card. */
.push-optin-backdrop { z-index: 120; }
.push-optin-modal { max-width: 440px; }
.push-optin-body { text-align: left; }
.push-optin-body h2 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.push-optin-body .lead { font-size: 14px; color: var(--text-secondary, #93A4B8); line-height: 1.45; }
.push-optin-actions { display: flex; gap: 10px; margin-top: 20px; }
.push-optin-actions button {
  flex: 1 1 auto; padding: 14px; border-radius: 12px; font-family: inherit;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.push-optin-no { background: rgba(255,255,255,.06); border: .5px solid rgba(255,255,255,.16); color: #b6c4d2; }
.push-optin-yes { background: var(--accent-cyan); border: 0; color: var(--bg-primary); }
.push-optin-yes:disabled { opacity: .6; cursor: default; }
.push-optin-spin {
  width: 30px; height: 30px; margin: 20px auto 6px;
  border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent-cyan);
  border-radius: 50%; animation: push-optin-spin .8s linear infinite;
}
@keyframes push-optin-spin { to { transform: rotate(360deg); } }
.push-optin-result { font-size: 18px; font-weight: 800; text-align: center; padding: 8px 0; line-height: 1.4; }
