/* ─────────────────────────────────────────────────────────────
   COMPONENTS SYSTEM (Cards, Buttons, Scorelines, Lightbox, etc.)
   ───────────────────────────────────────────────────────────── */

.card-body { color: #FFFFFF; }
.card-body p { color: var(--c-text-muted); }
.card-title, .card h3, .card h4 { color: #FFFFFF; }
.meta, .eyebrow, .card-meta { color: var(--c-gold); font-weight: 800; text-transform: uppercase; font-family: var(--font-display); }

.tabs-nav { border-bottom-color: rgba(255, 255, 255, 0.12); }
.tab-btn { color: var(--c-text-muted); }
.tab-btn:hover, .tab-btn.active { color: #FFFFFF; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.btn-primary {
  background-color: #FFFFFF;
  color: #080E18 !important;
  border: 1px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  background-color: #E2E8F0;
  color: #000000 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  border-color: #FFFFFF;
  color: #080E18;
  background: #FFFFFF;
}

.btn-outline-navy {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-navy:hover {
  border-color: #FFFFFF;
  background: #FFFFFF;
  color: #080E18;
}

.btn-flame {
  background-color: var(--c-flame);
  color: #fff;
}

.btn-flame:hover {
  background-color: #d95105;
  box-shadow: 0 4px 12px rgba(242, 96, 12, 0.3);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

/* ── CARDS (Futuristic Glass + Unified Hover Lift) ── */
.card {
  background: rgba(16, 28, 63, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.card--lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card--navy {
  background: rgba(13, 25, 44, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* ── PILLS & BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.badge--gold {
  background-color: var(--c-gold);
  color: #080E18;
}

.badge--teal {
  background-color: var(--c-teal);
  color: #080E18;
}

.badge--flame {
  background-color: var(--c-flame-light);
  color: var(--c-flame-text);
  border: 1px solid rgba(242, 96, 12, 0.3);
}

.badge--navy {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.badge--dark {
  background-color: rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Captain / Vice Captain role markers */
.role-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
}
.role-marker--c {
  background-color: var(--c-gold);
  color: #080E18;
}
.role-marker--vc {
  background-color: var(--c-teal);
  color: #080E18;
}

/* ── OVERSIZED TABULAR SCORELINES ── */
.scoreline-oversized {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.scoreline-oversized--navy {
  color: #FFFFFF;
}

.scoreline-oversized .score-divider {
  color: var(--c-gold);
  font-weight: 600;
  font-size: 2rem;
}

.scoreline-oversized .score-opp {
  color: var(--c-text-muted);
  font-size: 1.875rem;
}

/* ── TABS & FILTERS ── */
.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: #FFFFFF;
}

.tab-btn.active {
  color: #FFFFFF;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--c-gold);
  border-radius: 3px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-pill {
  background: #101C3F;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover,
.filter-pill.active {
  background-color: var(--c-gold);
  color: #080E18;
  border-color: var(--c-gold);
}

/* ── TABLES (Tabular figures, clean lines) ── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  background: #101C3F;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.data-table th {
  background-color: #080E18;
  color: var(--c-gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.data-table .highlight-col {
  font-weight: 700;
  color: var(--c-gold);
}

/* ── FORMS & INPUTS ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background-color: #0B1320;
  color: #FFFFFF;
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #E53E3E;
}

.form-error-msg {
  color: #E53E3E;
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}

.form-input.error + .form-error-msg {
  display: block;
}

/* ── CONSENT & SAFEGUARD NOTICES ── */
.consent-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(56, 198, 217, 0.1);
  border: 1px solid rgba(56, 198, 217, 0.3);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  color: #FFFFFF;
  font-size: 0.875rem;
  margin-top: 24px;
}

.consent-notice svg {
  color: var(--c-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── EMPTY STATES ── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: #101C3F;
  border-radius: var(--radius-card);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  max-width: 540px;
  margin: 32px auto;
  color: #FFFFFF;
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--c-gold);
  background: var(--c-gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state__title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.empty-state__desc {
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

/* ── GALLERY LIGHTBOX MODAL ── */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 40, 0.95);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.is-active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-wrapper {
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

.lightbox-image-wrapper img {
  max-height: 70vh;
  width: auto;
  object-fit: contain;
}

.lightbox-caption {
  color: #fff;
  margin-top: 16px;
  text-align: center;
  font-size: 1rem;
}

.lightbox-counter {
  color: var(--c-gold);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 4px;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-btn:hover {
  background: var(--c-gold);
  color: var(--c-navy);
}

.lightbox-close {
  top: -48px;
  right: 0;
}

.lightbox-prev {
  left: -64px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -64px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 900px) {
  .lightbox-prev { left: 8px; top: auto; bottom: -60px; transform: none; }
  .lightbox-next { right: 8px; top: auto; bottom: -60px; transform: none; }
  .lightbox-close { top: -40px; right: 0; }
}

/* ─────────────────────────────────────────────────────────────
   CSK CRICKET MATCHDAY POWERPLAY LOADER (CRICKET VIBES EDITION)
   ───────────────────────────────────────────────────────────── */
.csk-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 75% 65% at 50% 45%, #071533 0%, #030A1C 50%, #01040D 100%) !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  pointer-events: all;
  overflow: hidden;
}

.csk-splash-screen.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.csk-splash-screen.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
  display: flex !important;
}

.csk-splash-screen__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 38%, rgba(2, 132, 199, 0.12) 0%, rgba(245, 158, 11, 0.04) 45%, transparent 70%);
  pointer-events: none;
}

.csk-splash-floodlights,
.csk-splash-cyber-grid {
  display: none !important;
}

.csk-splash-screen__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  max-width: 540px;
  width: 92vw;
}

/* Stadium Logo & Cricket Seam Orbit */
.csk-splash-screen__logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  margin-bottom: 20px;
}

.csk-splash-seam-ring {
  position: absolute;
  inset: -14px;
  pointer-events: none;
}

.csk-splash-seam-ring .seam-svg {
  width: 100%;
  height: 100%;
  animation: seamOrbitSpin 14s linear infinite;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}

@keyframes seamOrbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.seam-spin-circle {
  animation: seamDashOffset 3s linear infinite;
}

@keyframes seamDashOffset {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 56; }
}

.seam-spin-reverse {
  animation: seamDashReverse 4s linear infinite;
}

@keyframes seamDashReverse {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -40; }
}

.csk-splash-screen__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.6)) drop-shadow(0 14px 28px rgba(0, 0, 0, 0.95));
  user-select: none;
  -webkit-user-drag: none;
  position: relative;
  z-index: 2;
}

.csk-splash-brand-wrap {
  margin-bottom: 22px;
}

.csk-splash-brand-title {
  font-family: var(--font-display), -apple-system, sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 45%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 8px 0;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.9));
}

.csk-splash-cricket-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.cricket-live-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 10px #EF4444;
  animation: cricketBeaconPulse 1s infinite alternate;
}

