/* CricPredict Arena — Dream11-Style Crisp Indian Cricket App Shell
 * + High-Saturation Emerald Pitch Stage + Original Broadcast Illustrations
 * Mobile-first (390x844 zero horizontal overflow), sunlight-readable contrast.
 */

:root {
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --bg-soft: #f8fafc;
  --header-navy: #0b1b3b;
  --header-red: #b91c1c;
  --turf-dark: #064e3b;
  --turf-mid: #047857;
  --turf-bright: #10b981;
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --crimson: #dc2626;
  --cyan: #0284c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-pop: 0 12px 30px rgba(15, 23, 42, 0.14);
  --font-display: 'Teko', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--header-red);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Top Broadcast App Header (Navy -> Crimson Dream11-inspired Sports Bar) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(100deg, var(--header-navy) 0%, #162347 58%, #8f141b 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(11, 27, 59, 0.28);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  text-decoration: none !important;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(251, 191, 36, 0.4);
  border: 1.5px solid rgba(251, 191, 36, 0.65);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff;
}

.brand-tag {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fde68a;
  font-weight: 700;
}

.hud-pills {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.65);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: #fef08a;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(110, 231, 183, 0.55);
  font-size: 12px;
  font-weight: 700;
  color: #a7f3d0;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 32px;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nav-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 10px;
  scrollbar-width: none;
}
.nav-bar::-webkit-scrollbar {
  display: none;
}

.nav-link {
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover, .nav-link.active {
  color: #0b1b3b;
  background: #fbbf24;
}

/* Compliance Ribbon */
.compliance-strip {
  background: #064e3b;
  color: #d1fae5;
  font-size: 12px;
  padding: 6px 0;
}
.compliance-strip strong {
  color: #fde68a;
}

/* Stadium Hero Banner with Original Illustration — Compact on Mobile First Fold */
.hero {
  position: relative;
  margin: 10px 0 12px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(95deg, rgba(11, 27, 59, 0.9) 0%, rgba(11, 27, 59, 0.72) 55%, rgba(6, 78, 59, 0.58) 100%),
    url('/assets/images/stadium-hero.webp') center / cover no-repeat;
  box-shadow: var(--shadow-pop);
}
@media (max-width: 640px) {
  .hero {
    margin: 8px 0 10px;
    padding: 12px 14px;
  }
  .hero .lead {
    font-size: 13px;
    line-height: 1.4;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 50px);
  line-height: 0.98;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(25px, 4.5vw, 32px);
  line-height: 1.02;
  letter-spacing: 0.3px;
  margin: 0 0 8px;
  text-transform: uppercase;
  color: var(--text-main);
}

h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.3px;
  margin: 0 0 6px;
  text-transform: uppercase;
  color: var(--text-main);
}

.hero .lead {
  color: #e2e8f0;
  margin: 0;
  max-width: 720px;
  font-size: 14.5px;
}
@media (max-width: 640px) {
  .hero .lead {
    font-size: 13px;
    line-height: 1.4;
  }
}

.lead {
  color: var(--text-muted);
  margin: 0 0 14px;
  max-width: 740px;
  font-size: 14.5px;
}

/* Match Selector Strip — VS Clash Cards */
.match-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.match-tab {
  position: relative;
  text-align: left;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-main);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.14s, border-color 0.14s, box-shadow 0.14s;
}
.match-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--team-a, #1d4ed8) 0%, var(--team-a, #1d4ed8) 48%, var(--team-b, #eab308) 52%, var(--team-b, #eab308) 100%);
}
.match-tab:hover {
  border-color: var(--header-navy);
  transform: translateY(-2px);
}
.match-tab.active {
  border-color: var(--header-red);
  box-shadow: 0 8px 22px rgba(185, 28, 28, 0.15);
  background: #fffdfb;
}

