
/* ── Lucide icons ── */
[data-lucide] {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: middle;
  flex-shrink: 0;
  /* Default to white on dark — parents with their own `color:` still win via currentColor */
  color: #F8F9FF;
}
/* Targeted white default on common icon wrappers that previously inherited muted/gold */
.nav-icon,
.icon-btn,
.notif-icon-wrap,
.hot-streak-icon,
.moment-icon,
.race-sheet-close,
.xper-locked-icon,
.pundit-badge:not([style*="color"]),
.friends-search-bar > [data-lucide],
.friend-add-btn,
.result-check,
.history-result {
  color: #F8F9FF;
}
.nav-icon [data-lucide]  { width: 20px; height: 20px; }
.hot-streak-icon [data-lucide] { width: 28px; height: 28px; stroke-width: 1.8; }
.icon-btn [data-lucide]  { width: 18px; height: 18px; }
.pundit-badge [data-lucide] { width: 13px; height: 13px; stroke-width: 2.5; }
.result-check [data-lucide] { width: 18px; height: 18px; }
.history-result [data-lucide] { width: 16px; height: 16px; }
.lb-streak [data-lucide] { width: 14px; height: 14px; }
.moment-icon [data-lucide] { width: 22px; height: 22px; }
.gc-stars [data-lucide]  { width: 20px; height: 20px; }
.gc-reward-row [data-lucide] { width: 16px; height: 16px; margin-right: 4px; }
.badge-chip [data-lucide] { width: 13px; height: 13px; margin-right: 3px; }
.slot-banker-badge [data-lucide] { width: 13px; height: 13px; margin-right: 3px; }
.runner-banker [data-lucide] { width: 13px; height: 13px; margin-right: 2px; }
.runner-selected-badge [data-lucide] { width: 13px; height: 13px; margin-right: 2px; }
.race-status [data-lucide] { width: 12px; height: 12px; stroke-width: 2.5; margin-right: 2px; }
.green-pts-chip [data-lucide] { width: 13px; height: 13px; margin-right: 3px; }

/* ═══════════════════════════════════════════════════════════
   FANOS — brand-tiyo tokens v1.2 FINAL
   ═══════════════════════════════════════════════════════════ */
:root {
  --tiyo-gold:                 #E6AC17;
  --tiyo-gold-bright:          #F5C842;
  --tiyo-gold-deep:            #C49A1A;
  --tiyo-gold-muted:           #92710E;
  --tiyo-gold-on:              #0D1020;
  --tiyo-indigo:               #4F46E5;
  --tiyo-indigo-hover:         #6366F1;
  --tiyo-surface:              #0D1020;
  --tiyo-surface-raised:       #131729;
  --tiyo-surface-elevated:     #1A1F35;
  --tiyo-surface-highest:      #222844;
  --tiyo-surface-glass:        rgba(13,16,32,0.82);
  --tiyo-surface-glass-border: rgba(230,172,23,0.18);
  --tiyo-border:               rgba(230,172,23,0.10);
  --tiyo-border-strong:        rgba(230,172,23,0.25);
  --tiyo-border-active:        rgba(230,172,23,0.60);
  --tiyo-text:                 #F8F9FF;
  --tiyo-text-secondary:       #B8C0D8;
  --tiyo-text-muted:           #7B84A3;
  --tiyo-text-gold:            #E6AC17;
  --tiyo-rank-fan:             #8B9CC4;
  --tiyo-rank-form-analysor:   #60A5FA;
  --tiyo-rank-conneser:        #34D399;
  --tiyo-rank-tiyo-master:     #E6AC17;
  --tiyo-rank-legend:          #F5C842;
  --tiyo-score-gagnant:        #10B981;
  --tiyo-score-place:          #60A5FA;
  --tiyo-score-miss:           #EF4444;
  --tiyo-gradient-grand-chelem:linear-gradient(135deg,#F5C842 0%,#E6AC17 30%,#F5C842 60%,#C49A1A 100%);
  --tiyo-gradient-hot-streak:  linear-gradient(135deg,#EF4444 0%,#D97706 50%,#F5C842 100%);
  --tiyo-gradient-gold:        linear-gradient(135deg,#C49A1A 0%,#E6AC17 50%,#F5C842 100%);
  --tiyo-glow-gold:            0 0 16px rgba(230,172,23,0.50),0 0 32px rgba(230,172,23,0.22);
  --tiyo-glow-grand-chelem:    0 0 24px rgba(245,200,66,0.65),0 0 48px rgba(245,200,66,0.30),0 0 96px rgba(245,200,66,0.12);
  --tiyo-glow-hot-streak:      0 0 14px rgba(239,68,68,0.40),0 0 28px rgba(217,119,6,0.28);
  --tiyo-ease-spring:          cubic-bezier(0.34,1.56,0.64,1);
  --tiyo-font-display:         'Schibsted Grotesk', sans-serif;
  --tiyo-font-ui:              'Schibsted Grotesk', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   Base
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: #060810;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,70,229,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(230,172,23,0.08) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 16px 80px;
  font-family: var(--tiyo-font-ui);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

.page-label {
  font-family: var(--tiyo-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tiyo-gold-muted);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════
   Phone frame
   ═══════════════════════════════════════════════════════════ */
.phone {
  width: 390px;
  height: 844px;
  background: var(--tiyo-surface);
  border-radius: 52px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 0 8px rgba(255,255,255,0.03),
    0 32px 80px rgba(0,0,0,0.80),
    0 0 60px rgba(230,172,23,0.06);
}
.phone::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 126px; height: 34px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 100;
}
/* Home-only seamless top gradient — ONE continuous dark→transparent ramp
   that covers status-bar + app-header + a soft fade into the hero photo.
   No seam, no border line, no step. Sits above hero content (no z-index)
   and below status-bar (z:90) + app-header (z:50). */
.phone:has(#screen-home.active)::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom,
    rgba(13,16,32,0.92) 0%,
    rgba(13,16,32,0.82) 28%,
    rgba(13,16,32,0.62) 52%,
    rgba(13,16,32,0.32) 74%,
    rgba(13,16,32,0.10) 90%,
    rgba(13,16,32,0.00) 100%);
  pointer-events: none;
  z-index: 45;
}

/* Status bar — solid app-surface backdrop so scrolling content doesn't bleed through */
.status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 54px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 8px;
  z-index: 90;
  font-size: 12px;
  font-weight: 600;
  color: var(--tiyo-text);
  background: var(--tiyo-surface, #08091E);
}
/* Status bar on home: subtle dark wash so 09:41 / wifi stay legible
   against whatever hero photo is beneath. Continues seamlessly into
   the app-header gradient below. */
/* Status bar on home: transparent. The .phone draws ONE seamless gradient
   below (via a ::after overlay) that covers status-bar + header as a single
   continuous ramp — no seam where they meet. */
.phone:has(#screen-home.active) .status-bar {
  background: transparent;
}
/* Scrolled state still handled by the phone-level overlay (see .phone::after). */
.status-time { font-size: 15px; font-weight: 700; }
.status-icons { display: flex; gap: 6px; align-items: center; }
.status-icons svg { width: 16px; height: 16px; fill: var(--tiyo-text); }

/* Screens container */
.screens {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.screen {
  position: absolute;
  inset: 0;
  padding-top: 54px;
  padding-bottom: 80px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.active { opacity: 1; pointer-events: all; }

/* Bottom nav */
.bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: var(--tiyo-surface-raised);
  border-top: 1px solid var(--tiyo-border);
  display: flex;
  align-items: flex-start;
  padding-top: 10px;
  z-index: 80;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.18s ease;
  padding-top: 2px;
  border: none;
  background: none;
  font-family: var(--tiyo-font-ui);
}
.nav-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all 0.2s var(--tiyo-ease-spring);
}
.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tiyo-text-muted);
  transition: color 0.18s;
}
.nav-item.active .nav-icon { transform: scale(1.1); }
.nav-item.active .nav-label { color: var(--tiyo-gold); }
.nav-item.active .nav-dot { background: var(--tiyo-gold); }
.nav-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.18s;
  position: absolute;
  bottom: 30px;
}

/* ═══════════════════════════════════════════════════════════
   Shared components
   ═══════════════════════════════════════════════════════════ */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: sticky; top: 0;
  background: var(--tiyo-surface);
  z-index: 50;
  border-bottom: 1px solid var(--tiyo-border);
  transition: background 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}
/* Home screen — header and status-bar are transparent. The .phone draws a
   single seamless top gradient (see .phone::after) that covers both.
   No seams, no lines. */
#screen-home .app-header {
  background: transparent;
  border-bottom-color: transparent;
}
#screen-home .app-header.scrolled {
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}
.wordmark {
  font-family: var(--tiyo-font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--tiyo-gold);
  letter-spacing: -0.02em;
}
.header-actions { display: flex; gap: 12px; align-items: center; }
.icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.icon-btn:hover { border-color: var(--tiyo-border-active); }
.notif-btn { position: relative; }

/* \u2500\u2500 Sticky next-race strip \u2500\u2500
   Appears below app-header only on Sat/Results (via sw-* gating).
   Hidden by default; .is-visible slides it in when hero scrolls off. */
.next-race-sticky {
  position: sticky; top: 57px; z-index: 49; /* just below app-header */
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(8,9,30,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(239,68,68,0.22);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.2,0.9,0.3,1), opacity 0.2s;
}
.next-race-sticky.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.next-race-sticky .nrs-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
  animation: live-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}
.nrs-race {
  font-size: 11px; font-weight: 800;
  color: #FCA5A5;
  letter-spacing: 0.08em; text-transform: uppercase;
  flex-shrink: 0;
}
.nrs-name {
  flex: 1;
  font-size: 12px; font-weight: 600;
  color: var(--tiyo-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nrs-timer {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800;
  color: var(--tiyo-gold-bright);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.nrs-timer [data-lucide] { width: 11px; height: 11px; }

/* Results mode: blue tint */
[data-state="results"] .next-race-sticky {
  border-bottom-color: rgba(96,165,250,0.28);
}
[data-state="results"] .next-race-sticky .nrs-dot {
  background: #60A5FA;
  box-shadow: 0 0 0 0 rgba(96,165,250,0.6);
}
[data-state="results"] .nrs-race { color: #93C5FD; }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: #EF4444;
  border-radius: 50%;
  border: 2px solid var(--tiyo-surface);
}

/* ── Notification items ── */
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--tiyo-border);
  position: relative;
  transition: background 0.15s;
}
.notif-item.unread { background: rgba(230,172,23,0.04); }
.notif-item:active { background: var(--tiyo-surface-raised); }
.notif-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-icon-wrap [data-lucide] { width: 16px; height: 16px; }
.notif-body { flex: 1; min-width: 0; }
.notif-title {
  font-size: 13px; color: var(--tiyo-text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
}
.notif-title strong { color: var(--tiyo-text); }
.notif-time { font-size: 11px; color: var(--tiyo-text-muted); font-weight: 600; }
.notif-unread-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tiyo-gold);
  flex-shrink: 0;
  margin-top: 5px;
}
.avatar {
  transition: all 0.18s ease;
}
.avatar:active { transform: scale(0.92); }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34D399, #047857);
  border: 2px solid var(--tiyo-rank-conneser);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.rank-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rank-chip.conneser {
  background: rgba(52,211,153,0.12);
  color: var(--tiyo-rank-conneser);
  border: 1px solid rgba(52,211,153,0.25);
}
.rank-chip.tiyo-master {
  background: rgba(230,172,23,0.12);
  color: var(--tiyo-rank-tiyo-master);
  border: 1px solid rgba(230,172,23,0.28);
}
.rank-chip.legend {
  background: rgba(245,200,66,0.14);
  color: var(--tiyo-rank-legend);
  border: 1px solid rgba(245,200,66,0.36);
}
.rank-chip.form-analysor {
  background: rgba(96,165,250,0.12);
  color: var(--tiyo-rank-form-analysor);
  border: 1px solid rgba(96,165,250,0.25);
}
.rank-chip.fan {
  background: rgba(139,156,196,0.10);
  color: var(--tiyo-rank-fan);
  border: 1px solid rgba(139,156,196,0.20);
}