@keyframes cricketBeaconPulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #EF4444; }
}

.csk-splash-motto {
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #38BDF8;
  text-transform: uppercase;
  margin: 0;
}

/* ── 22-YARD CRICKET PITCH ARENA & BAT-BALL MATCHDAY LOADER ── */
.csk-cricket-pitch-loader {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
  position: relative;
}

/* Pitch HUD Scoreboard Header */
.pitch-loader-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0 4px;
}

.pitch-commentary {
  color: #F8FAFC;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  font-size: 0.72rem;
}

.pitch-speed-readout {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.speed-label {
  color: #94A3B8;
  font-size: 0.65rem;
  font-weight: 700;
}

.speed-val {
  color: #EF4444;
  font-weight: 900;
  font-size: 0.95rem;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.speed-unit {
  color: #94A3B8;
  font-size: 0.65rem;
  font-weight: 700;
}

.pitch-pct {
  color: #38BDF8;
  font-weight: 800;
  font-size: 0.85rem;
  margin-left: 6px;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

/* 22-Yard Cricket Turf Pitch Arena */
.pitch-corridor {
  width: 100%;
  height: 54px;
  background: linear-gradient(180deg, #06152B 0%, #0A2244 50%, #06152B 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  padding: 4px 12px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 24px rgba(2, 132, 199, 0.35);
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
}

/* English Willow Cricket Bat beside Wickets on Left */
.pitch-bat-wrap {
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%) rotate(25deg);
  transform-origin: top center;
  z-index: 6;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.15s ease-out;
}

.pitch-bat-wrap.is-swinging {
  transform: translateY(-50%) rotate(-15deg);
}

.pitch-bat-wrap.is-followthrough {
  transform: translateY(-50%) rotate(-45deg);
}

.cricket-bat-svg {
  display: block;
}

/* Striker Crease Line on Left */
.pitch-crease--striker {
  position: absolute;
  left: 48px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Bowling Crease Line on Right */
.pitch-crease--bowler {
  position: absolute;
  right: 20px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.crease-label {
  position: absolute;
  top: -14px;
  font-family: "SF Mono", monospace;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #94A3B8;
  white-space: nowrap;
}

.pitch-crease--striker .crease-label {
  left: -8px;
}

.pitch-crease--bowler .crease-label {
  right: -8px;
}

/* 22-Yard Turf Surface Track (Extends into Left Stumps) */
.pitch-mat {
  position: relative;
  width: calc(100% - 56px);
  margin-left: 20px;
  margin-right: 36px;
  height: 24px;
  background: linear-gradient(180deg, #14532D 0%, #166534 50%, #0F381E 100%);
  border-radius: 999px;
  overflow: visible;
  display: flex;
  align-items: center;
  border: 1px solid rgba(74, 222, 128, 0.4);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Pitch Grass Stripes Texture */
.pitch-turf-stripes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 12px,
    transparent 12px,
    transparent 24px
  );
  border-radius: 999px;
  pointer-events: none;
}

/* Hawk-Eye Trajectory Trail Fill (Fills from RIGHT to LEFT) */
.pitch-fill-trail {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(270deg, rgba(34, 197, 94, 0.3) 0%, rgba(56, 189, 248, 0.6) 70%, #EF4444 100%);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.8);
  transition: width 0.04s linear;
}

/* Moving Cricket Ball Runner (Travels from RIGHT to LEFT) */
.pitch-ball-runner {
  position: absolute;
  right: 0;
  left: auto !important;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  z-index: 8;
  transition: right 0.04s linear;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* High Velocity Cherry Red Leather Cricket Ball */
.pitch-cricket-ball {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F87171 0%, #EF4444 35%, #DC2626 70%, #7F1D1D 100%);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.95), inset 0 2px 4px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ballSpin 0.35s linear infinite;
}

@keyframes ballSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Raised White Cricket Ball Seam */
.seam-stitch {
  position: absolute;
  width: 100%;
  height: 2.5px;
  background: repeating-linear-gradient(
    90deg,
    #FFFFFF 0px,
    #FFFFFF 3px,
    rgba(220, 38, 38, 0.8) 3px,
    rgba(220, 38, 38, 0.8) 5px
  );
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.95);
}

/* Heat Comet Vapor Trail behind ball (points Right as ball hurtles Left) */
.ball-heat-tail {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 12px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.9) 0%, rgba(56, 189, 248, 0.45) 60%, transparent 100%);
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

/* ── LED ZING WICKETS & BAILS ON LEFT END ── */
.pitch-stumps-target {
  position: absolute;
  left: 14px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  height: 42px;
  z-index: 7;
}

/* Zing Bails */
.zing-bails {
  display: flex;
  gap: 3px;
  width: 26px;
  height: 4px;
  margin-bottom: 2px;
}

.bail-led {
  flex: 1;
  height: 3.5px;
  background: #E2E8F0;
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3 Wooden Stumps */
.zing-wickets {
  display: flex;
  justify-content: space-between;
  width: 24px;
  height: 34px;
}

.wicket-led {
  width: 4.5px;
  height: 100%;
  background: linear-gradient(180deg, #FDE68A 0%, #D97706 50%, #78350F 100%);
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.4);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Stumps Hit State (Electric Red Zing Flash & Flying Cartwheeling Bails) */
.pitch-stumps-target.is-hit {
  animation: wicketRattle 0.45s ease-out;
}

@keyframes wicketRattle {
  0% { transform: translateY(-50%) rotate(0deg); }
  20% { transform: translateY(-50%) rotate(-8deg) scale(1.08); }
  45% { transform: translateY(-50%) rotate(6deg) scale(1.04); }
  70% { transform: translateY(-50%) rotate(-3deg); }
  100% { transform: translateY(-50%) rotate(0deg); }
}

.pitch-stumps-target.is-hit .bail-left {
  background: #EF4444 !important;
  box-shadow: 0 0 20px #EF4444, 0 0 32px #F59E0B !important;
  transform: translate(-18px, -24px) rotate(-75deg) scale(1.3) !important;
}

.pitch-stumps-target.is-hit .bail-right {
  background: #EF4444 !important;
  box-shadow: 0 0 20px #EF4444, 0 0 32px #F59E0B !important;
  transform: translate(20px, -22px) rotate(85deg) scale(1.3) !important;
}

.pitch-stumps-target.is-hit .off-stump {
  background: #EF4444 !important;
  box-shadow: 0 0 20px #EF4444, 0 0 30px #F59E0B !important;
  transform: rotate(-24deg) translate(-6px, 6px) !important;
}

.pitch-stumps-target.is-hit .middle-stump {
  background: #EF4444 !important;
  box-shadow: 0 0 26px #EF4444, 0 0 40px #F59E0B !important;
  transform: scale(0.85) translate(2px, 8px) rotate(10deg) !important;
}

.pitch-stumps-target.is-hit .leg-stump {
  background: #EF4444 !important;
  box-shadow: 0 0 20px #EF4444, 0 0 28px #F59E0B !important;
  transform: rotate(22deg) translate(6px, 4px) !important;
}

/* Impact Burst Badge on Left Wicket Hit */
.pitch-impact-burst {
  position: absolute;
  left: -8px;
  right: auto;
  top: -26px;
  background: linear-gradient(135deg, #DC2626 0%, #EA580C 50%, #F59E0B 100%);
  color: #FFFFFF;
  font-family: var(--font-display, 'Rajdhani', sans-serif);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(254, 240, 138, 0.7);
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.95), 0 0 36px rgba(245, 158, 11, 0.6);
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

.pitch-impact-burst.is-visible {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Sub-steps Footer Row */
.arena-loader-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Courier New", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  padding: 0 4px;
}

.arena-step {
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.arena-step .step-dot {
  font-size: 0.75rem;
  line-height: 1;
}

.arena-step.is-active,
.arena-step.is-complete {
  color: #38BDF8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}