.mt-league {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--header-red);
  margin-top: 2px;
}
.mt-vs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 3px;
}
.team-crest {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.mt-teams {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}
.mt-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Crisp White Cards */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.panel-gold {
  border-top: 3px solid var(--header-red);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #e0f2fe;
  color: #0369a1;
}
.badge-gold {
  background: #fef3c7;
  color: #b45309;
}
.badge-green {
  background: #d1fae5;
  color: #047857;
}
.badge-red {
  background: #fee2e2;
  color: #b91c1c;
}

/* Mode Switcher Tabs */
.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mode-tab {
  min-height: 46px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.14s;
}
.mode-tab.active {
  background: var(--header-navy);
  color: #ffffff;
  border-color: var(--header-navy);
  box-shadow: 0 6px 16px rgba(11, 27, 59, 0.22);
}

/* ========================================================
 * HIGH-SATURATION 2D EMERALD CRICKET PITCH BROADCAST STAGE
 * ======================================================== */
.pitch-arena-stage {
  background: linear-gradient(180deg, #063d2c 0%, #052e22 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(167, 243, 208, 0.2), 0 12px 26px rgba(6, 78, 59, 0.28);
}

.chase-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fef08a;
}

.rival-bar-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.rival-pill {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rival-pill strong {
  font-family: var(--font-mono);
  font-size: 13px;
}

.pitch-visual-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: center;
}
@media (max-width: 700px) {
  .pitch-visual-grid {
    grid-template-columns: 1fr;
  }
}

.broadcast-deck {
  position: relative;
  width: 100%;
  min-height: 178px;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background:
    linear-gradient(155deg, rgba(11, 27, 59, 0.86) 0%, rgba(6, 78, 59, 0.72) 55%, rgba(11, 27, 59, 0.92) 100%),
    url('/assets/images/stadium-hero.webp') center / cover no-repeat;
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}
.bd-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fde68a;
}
.bd-center {
  text-align: center;
  padding: 6px 8px;
}
.bd-event {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  line-height: 0.95;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}
.bd-event.ev-six { color: #fde047; }
.bd-event.ev-four { color: #38bdf8; }
.bd-event.ev-wicket { color: #fca5a5; }
.bd-sub {
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 3px;
}
.bd-chase-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.bd-chase-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #fbbf24);
  transition: width 0.35s ease;
}
.bd-scan-bar {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fbbf24, #34d399, transparent);
  background-size: 200% 100%;
  animation: scanPulse 0.45s linear infinite;
}
@keyframes scanPulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.pitch-svg-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.shot-arc {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: drawArc 0.55s ease-out forwards;
}
@keyframes drawArc {
  to { stroke-dashoffset: 0; }
}

.broadcast-splash {
  position: absolute;
  inset: auto 10px 10px 10px;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  background: rgba(11, 27, 59, 0.9);
  border: 2px solid #fbbf24;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  animation: popSplash 0.35s cubic-bezier(0.22, 1.28, 0.36, 1);
}
.broadcast-splash.splash-six {
  background: linear-gradient(90deg, #b45309, #f59e0b, #b45309);
  color: #0b1b3b;
  border-color: #fef08a;
}
.broadcast-splash.splash-four {
  background: linear-gradient(90deg, #0369a1, #0ea5e9);
  border-color: #bae6fd;
}
.broadcast-splash.splash-wicket {
  background: linear-gradient(90deg, #991b1b, #dc2626);
  border-color: #fecaca;
}
@keyframes popSplash {
  0% { transform: scale(0.75); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.score-big {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 0.9;
  color: #ffffff;
  letter-spacing: 0.8px;
}
.score-overs {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #fde68a;
  margin-left: 6px;
}

.matchup-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.matchup-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 12px;
}
.matchup-mini img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fbbf24;
  flex-shrink: 0;
}

.commentary-box {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.34);
  border-left: 4px solid #fbbf24;
  font-size: 13.5px;
  color: #f8fafc;
}
.commentary-box.hit {
  border-left-color: #34d399;
  background: rgba(16, 185, 129, 0.24);
}
.commentary-box.miss {
  border-left-color: #f87171;
  background: rgba(220, 38, 38, 0.24);
}
/* Light-surface commentary (used inside Quiz) */
.panel .commentary-box.light {
  background: #f1f5f9;
  color: var(--text-main);
}
.panel .commentary-box.light.hit {
  background: #d1fae5;
  color: #065f46;
}
.panel .commentary-box.light.miss {
  background: #fee2e2;
  color: #991b1b;
}

.ball-tape {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ball-chip {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.ball-chip.b-4 {
  background: #0284c7;
  border-color: #bae6fd;
}
.ball-chip.b-6 {
  background: #f59e0b;
  color: #0b1b3b;
  border-color: #fef08a;
}
.ball-chip.b-W {
  background: #dc2626;
  border-color: #fecaca;
}

/* Stake & Call Controls */
.stake-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.stake-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-right: 4px;
}
.stake-btn {
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.stake-btn.active {
  background: var(--header-navy);
  color: #ffffff;
  border-color: var(--header-navy);
}

.call-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 560px) {
  .call-grid {
    grid-template-columns: 1fr;
  }
}

.call-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  text-align: left;
  min-height: 82px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  background: var(--bg-soft);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.12s, border-color 0.14s, box-shadow 0.14s;
}
.call-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--header-navy);
  box-shadow: 0 8px 18px rgba(11, 27, 59, 0.12);
}
.call-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.call-card.call-boundary {
  border-color: #f59e0b;
  background: #fffbeb;
}
.call-card.call-wicket {
  border-color: #ef4444;
  background: #fef2f2;
}

.call-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.call-title {
  font-weight: 800;
  font-size: 15px;
}
.call-mult {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 6px;
}
.call-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Over Bonus Strip */
.over-bonus-box {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  border: 1.5px dashed #3b82f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s, filter 0.14s;
}
.btn:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.25);
}
.btn-emerald {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}
.btn-ghost {
  background: var(--bg-soft);
  border-color: var(--border-strong);
  color: var(--text-main);
}