.green-pts-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--tiyo-surface-elevated);
  border: 1px solid rgba(230,172,23,0.22);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px; font-weight: 700;
  color: var(--tiyo-gold);
}

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 11px; font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
}
.section-link {
  font-size: 13px; font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.01em;
  color: var(--tiyo-gold);
  cursor: pointer;
  text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════
   Cinematic Race Day Hero — Sat / Results / Championship
   Full-bleed, 210px, atmospheric horse-racing scene.
   "Brought to you by MCB" overlay at bottom.
   Ref: FitPulse + FortDice full-bleed cinematic patterns.
   AI-generated horse racing photo replaces bg in production.
   ═══════════════════════════════════════════════════════════ */
.hero-cinematic {
  position: relative;
  /* Large hero flows UNDER status-bar + app-header + next-race sticky strip.
     Photo fills all the way to the top of the phone; the phone's top gradient
     sits directly on it with no blank band above. */
  margin: -154px 0 16px;
  padding-top: 0;
  height: 300px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 0;
  isolation: isolate;
  background: linear-gradient(160deg, #1A1540 0%, #0F0E28 45%, #08091E 100%);
  box-shadow: none;
}
/* Bottom fade-to-page — full merge into dark page bg. Single layer doing the
   work since the photo mask was removed for scroll performance. */
.hero-cinematic:not(.hero-cinematic--compact) .hero-fade-bottom {
  content: '';
  position: absolute; inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(13,16,32,0.15) 12%,
    rgba(13,16,32,0.40) 30%,
    rgba(13,16,32,0.70) 50%,
    rgba(13,16,32,0.92) 72%,
    rgba(13,16,32,0.99) 88%,
    var(--tiyo-surface) 100%);
  pointer-events: none;
  z-index: 6;
}
/* Top scrim — disabled; app-header now provides the gradient blend into photo. */
.hero-cinematic:not(.hero-cinematic--compact) .hero-fade-top {
  display: none;
}

/* Compact variant ─— card-inset (Thu/Fri informational states), does NOT flow under header */
.hero-cinematic--compact {
  height: 140px;
  margin: 0 16px 16px;
  padding-top: 0;
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 24px 48px -20px rgba(0,0,0,0.7);
}
.hero-cinematic--compact .hero-cinematic-track::before {
  width: 120px; height: 120px;
}
.hero-cinematic--compact .hero-cinematic-track::after {
  width: 70px; height: 70px;
}
.hero-cinematic--compact .hero-img-placeholder { font-size: 8px; }

/* Compact: countdown chip — top-left */
.hero-countdown-chip {
  position: absolute; top: 12px; left: 14px; z-index: 9;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  background: rgba(8,9,30,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(230,172,23,0.30);
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--tiyo-gold-bright);
}
.hero-countdown-chip [data-lucide] { width: 11px; height: 11px; }

/* Compact: big race title + sponsor line combined */
.hero-cinematic--compact .hero-cinematic-content {
  padding: 10px 14px 12px;
}
.hero-cinematic--compact .hero-brought-by { font-size: 9px; margin-bottom: 2px; }
.hero-cinematic--compact .hero-sponsor-logo { width: 32px; height: 32px; font-size: 11px; }
.hero-cinematic--compact .hero-sponsor-name { font-size: 13px; }
.hero-cinematic--compact .hero-sponsor-sub  { font-size: 10px; }
.hero-cinematic--compact .hero-sponsor-lockup { width: 100px; height: 24px; }
.hero-cinematic--compact .hero-sponsor-inline { gap: 8px; }

/* ── Live race strip (Sat/Results only) ── */
.hero-live-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  min-height: 40px;
  border-radius: 10px;
  background: rgba(8,9,30,0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(239,68,68,0.28);
}
.hero-live-strip .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
  animation: live-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.hero-live-race {
  font-size: 12px; font-weight: 800;
  color: #FCA5A5;
  letter-spacing: 0.05em; text-transform: uppercase;
  flex-shrink: 0;
}
.hero-live-name {
  flex: 1;
  font-size: 12px; font-weight: 600;
  color: var(--tiyo-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-live-timer {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800;
  color: var(--tiyo-gold-bright);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.hero-live-timer [data-lucide] { width: 12px; height: 12px; }
.hero-live-strip.results-mode { border-color: rgba(96,165,250,0.35); }
.hero-live-strip.results-mode .live-dot {
  background: #60A5FA;
  box-shadow: 0 0 0 0 rgba(96,165,250,0.6);
}
.hero-live-strip.results-mode .hero-live-race { color: #93C5FD; }

/* Sponsor block inside content — holds brought-by + row together */
.hero-sponsor-block { display: block; }

/* ── Layer 0: Horse racing photo (neon cinematic) ── */
.hero-cinematic-photo {
  position: absolute; inset: 0; z-index: 0;
  background-color: #0A0C1A;
  background-image: url('/assets/hero-race-dynamic.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 20%;
  filter: saturate(1.10) contrast(1.05);
  will-change: transform;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-cinematic-photo::after {
  content: '';
  position: absolute; inset: 0;
  /* Subtle vignette + slight indigo tint matching app palette */
  background:
    radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(8,9,22,0.45) 100%),
    linear-gradient(180deg, transparent 0%, transparent 60%, rgba(13,16,32,0.25) 100%);
}
/* Dim the CSS-art layers when a photo is used so they don't fight */
.hero-cinematic:has(.hero-cinematic-photo) .hero-cinematic-bg { opacity: 0.25; }
.hero-cinematic:has(.hero-cinematic-photo) .hero-cinematic-track { opacity: 0.15; }
.hero-cinematic:has(.hero-cinematic-photo) .hero-cinematic-lines { opacity: 0.20; }
.hero-cinematic:has(.hero-cinematic-photo) .hero-cinematic-bokeh { opacity: 0.35; }

/* ── Layer 1: Ambient glow field (TIYO palette) ──
   Soft radial wash — indigo + gold + blue, matching reference calm mood. */
.hero-cinematic-bg {
  position: absolute; inset: 0; z-index: 1;
  will-change: transform;
  background:
    /* Central warm gold core glow */
    radial-gradient(ellipse 55% 45% at 50% 45%, rgba(230,172,23,0.28) 0%, transparent 65%),
    /* Left indigo halo */
    radial-gradient(ellipse 45% 60% at 15% 30%, rgba(124,58,237,0.22) 0%, transparent 60%),
    /* Right indigo-blue halo */
    radial-gradient(ellipse 45% 60% at 85% 70%, rgba(79,70,229,0.20) 0%, transparent 60%),
    /* Bottom deep wash */
    radial-gradient(ellipse 100% 50% at 50% 110%, rgba(8,9,30,0.85) 0%, transparent 70%);
  animation: hero-atm 7s ease-in-out infinite alternate;
}
@keyframes hero-atm {
  from { opacity: 0.85; }
  to   { opacity: 1; }
}

/* ── Layer 2: Glowing subject orb (centered, like reference lens) ──
   Stylised circular prismatic object in TIYO palette.
   In production: swap for horseshoe/trophy SVG or AI-generated photo. */
.hero-cinematic-track {
  position: absolute; inset: 0; z-index: 2;
  will-change: transform;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-cinematic-track::before {
  /* Outer soft halo */
  content: '';
  width: 200px; height: 200px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(245,200,66,0.35) 0%, rgba(124,58,237,0.25) 45%, transparent 72%);
  filter: blur(18px);
  animation: orb-breathe 5s ease-in-out infinite alternate;
}
.hero-cinematic-track::after {
  /* Inner prismatic disc — conic gradient through TIYO colors */
  content: '';
  position: absolute;
  width: 130px; height: 130px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.55) 0%, transparent 30%),
    conic-gradient(from 140deg,
      #F5C842 0deg,
      #E6AC17 55deg,
      #7C3AED 140deg,
      #4F46E5 210deg,
      #60A5FA 280deg,
      #F5C842 360deg);
  box-shadow:
    0 0 40px rgba(245,200,66,0.55),
    0 0 80px rgba(124,58,237,0.40),
    inset 0 -20px 30px rgba(8,9,30,0.55),
    inset 0 8px 18px rgba(255,255,255,0.12);
  animation: orb-spin 18s linear infinite;
}
@keyframes orb-breathe {
  from { transform: scale(0.96); opacity: 0.75; }
  to   { transform: scale(1.04); opacity: 1; }
}
@keyframes orb-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Layer 3: Prismatic light streaks (vertical bars like reference) ── */
.hero-cinematic-lines {
  position: absolute; inset: 0; z-index: 3;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 42px,
    rgba(245,200,66,0.04) 42px, rgba(245,200,66,0.04) 43px,
    transparent 43px, transparent 88px,
    rgba(124,58,237,0.05) 88px, rgba(124,58,237,0.05) 89px
  );
  mask-image: radial-gradient(ellipse 40% 50% at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 40% 50% at 50% 50%, black 40%, transparent 80%);
  pointer-events: none;
}

/* ── Layer 4: Floating particle bokeh in TIYO palette ── */
.hero-cinematic-bokeh::before,
.hero-cinematic-bokeh::after {
  content: '';
  position: absolute; z-index: 4;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(245,200,66,0.7);
  filter: blur(1.5px);
}
.hero-cinematic-bokeh::before {
  top: 30px; left: 40px;
  box-shadow:
    80px  20px 8px 1px rgba(245,200,66,0.35),
    160px 50px 10px 2px rgba(124,58,237,0.40),
    240px 15px 6px  1px rgba(245,200,66,0.30),
    40px  110px 8px 2px rgba(79,70,229,0.30),
    200px 140px 6px 1px rgba(96,165,250,0.25);
  animation: bokeh-drift-a 6s ease-in-out infinite alternate;
}
.hero-cinematic-bokeh::after {
  top: 80px; left: 120px;
  box-shadow:
    60px  40px 8px 2px rgba(124,58,237,0.30),
    140px 90px 10px 2px rgba(245,200,66,0.35),
    220px 20px 6px  1px rgba(96,165,250,0.25);
  animation: bokeh-drift-b 5s ease-in-out infinite alternate;
}
@keyframes bokeh-drift-a {
  from { transform: translate(0, 0); }
  to   { transform: translate(5px, -4px); }
}
@keyframes bokeh-drift-b {
  from { transform: translate(0, 0); }
  to   { transform: translate(-4px, 3px); }
}
.hero-cinematic-bokeh { position: absolute; inset: 0; z-index: 4; }

/* ── AI image placeholder label — hidden in prod-like render ── */
.hero-img-placeholder {
  display: none;
}

/* ── Soften the scan sweep ── */
.hero-cinematic::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 50%; height: 100%; z-index: 7;
  background: linear-gradient(
    108deg,
    transparent 0%,
    rgba(255,255,255,0.02) 40%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.02) 60%,
    transparent 100%
  );
  animation: cin-scan 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cin-scan {
  0%   { transform: translateX(0); }
  65%  { transform: translateX(620%); }
  100% { transform: translateX(620%); }
}

/* ── Bottom gradient — legacy; handled by .hero-fade-bottom div now ── */
.hero-cinematic::after {
  display: none;
}

/* ── State badge — top-left pill ── */
.hero-cinematic-badge {
  position: absolute; top: 14px; left: 20px; z-index: 9;
  font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
/* On full-bleed large hero, push badge below the transparent app-header */
.hero-cinematic:not(.hero-cinematic--compact) .hero-cinematic-badge {
  top: 70px;
}
.hero-cinematic-badge.live {
  background: rgba(239,68,68,0.22); border: 1px solid rgba(239,68,68,0.50); color: #FCA5A5;
}
.hero-cinematic-badge.results {
  background: rgba(96,165,250,0.18); border: 1px solid rgba(96,165,250,0.45); color: #93C5FD;
}
.hero-cinematic-badge.final {
  background: rgba(230,172,23,0.18); border: 1px solid rgba(230,172,23,0.50); color: var(--tiyo-gold-bright);
}

/* ── Content: "Brought to you by" + sponsor ── */
.hero-cinematic-content {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 9;
  padding: 16px;
  display: flex; flex-direction: column;
  gap: 12px;
}
/* Full-bleed large hero: wider padding, sit above the fade */
.hero-cinematic:not(.hero-cinematic--compact) .hero-cinematic-content {
  padding: 16px 20px 28px;
  z-index: 7; /* above scrim (z:5) and bottom fade (z:4) */
}
.hero-brought-by {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin-bottom: 4px; /* 4dp breathing room before sponsor row */
}
.hero-sponsor-row {
  display: flex; align-items: center; gap: 10px;
}
/* Sponsor logo — tonal glass tile */
.hero-sponsor-logo {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: rgba(255,255,255,0.60);
  letter-spacing: -0.01em;
  overflow: hidden;
}
/* Logo variant that displays a brand image (fills the tile, keeps glass border) */
.hero-sponsor-logo.has-image {
  background: #000;
  background-image: var(--sponsor-logo-url);
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}
/* Horizontal logo lockup — inline with "Brought to you by" label */
.hero-sponsor-lockup {
  display: inline-block;
  vertical-align: middle;
  width: 120px;
  height: 28px;
  background-image: var(--sponsor-logo-url);
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6)) drop-shadow(0 0 1px rgba(255,255,255,0.3));
}
/* Inline sponsor line: label + logo side-by-side */
.hero-sponsor-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-sponsor-inline .hero-brought-by {
  margin-bottom: 0;
  flex-shrink: 0;
}
.hero-sponsor-info { flex: 1; min-width: 0; }
.hero-sponsor-name {
  font-size: 17px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--tiyo-text); line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-sponsor-sub {
  font-size: 10px; color: rgba(255,255,255,0.42); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* CTA chip — gold outlined, pill */
.hero-cta-chip {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 11px; border-radius: 15px;
  background: rgba(230,172,23,0.14);
  border: 1px solid rgba(230,172,23,0.42);
  font-family: var(--tiyo-font-ui);
  font-size: 11px; font-weight: 700; color: var(--tiyo-gold);
  cursor: pointer; letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s;
}
.hero-cta-chip:hover { background: rgba(230,172,23,0.22); border-color: rgba(230,172,23,0.65); }
.hero-cta-chip [data-lucide] { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════════════════════
   Cinematic screen identifier
   ═══════════════════════════════════════════════════════════ */
.cinematic-id {
  position: absolute; inset: 0;
  z-index: 600;
  border-radius: 52px;
  overflow: hidden;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.cinematic-id.visible { opacity: 1; }
.cinematic-scan-line {
  position: absolute; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--tiyo-gold) 30%, var(--tiyo-gold-bright) 50%, var(--tiyo-gold) 70%, transparent 100%);
  animation: cin-scanline 0.8s linear;
  opacity: 0;
}
.cinematic-id.visible .cinematic-scan-line {
  opacity: 1;
  top: 50%;
}
@keyframes cin-scanline {
  0%   { top: 0%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.cinematic-sub {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tiyo-gold-muted);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s 0.12s ease, transform 0.22s 0.12s ease;
}
.cinematic-title {
  font-size: 52px; font-weight: 900;
  color: var(--tiyo-gold);
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.22s 0.08s ease, transform 0.22s 0.08s var(--tiyo-ease-spring);
}
.cinematic-id.visible .cinematic-sub,
.cinematic-id.visible .cinematic-title {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════
   T1 — Home / Race Day
   ═══════════════════════════════════════════════════════════ */
.race-day-hero {
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(79,70,229,0.08) 0%, transparent 100%);
}
.race-day-label {
  font-size: 13px; color: var(--tiyo-text-muted);
  margin-bottom: 2px;
}
.race-day-date {
  font-size: 22px; font-weight: 700;
  color: var(--tiyo-text);
  margin-bottom: 10px;
  font-family: var(--tiyo-font-display);
}
.gate-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
/* Green "PICKS CLOSED" pill — calmer, informational */
.gate-pill.open {
  background: rgba(16,185,129,0.12);
  color: #10B981;
  border: 1px solid rgba(16,185,129,0.30);
}
/* Red LIVE-style "RACING NOW" pill — pulses urgently */
.live-now-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 10px;
  background: #EF4444;
  color: #fff;
  border-radius: 999px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.55);
  animation: live-now-glow 1.8s ease-in-out infinite;
}
@keyframes live-now-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
.lnp-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: lnp-dot-pulse 1.1s ease-in-out infinite;
}
@keyframes lnp-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.7); }
}
.gate-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em;
}
.gate-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hot-streak-banner {
  margin: 14px 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--tiyo-gradient-hot-streak);
  box-shadow: var(--tiyo-glow-hot-streak);
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  animation: banner-in 0.6s var(--tiyo-ease-spring) forwards;
}
@keyframes banner-in {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.hot-streak-icon { font-size: 26px; flex-shrink: 0; }
.hot-streak-text h3 {
  font-size: 14px; font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hot-streak-text p {
  font-size: 12px; color: rgba(255,255,255,0.80);
  margin-top: 1px;
}
.hot-streak-badge {
  margin-left: auto;
  background: rgba(0,0,0,0.25);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 16px; font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.race-cards-scroll {
  display: flex; gap: 10px;
  padding: 0 20px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 4px;
  /* snap so cards land neatly */
  scroll-snap-type: x mandatory;
}
.race-cards-scroll::-webkit-scrollbar { display: none; }
.race-card-mini {
  flex-shrink: 0;
  /* 2 cards + 10px gap + 24px peek = (350-10-24)/2 = 158px */
  width: 158px;
  min-height: 104px;         /* fixed floor so cards in a row are equal height */
  scroll-snap-align: start;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  /* flex column: top content flows down, chip/status always pins to bottom */
  display: flex; flex-direction: column;
}
.race-card-mini:hover { border-color: var(--tiyo-border-active); }
.race-card-mini.picked { border-color: rgba(16,185,129,0.40); }
.race-card-mini .race-num {
  font-size: 10px; font-weight: 700;
  line-height: 16px;
  color: var(--tiyo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.race-card-mini .race-name {
  font-size: 14px; font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.01em;
  color: var(--tiyo-text);
  margin: 6px 0 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* race-time also shows "Winner: X" on result cards — always 1 line */
.race-card-mini .race-time {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  color: var(--tiyo-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* status/chip always at the bottom of the card */
.race-card-mini .race-status {
  margin-top: auto;
  padding-top: 10px;
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.04em;
}
.race-card-mini .race-status.picked { color: #10B981; }
.race-card-mini .race-status.empty  { color: var(--tiyo-text-muted); }
.race-card-mini .race-status.closed { color: var(--tiyo-text-muted); }

/* ── Race Day bottom sheet ── */
.race-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,8,16,0.72);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  border-radius: 52px;
  overflow: hidden;
}
.race-sheet-overlay.open { display: flex; }
.race-sheet {
  width: 100%;
  background: var(--tiyo-surface-elevated);
  border-top: 1px solid var(--tiyo-border-strong);
  border-radius: 24px 24px 0 0;
  padding: 0 0 24px;
  max-height: 78%;
  display: flex;
  flex-direction: column;
  animation: sheetUp 0.28s var(--tiyo-ease-spring);
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.race-sheet-handle {
  width: 36px; height: 4px;
  background: var(--tiyo-border-strong);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}
.race-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 10px;
  flex-shrink: 0;
}
.race-sheet-title {
  font-size: 16px; font-weight: 800;
  color: var(--tiyo-text);
}
.race-sheet-close {
  width: 28px; height: 28px;
  background: var(--tiyo-surface-highest);
  border: 1px solid var(--tiyo-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--tiyo-text-muted);
}
.race-sheet-body {
  overflow-y: auto;
  padding: 0 16px;
  scrollbar-width: none;
}
.race-sheet-body::-webkit-scrollbar { display: none; }
.race-sheet-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--tiyo-border);
  cursor: pointer;
}
.race-sheet-row:last-child { border-bottom: none; }
.rsr-num {
  font-size: 11px; font-weight: 800;
  color: var(--tiyo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 46px; flex-shrink: 0;
}
.rsr-info { flex: 1; min-width: 0; }
.rsr-name {
  font-size: 13px; font-weight: 700;
  color: var(--tiyo-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rsr-meta { font-size: 11px; color: var(--tiyo-text-muted); margin-top: 2px; }
.rsr-status {
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.rsr-status.picked { color: #10B981; }
.rsr-status.empty  { color: var(--tiyo-text-muted); }
.rsr-status.closed { color: var(--tiyo-score-miss); }

/* ══════ ALL RACES screen ══════ */
.ar-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--tiyo-border);
}
.ar-back {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--tiyo-text-secondary);
  cursor: pointer; transition: border-color 0.15s;
}
.ar-back:hover { border-color: var(--tiyo-border-active); }
.ar-back [data-lucide] { width: 18px; height: 18px; }
.ar-title-block { flex: 1; min-width: 0; }
.ar-title {
  font-family: var(--tiyo-font-display, var(--tiyo-font-ui));
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--tiyo-text); line-height: 1.1;
}
.ar-subtitle {
  font-size: 11px; font-weight: 600; color: var(--tiyo-text-muted);
  letter-spacing: 0.02em; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ar-header-right { display: flex; align-items: center; gap: 8px; }
.ar-icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--tiyo-text-secondary); cursor: pointer;
}
.ar-icon-btn [data-lucide] { width: 16px; height: 16px; }

/* Summary strip */
.ar-summary {
  display: flex; align-items: stretch;
  margin: 14px 16px 0;
  padding: 12px 4px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 14px;
}
.ar-sum-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0;
}
.ar-sum-v {
  font-family: var(--tiyo-font-display, var(--tiyo-font-ui));
  font-size: 20px; font-weight: 800; color: var(--tiyo-text);
  line-height: 1; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.ar-sum-v.ar-sum-gold { color: var(--tiyo-gold); }
.ar-sum-tot { font-size: 13px; color: var(--tiyo-text-muted); font-weight: 700; }
.ar-sum-l {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
  margin-top: 4px;
}
.ar-sum-div { width: 1px; background: var(--tiyo-border); margin: 4px 0; }

/* Progress */
.ar-progress-wrap { margin: 10px 16px 0; }
.ar-progress-track {
  height: 6px; border-radius: 3px;
  background: var(--tiyo-surface-highest);
  overflow: hidden;
}
.ar-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--tiyo-gold-deep), var(--tiyo-gold-bright));
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}
.ar-progress-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35) 50%, transparent);
  transform: translateX(-100%);
  animation: progress-shimmer 2.4s ease-in-out infinite;
}
.ar-progress-text {
  margin-top: 8px;
  font-size: 11px; font-weight: 600;
  color: var(--tiyo-text-muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px;
}
.ar-progress-text > span:first-child { color: var(--tiyo-text-secondary); }
.ar-deadline { color: #F59E0B; }

/* Filter chips */
.ar-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 14px 16px 0;
}
.ar-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: var(--tiyo-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.ar-chip:hover { border-color: var(--tiyo-border-active); }
.ar-chip.active {
  background: var(--tiyo-gold); color: var(--tiyo-gold-on);
  border-color: var(--tiyo-gold);
}
.ar-chip-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--tiyo-surface-highest);
  border-radius: 9px;
  font-size: 10px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--tiyo-text-muted);
}
.ar-chip.active .ar-chip-count {
  background: rgba(13,16,32,0.22); color: var(--tiyo-gold-on);
}

/* Race card list */
.ar-list { margin: 14px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.ar-card {
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.08s;
  position: relative;
  overflow: hidden;
}
.ar-card:hover { border-color: var(--tiyo-border-active); }
.ar-card:active { transform: scale(0.995); }
.ar-card.picked { border-color: rgba(16,185,129,0.38); }
.ar-card.picked::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,185,129,0.08) 0%, transparent 40%);
  pointer-events: none;
}
.ar-card.banker { border-color: rgba(230,172,23,0.45); }
.ar-card.banker::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(230,172,23,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.ar-card.closed { opacity: 0.72; }
.ar-card.live {
  border-color: rgba(239,68,68,0.45);
  background: linear-gradient(180deg, rgba(239,68,68,0.08), var(--tiyo-surface-raised) 60%);
  animation: ar-live-pulse 2s ease-in-out infinite;
}
@keyframes ar-live-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50% { box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
}

.ar-card-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  position: relative;
}
.ar-rn {
  font-family: var(--tiyo-font-display, var(--tiyo-font-ui));
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.ar-time {
  font-size: 11px; font-weight: 700;
  color: var(--tiyo-text-secondary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.ar-time-dot { color: var(--tiyo-text-muted); opacity: 0.5; }
.ar-name {
  flex: 1; min-width: 0;
  font-size: 14px; font-weight: 700;
  color: var(--tiyo-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.005em;
}
.ar-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--tiyo-text-muted); font-weight: 600;
  margin-bottom: 10px;
}
.ar-meta-dot { opacity: 0.4; }

.ar-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  flex-shrink: 0;
  position: relative;
}
.ar-status-badge [data-lucide] { width: 11px; height: 11px; }
.ar-status-badge.picked {
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.36);
  color: #10B981;
}
.ar-status-badge.topick {
  background: rgba(230,172,23,0.14);
  border: 1px solid rgba(230,172,23,0.38);
  color: var(--tiyo-gold-bright);
}
.ar-status-badge.closed {
  background: rgba(123,132,163,0.14);
  border: 1px solid rgba(123,132,163,0.30);
  color: var(--tiyo-text-muted);
}
.ar-status-badge.live {
  background: rgba(239,68,68,0.14);
  border: 1px solid rgba(239,68,68,0.45);
  color: #EF4444;
}
.ar-status-badge.live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #EF4444; display: inline-block;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.5);
  animation: ar-live-dot 1.5s ease-out infinite;
}
@keyframes ar-live-dot {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  100% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.ar-status-badge.done {
  background: rgba(79,70,229,0.16);
  border: 1px solid rgba(99,102,241,0.36);
  color: #A5B4FC;
}

/* Your picks inline */
.ar-picks {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  background: var(--tiyo-surface);
  border: 1px dashed var(--tiyo-border);
  border-radius: 10px;
  margin-bottom: 10px;
}
.ar-card.picked .ar-picks { border-style: solid; border-color: rgba(16,185,129,0.22); }
.ar-picks-label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
  margin-right: 2px;
}
.ar-pick-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  background: var(--tiyo-surface-highest);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  color: var(--tiyo-text);
  font-variant-numeric: tabular-nums;
}
.ar-pick-pos {
  font-size: 9px; font-weight: 800;
  color: var(--tiyo-text-muted);
  letter-spacing: 0.04em;
}
.ar-pick-banker {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800;
  color: var(--tiyo-gold);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.ar-pick-banker [data-lucide] { width: 12px; height: 12px; }

/* Pick pills inside ar-picks — use the shared .rln-trio/.rln-pick pattern */
.ar-picks .rln-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.ar-picks .rln-trio .rln-pick {
  text-align: center;
  padding: 4px 6px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ar-card.banker .ar-picks .rln-trio .rln-pick:first-child {
  background: rgba(230,172,23,0.18);
  color: var(--tiyo-gold-bright);
}

/* No-pick row */
.ar-no-picks {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: var(--tiyo-surface);
  border: 1px dashed var(--tiyo-border);
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 11px; font-weight: 600; color: var(--tiyo-text-muted);
}
.ar-no-picks-cta {
  color: var(--tiyo-gold); font-weight: 800; font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* Card footer */
.ar-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.ar-runners {
  font-size: 11px; color: var(--tiyo-text-muted); font-weight: 600;
}
.ar-runners strong { color: var(--tiyo-text-secondary); }
.ar-cta-row {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--tiyo-surface-highest);
  border: 1px solid var(--tiyo-border);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  color: var(--tiyo-text-secondary);
}
.ar-card.topick-card .ar-cta-row {
  background: var(--tiyo-gold); color: var(--tiyo-gold-on);
  border-color: var(--tiyo-gold);
}
.ar-cta-row [data-lucide] { width: 12px; height: 12px; }

/* Result row (finished race) */
.ar-result {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  background: var(--tiyo-surface);
  border: 1px solid var(--tiyo-border);
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 11px;
}
.ar-result-label {
  font-size: 10px; font-weight: 800; color: var(--tiyo-text-muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-right: 4px;
}
.ar-result-pos {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--tiyo-text-secondary);
  font-variant-numeric: tabular-nums;
}
.ar-result-pts {
  margin-left: auto;
  font-size: 12px; font-weight: 800;
  color: var(--tiyo-gold);
  font-variant-numeric: tabular-nums;
}
.ar-result-pts.zero { color: var(--tiyo-text-muted); }

/* ══════ REZILTA · HISTORY & STATS panes ══════ */

/* Date search */
.rz-search-wrap {
  position: relative;
  margin: 12px 16px 0;
}
.rz-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 36px 10px 36px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 10px;
  font-family: var(--tiyo-font-ui);
  font-size: 13px; font-weight: 500;
  color: var(--tiyo-text);
  outline: none;
  transition: border-color 0.15s;
}
.rz-search-input::placeholder { color: var(--tiyo-text-muted); font-weight: 500; }
.rz-search-input:focus { border-color: var(--tiyo-border-active); }
.rz-search-ico, .rz-search-clear {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--tiyo-text-muted);
  pointer-events: none;
}
.rz-search-ico { left: 12px; }
.rz-search-clear { right: 12px; cursor: pointer; pointer-events: auto; }
.rz-search-clear:hover { color: var(--tiyo-text-secondary); }

/* Day strip label */
.rz-daystrip-label {
  margin: 16px 16px 8px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
}