/* Prediction Slip Markets */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.market-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
}
.market-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.opt-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
.opt-btn {
  min-height: 44px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}
.opt-btn span.mult {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #b45309;
}
.opt-btn.selected {
  background: #ecfdf5;
  border-color: #059669;
  box-shadow: 0 0 0 1px #059669;
}

/* Fantasy XI Builder — Dream11 Illustrated Player Cards */
.fantasy-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.stat-tile {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.stat-tile .k {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.stat-tile .v {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--header-navy);
}

.role-filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  transition: border-color 0.14s, background 0.14s;
}
.player-row.picked {
  background: #ecfdf5;
  border-color: #059669;
}
.player-info-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.player-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--p-team-color, #1d4ed8);
  background: #e2e8f0;
  flex-shrink: 0;
}
.p-name {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}
.p-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.mini-chip {
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.mini-chip.active-c {
  background: #f59e0b;
  color: #0b1b3b;
  border-color: #d97706;
}
.mini-chip.active-vc {
  background: #0284c7;
  color: #ffffff;
  border-color: #0369a1;
}

/* Dream11-Style Fantasy XI Green Pitch Formation Preview */
.fantasy-pitch-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 14px 12px 16px;
  margin-bottom: 14px;
  color: #ffffff;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 28px,
      transparent 28px,
      transparent 56px
    ),
    radial-gradient(ellipse 78% 60% at 50% 50%, #0f8a57 0%, #066341 62%, #04432c 100%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(167, 243, 208, 0.22), 0 10px 24px rgba(4, 67, 44, 0.28);
  overflow: hidden;
}
.fantasy-pitch-card::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64%;
  height: 76%;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  pointer-events: none;
}
.fp-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.fp-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1;
}
.fp-rows {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fp-row {
  text-align: center;
}
.fp-row-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(254, 240, 138, 0.9);
  margin-bottom: 5px;
}
.fp-tokens {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.fp-token {
  position: relative;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.fp-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}
.fp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--p-team-color, #fbbf24);
  background: #0b1b3b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.fp-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.fp-badge.is-c {
  background: #fbbf24;
  color: #0b1b3b;
}
.fp-badge.is-vc {
  background: #0369a1;
  color: #ffffff;
}
.fp-name {
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(11, 27, 59, 0.92);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-cr {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #d1fae5;
  margin-top: 1px;
}
.fp-empty {
  font-size: 12.5px;
  color: #d1fae5;
  text-align: center;
  padding: 16px 8px;
}

/* ========================================================
 * GAME FEEL & JUICE: MISSIONS BAR, BOWLING PULSE, LIVE SIM
 * ======================================================== */
.missions-strip {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.missions-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.missions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 720px) {
  .missions-grid {
    grid-template-columns: 1fr;
  }
}
.mission-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1.5px solid var(--border-light);
  font-size: 12.5px;
}
.mission-card.ready {
  background: #fffbeb;
  border-color: #f59e0b;
}
.mission-card.claimed {
  background: #ecfdf5;
  border-color: #10b981;
}
.mission-title {
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}
.mission-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.mission-btn {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.mission-btn.claimable {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1b3b;
  animation: pulseClaim 1.4s infinite;
}
.mission-btn.done {
  background: #047857;
  color: #ffffff;
  cursor: default;
}
.mission-btn.locked {
  background: #e2e8f0;
  color: #475569;
  cursor: default;
}
@keyframes pulseClaim {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Pitch Arena Game Juice: Streak Fire, Shake, Bowling Ball Flight */
.pitch-arena-stage.streak-fire {
  box-shadow: 0 0 0 2px #fbbf24, 0 0 28px rgba(245, 158, 11, 0.55);
}
.pitch-arena-stage.fx-shake {
  animation: stageShake 0.36s ease-in-out;
}
@keyframes stageShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  45% { transform: translateX(6px); }
  70% { transform: translateX(-4px); }
}

/* Live Fantasy 20-Over Broadcast Sim Panel */
.sim-live-box {
  margin-top: 14px;
  border-radius: var(--radius-lg);
  padding: 16px;
  background: linear-gradient(135deg, #0b1b3b 0%, #102a52 60%, #064e3b 100%);
  color: #ffffff;
  border: 2px solid #fbbf24;
  box-shadow: 0 12px 28px rgba(11, 27, 59, 0.3);
}
.sim-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.sim-metric {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  text-align: center;
}
.sim-metric .k {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #cbd5e1;
  font-weight: 700;
}
.sim-metric .v {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: #fde68a;
  margin-top: 2px;
}
.sim-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  margin-bottom: 10px;
}
.sim-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #fbbf24);
  transition: width 0.55s ease;
}
.sim-ticker {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid #34d399;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #f8fafc;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
th, td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
th {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-soft);
}
td.mono {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Quiz */
.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.quiz-opt {
  min-height: 48px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-main);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}
.quiz-opt.correct {
  background: #d1fae5;
  border-color: #059669;
  color: #065f46;
}
.quiz-opt.wrong {
  background: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
}

/* Form inputs */
.input {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
  max-width: 280px;
}

/* Grid helpers */
.two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}
@media (max-width: 820px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.link-card {
  display: block;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  text-decoration: none !important;
  transition: border-color 0.14s, transform 0.14s, box-shadow 0.14s;
}
.link-card:hover {
  border-color: var(--header-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.link-card p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: 32px;
  padding: 26px 0 36px;
  background: var(--header-navy);
  color: #cbd5e1;
  font-size: 13px;
}
.site-footer h3 {
  color: #ffffff;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-links a {
  color: #cbd5e1;
}
.footer-links a:hover {
  color: #fbbf24;
}

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--header-navy);
  border: 2px solid #fbbf24;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(11, 27, 59, 0.45);
  max-width: calc(100vw - 28px);
  text-align: center;
}
.hidden {
  display: none !important;
}