/* Horizontal day strip */
.rz-daystrip {
  display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 4px 16px 10px;
  scrollbar-width: none;
}
.rz-daystrip::-webkit-scrollbar { display: none; }
.rz-day-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  min-width: 62px; padding: 10px 10px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.rz-day-chip:hover { border-color: var(--tiyo-border-active); }
.rz-day-chip.active {
  background: var(--tiyo-gold);
  border-color: var(--tiyo-gold);
  box-shadow: 0 2px 10px rgba(230,172,23,0.30);
}
.rz-day-chip .rzd-day {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
}
.rz-day-chip.active .rzd-day { color: rgba(13,16,32,0.65); }
.rz-day-chip .rzd-date {
  font-family: var(--tiyo-font-display, var(--tiyo-font-ui));
  font-size: 14px; font-weight: 800;
  color: var(--tiyo-text); line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.rz-day-chip.active .rzd-date { color: var(--tiyo-gold-on); }
.rz-day-chip .rzd-pts {
  font-size: 11px; font-weight: 800;
  color: var(--tiyo-gold);
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.rz-day-chip.active .rzd-pts { color: var(--tiyo-gold-on); }
.rz-day-chip .rzd-pts.zero { color: var(--tiyo-text-muted); }
.rz-day-chip.active .rzd-pts.zero { color: rgba(13,16,32,0.55); }
.rz-day-chip .rzd-gc-dot {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tiyo-gold-bright);
  box-shadow: 0 0 0 2px var(--tiyo-surface-raised);
}
.rz-day-chip.active .rzd-gc-dot { background: rgba(13,16,32,0.85); box-shadow: 0 0 0 2px var(--tiyo-gold); }

/* Day-detail card */
.rz-day-card {
  margin: 6px 16px 14px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.rz-day-card.gc-day { border-color: rgba(230,172,23,0.40); }
.rz-day-card.gc-day::before {
  content: ''; position: absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--tiyo-gold-bright), transparent);
}
.rzdc-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.rzdc-date {
  font-family: var(--tiyo-font-display, var(--tiyo-font-ui));
  font-size: 18px; font-weight: 800;
  color: var(--tiyo-text);
  letter-spacing: -0.01em;
}
.rzdc-hippo {
  font-size: 11px; font-weight: 600;
  color: var(--tiyo-text-muted);
  margin-top: 1px;
}
.rzdc-rank-move {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
}
.rzdc-rank-move.up { color: #10B981; }
.rzdc-rank-move.down { color: #EF4444; }
.rzdc-rank-move.flat { color: var(--tiyo-text-muted); }
.rzdc-rank-arrow { font-size: 13px; line-height: 1; }
.rzdc-rank-text { color: var(--tiyo-text-muted); font-weight: 600; margin-left: 2px; font-variant-numeric: tabular-nums; }

.rzdc-total-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 12px;
}
.rzdc-total {
  font-family: var(--tiyo-font-display, var(--tiyo-font-ui));
  font-size: 44px; font-weight: 900;
  color: var(--tiyo-gold);
  line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.rzdc-total.zero { color: var(--tiyo-text-muted); }
.rzdc-total-unit { font-size: 12px; font-weight: 700; color: var(--tiyo-text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.rzdc-total-badges { margin-left: auto; display: flex; gap: 6px; }
.rzdc-mini-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 7px;
  background: rgba(230,172,23,0.14);
  border: 1px solid rgba(230,172,23,0.36);
  border-radius: 999px;
  font-size: 10px; font-weight: 800;
  color: var(--tiyo-gold-bright);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.rzdc-mini-badge [data-lucide] { width: 10px; height: 10px; }

.rzdc-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.rzdc-stat {
  background: var(--tiyo-surface);
  border: 1px solid var(--tiyo-border);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.rzdc-stat-v {
  font-family: var(--tiyo-font-display, var(--tiyo-font-ui));
  font-size: 14px; font-weight: 800; color: var(--tiyo-text);
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.rzdc-stat-l {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
}

/* Friends row on day card */
.rzdc-friends {
  padding-top: 12px;
  border-top: 1px solid var(--tiyo-border);
}
.rzdc-friends-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.rzdc-friends-title {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
}
.rzdc-friend-rows { display: flex; flex-direction: column; gap: 6px; }
.rzdc-friend-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
}
.rzdc-friend-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.rzdc-friend-name { font-weight: 600; color: var(--tiyo-text-secondary); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rzdc-friend-pts { font-weight: 800; color: var(--tiyo-gold); font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }
.rzdc-friend-rank { font-size: 10px; color: var(--tiyo-text-muted); font-weight: 600; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }

/* Day card race-list toggle button */
.rzdc-expand {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--tiyo-surface);
  border: 1px solid var(--tiyo-border);
  border-radius: 999px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--tiyo-text-secondary);
  cursor: pointer;
}
.rzdc-expand:hover { border-color: var(--tiyo-border-active); }
.rzdc-expand [data-lucide] { width: 12px; height: 12px; }

/* Race list below day card */
.rz-dayraces { margin: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.rz-dayraces.collapsed { display: none; }

/* Race detail sheet (full-screen sheet over phone) */
.rz-racedet-overlay {
  position: absolute; inset: 0;
  background: rgba(6,8,16,0.78);
  z-index: 100;
  display: none;
  align-items: flex-end;
  overflow: hidden;
}
.rz-racedet-overlay.open { display: flex; }
.rz-racedet {
  width: 100%;
  max-height: 88%;
  background: var(--tiyo-surface-elevated);
  border-top: 1px solid var(--tiyo-border-strong);
  border-radius: 24px 24px 0 0;
  padding: 0 0 24px;
  display: flex; flex-direction: column;
  animation: sheetUp 0.26s ease-out;
  overflow: hidden;
}
.rz-racedet-handle {
  width: 36px; height: 4px;
  background: var(--tiyo-border-strong);
  border-radius: 2px;
  margin: 10px auto 6px;
  flex-shrink: 0;
}
.rz-racedet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 20px 12px;
  border-bottom: 1px solid var(--tiyo-border);
  flex-shrink: 0;
}
.rz-racedet-head-l { min-width: 0; flex: 1; }
.rz-racedet-title {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--tiyo-font-display, var(--tiyo-font-ui));
  font-size: 16px; font-weight: 800;
  color: var(--tiyo-text);
  letter-spacing: -0.01em;
}
.rz-racedet-title .rzrd-rn { color: var(--tiyo-text-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.rz-racedet-sub { font-size: 11px; color: var(--tiyo-text-muted); font-weight: 600; margin-top: 2px; }
.rz-racedet-close {
  width: 28px; height: 28px;
  background: var(--tiyo-surface-highest);
  border: 1px solid var(--tiyo-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--tiyo-text-muted); flex-shrink: 0;
}
.rz-racedet-body {
  overflow-y: auto; padding: 16px 20px;
  scrollbar-width: none;
}
.rz-racedet-body::-webkit-scrollbar { display: none; }

.rzrd-section-title {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
  margin: 14px 0 8px;
}
.rzrd-section-title:first-child { margin-top: 0; }

/* Your picks vs actual scorecard */
.rzrd-scorecard {
  background: var(--tiyo-surface);
  border: 1px solid var(--tiyo-border);
  border-radius: 12px;
  padding: 12px;
}
.rzrd-scorecard-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tiyo-border);
  margin-bottom: 10px;
}
.rzrd-scorecard-pts {
  font-family: var(--tiyo-font-display, var(--tiyo-font-ui));
  font-size: 20px; font-weight: 800;
  color: var(--tiyo-gold);
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.rzrd-scorecard-pts.zero { color: var(--tiyo-text-muted); }
.rzrd-scorecard-row {
  display: grid; grid-template-columns: 36px 1fr 1fr 24px;
  gap: 10px; align-items: center;
  padding: 8px 0;
  font-size: 12px;
}
.rzrd-scorecard-row + .rzrd-scorecard-row { border-top: 1px solid var(--tiyo-border); }
.rzrd-scorecard-pos { font-size: 10px; font-weight: 800; color: var(--tiyo-text-muted); letter-spacing: 0.06em; }
.rzrd-scorecard-you { font-weight: 700; color: var(--tiyo-text-secondary); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rzrd-scorecard-you.miss { color: var(--tiyo-text-muted); text-decoration: line-through; text-decoration-color: rgba(239,68,68,0.5); }
.rzrd-scorecard-actual { font-weight: 700; color: var(--tiyo-text); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rzrd-scorecard-hit {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rzrd-scorecard-hit [data-lucide] { width: 12px; height: 12px; }
.rzrd-scorecard-hit.hit { background: rgba(16,185,129,0.18); color: #10B981; }
.rzrd-scorecard-hit.miss { background: rgba(239,68,68,0.14); color: #EF4444; }

/* Full finishers list */
.rzrd-finish-row {
  display: grid; grid-template-columns: 28px 1fr 60px;
  gap: 10px; align-items: center;
  padding: 9px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--tiyo-border);
}
.rzrd-finish-row:last-child { border-bottom: none; }
.rzrd-finish-pos {
  font-family: var(--tiyo-font-display, var(--tiyo-font-ui));
  font-size: 13px; font-weight: 800;
  color: var(--tiyo-text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.rzrd-finish-pos.medal-1 { color: var(--tiyo-gold); }
.rzrd-finish-pos.medal-2 { color: #C0C8E0; }
.rzrd-finish-pos.medal-3 { color: #B87333; }
.rzrd-finish-horse { min-width: 0; }
.rzrd-finish-name {
  font-size: 13px; font-weight: 700; color: var(--tiyo-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: -0.005em;
}
.rzrd-finish-jockey { font-size: 10px; color: var(--tiyo-text-muted); font-weight: 600; margin-top: 1px; }
.rzrd-finish-odds {
  font-size: 11px; font-weight: 700;
  color: var(--tiyo-text-secondary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rzrd-finish-row.in-your-picks {
  background: linear-gradient(90deg, rgba(16,185,129,0.06), transparent);
  border-left: 2px solid rgba(16,185,129,0.5);
  padding-left: 8px; margin-left: -10px;
}

/* Community splits */
.rzrd-split-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 12px;
}
.rzrd-split-pick { font-weight: 700; color: var(--tiyo-text-secondary); min-width: 64px; font-variant-numeric: tabular-nums; }
.rzrd-split-bar-wrap { flex: 1; height: 8px; background: var(--tiyo-surface); border-radius: 4px; overflow: hidden; }
.rzrd-split-bar { height: 100%; background: linear-gradient(90deg, var(--tiyo-gold-deep), var(--tiyo-gold-bright)); border-radius: 4px; }
.rzrd-split-bar.you { background: linear-gradient(90deg, #059669, #10B981); }
.rzrd-split-pct { font-size: 11px; font-weight: 700; color: var(--tiyo-text-muted); min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }

/* ── Stats pane ── */
.rz-stats-hero {
  margin: 14px 16px 0;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 16px;
  padding: 16px;
}
.rz-stats-hero-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px;
}
.rz-stats-hero-title {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
}
.rz-stats-hero-period { font-size: 11px; color: var(--tiyo-text-muted); font-weight: 600; }
.rz-stats-big {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 14px;
}
.rz-stats-big-v {
  font-family: var(--tiyo-font-display, var(--tiyo-font-ui));
  font-size: 44px; font-weight: 900;
  color: var(--tiyo-gold);
  line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.rz-stats-big-unit { font-size: 12px; font-weight: 700; color: var(--tiyo-text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.rz-stats-big-delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 700;
  margin-left: auto;
}
.rz-stats-big-delta.up { color: #10B981; }
.rz-stats-big-delta.down { color: #EF4444; }

/* Sparkline / chart container */
.rz-chart {
  margin: 14px 16px 0;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 16px;
  padding: 16px;
}
.rz-chart-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.rz-chart-title {
  font-size: 13px; font-weight: 800;
  color: var(--tiyo-text);
  letter-spacing: -0.01em;
}
.rz-chart-subtitle { font-size: 11px; color: var(--tiyo-text-muted); font-weight: 600; }
.rz-chart-legend {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700;
  color: var(--tiyo-text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.rz-chart-legend .rzcl-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.rz-chart-svg { display: block; width: 100%; height: 120px; }
.rz-chart-axis {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 9px; font-weight: 700;
  color: var(--tiyo-text-muted);
  letter-spacing: 0.04em;
}

/* KPI grid */
.rz-kpi-grid {
  margin: 14px 16px 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rz-kpi {
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 14px;
  padding: 14px;
}
.rz-kpi-l {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
  margin-bottom: 6px;
}
.rz-kpi-v {
  font-family: var(--tiyo-font-display, var(--tiyo-font-ui));
  font-size: 24px; font-weight: 800;
  color: var(--tiyo-text);
  line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.rz-kpi-v.gold { color: var(--tiyo-gold); }
.rz-kpi-sub { font-size: 11px; color: var(--tiyo-text-muted); font-weight: 600; margin-top: 4px; }
.rz-kpi-sub.up { color: #10B981; }
.rz-kpi-sub.down { color: #EF4444; }

/* ── XPER / Pundit list row — compact list item ── */
.pundit-row {
  display: flex !important; /* override state .block never applies here */
  align-items: center;
  gap: 10px;
  padding: 10px 16px;        /* bumped vertical padding for breathing room */
  min-height: 60px;
  cursor: pointer;
  transition: background 0.15s;
}
.pundit-row:hover { background: var(--tiyo-surface-raised); }
.pundit-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
/* text block fills remaining width */
.pundit-info {
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.pundit-name {
  font-size: 13px; font-weight: 600;
  color: var(--tiyo-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pundit-stat {
  font-size: 11px; color: var(--tiyo-text-muted);
  margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* badge icon — trailing element, stays compact */
.pundit-badge {
  flex-shrink: 0;
  display: flex; align-items: center;
  padding: 4px 6px;
}
.pundit-badge--revealed {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(52,211,153,0.14);
  color: #34D399;
  border: 1px solid rgba(52,211,153,0.35);
  animation: pundit-revealed-pulse 2.4s ease-in-out infinite;
}
.pundit-badge--revealed [data-lucide] { width: 14px; height: 14px; }
@keyframes pundit-revealed-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.35); }
  50%      { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}

/* ── Community section ── */
.online-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0 20px 8px;
  font-size: 11px; font-weight: 600;
  color: var(--tiyo-text-muted);
}

/* Friends online header — compact with inline status */
.community-subhead--friends {
  padding-bottom: 4px;
}
.community-subhead--friends .community-subhead-status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.01em; text-transform: none;
  color: var(--tiyo-text-muted);
}
.community-subhead--friends .community-subhead-status .online-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.65);
  animation: pulse-online 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Community sub-section headers (Friends online / Feed / XPER insights) */
.community-subhead {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 20px 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
}
.community-subhead [data-lucide] { width: 14px; height: 14px; color: var(--tiyo-gold); }
.community-subhead-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  font-size: 10px; font-weight: 800;
  background: rgba(52,211,153,0.15);
  color: #34D399;
  letter-spacing: 0;
}

/* XPER insights cards */
.xper-insights {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 20px;
}
.xper-insight-card {
  background:
    linear-gradient(180deg, rgba(99,102,241,0.05) 0%, rgba(99,102,241,0.00) 100%),
    var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 14px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.xpi-head { display: flex; align-items: center; gap: 10px; }
.xpi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.xpi-meta { flex: 1; min-width: 0; }
.xpi-name {
  font-size: 13px; font-weight: 700; color: var(--tiyo-text);
  display: flex; align-items: center; gap: 6px;
}
.xpi-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(99,102,241,0.15);
  color: #A5B4FC;
}
.xpi-badge [data-lucide] { width: 9px; height: 9px; stroke-width: 2.5; }
.xpi-sub { font-size: 10px; font-weight: 600; color: var(--tiyo-text-muted); margin-top: 2px; letter-spacing: 0.02em; }
.xpi-body {
  display: flex; flex-direction: column; gap: 6px;
}
.xpi-tag {
  align-self: flex-start;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(245,200,66,0.15);
  color: var(--tiyo-gold);
}
.xpi-body p {
  margin: 0;
  font-size: 13px; line-height: 1.45;
  color: var(--tiyo-text);
}
.xpi-body strong { color: var(--tiyo-gold); font-weight: 700; }
.online-pulse {
  width: 7px; height: 7px;
  background: #10B981;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-online 2s ease-in-out infinite;
}
@keyframes pulse-online {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  50%       { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}
.online-count { color: #10B981; font-weight: 700; }
.community-bubbles {
  display: flex; gap: 14px;
  padding: 0 20px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.community-bubbles::-webkit-scrollbar { display: none; }
.community-bubble {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex-shrink: 0;
  cursor: pointer;
}
.community-bubble.offline { opacity: 0.45; }
.bubble-avatar-wrap { position: relative; }
.bubble-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  border: 2px solid transparent;
  transition: border-color 0.18s;
}
.community-bubble:not(.offline) .bubble-avatar {
  border-color: rgba(16,185,129,0.45);
}
.community-bubble:not(.offline):active .bubble-avatar {
  border-color: #10B981;
}
.bubble-online {
  position: absolute; bottom: 2px; right: 2px;
  width: 11px; height: 11px;
  background: #10B981;
  border-radius: 50%;
  border: 2px solid var(--tiyo-surface);
  animation: pulse-online 2.4s ease-in-out infinite;
}
.bubble-name {
  display: none;
}
.community-bubble:not(.offline) .bubble-name { color: var(--tiyo-text-secondary); }

/* ── Thursday standings mini block ── */
.standings-mini {
  margin: 0 16px 12px;
  background: var(--tiyo-surface-elevated);
  border-radius: 14px;
  border: 1px solid var(--tiyo-border);
  overflow: hidden;
}
.standings-mini-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--tiyo-border);
}
.standings-mini-title {
  font-size: 12px; font-weight: 800;
  color: var(--tiyo-text-secondary);
  letter-spacing: 0.3px;
}
.standings-mini-date {
  font-size: 10px; font-weight: 600;
  color: var(--tiyo-text-muted);
}
.standings-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.standings-row:last-of-type { border-bottom: none; }
.standings-row.you {
  background: rgba(230,172,23,0.06);
  border-top: 1px solid rgba(230,172,23,0.14);
}
.standings-row.gold .standings-pos { color: var(--tiyo-gold-bright); }
.standings-pos {
  font-size: 11px; font-weight: 800;
  color: var(--tiyo-text-muted);
  min-width: 16px; text-align: center;
}
.standings-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.standings-avatar.you-avatar { background: linear-gradient(135deg,#4F46E5,#7C3AED); }
.standings-info {
  flex: 1; display: flex; align-items: center; gap: 7px;
  min-width: 0;
}
.standings-name {
  font-size: 12px; font-weight: 700;
  color: var(--tiyo-text-secondary);
  white-space: nowrap;
}
.standings-row.you .standings-name { color: var(--tiyo-gold-bright); }
.standings-rank-badge {
  font-size: 9px; font-weight: 800;
  color: var(--tiyo-text-muted);
  background: rgba(255,255,255,0.06);
  border-radius: 4px; padding: 1px 5px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.standings-rank-chip.tiyo-master-sm {
  font-size: 9px; font-weight: 800;
  color: var(--tiyo-gold);
  background: rgba(230,172,23,0.1);
  border: 1px solid rgba(230,172,23,0.28);
  border-radius: 4px; padding: 1px 6px;
  white-space: nowrap;
  letter-spacing: 0.4px;
}
.standings-pts {
  font-size: 11px; font-weight: 800;
  color: var(--tiyo-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.standings-row.you .standings-pts { color: var(--tiyo-gold); }
.standings-delta {
  font-size: 10px; font-weight: 700;
  color: #34D399;
}
.standings-mini-footer {
  padding: 9px 14px;
  font-size: 11px; font-weight: 700;
  color: var(--tiyo-gold);
  text-align: center;
  border-top: 1px solid var(--tiyo-border);
  cursor: pointer;
  background: rgba(230,172,23,0.03);
}
.standings-mini-footer:active { background: rgba(230,172,23,0.08); }

/* ── Friday turf news + expert insights ── */
.news-section-label {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 20px 8px;
  font-size: 11px; font-weight: 800;
  color: var(--tiyo-text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.news-section-icon { font-size: 13px; }
.turf-news-card {
  margin: 0 16px 10px;
  background: var(--tiyo-surface-elevated);
  border-radius: 12px;
  border: 1px solid var(--tiyo-border);
  padding: 11px 13px;
  display: flex; flex-direction: column; gap: 8px;
}
.turf-news-card.expert {
  border-color: rgba(230,172,23,0.18);
  background: linear-gradient(135deg, rgba(230,172,23,0.04) 0%, var(--tiyo-surface-elevated) 100%);
}
.news-badge {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 7px;
  border-radius: 4px;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.6px;
  align-self: flex-start;
}
.news-badge.tiyo-news {
  background: rgba(96,165,250,0.14);
  color: #93C5FD;
  border: 1px solid rgba(96,165,250,0.2);
}
.news-badge.expert-badge {
  background: rgba(230,172,23,0.12);
  color: var(--tiyo-gold);
  border: 1px solid rgba(230,172,23,0.25);
}
.expert-header {
  display: flex; align-items: center; gap: 9px;
}
.expert-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.expert-meta { display: flex; flex-direction: column; gap: 1px; }
.expert-name { font-size: 12px; font-weight: 800; color: var(--tiyo-text-secondary); }
.expert-role { font-size: 10px; color: var(--tiyo-text-muted); font-weight: 600; }
.turf-news-body { display: flex; flex-direction: column; gap: 4px; }
.turf-news-title {
  font-size: 13px; font-weight: 700;
  color: var(--tiyo-text);
  line-height: 1.35;
}
.turf-news-sub {
  font-size: 11px; font-weight: 400;
  color: var(--tiyo-text-muted);
  line-height: 1.4;
}
.turf-news-time {
  font-size: 10px; font-weight: 600;
  color: var(--tiyo-text-muted);
}

/* ── Chat contact sheet ── */
.chat-sheet-overlay {
  position: absolute; inset: 0;
  background: rgba(6,8,16,0.72);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none; align-items: flex-end;
  border-radius: 52px; overflow: hidden;
}
.chat-sheet-overlay.open { display: flex; }
.chat-sheet {
  width: 100%;
  background: var(--tiyo-surface-elevated);
  border-top: 1px solid var(--tiyo-border-strong);
  border-radius: 24px 24px 0 0;
  padding: 0 20px 28px;
  animation: sheetUp 0.26s var(--tiyo-ease-spring);
}
.chat-sheet-handle {
  width: 36px; height: 4px;
  background: var(--tiyo-border-strong);
  border-radius: 2px;
  margin: 10px auto 20px;
}
.chat-player-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 6px;
}
.chat-player-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(16,185,129,0.5);
}
.chat-player-info { flex: 1; }
.chat-player-name { font-size: 16px; font-weight: 800; color: var(--tiyo-text); }
.chat-player-sub {
  font-size: 12px; color: var(--tiyo-text-muted); margin-top: 3px;
  display: flex; align-items: center; gap: 5px;
}
.chat-online-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10B981; flex-shrink: 0;
}
.chat-caption {
  font-size: 12px; color: var(--tiyo-text-muted);
  margin: 10px 0 18px;
  line-height: 1.5;
}
.chat-caption strong { color: var(--tiyo-text-secondary); }
.chat-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 0;
  border-radius: 14px; border: none; cursor: pointer;
  font-family: var(--tiyo-font-ui);
  font-size: 15px; font-weight: 700;
  margin-bottom: 10px;
  transition: opacity 0.15s;
  text-decoration: none;
}
.chat-btn:active { opacity: 0.82; }
.chat-btn-wa {
  background: #25D366; color: #fff;
}
.chat-btn-tg {
  background: #2AABEE; color: #fff;
}
.chat-btn svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
.chat-cancel {
  width: 100%; padding: 13px 0;
  background: var(--tiyo-surface-highest);
  border: 1px solid var(--tiyo-border);
  border-radius: 14px; cursor: pointer;
  font-family: var(--tiyo-font-ui);
  font-size: 14px; font-weight: 600;
  color: var(--tiyo-text-muted);
}
.community-feed {
  margin: 0 20px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 14px;
  overflow: hidden;
}
.community-feed-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--tiyo-border);
}
.community-feed-item:last-child { border-bottom: none; }
.cfi-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0; margin-top: 1px;
}
.cfi-body { flex: 1; min-width: 0; }
.cfi-text {
  font-size: 12px; font-weight: 500;
  color: var(--tiyo-text-secondary);
  line-height: 1.45;
}
.cfi-text strong { color: var(--tiyo-text); font-weight: 700; }
.cfi-text .highlight { color: var(--tiyo-gold); font-weight: 700; }
.cfi-time {
  font-size: 10px; color: var(--tiyo-text-muted);
  margin-top: 3px;
}

.rank-progress-card {
  margin: 4px 20px 20px;
  padding: 18px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 14px;
}
.rank-progress-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.rank-info h4 {
  font-size: 12px; font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--tiyo-text-muted);
  margin-bottom: 4px;
}
.rank-info h3 {
  font-family: var(--tiyo-font-display);
  font-size: 22px; font-weight: 800;
  line-height: 28px;
  letter-spacing: 0;
  color: var(--tiyo-rank-conneser);
}
.rank-position { text-align: right; }
.rank-position .global {
  font-size: 22px; font-weight: 800;
  line-height: 28px;
  letter-spacing: 0;
  color: var(--tiyo-text);
  display: block;
}
.rank-position .division {
  font-size: 12px; font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.02em;
  color: var(--tiyo-text-muted);
}
.progress-track {
  height: 6px;
  background: var(--tiyo-surface-elevated);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}
.progress-fill {
  height: 100%;
  background: var(--tiyo-gradient-gold);
  border-radius: 6px;
  transition: width 1s var(--tiyo-ease-spring);
  position: relative;
  overflow: hidden;
}
/* Animated shimmer sweep across the gold fill — gives life to the gauge */
.progress-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.00) 30%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0.00) 70%,
    transparent 100%);
  transform: translateX(-100%);
  animation: progress-shimmer 2.6s ease-in-out infinite;
}
@keyframes progress-shimmer {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(220%); }
  100% { transform: translateX(220%); }
}
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--tiyo-text-muted);
}
.progress-label span:last-child { color: var(--tiyo-gold); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   T2 — Pick Entry
   ═══════════════════════════════════════════════════════════ */
.screen-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--tiyo-border);
  position: sticky; top: 0; background: var(--tiyo-surface); z-index: 50;
}
.back-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
  color: var(--tiyo-text);
}
.screen-header-text { flex: 1; }
.screen-header-text h3 { font-size: 15px; font-weight: 700; color: var(--tiyo-text); }
.screen-header-text p { font-size: 11px; color: var(--tiyo-text-muted); }

.countdown-chip {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin: 14px 20px;
  padding: 10px;
  background: var(--tiyo-surface-raised);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 10px;
}
.countdown-label { font-size: 12px; color: var(--tiyo-text-muted); }
.countdown-time {
  font-family: 'Courier New', monospace;
  font-size: 18px; font-weight: 700;
  color: var(--tiyo-score-gagnant);
  letter-spacing: 0.08em;
}

.kreol-prompt {
  padding: 0 20px 14px;
  font-family: var(--tiyo-font-display);
  font-size: 17px; font-style: italic;
  color: var(--tiyo-text-secondary);
}

.position-slots { padding: 0 20px; }
.position-slot {
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
}
.slot-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px 6px;
}
.slot-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--tiyo-text-muted);
}
.slot-clear { font-size: 11px; color: var(--tiyo-gold); cursor: pointer; font-weight: 600; }

.slot-filled {
  background: var(--tiyo-surface-elevated);
  border: 1.5px solid var(--tiyo-border-active);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.slot-number {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--tiyo-gold);
  color: var(--tiyo-gold-on);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  flex-shrink: 0;
}
.slot-horse { flex: 1; }
.slot-horse-name { font-size: 14px; font-weight: 700; color: var(--tiyo-text); }
.slot-horse-sub { font-size: 11px; color: var(--tiyo-text-muted); }
.slot-banker-badge {
  background: rgba(245,200,66,0.15);
  border: 1px solid rgba(245,200,66,0.35);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10px; font-weight: 700;
  color: var(--tiyo-gold-bright);
}

.slot-empty {
  background: var(--tiyo-surface-raised);
  border: 1.5px dashed var(--tiyo-border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 8px;
  color: var(--tiyo-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s;
}
.slot-empty:hover { border-color: var(--tiyo-border-active); background: var(--tiyo-surface-elevated); }

.runners-section { padding: 16px 20px 0; }
.runners-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--tiyo-text-muted);
  margin-bottom: 8px;
}
.runner-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.18s;
}
.runner-row:hover { border-color: var(--tiyo-border-active); background: var(--tiyo-surface-elevated); }
.runner-row.selected { border-color: var(--tiyo-border-active); background: var(--tiyo-surface-elevated); }
.runner-num {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--tiyo-surface-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--tiyo-text-secondary);
  flex-shrink: 0;
}
.runner-name-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.runner-name { font-size: 13px; font-weight: 600; color: var(--tiyo-text); line-height: 1.2; }
.runner-sub { font-size: 11px; color: var(--tiyo-text-muted); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runner-odds { font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; margin-left: auto; padding-left: 8px; }
.runner-silk {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
}
.confirm-cta.disabled {
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.5) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  pointer-events: auto;
}
.confirm-cta.disabled:hover { transform: none; box-shadow: none !important; }
.confirm-cta.disabled .confirm-cta-meta { color: rgba(255,255,255,0.45); }
.runner-banker {
  font-size: 11px; font-weight: 700;
  color: var(--tiyo-gold-bright);
  background: rgba(245,200,66,0.10);
  border-radius: 6px; padding: 2px 7px;
  border: 1px solid rgba(245,200,66,0.20);
  cursor: pointer;
}
.runner-selected-badge {
  font-size: 11px; font-weight: 700;
  color: var(--tiyo-score-gagnant);
}

.confirm-cta {
  margin: 16px 20px;
  width: calc(100% - 40px);
  padding: 14px 18px;
  background: var(--tiyo-gold);
  color: var(--tiyo-gold-on);
  border: none;
  border-radius: 14px;
  font-size: 15px; font-weight: 800;
  font-family: var(--tiyo-font-ui);
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--tiyo-glow-gold);
  transition: all 0.2s var(--tiyo-ease-spring);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.confirm-cta-meta {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.confirm-cta:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(230,172,23,0.6), 0 0 48px rgba(230,172,23,0.3); }
.confirm-cta:active { transform: translateY(0); }

/* Pick Hub — clickable race rows */
.rln-race.clickable { cursor: pointer; transition: all 0.15s ease; }
.rln-race.clickable:hover { border-color: rgba(245, 200, 66, 0.25); transform: translateY(-1px); }
.rln-race.clickable:active { transform: translateY(0); }
.rln-race-chev {
  color: var(--tiyo-text-muted);
  opacity: 0.5;
  margin-left: 4px;
}
.rln-race-chev [data-lucide] { width: 20px; height: 20px; }

/* Pick Hub hint row */
.pick-hub-hint {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 20px 6px;
  padding: 10px 12px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.14);
  border-radius: 10px;
  font-size: 12px; font-weight: 500;
  color: var(--tiyo-text-secondary);
}
.pick-hub-hint [data-lucide] { width: 13px; height: 13px; color: #818CF8; }

/* Pick Detail — step chip in header */
.pd-step-chip {
  padding: 4px 10px;
  background: rgba(245, 200, 66, 0.14);
  border: 1px solid rgba(245, 200, 66, 0.28);
  border-radius: 999px;
  font-size: 11px; font-weight: 800;
  color: var(--tiyo-gold);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.pd-step-chip span { font-size: 13px; }

/* Pick Detail panel — hidden by default, shown only when .open */
.pick-detail-panel { display: none !important; }
.pick-detail-panel.open { display: flex !important; flex-direction: column; }

/* Sticky Confirm CTA on hub — pinned above bottom nav with fade-out gradient */
.pick-hub-panel > .confirm-cta {
  position: sticky;
  bottom: 0; /* dock flush — padding-bottom on #screen-pick reserves nav space */
  margin: 0 20px;
  z-index: 20;
}
/* Gradient fade behind the sticky CTA — content fades into dark as it scrolls under */
.pick-hub-panel::after {
  content: '';
  position: sticky;
  bottom: 0;
  display: block;
  height: 48px;
  margin: -48px -20px 0; /* pull up 48px so it sits BEHIND the CTA area */
  background: linear-gradient(180deg,
    rgba(17,11,38,0) 0%,
    rgba(17,11,38,0.85) 60%,
    var(--tiyo-surface) 100%);
  pointer-events: none;
  z-index: 19;
  order: 99;
}
.pick-hub-panel { display: flex; flex-direction: column; }
#phone #screen-pick.detail-open .pick-hub-panel,
#phone #screen-pick.detail-open .pick-hub-panel.block { display: none !important; }

/* Sticky Save CTA inside detail panel — same treatment */
.pick-detail-panel .confirm-cta {
  position: sticky;
  bottom: 0;
  margin: 0 20px;
  z-index: 20;
}
.pick-detail-panel::after {
  content: '';
  position: sticky;
  bottom: 0;
  display: block;
  height: 48px;
  margin: -48px 0 0;
  background: linear-gradient(180deg,
    rgba(17,11,38,0) 0%,
    rgba(17,11,38,0.85) 60%,
    var(--tiyo-surface) 100%);
  pointer-events: none;
  z-index: 19;
  order: 99;
}
.pick-detail-panel .runners-section { padding-bottom: 16px; }
/* When detail is open, hide the hub panel entirely — two IDs + classes beats #phone[attr] .x.y */
#phone #screen-pick.detail-open .pick-hub-panel,
#phone #screen-pick.detail-open .pick-hub-panel.block { display: none !important; }
/* Also hide the state-banner when detail is open so user sees a clean detail screen */
#screen-pick.detail-open .screen-state-banner { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   T3 — Result Reveal
   ═══════════════════════════════════════════════════════════ */
.reveal-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  text-align: center;
  position: relative;
}

.reveal-phase { width: 100%; }

/* Phase 1 — suspense */
.phase-suspense {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px;
}
.phase-suspense .race-label {
  font-size: 13px;
  color: var(--tiyo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.phase-suspense h2 {
  font-family: var(--tiyo-font-display);
  font-size: 28px; font-weight: 800;
  color: var(--tiyo-text);
}
.suspense-blur {
  width: 100%;
  height: 72px;
  background: var(--tiyo-surface-elevated);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  filter: blur(0);
  position: relative;
  overflow: hidden;
}
.suspense-blur::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(230,172,23,0.06), transparent);
  animation: shimmer 1.8s linear infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.tap-hint {
  font-size: 13px; color: var(--tiyo-text-muted);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.reveal-btn {
  padding: 14px 40px;
  background: var(--tiyo-surface-raised);
  border: 1.5px solid var(--tiyo-border-active);
  border-radius: 50px;
  color: var(--tiyo-gold);
  font-size: 15px; font-weight: 700;
  font-family: var(--tiyo-font-ui);
  cursor: pointer;
  transition: all 0.2s ease;
}
.reveal-btn:hover { background: var(--tiyo-surface-elevated); box-shadow: var(--tiyo-glow-gold); }

/* Phase 2 — reveal */
.phase-reveal { display: none; flex-direction: column; gap: 10px; width: 100%; }
.result-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--tiyo-surface-raised);
  border-radius: 12px;
  border: 1px solid var(--tiyo-border);
  animation: row-slide 0.4s var(--tiyo-ease-spring) forwards;
  opacity: 0; transform: translateX(-20px);
}
.result-row.gagnant { border-color: rgba(16,185,129,0.45); box-shadow: 0 0 12px rgba(16,185,129,0.15); }
.result-pos { font-size: 11px; font-weight: 700; color: var(--tiyo-text-muted); width: 26px; }
.result-check { font-size: 18px; }
.result-horse { flex: 1; font-size: 15px; font-weight: 700; color: var(--tiyo-text); text-align: left; }
.result-pts {
  font-size: 13px; font-weight: 800;
  color: var(--tiyo-score-gagnant);
}
@keyframes row-slide {
  to { opacity: 1; transform: translateX(0); }
}

/* Phase 3 — Grand Chelem */
.phase-grand-chelem {
  display: none;
  flex-direction: column; align-items: center;
  gap: 16px;
  width: 100%;
  position: relative;
}
.gc-bg {
  position: absolute; inset: -40px;
  border-radius: 20px;
  background: var(--tiyo-gradient-grand-chelem);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.gc-title {
  font-family: var(--tiyo-font-display);
  font-size: 36px; font-weight: 800;
  color: var(--tiyo-gold-on);
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
  animation: gc-title-in 0.6s var(--tiyo-ease-spring) both;
}
@keyframes gc-title-in {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.gc-stars {
  font-size: 28px;
  animation: gc-stars-in 0.8s var(--tiyo-ease-spring) 0.1s both;
  color: var(--tiyo-gold-on);
}
@keyframes gc-stars-in {
  from { transform: rotate(-20deg) scale(0.5); opacity: 0; }
  to { transform: rotate(0deg) scale(1); opacity: 1; }
}
.gc-rewards {
  display: flex; flex-direction: column; gap: 8px; width: 100%;
}
.gc-reward-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 10px;
  animation: gc-reward-in 0.4s var(--tiyo-ease-spring) both;
  color: var(--tiyo-gold-on);
  font-size: 14px; font-weight: 700;
}
@keyframes gc-reward-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.gc-share-btn {
  width: 100%;
  padding: 14px;
  background: rgba(0,0,0,0.25);
  border: 2px solid rgba(0,0,0,0.20);
  border-radius: 14px;
  color: var(--tiyo-gold-on);
  font-size: 14px; font-weight: 800;
  font-family: var(--tiyo-font-ui);
  cursor: pointer;
  animation: gc-reward-in 0.4s var(--tiyo-ease-spring) 0.3s both;
}

/* Particles */
.particles {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
  border-radius: 16px;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: particle-fly 1.2s ease-out forwards;
}
@keyframes particle-fly {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* Score card */
.score-card {
  width: 100%;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 16px;
}
.score-card h4 { font-size: 13px; font-weight: 700; color: var(--tiyo-text); margin-bottom: 10px; }
.score-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 13px; color: var(--tiyo-text-secondary);
  border-bottom: 1px solid var(--tiyo-border);
}
.score-row:last-child { border-bottom: none; font-weight: 800; color: var(--tiyo-text); }
.score-row span:last-child { color: var(--tiyo-gold); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   T4 — Leaderboard
   ═══════════════════════════════════════════════════════════ */
.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--tiyo-border);
  padding: 0 20px;
  gap: 0;
}
.tab {
  flex: 1; padding: 12px 0;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--tiyo-text-muted);
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.18s;
}
.tab.active {
  color: var(--tiyo-gold);
  border-bottom-color: var(--tiyo-gold);
}

/* Scope switcher — Race Day / Last Race / Season */
.lb-scope {
  display: flex;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--tiyo-border);
  border-radius: 10px;
  margin: 4px 20px 10px;
  padding: 3px;
  gap: 3px;
}
.lb-scope-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
  text-align: center;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  line-height: 1.2;
}
.lb-scope-btn .lbs-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  display: inline-flex; align-items: center; gap: 4px;
}
.lb-scope-btn.active .lbs-meta { opacity: 0.9; }
.lbs-live-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lbs-live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.9);
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.lb-scope-btn.active {
  background: rgba(245, 200, 66, 0.12);
  color: var(--tiyo-gold);
  box-shadow: inset 0 0 0 1px rgba(245, 200, 66, 0.25);
}

/* You-card — standalone card for the player's row, highlighted */
.lb-you-card {
  margin: 8px 16px 4px;
  padding: 2px;
  background: linear-gradient(135deg,
    rgba(245, 200, 66, 0.35) 0%,
    rgba(245, 200, 66, 0.15) 50%,
    rgba(245, 200, 66, 0.30) 100%);
  border-radius: 14px;
  box-shadow:
    0 8px 24px -8px rgba(245, 200, 66, 0.30),
    0 0 0 1px rgba(245, 200, 66, 0.20);
}
.lb-you-card-inner {
  background: linear-gradient(180deg, #1A1D2E 0%, #14172A 100%);
  border-radius: 12px;
  overflow: hidden;
}
.lb-you-card .lb-row {
  padding: 14px 18px;
}
.lb-you-card .lb-row + .lb-row {
  border-top: 1px solid rgba(255,255,255,0.04);
}
.lb-you-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px 6px;
  background: rgba(245, 200, 66, 0.06);
  border-bottom: 1px solid rgba(245, 200, 66, 0.15);
}
.lb-you-card-head .lbyc-label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tiyo-gold);
  display: flex; align-items: center; gap: 6px;
}
.lb-you-card-head .lbyc-pin {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tiyo-gold);
  box-shadow: 0 0 8px rgba(245, 200, 66, 0.8);
}
.lb-you-card-head .lbyc-rank {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tiyo-text-muted);
}

/* Position delta arrow — bigger, always visible */
.lb-delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 800;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
}
.lb-delta.up {
  color: #34D399;
  background: rgba(52, 211, 153, 0.12);
}
.lb-delta.down {
  color: #F87171;
  background: rgba(248, 113, 113, 0.12);
}
.lb-delta [data-lucide] { width: 10px; height: 10px; stroke-width: 3; }

/* Expert marker on leaderboard avatars */
.lb-expert-badge {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  border: 2px solid #0F1220;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px;
  color: #fff;
}
.lb-expert-badge [data-lucide] { width: 8px; height: 8px; stroke-width: 3; }

.leaderboard-list { padding: 8px 0; }
.lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  transition: background 0.15s;
  cursor: pointer;
}
.lb-row:hover { background: rgba(255,255,255,0.02); }
.lb-row.you-row {
  background: transparent;
  border: 0;
}
.lb-pos { width: 26px; font-size: 14px; font-weight: 700; line-height: 20px; color: var(--tiyo-text-muted); text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.lb-pos.top3 { color: var(--tiyo-gold); }
.lb-avatar-wrap { position: relative; }
.lb-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.lb-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lb-name {
  font-size: 14px; font-weight: 600;
  line-height: 20px;
  color: var(--tiyo-text);
  letter-spacing: 0.01em;
}
.lb-sub { font-size: 11px; line-height: 16px; color: var(--tiyo-text-muted); }
.lb-score {
  font-family: var(--tiyo-font-display);
  font-size: 17px; font-weight: 800;
  line-height: 24px;
  color: var(--tiyo-text);
  font-variant-numeric: tabular-nums;
  min-width: 58px;
  text-align: right;
  margin-left: 4px;
}
.lb-right {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
}
.lb-streak {
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #FB923C;
  flex-shrink: 0;
}
.lb-streak.empty { visibility: hidden; }

/* Leaderboard zones — gradient band reinforces hierarchy */
.leaderboard-list { padding: 0; position: relative; }
.lb-zone {
  position: relative;
  padding: 4px 0;
}
.lb-zone-top {
  background:
    linear-gradient(180deg,
      rgba(245, 200, 66, 0.11) 0%,
      rgba(245, 200, 66, 0.05) 60%,
      rgba(245, 200, 66, 0.00) 100%);
  border-bottom: 1px solid rgba(245, 200, 66, 0.14);
}
.lb-zone-mid {
  background: transparent;
}
.lb-zone-you {
  background: transparent;
  border-top: 0;
}
.lb-zone-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tiyo-text-muted);
}
.lb-zone-head .lbz-label { color: var(--tiyo-text-muted); }
.lb-zone-top .lb-zone-head .lbz-label { color: var(--tiyo-gold); }
.lb-zone-you .lb-zone-head .lbz-label { color: var(--tiyo-gold); }
.lb-zone-head .lbz-meta { color: var(--tiyo-text-muted); font-weight: 600; letter-spacing: 0.08em; }
.lb-zone-you .lb-zone-head .lbz-meta { color: var(--tiyo-gold); }

.lb-score.you { color: var(--tiyo-gold); }

.vou-ici-divider {
  display: flex; align-items: center;
  padding: 6px 20px;
  gap: 8px;
}
.vou-line { flex: 1; height: 1px; background: var(--tiyo-border-active); }
.vou-label {
  font-family: var(--tiyo-font-display);
  font-size: 11px; font-weight: 800;
  color: var(--tiyo-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   T5 — Profile
   ═══════════════════════════════════════════════════════════ */
.profile-hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 20px 16px;
  text-align: center;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34D399, #047857);
  border: 3px solid var(--tiyo-rank-conneser);
  box-shadow: 0 0 0 4px rgba(52,211,153,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff;
  margin-bottom: 12px;
  font-family: var(--tiyo-font-display);
}
.profile-name {
  font-size: 20px; font-weight: 800;
  color: var(--tiyo-text);
  font-family: var(--tiyo-font-display);
  margin-bottom: 6px;
}
.profile-season { font-size: 12px; color: var(--tiyo-text-muted); margin-top: 6px; }

.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 0 20px 16px;
}
.stats-grid-wins {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.stat-card {
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  position: relative;
}
.stats-grid-wins .stat-card {
  padding: 14px 12px;
  min-height: 104px;
  justify-content: flex-start;
  gap: 8px;
}
.stat-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(245, 200, 66, 0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--tiyo-gold);
}
.stat-icon [data-lucide] { width: 14px; height: 14px; }
.stat-card.gc-card {
  background:
    linear-gradient(135deg, rgba(245,200,66,0.12) 0%, rgba(245,200,66,0.03) 100%),
    var(--tiyo-surface-raised);
  border-color: rgba(245, 200, 66, 0.3);
}
.stat-card.gc-card .stat-icon {
  background: rgba(245, 200, 66, 0.25);
}
.stat-value {
  font-size: 22px; font-weight: 800;
  color: var(--tiyo-text);
  font-family: var(--tiyo-font-display);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats-grid-wins .stat-value { font-size: 24px; }
.stat-card.gc-card .stat-value { color: var(--tiyo-gold); }
.stat-label { font-size: 11px; color: var(--tiyo-text-muted); margin-top: 2px; font-weight: 600; letter-spacing: 0.01em; }

.race-moments-scroll {
  display: flex; gap: 10px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.race-moments-scroll::-webkit-scrollbar { display: none; }
.moment-card {
  flex-shrink: 0;
  width: 90px; height: 110px;
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.2s var(--tiyo-ease-spring);
}
.moment-card:hover { transform: scale(1.05); }
.moment-card.gc { background: var(--tiyo-gradient-grand-chelem); box-shadow: 0 4px 16px rgba(230,172,23,0.25); }
.moment-card.hs { background: var(--tiyo-gradient-hot-streak); box-shadow: 0 4px 16px rgba(239,68,68,0.20); }
.moment-icon { font-size: 28px; }
.moment-label { font-size: 9px; font-weight: 800; color: var(--tiyo-gold-on); text-align: center; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.08em; }
.moment-date { font-size: 9px; color: rgba(13,16,32,0.65); }

.badges-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 4px 20px 0;
}
.badge-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%),
    var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 999px;
  padding: 10px 16px 10px 12px;
  font-size: 13px; font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--tiyo-text);
  cursor: pointer;
  transition: all 0.18s;
}
.badge-chip [data-lucide] {
  width: 16px; height: 16px;
  color: var(--tiyo-gold);
  flex-shrink: 0;
}
.badge-chip:hover {
  border-color: rgba(245, 200, 66, 0.4);
  background:
    linear-gradient(180deg, rgba(245,200,66,0.08) 0%, rgba(245,200,66,0.02) 100%),
    var(--tiyo-surface-raised);
  transform: translateY(-1px);
}

/* Crew tabs (Friends / Experts I follow) */
.crew-tabs {
  display: flex; gap: 6px;
  padding: 6px 20px 10px;
}
.crew-tab {
  appearance: none; border: 0;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  color: var(--tiyo-text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.15s;
}
.crew-tab:hover { color: var(--tiyo-text); }
.crew-tab.active {
  background: rgba(245, 200, 66, 0.12);
  border-color: rgba(245, 200, 66, 0.35);
  color: var(--tiyo-gold);
}
.crew-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  font-size: 10px; font-weight: 800;
  background: rgba(255,255,255,0.06);
  color: var(--tiyo-text-muted);
}
.crew-tab.active .crew-tab-count {
  background: rgba(245, 200, 66, 0.22);
  color: var(--tiyo-gold);
}

.crew-scroll {
  display: flex; gap: 10px;
  padding: 0 20px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.crew-scroll::-webkit-scrollbar { display: none; }

.crew-card {
  flex: 0 0 auto;
  width: 118px;
  padding: 12px 10px 12px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  position: relative;
}
.crew-card:hover {
  border-color: rgba(245, 200, 66, 0.3);
  transform: translateY(-2px);
}
.crew-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  position: relative;
  margin-top: 4px;
}
.crew-expert-badge {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  border: 2px solid var(--tiyo-surface-raised);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.crew-expert-badge [data-lucide] { width: 9px; height: 9px; stroke-width: 3; }
.crew-name {
  font-size: 13px; font-weight: 700;
  color: var(--tiyo-text);
  margin-top: 2px;
  text-align: center;
  max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crew-meta {
  font-size: 10px; font-weight: 600;
  color: var(--tiyo-text-muted);
  letter-spacing: 0.01em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.crew-delta {
  font-size: 10px; font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.crew-delta.up { color: #34D399; background: rgba(52,211,153,0.12); }
.crew-delta.down { color: #F87171; background: rgba(248,113,113,0.12); }
.crew-delta.flat { color: var(--tiyo-text-muted); background: rgba(255,255,255,0.05); }
.crew-follow {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tiyo-gold);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 200, 66, 0.12);
  border: 1px solid rgba(245, 200, 66, 0.22);
}

.crew-add {
  flex: 0 0 auto;
  width: 80px;
  padding: 12px 10px;
  background: transparent;
  border: 1.5px dashed rgba(255,255,255,0.10);
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: var(--tiyo-text-muted);
  transition: all 0.15s;
}
.crew-add:hover {
  border-color: rgba(245, 200, 66, 0.35);
  color: var(--tiyo-gold);
}
.crew-add-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.crew-add-icon [data-lucide] { width: 18px; height: 18px; }
.crew-add-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em;
}

.history-list { padding: 0 20px; }
.history-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tiyo-border);
}
.history-row:last-child { border-bottom: none; }
.history-result { font-size: 14px; }
.history-result-chelem {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5C842 0%, #C49A1A 100%);
  display: flex; align-items: center; justify-content: center;
  color: #1A1D2E;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(245, 200, 66, 0.35);
}
.history-result-chelem [data-lucide] { width: 15px; height: 15px; stroke-width: 2.5; }
.history-result-win {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--tiyo-text-secondary);
  flex-shrink: 0;
}
.history-result-win [data-lucide] { width: 14px; height: 14px; stroke-width: 2.5; }
.history-result-miss {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--tiyo-text-muted);
  flex-shrink: 0;
}
.history-result-miss [data-lucide] { width: 14px; height: 14px; stroke-width: 2.5; }
.history-label { flex: 1; font-size: 13px; color: var(--tiyo-text-secondary); }
.history-label-main { font-size: 13px; font-weight: 700; color: var(--tiyo-text); }
.history-label-sub { font-size: 11px; color: var(--tiyo-text-muted); margin-top: 2px; font-weight: 500; }
.history-row-day {
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 200, 66, 0.14);
}
.history-row-day + .history-row { border-top: 0; }
.history-row-day .history-pts {
  color: var(--tiyo-gold);
  font-size: 14px;
}
.history-pts {
  font-size: 13px; font-weight: 700;
  color: var(--tiyo-gold);
}

/* ── Race card pagination dots ── */
.race-dots {
  display: flex; align-items: center; justify-content: center;
  gap: 5px;
  padding: 6px 0 2px;
}
.race-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tiyo-border-strong);
  transition: all 0.22s var(--tiyo-ease-spring);
  flex-shrink: 0;
}
.race-dot.active {
  width: 18px;
  border-radius: 3px;
  background: var(--tiyo-gold);
}

/* Spacing helpers */
.spacer { height: 16px; }
.spacer-sm { height: 8px; }

/* ═══════════════════════════════════════════════════════════
   T6 — Friends screen
   ═══════════════════════════════════════════════════════════ */
.friends-search-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 20px 14px;
  background: var(--tiyo-surface-elevated);
  border: 1px solid var(--tiyo-border);
  border-radius: 12px;
  padding: 10px 14px;
}
.friends-search-bar [data-lucide] { width: 16px; height: 16px; color: #F8F9FF; flex-shrink: 0; }
.friends-search-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--tiyo-font-ui); font-size: 14px;
  color: var(--tiyo-text);
}
.friends-search-input::placeholder { color: var(--tiyo-text-muted); }

.friends-section-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--tiyo-text-muted);
  padding: 0 20px 8px;
}
.friend-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  transition: background 0.15s;
}
.friend-row:hover { background: var(--tiyo-surface-raised); }
.friend-avatar-wrap { position: relative; flex-shrink: 0; }
.friend-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.friend-online-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #10B981; border: 2px solid var(--tiyo-surface);
}
.friend-info { flex: 1; min-width: 0; }
.friend-name { font-size: 14px; font-weight: 700; color: var(--tiyo-text); }
.friend-meta { font-size: 11px; color: var(--tiyo-text-muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.friend-actions { display: flex; gap: 7px; }
.friend-chat-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.15s;
}
.friend-chat-btn:active { opacity: 0.7; }
.friend-chat-btn.wa { background: #25D366; }
.friend-chat-btn.tg { background: #2AABEE; }
.friend-chat-btn svg { width: 16px; height: 16px; fill: #fff; }
.friend-add-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 4px 20px;
  padding: 13px;
  background: var(--tiyo-surface-elevated);
  border: 1px dashed var(--tiyo-border-strong);
  border-radius: 12px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--tiyo-gold);
  transition: background 0.15s;
}
.friend-add-btn:hover { background: var(--tiyo-surface-highest); }
.friend-add-btn [data-lucide] { width: 16px; height: 16px; }

.pending-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
}
.pending-accept {
  padding: 6px 14px; border-radius: 20px; border: none;
  background: var(--tiyo-gold); color: var(--tiyo-gold-on);
  font-family: var(--tiyo-font-ui); font-size: 12px; font-weight: 700;
  cursor: pointer; flex-shrink: 0;
}
.pending-decline {
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--tiyo-border-strong);
  background: none; color: var(--tiyo-text-muted);
  font-family: var(--tiyo-font-ui); font-size: 12px; font-weight: 600;
  cursor: pointer; flex-shrink: 0; margin-left: 6px;
}

/* ═══════════════════════════════════════════════════════════
   T7 — XPER (Experts) screen
   ═══════════════════════════════════════════════════════════ */
.xper-filter-row {
  display: flex; gap: 8px; padding: 10px 20px 14px;
  overflow-x: auto; scrollbar-width: none;
}
.xper-filter-row::-webkit-scrollbar { display: none; }
.xper-filter-pill {
  flex-shrink: 0; padding: 6px 14px;
  border-radius: 20px; border: 1px solid var(--tiyo-border);
  font-size: 12px; font-weight: 600; color: var(--tiyo-text-muted);
  background: var(--tiyo-surface-raised); cursor: pointer;
  transition: all 0.15s;
}
.xper-filter-pill.active {
  background: var(--tiyo-gold); color: var(--tiyo-gold-on);
  border-color: var(--tiyo-gold);
}
.xper-card {
  margin: 0 20px 14px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 16px; overflow: hidden;
}
.xper-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 10px;
}
.xper-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.xper-info { flex: 1; min-width: 0; }
.xper-name { font-size: 15px; font-weight: 800; color: var(--tiyo-text); }
.xper-sub { font-size: 11px; color: var(--tiyo-text-muted); margin-top: 2px; }
.xper-follow-btn {
  padding: 7px 16px; border-radius: 20px; border: none;
  font-family: var(--tiyo-font-ui); font-size: 12px; font-weight: 700;
  cursor: pointer; flex-shrink: 0; transition: all 0.18s;
}
.xper-follow-btn.follow { background: var(--tiyo-gold); color: var(--tiyo-gold-on); }
.xper-follow-btn.following {
  background: var(--tiyo-surface-elevated); color: var(--tiyo-text-muted);
  border: 1px solid var(--tiyo-border-strong);
}
.xper-stats-row {
  display: flex; gap: 0;
  border-top: 1px solid var(--tiyo-border);
  border-bottom: 1px solid var(--tiyo-border);
}
.xper-stat {
  flex: 1; text-align: center; padding: 10px 6px;
  border-right: 1px solid var(--tiyo-border);
}
.xper-stat:last-child { border-right: none; }
.xper-stat-val {
  font-size: 16px; font-weight: 800; color: var(--tiyo-gold);
  line-height: 1;
}
.xper-stat-lbl { font-size: 9px; color: var(--tiyo-text-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.08em; }

/* picks panel — shown when following + gate locked */
.xper-picks-panel { padding: 12px 14px 14px; }
.xper-picks-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--tiyo-text-muted);
  margin-bottom: 8px;
}
.xper-pick-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--tiyo-border);
}
.xper-pick-row:last-of-type { border-bottom: none; }
.xper-pick-pos {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--tiyo-surface-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: var(--tiyo-text-muted);
  flex-shrink: 0;
}
.xper-pick-horse { flex: 1; font-size: 13px; font-weight: 600; color: var(--tiyo-text); }
.xper-pick-num { font-size: 12px; color: var(--tiyo-text-muted); }
.xper-banker-tag {
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tiyo-gold); background: rgba(230,172,23,0.12);
  border-radius: 5px; padding: 2px 6px;
}
.xper-note {
  margin-top: 10px; padding: 10px 12px;
  background: var(--tiyo-surface-elevated);
  border-left: 3px solid var(--tiyo-gold);
  border-radius: 0 10px 10px 0;
  font-size: 12px; line-height: 1.55;
  color: var(--tiyo-text-secondary); font-style: italic;
}
/* locked state — picks blurred */
.xper-locked-panel {
  padding: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border-top: 1px solid var(--tiyo-border);
}
.xper-locked-label {
  font-size: 12px; color: var(--tiyo-text-muted); text-align: center;
}
.xper-locked-icon [data-lucide] { width: 22px; height: 22px; color: #F8F9FF; }
.xper-follow-cta {
  padding: 8px 20px; border-radius: 20px;
  background: var(--tiyo-surface-elevated);
  border: 1px solid var(--tiyo-border-strong);
  font-family: var(--tiyo-font-ui); font-size: 12px; font-weight: 700;
  color: var(--tiyo-gold); cursor: pointer;
}

/* When card is followed, swap locked panel → unlocked content with a fade */
.xper-card.is-following .xper-locked-panel.jb-locked { display: none !important; }
.xper-card.is-following .jb-unlocked { display: block !important; animation: jb-unlock-fade 0.4s ease forwards; }
@keyframes jb-unlock-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   Gate pill extra states
   ═══════════════════════════════════════════════════════════ */
.gate-pill.results {
  border-color: rgba(96,165,250,0.45);
  color: #60A5FA;
}
.gate-pill.results .dot { background: #60A5FA; animation: none; }
/* Closed — live racing / picks locked. Red with pulsing dot. */
.gate-pill.closed {
  border-color: rgba(239,68,68,0.50);
  color: #FCA5A5;
  background: rgba(239,68,68,0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gate-pill.closed .dot {
  background: #EF4444;
  animation: pulse-live-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-live-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
  50%       { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.gate-pill.final {
  border-color: rgba(245,200,66,0.55);
  color: var(--tiyo-gold-bright);
  background: rgba(245,200,66,0.08);
}
.gate-pill.final .dot { background: var(--tiyo-gold-bright); animation: none; }

/* ═══════════════════════════════════════════════════════════
   Race week state system — state-aware content blocks
   ═══════════════════════════════════════════════════════════ */
/* All state-specific elements hidden by default */
.sw-thu, .sw-fri, .sw-sat, .sw-results, .sw-champ {
  display: none !important;
}
/* Show the matching state — default to flex for row/flex containers */
#screen-home[data-state="thu"]     .sw-thu     { display: flex  !important; }
#screen-home[data-state="fri"]     .sw-fri     { display: flex  !important; }
#screen-home[data-state="sat"]     .sw-sat     { display: flex  !important; }
#screen-home[data-state="results"] .sw-results { display: flex  !important; }
#screen-home[data-state="champ"]   .sw-champ   { display: flex  !important; }
/* .block modifier forces block display instead of flex */
#screen-home[data-state="thu"]     .sw-thu.block     { display: block !important; }
#screen-home[data-state="fri"]     .sw-fri.block     { display: block !important; }
#screen-home[data-state="sat"]     .sw-sat.block     { display: block !important; }
#screen-home[data-state="results"] .sw-results.block { display: block !important; }
#screen-home[data-state="champ"]   .sw-champ.block   { display: block !important; }
/* .scroll modifier for horizontal scroll containers */
#screen-home[data-state="thu"]     .sw-thu.scroll     { display: flex !important; overflow-x: auto; }
#screen-home[data-state="fri"]     .sw-fri.scroll     { display: flex !important; overflow-x: auto; }
#screen-home[data-state="sat"]     .sw-sat.scroll     { display: flex !important; overflow-x: auto; }
#screen-home[data-state="results"] .sw-results.scroll { display: flex !important; overflow-x: auto; }
#screen-home[data-state="champ"]   .sw-champ.scroll   { display: flex !important; overflow-x: auto; }

/* ── Global multi-screen state system (keyed off #phone[data-state]) ── */
/* Base: all state blocks hidden */
.ps-thu, .ps-fri, .ps-sat, .ps-results, .ps-champ { display: none !important; }
/* Show correct block per state */
#phone[data-state="thu"]     .ps-thu     { display: flex !important; }
#phone[data-state="fri"]     .ps-fri     { display: flex !important; }
#phone[data-state="sat"]     .ps-sat     { display: flex !important; }
#phone[data-state="results"] .ps-results { display: flex !important; }
#phone[data-state="champ"]   .ps-champ   { display: flex !important; }
/* block variants */
#phone[data-state="thu"]     .ps-thu.block     { display: block !important; }
#phone[data-state="fri"]     .ps-fri.block     { display: block !important; }
#phone[data-state="sat"]     .ps-sat.block     { display: block !important; }
#phone[data-state="results"] .ps-results.block { display: block !important; }
#phone[data-state="champ"]   .ps-champ.block   { display: block !important; }
/* sat+results share same UI in some contexts */
#phone[data-state="sat"]     .ps-sat-results.block     { display: block !important; }
#phone[data-state="results"] .ps-sat-results.block     { display: block !important; }

/* State context banner shared style */
.screen-state-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  font-size: 11px; font-weight: 700;
  border-bottom: 1px solid var(--tiyo-border);
}
.screen-state-banner.banner-thu  { background: rgba(96,165,250,0.06); color: #93C5FD; }
.screen-state-banner.banner-fri  { background: rgba(230,172,23,0.06); color: var(--tiyo-gold); }
.screen-state-banner.banner-sat  { background: rgba(239,68,68,0.07); color: #FCA5A5; }
.screen-state-banner.banner-results { background: rgba(239,68,68,0.07); color: #FCA5A5; }
.screen-state-banner.banner-champ{ background: rgba(230,172,23,0.08); color: var(--tiyo-gold-bright); }
.ssb-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.banner-thu .ssb-dot   { background: #93C5FD; }
.banner-fri .ssb-dot   { background: var(--tiyo-gold); animation: pulse-online 2s ease-in-out infinite; }
.banner-sat .ssb-dot   { background: #EF4444; animation: pulse-online 1.4s ease-in-out infinite; }
.banner-results .ssb-dot { background: #EF4444; animation: pulse-online 1.4s ease-in-out infinite; }
.banner-champ .ssb-dot { background: var(--tiyo-gold-bright); }

/* Pick screen state-specific styles */
.pick-locked-panel {
  /* (styles defined elsewhere — placeholder selector to reserve scope) */
}

/* Compact locked summary — shows picks are locked without blocking them */
.locked-summary {
  margin: 12px 16px 8px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(230,172,23,0.06);
  border: 1px solid rgba(230,172,23,0.22);
  border-radius: 12px;
}
.locked-summary-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(230,172,23,0.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--tiyo-gold-bright);
  flex-shrink: 0;
}
.locked-summary-icon [data-lucide] { width: 15px; height: 15px; }
.locked-summary-body { flex: 1; min-width: 0; }
.locked-summary-title {
  font-size: 13px; font-weight: 800; color: var(--tiyo-text);
  letter-spacing: -0.01em;
}
.locked-summary-meta {
  font-size: 11px; color: var(--tiyo-text-muted); font-weight: 500;
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.locked-summary-stat {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end;
  padding-left: 10px;
  border-left: 1px solid rgba(230,172,23,0.18);
}
.lss-val { font-size: 18px; font-weight: 900; color: var(--tiyo-gold-bright); line-height: 1; }
.lss-lbl { font-size: 9px; font-weight: 700; color: var(--tiyo-text-muted); letter-spacing: 0.12em; margin-top: 3px; }

.pick-locked-panel-orig {
  margin: 20px 16px;
  background: var(--tiyo-surface-elevated);
  border-radius: 16px;
  border: 1px solid var(--tiyo-border);
  padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.pick-locked-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(230,172,23,0.10);
  border: 1px solid rgba(230,172,23,0.28);
  color: var(--tiyo-gold);
}
.pick-locked-icon [data-lucide] { width: 22px; height: 22px; }
.pick-locked-title { font-size: 16px; font-weight: 800; color: var(--tiyo-text); }
.pick-locked-sub { font-size: 12px; color: var(--tiyo-text-muted); line-height: 1.5; }
.locked-pick-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--tiyo-border);
}
.locked-pick-race { font-size: 11px; font-weight: 700; color: var(--tiyo-text-muted); min-width: 56px; }
.locked-pick-horse { flex: 1; font-size: 13px; font-weight: 700; color: var(--tiyo-text-secondary); }
.locked-pick-result {
  font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 6px;
}
.locked-pick-result.win  { background: rgba(52,211,153,0.14); color: #34D399; }
.locked-pick-result.miss { background: rgba(239,68,68,0.12); color: #FCA5A5; }
.locked-pick-result.tbc  { background: rgba(255,255,255,0.06); color: var(--tiyo-text-muted); }
.locked-pick-pts { font-size: 13px; font-weight: 800; color: var(--tiyo-gold); min-width: 32px; text-align: right; }
.locked-pick-pts.zero { color: var(--tiyo-text-muted); }
.race-schedule-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.rs-time { font-size: 11px; font-weight: 700; color: var(--tiyo-text-muted); min-width: 40px; }
.rs-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--tiyo-text-secondary); }
.rs-status { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.rs-status.upcoming  { background: rgba(255,255,255,0.06); color: var(--tiyo-text-muted); }
.rs-status.live      { background: rgba(239,68,68,0.16); color: #FCA5A5; }
.rs-status.done      { background: rgba(52,211,153,0.12); color: #34D399; }

/* ── Thursday "form card" — race + entries visible, no picking yet ── */
.form-race-card {
  margin: 0 16px 10px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 14px;
  overflow: hidden;
}
.frc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--tiyo-border);
}
.frc-time {
  font-size: 13px; font-weight: 800;
  line-height: 20px;
  color: var(--tiyo-gold);
  font-variant-numeric: tabular-nums;
  min-width: 44px;
}
.frc-meta {
  flex: 1;
  font-size: 12px; font-weight: 600;
  line-height: 16px;
  color: var(--tiyo-text);
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frc-count {
  font-size: 10px; font-weight: 700;
  line-height: 16px;
  color: var(--tiyo-text-muted);
  padding: 2px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  letter-spacing: 0.06em;
}
.frc-runners {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 10px 14px;
  gap: 8px;
}
.frc-runners::-webkit-scrollbar { display: none; }
.frc-runner {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  font-size: 12px;
  line-height: 16px;
}
.frc-runner.fav {
  background: rgba(230,172,23,0.10);
  border-color: rgba(230,172,23,0.28);
}
.frc-runner.more {
  padding: 6px 12px;
  color: var(--tiyo-text-muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.frc-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  font-size: 10px; font-weight: 800;
  color: var(--tiyo-text);
  font-variant-numeric: tabular-nums;
}
.frc-runner.fav .frc-num {
  background: var(--tiyo-gold);
  color: #1a1405;
}
.frc-name {
  font-weight: 600;
  color: var(--tiyo-text);
  white-space: nowrap;
}
.frc-odds {
  font-weight: 700;
  color: var(--tiyo-text-muted);
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}
.frc-runner.fav .frc-odds {
  color: var(--tiyo-gold);
}

/* ── Friday pick screen: race list navigator ── */
.pick-progress-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 20px 10px;
}
.pick-progress-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
}
.pick-progress-count {
  font-size: 12px; font-weight: 600;
  color: var(--tiyo-text-secondary);
}
.pick-progress-count strong {
  color: var(--tiyo-gold);
  font-weight: 800;
}
.race-list-nav {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 0 16px 16px;
}
.rln-race {
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.18s ease;
  cursor: pointer;
}
.rln-race:hover { border-color: var(--tiyo-border-active); }
.rln-race.complete { border-color: rgba(52,211,153,0.32); }
.rln-race.active {
  border-color: var(--tiyo-gold);
  background: rgba(230,172,23,0.06);
  box-shadow: 0 0 0 1px rgba(230,172,23,0.15);
}
.rln-race.banker {
  background: linear-gradient(180deg, rgba(230,172,23,0.04), transparent);
}
.rln-race.empty { opacity: 0.72; }
.rln-top {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
}
.rln-num {
  font-family: var(--tiyo-font-display);
  font-size: 14px; font-weight: 800;
  color: var(--tiyo-text);
  min-width: 30px;
  letter-spacing: 0;
}
.rln-time {
  font-size: 11px; font-weight: 700;
  color: var(--tiyo-text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.rln-banker-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--tiyo-gold);
  color: #1a1405;
}
.rln-banker-badge [data-lucide] { width: 16px; height: 16px; stroke-width: 2.5; }
.rln-status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700;
  color: #34D399;
  letter-spacing: 0.04em;
}
.rln-status [data-lucide] { width: 20px; height: 20px; }
.rln-status.active { color: var(--tiyo-gold); text-transform: uppercase; }
.rln-status.empty {
  color: var(--tiyo-text-muted);
  text-transform: uppercase;
  font-size: 9px; letter-spacing: 0.10em;
}
.rln-trio {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.06);
}
.rln-pick {
  font-size: 11px; font-weight: 600;
  padding: 3px 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  color: var(--tiyo-text);
  letter-spacing: 0.01em;
}
.rln-pick.empty {
  color: var(--tiyo-text-muted);
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.12);
  font-weight: 500;
}
.rln-race.banker .rln-pick:first-child {
  background: rgba(230,172,23,0.18);
  color: var(--tiyo-gold-bright);
  font-weight: 700;
}

/* Divider before current-race detail editor */
.pick-detail-divider {
  margin: 4px 20px 12px;
  padding: 10px 14px;
  background: rgba(230,172,23,0.08);
  border: 1px solid rgba(230,172,23,0.22);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.pick-detail-divider > span:first-child {
  font-size: 12px; font-weight: 800;
  color: var(--tiyo-gold);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pdd-sub {
  font-size: 11px; font-weight: 500;
  color: var(--tiyo-text-muted);
  letter-spacing: 0.01em;
}

/* Banker toggle + helper */
.slot-banker-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: rgba(230,172,23,0.12);
  border: 1px solid rgba(230,172,23,0.30);
  color: var(--tiyo-gold);
  border-radius: 10px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}
.slot-banker-toggle:hover {
  background: rgba(230,172,23,0.22);
}
.slot-banker-toggle [data-lucide] { width: 12px; height: 12px; }
.slot-banker-toggle.active {
  background: var(--tiyo-gold);
  color: #0B0B0D;
}
.runner-selected-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #10B981;
  color: #0B0B0D;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.runner-selected-badge [data-lucide] { width: 11px; height: 11px; }
.rln-banker-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(230,172,23,0.18);
  color: var(--tiyo-gold);
  margin-left: 4px;
}
.rln-pick.empty { opacity: 0.45; font-style: italic; }

@keyframes shakeWarn {
  0%, 100% { transform: translateX(0); border-color: rgba(239,68,68,0.6); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.rln-race.shake-warn {
  animation: shakeWarn 0.5s ease;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.55), 0 0 18px rgba(239,68,68,0.35);
}

/* ── Banker swap modal ── */
.banker-swap-overlay {
  position: absolute; inset: 0;
  display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 95;
  animation: fadeIn 0.18s ease;
}
.banker-swap-sheet {
  width: 100%;
  background: var(--tiyo-surface);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 20px 20px 24px;
  border-top: 1px solid var(--tiyo-border);
  animation: slideUp 0.22s ease;
}
.bsw-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(230,172,23,0.15);
  color: var(--tiyo-gold);
  margin: 0 auto 12px;
}
.bsw-icon [data-lucide] { width: 24px; height: 24px; }
.bsw-title { text-align: center; font-size: 16px; font-weight: 700; color: var(--tiyo-text); }
.bsw-sub { text-align: center; font-size: 13px; color: var(--tiyo-text-muted); margin: 6px 0 16px; line-height: 1.4; }
.bsw-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.bsw-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--tiyo-surface-elevated);
  border: 1px solid var(--tiyo-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.bsw-row:hover { border-color: var(--tiyo-gold); }
.bsw-race { font-size: 12px; font-weight: 700; color: var(--tiyo-gold); letter-spacing: 0.04em; }
.bsw-horse { flex: 1; display: flex; align-items: center; gap: 8px; }
.bsw-num { font-size: 13px; font-weight: 700; color: var(--tiyo-text); }
.bsw-name { font-size: 13px; color: var(--tiyo-text); }
.bsw-row [data-lucide] { width: 16px; height: 16px; color: var(--tiyo-text-muted); }
.bsw-cancel {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--tiyo-border);
  color: var(--tiyo-text);
  border-radius: 12px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Incomplete toast ── */
.incomplete-toast {
  position: absolute;
  left: 16px; right: 16px;
  bottom: 88px;
  display: none;
  align-items: center; gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(239,68,68,0.18), rgba(239,68,68,0.1));
  border: 1px solid rgba(239,68,68,0.55);
  border-radius: 14px;
  color: var(--tiyo-text);
  z-index: 90;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: toastIn 0.25s ease;
}
.incomplete-toast.show { display: flex; }
.incomplete-toast > [data-lucide] { width: 20px; height: 20px; color: #ef4444; flex-shrink: 0; }
.incomplete-toast .it-body { flex: 1; min-width: 0; }
.incomplete-toast .it-title { font-size: 13px; font-weight: 700; }
.incomplete-toast .it-sub { font-size: 11px; color: var(--tiyo-text-muted); margin-top: 2px; }
.incomplete-toast .it-cta {
  padding: 8px 12px;
  background: var(--tiyo-gold);
  color: #0B0B0D;
  border: none;
  border-radius: 8px;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ══════ REZILTA TAB ══════ */
.rz-tab-switch {
  display: inline-flex;
  background: var(--tiyo-surface);
  border: 1px solid var(--tiyo-border);
  border-radius: 999px;
  padding: 3px;
}
.rz-tab {
  padding: 6px 14px;
  font-size: 12px; font-weight: 600;
  color: var(--tiyo-text-muted);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.rz-tab.active {
  background: var(--tiyo-gold);
  color: #0B0B0D;
}

/* Recap hero */
.rz-recap-hero {
  margin: 14px 16px 0;
  padding: 18px;
  background: linear-gradient(180deg, rgba(230,172,23,0.10), rgba(230,172,23,0.02));
  border: 1px solid rgba(230,172,23,0.25);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.rz-recap-hero::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(230,172,23,0.25), transparent 70%);
  pointer-events: none;
}
.rzr-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rzr-label { font-size: 11px; font-weight: 600; color: var(--tiyo-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.rzr-rank-move {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4);
  border-radius: 999px;
  color: #10B981;
  font-size: 11px; font-weight: 700;
}
.rzr-rank-arrow { font-size: 10px; }
.rzr-rank-delta { font-weight: 800; }
.rzr-rank-text { color: var(--tiyo-text-muted); font-weight: 600; margin-left: 4px; }
.rzr-total {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 14px;
}
.rzr-total-num {
  font-size: 56px; font-weight: 800;
  color: var(--tiyo-gold);
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(230,172,23,0.35);
}
.rzr-total-unit { font-size: 14px; font-weight: 600; color: var(--tiyo-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.rzr-stats {
  display: flex; align-items: stretch;
  padding-top: 12px;
  border-top: 1px solid rgba(230,172,23,0.15);
}
.rzr-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rzr-stat-v { font-size: 16px; font-weight: 700; color: var(--tiyo-text); }
.rzr-stat-l { font-size: 10px; font-weight: 600; color: var(--tiyo-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.rzr-stat-div { width: 1px; background: var(--tiyo-border); }

/* Live hero */
.rz-live-hero {
  margin: 14px 16px 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(239,68,68,0.10), rgba(239,68,68,0.02));
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 14px;
}
.rzl-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rzl-live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: #EF4444;
  color: #fff;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em;
}
.rzl-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: pulseDot 1.2s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.rzl-running { font-size: 12px; color: var(--tiyo-text-muted); }
.rzl-running strong { color: var(--tiyo-gold); font-size: 14px; font-weight: 800; }
.rzl-progress { display: flex; align-items: center; gap: 10px; }
.rzl-progress-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.rzl-progress-fill { height: 100%; background: linear-gradient(90deg, var(--tiyo-gold), #F5C842); border-radius: 999px; transition: width 0.4s; position: relative; overflow: hidden; }
.rzl-progress-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.40) 50%, transparent);
  transform: translateX(-100%);
  animation: progress-shimmer 2.2s ease-in-out infinite;
}
.rzl-progress-text { font-size: 11px; font-weight: 600; color: var(--tiyo-text-muted); white-space: nowrap; }
.rzl-progress-text strong { color: var(--tiyo-text); font-weight: 800; }

/* Race list */
.rz-race-list { margin: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.rz-race-card {
  background: var(--tiyo-surface);
  border: 1px solid var(--tiyo-border);
  border-radius: 14px;
  overflow: hidden;
}
.rz-race-card.grand-chelem {
  border-color: var(--tiyo-gold);
  box-shadow: 0 0 0 1px var(--tiyo-gold), 0 8px 24px rgba(230,172,23,0.25);
}
.rz-race-card.live {
  border-color: #EF4444;
  animation: liveBorder 2s ease-in-out infinite;
}
@keyframes liveBorder { 0%,100% { box-shadow: 0 0 0 1px rgba(239,68,68,0.4); } 50% { box-shadow: 0 0 0 1px #EF4444, 0 0 20px rgba(239,68,68,0.35); } }
.rzc-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--tiyo-border);
}
.rzc-num { font-size: 12px; font-weight: 800; color: var(--tiyo-gold); letter-spacing: 0.05em; }
.rzc-time { font-size: 11px; color: var(--tiyo-text-muted); font-variant-numeric: tabular-nums; }
.rzc-name { flex: 1; font-size: 13px; color: var(--tiyo-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rzc-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rzc-badge.gc { background: var(--tiyo-gold); color: #0B0B0D; }
.rzc-badge.gc [data-lucide] { width: 11px; height: 11px; }
.rzc-badge.banker { background: rgba(230,172,23,0.18); color: var(--tiyo-gold); }
.rzc-badge.live { background: #EF4444; color: #fff; }
.rzc-badge.upcoming { background: rgba(255,255,255,0.06); color: var(--tiyo-text-muted); }
.rzc-pts {
  font-size: 14px; font-weight: 800;
  color: var(--tiyo-gold);
  font-variant-numeric: tabular-nums;
}
.rzc-pts.zero { color: var(--tiyo-text-muted); font-weight: 600; }

.rzc-body { padding: 10px 14px 12px; }
.rzc-rows { display: flex; flex-direction: column; gap: 4px; }
.rzc-row {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 18px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  font-size: 12px;
}
.rzc-row.hit { background: rgba(16,185,129,0.08); }
.rzc-row.miss { background: rgba(239,68,68,0.04); }
.rzc-row-pos { font-size: 10px; font-weight: 700; color: var(--tiyo-text-muted); letter-spacing: 0.05em; }
.rzc-row-you, .rzc-row-actual { color: var(--tiyo-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rzc-row-you.miss { color: rgba(239,68,68,0.85); text-decoration: line-through; text-decoration-color: rgba(239,68,68,0.4); }
.rzc-row-actual { color: var(--tiyo-text-muted); font-size: 11px; }
.rzc-row-hit-icon { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.rzc-row-hit-icon.hit { color: #10B981; }
.rzc-row-hit-icon.miss { color: rgba(239,68,68,0.5); }
.rzc-row-hit-icon [data-lucide] { width: 14px; height: 14px; }

.rzc-header-labels {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 18px;
  gap: 8px;
  padding: 0 8px 6px;
  font-size: 9px; font-weight: 700; color: var(--tiyo-text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.rzc-upcoming-body {
  padding: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.rzc-locked {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--tiyo-text-muted);
}
.rzc-locked [data-lucide] { width: 14px; height: 14px; }

.rzc-live-body {
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
}
.rzc-live-anim {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,68,68,0.35), rgba(239,68,68,0.05));
  display: flex; align-items: center; justify-content: center;
  animation: pulseDot 1.2s ease-in-out infinite;
}
.rzc-live-anim [data-lucide] { width: 22px; height: 22px; color: #EF4444; }
.rzc-live-text { flex: 1; }
.rzc-live-tl { font-size: 13px; font-weight: 700; color: var(--tiyo-text); }
.rzc-live-sub { font-size: 11px; color: var(--tiyo-text-muted); margin-top: 2px; }

.banker-hint {
  margin: 12px 16px;
  padding: 12px 14px;
  background: rgba(230,172,23,0.06);
  border: 1px solid rgba(230,172,23,0.18);
  border-radius: 10px;
  display: flex; align-items: flex-start; gap: 10px;
}
.banker-hint > [data-lucide] {
  color: var(--tiyo-gold);
  width: 18px; height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}
.bh-title {
  font-size: 12px; font-weight: 700;
  color: var(--tiyo-text);
  line-height: 16px;
}
.bh-sub {
  font-size: 11px; font-weight: 500;
  color: var(--tiyo-text-muted);
  line-height: 16px;
  margin-top: 2px;
}

/* ── Sat locked: trio row ── */
.locked-trio-row {
  margin: 0 16px 8px;
  padding: 10px 14px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
}
.ltr-race {
  font-family: var(--tiyo-font-display);
  font-size: 13px; font-weight: 800;
  color: var(--tiyo-text);
  min-width: 44px;
}
.ltr-horses {
  flex: 1;
  display: flex; flex-wrap: wrap;
  gap: 5px;
}
.ltr-horse {
  font-size: 11px; font-weight: 600;
  padding: 3px 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  color: var(--tiyo-text);
  display: inline-flex; align-items: center; gap: 4px;
}
.ltr-horse.banker {
  background: rgba(230,172,23,0.18);
  color: var(--tiyo-gold-bright);
  border: 1px solid rgba(230,172,23,0.35);
  font-weight: 700;
}
.ltr-badge {
  font-size: 8px; font-weight: 800;
  padding: 1px 5px;
  background: rgba(26,20,5,0.35);
  color: var(--tiyo-gold-bright);
  border-radius: 4px;
  letter-spacing: 0.08em;
}

/* ── Sat locked: full race card with trio ── */
.locked-race-card {
  margin: 0 16px 12px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 14px;
  overflow: hidden;
}
.locked-race-card.banker-card {
  border-color: rgba(230,172,23,0.28);
  background: linear-gradient(180deg, rgba(230,172,23,0.03), transparent), var(--tiyo-surface-raised);
}
.lrc-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--tiyo-border);
  background: rgba(255,255,255,0.02);
}
.lrc-head-left {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.lrc-time {
  font-family: var(--tiyo-font-display);
  font-size: 16px; font-weight: 800;
  line-height: 20px;
  color: var(--tiyo-gold);
  font-variant-numeric: tabular-nums;
  min-width: 52px;
}
.lrc-title-wrap {
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
}
.lrc-race {
  font-family: var(--tiyo-font-display);
  font-size: 15px; font-weight: 800;
  line-height: 20px;
  color: var(--tiyo-text);
  display: inline-flex; align-items: center; gap: 8px;
}
.lrc-name {
  font-size: 12px; font-weight: 500;
  line-height: 16px;
  color: var(--tiyo-text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lrc-feature-pill {
  font-size: 9px; font-weight: 800;
  padding: 1px 6px;
  background: var(--tiyo-gold);
  color: #1a1405;
  border-radius: 3px;
  letter-spacing: 0.10em;
}
.lrc-status {
  font-size: 11px; font-weight: 700;
  padding: 5px 12px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.lrc-status.tbc {
  background: rgba(255,255,255,0.06);
  color: var(--tiyo-text-muted);
}
.lrc-trio {
  padding: 10px 14px 14px;
  display: flex; flex-direction: column;
  gap: 6px;
}
.lrc-horse {
  display: grid;
  grid-template-columns: 42px 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.035);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}
.lrc-horse.lrc-first {
  background: rgba(230,172,23,0.05);
  border-color: rgba(230,172,23,0.12);
}
.lrc-horse.banker {
  background: rgba(230,172,23,0.12);
  border-color: rgba(230,172,23,0.32);
}
.lrc-pos {
  font-family: var(--tiyo-font-display);
  font-size: 13px; font-weight: 800;
  color: var(--tiyo-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lrc-horse.lrc-first .lrc-pos { color: var(--tiyo-gold); }
.lrc-num {
  font-family: var(--tiyo-font-display);
  font-size: 18px; font-weight: 800;
  color: var(--tiyo-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.lrc-horse-name {
  font-size: 15px; font-weight: 600;
  line-height: 20px;
  color: var(--tiyo-text);
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lrc-banker-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800;
  padding: 4px 8px;
  background: var(--tiyo-gold);
  color: #1a1405;
  border-radius: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lrc-banker-pill [data-lucide] { width: 11px; height: 11px; stroke-width: 2.5; }

/* ── Thursday: OFFICIAL ENTRIES card ── */
.official-entries-card {
  margin: 4px 16px 12px;
  padding: 18px 18px 16px;
  background:
    linear-gradient(180deg, rgba(230,172,23,0.08), rgba(230,172,23,0.02)),
    var(--tiyo-surface-raised);
  border: 1px solid rgba(230,172,23,0.28);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.official-entries-card::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(230,172,23,0.015) 14px, rgba(230,172,23,0.015) 28px);
  pointer-events: none;
}
.oec-stamp-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.oec-stamp {
  display: inline-block;
  padding: 4px 10px;
  background: var(--tiyo-gold);
  color: #1a1405;
  font-size: 10px; font-weight: 900;
  letter-spacing: 0.14em;
  border-radius: 3px;
  transform: none;
  border: 1.5px solid #1a1405;
}
.oec-auth {
  font-size: 10px; font-weight: 600;
  color: var(--tiyo-text-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.oec-title {
  font-family: var(--tiyo-font-display);
  font-size: 22px; font-weight: 800;
  line-height: 28px;
  color: var(--tiyo-text);
  margin-bottom: 2px;
}
.oec-date {
  font-size: 13px; font-weight: 600;
  line-height: 20px;
  color: var(--tiyo-gold);
  margin-bottom: 14px;
}
.oec-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(230,172,23,0.18);
}
.oec-meta {
  display: flex; flex-direction: column; gap: 2px;
}
.oec-meta-val {
  font-family: var(--tiyo-font-display);
  font-size: 18px; font-weight: 800;
  line-height: 24px;
  color: var(--tiyo-text);
  font-variant-numeric: tabular-nums;
}
.oec-meta-lbl {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--tiyo-text-muted);
}

.oec-gate-hint {
  margin: 0 16px 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--tiyo-border);
  border-radius: 10px;
  display: flex; align-items: flex-start; gap: 10px;
}
.oec-gate-hint > [data-lucide] {
  color: var(--tiyo-text-muted);
  width: 18px; height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}
.ogh-title {
  font-size: 13px; font-weight: 700;
  line-height: 20px;
  color: var(--tiyo-text);
  letter-spacing: 0.01em;
}
.ogh-sub {
  font-size: 12px; font-weight: 500;
  line-height: 16px;
  color: var(--tiyo-text-muted);
  margin-top: 1px;
}

/* ── Race list: collapsed row → expands to entries ── */
.race-row {
  margin: 0 16px 6px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.18s ease;
}
.race-row:hover { border-color: var(--tiyo-border-active); }
.race-row[open] { border-color: rgba(99,102,241,0.35); background: linear-gradient(180deg, rgba(99,102,241,0.04), transparent), var(--tiyo-surface-raised); }
.race-row.feature { border-color: rgba(230,172,23,0.28); background: linear-gradient(180deg, rgba(230,172,23,0.04), transparent), var(--tiyo-surface-raised); }
.rr-summary {
  list-style: none;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}
.rr-summary::-webkit-details-marker { display: none; }
.rr-time {
  font-family: var(--tiyo-font-display);
  font-size: 14px; font-weight: 800;
  color: var(--tiyo-text);
  font-variant-numeric: tabular-nums;
  min-width: 46px;
  letter-spacing: 0;
  opacity: 0.85;
}
.rr-body {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rr-name {
  font-size: 14px; font-weight: 600;
  line-height: 20px;
  color: var(--tiyo-text);
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: inline-flex; align-items: center; gap: 8px;
}
.rr-feature-pill {
  font-size: 9px; font-weight: 800;
  padding: 1px 6px;
  background: var(--tiyo-gold);
  color: #1a1405;
  border-radius: 3px;
  letter-spacing: 0.10em;
}
.rr-meta {
  font-size: 12px; font-weight: 500;
  line-height: 16px;
  color: var(--tiyo-text-muted);
  letter-spacing: 0.02em;
}
.rr-chev {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  color: var(--tiyo-text-muted);
  transition: transform 0.2s ease;
}
.rr-chev [data-lucide] { width: 18px; height: 18px; }
.race-row[open] .rr-chev { transform: rotate(180deg); color: var(--tiyo-gold); }
.rr-entries {
  padding: 4px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column;
  gap: 2px;
}
.rr-entry {
  display: grid;
  grid-template-columns: 28px 1fr auto 48px;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.rr-entry:last-of-type { border-bottom: none; }
.rr-entry .rr-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 11px; font-weight: 800;
  color: var(--tiyo-text);
  font-variant-numeric: tabular-nums;
}
.rr-entry.fav .rr-num {
  background: var(--tiyo-gold);
  color: #1a1405;
}
.rr-horse {
  font-size: 13px; font-weight: 600;
  color: var(--tiyo-text);
  letter-spacing: 0.01em;
}
.rr-jockey {
  font-size: 11px; font-weight: 500;
  color: var(--tiyo-text-muted);
  text-align: right;
}
.rr-odds {
  font-family: var(--tiyo-font-display);
  font-size: 14px; font-weight: 800;
  color: var(--tiyo-text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.rr-entry.fav .rr-odds { color: var(--tiyo-gold); }
.rr-more {
  padding: 10px 4px 2px;
  font-size: 11px; font-weight: 600;
  color: var(--tiyo-text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}
.champ-score-card {
  margin: 0 16px 12px;
  background: linear-gradient(135deg, rgba(230,172,23,0.12) 0%, var(--tiyo-surface-elevated) 100%);
  border: 1px solid rgba(230,172,23,0.25);
  border-radius: 16px;
  padding: 16px;
}
.champ-score-total { font-size: 32px; font-weight: 900; color: var(--tiyo-gold); text-align: center; }
.champ-score-label { font-size: 11px; font-weight: 700; color: var(--tiyo-text-muted); text-align: center; margin-bottom: 14px; }
.champ-rank-row { display: flex; align-items: center; justify-content: center; gap: 20px; }
.champ-rank-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.champ-rank-val { font-size: 18px; font-weight: 900; color: var(--tiyo-text); }
.champ-rank-sub { font-size: 10px; color: var(--tiyo-text-muted); font-weight: 600; }
.champ-rank-delta { font-size: 12px; font-weight: 800; color: #34D399; }

/* LB state badges */
.lb-state-label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px;
  font-size: 11px; font-weight: 700;
  border-bottom: 1px solid var(--tiyo-border);
  color: var(--tiyo-text-muted);
}
.lb-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 800;
  background: rgba(239,68,68,0.14); color: #FCA5A5;
}
.lb-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #EF4444;
  animation: pulse-online 1.4s ease-in-out infinite;
}
.lb-sub-score {
  font-size: 11px; color: #34D399; font-weight: 700;
  margin-left: 4px;
}
.lb-promo { color: #34D399; font-size: 11px; font-weight: 700; margin-top: 2px; }
.lb-relegate { color: #FCA5A5; font-size: 11px; font-weight: 700; margin-top: 2px; }

/* XPER picking-indicator (Friday state) */
.xper-picking-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--tiyo-border);
}
.xper-picking-dots { display: flex; gap: 3px; align-items: center; }
.xper-picking-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--tiyo-gold); opacity: 0.4;
  animation: xper-blink 1.2s ease-in-out infinite;
}
.xper-picking-dots span:nth-child(2) { animation-delay: 0.2s; }
.xper-picking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes xper-blink {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.2); }
}
.xper-picking-label {
  font-size: 11px; color: var(--tiyo-text-muted); font-style: italic;
}

/* Race result chip — always bottom of card (margin-top: auto from flex column) */
.race-result-chip {
  display: flex; align-items: center; gap: 4px;
  align-self: flex-start;    /* don't stretch full width */
  font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 10px;
  margin-top: auto;          /* pins to bottom of flex-column card */
}
.race-result-chip.gagnant {
  background: rgba(16,185,129,0.15); color: #10B981;
  border: 1px solid rgba(16,185,129,0.30);
}
.race-result-chip.place {
  background: rgba(96,165,250,0.12); color: #60A5FA;
  border: 1px solid rgba(96,165,250,0.25);
}
.race-result-chip.miss {
  background: rgba(239,68,68,0.10); color: #EF4444;
  border: 1px solid rgba(239,68,68,0.22);
}

/* Championship leaderboard banner */
.champ-banner {
  margin: 0 16px 10px;
  padding: 14px 16px;
  background: var(--tiyo-gradient-grand-chelem);
  border-radius: 16px;
  color: var(--tiyo-gold-on);
}
.champ-banner-title {
  font-size: 11px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 4px;
}
.champ-banner-score { font-size: 28px; font-weight: 900; letter-spacing: -0.03em; }
.champ-banner-sub { font-size: 12px; font-weight: 600; opacity: 0.75; margin-top: 2px; }
.champ-friends-moved {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(13,16,32,0.18);
  font-size: 11px; font-weight: 700; opacity: 0.75;
}
.champ-friend-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(13,16,32,0.15); border-radius: 20px;
  padding: 2px 8px; margin-top: 4px; margin-right: 4px;
  font-size: 11px; font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   State Switcher — prototype control, hidden under Profile
   ═══════════════════════════════════════════════════════════ */
.state-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 8px 16px 20px;
  padding: 12px;
  background: var(--tiyo-surface-raised);
  border: 1px solid var(--tiyo-border);
  border-radius: 12px;
}
.state-switcher[hidden] { display: none; }
.state-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.70);
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.state-chip:hover {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.25);
}
.state-chip.active {
  background: rgba(230,172,23,0.18);
  border-color: rgba(230,172,23,0.55);
  color: #E6AC17;
}
.state-chip-day {
  font-size: 8px; font-weight: 600; opacity: 0.65; letter-spacing: 0.06em;
}

/* ── Inline-comment override: breathe out the rank-progress card ── */
.rank-progress-card {
  margin: 16px 20px 28px !important;
  padding: 26px 22px 24px !important;
}
.rank-progress-top {
  margin-bottom: 22px !important;
}
.rank-progress-card .progress-track {
  margin-bottom: 12px !important;
}
.rank-progress-card .progress-label {
  margin-top: 4px !important;
}

