/* ==========================================================================
   MAHARAJA SIXER — OFFICIAL INDIAN PREMIER STADIUM DESIGN SYSTEM
   Palette:
   - Stadium Floodlight Navy: #071A2C, #0F2942
   - Cricket Pitch Emerald Green: #064E3B, #10B981
   - Radiant Indian Maharaja Gold: #FFD700, #F59E0B
   - Broadcast Scoreboard Crisp White: #FFFFFF, #F1F5F9
   ========================================================================== */

:root {
  --navy-deep: #071A2C;
  --navy-card: rgba(7, 26, 44, 0.93);
  --navy-panel: rgba(15, 41, 66, 0.95);
  --emerald-deep: #064E3B;
  --emerald-bright: #10B981;
  --gold-primary: #FFD700;
  --gold-amber: #F59E0B;
  --white-crisp: #FFFFFF;
  --slate-light: #F1F5F9;
  --slate-muted: #94A3B8;
  --crimson-alert: #EF4444;
  --font-display: 'Russo One', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--white-crisp);
  /* 100% CRISP UNBLURRED STADIUM BACKGROUND — ZERO BLUR / ZERO FULL-SCREEN SCRIM */
  background: url('bg.jpg') center/cover no-repeat fixed;
}

#app-root {
  width: 100%;
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   GLOBAL TOP BROADCAST HEADER
   ========================================================================== */
.broadcast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--navy-card);
  border-bottom: 2px solid var(--gold-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  z-index: 30;
  flex-shrink: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.header-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--gold-primary);
  object-fit: cover;
  background: var(--navy-deep);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--emerald-bright);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--gold-primary);
  line-height: 1.1;
}

.header-currencies {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  border: 1.5px solid var(--gold-primary);
}

.gold-pill {
  background: #0F2942;
  color: var(--gold-primary);
}

.emerald-pill {
  background: var(--emerald-deep);
  color: var(--white-crisp);
  border-color: var(--emerald-bright);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--gold-primary);
  background: #0F2942;
  color: var(--white-crisp);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   SCREEN MANAGEMENT
   ========================================================================== */
.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.screen.active {
  display: flex;
}

/* ==========================================================================
   SCREEN 1: WELCOME / STADIUM INTRO SCREEN
   ========================================================================== */
#screen-welcome {
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.welcome-card {
  width: 100%;
  background: var(--navy-card);
  border: 2.5px solid var(--gold-primary);
  border-radius: 18px;
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}

.broadcast-live-badge {
  display: inline-block;
  background: var(--emerald-deep);
  color: var(--gold-primary);
  border: 1px solid var(--emerald-bright);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.hero-emblem-wrap {
  margin: 4px auto 12px;
  width: 112px;
  height: 112px;
  border-radius: 20px;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
  overflow: hidden;
  background: var(--navy-deep);
}

.welcome-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-primary);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.welcome-subtitle {
  font-size: 13px;
  line-height: 1.45;
  color: var(--slate-light);
  margin-bottom: 16px;
}

.welcome-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.highlight-chip {
  background: #0F2942;
  border: 1.5px solid var(--emerald-bright);
  border-radius: 10px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chip-val {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold-primary);
}

.chip-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--slate-light);
}

/* ==========================================================================
   BUTTONS & CALLS TO ACTION
   ========================================================================== */
.cta-gold-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 2px solid #FFF3B0;
  background: linear-gradient(180deg, #FFD700 0%, #F59E0B 100%);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.45);
  transition: transform 0.12s ease;
}

.cta-gold-btn:active {
  transform: scale(0.97);
}

.cta-emerald-gold-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 2px solid var(--gold-primary);
  background: linear-gradient(180deg, #10B981 0%, #064E3B 100%);
  color: var(--white-crisp);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.45);
}

.cta-emerald-gold-btn:active {
  transform: scale(0.98);
}

.secondary-gold-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--gold-primary);
  background: #0F2942;
  color: var(--gold-primary);
  font-family: var(--font-display);
  font-size: 12px;
  cursor: pointer;
}

/* ==========================================================================
   SCREEN 2: CHAMPIONSHIP CLUB LOBBY HUB
   ========================================================================== */
.lobby-scroll-area,
.settings-scroll-area,
.tour-grid-scroll,
.shop-grid-scroll,
.trophy-grid-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 76px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scoreboard-card {
  background: var(--navy-card);
  border: 2px solid var(--gold-primary);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.72);
}

.card-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 4px;
}

.stage-pill {
  background: var(--gold-primary);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
}

.venue-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald-bright);
}

.fixture-versus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0F2942;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 42%;
}

.team-crest {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 4px;
}

.gold-crest {
  background: var(--navy-deep);
  border: 2px solid var(--gold-primary);
}

.emerald-crest {
  background: var(--emerald-deep);
  border: 2px solid var(--emerald-bright);
}

.team-name {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--white-crisp);
}

.team-sub {
  font-size: 10px;
  color: var(--gold-primary);
  font-weight: 600;
}

.vs-medallion {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chase-requirements-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.req-item {
  background: rgba(6, 78, 59, 0.75);
  border: 1px solid var(--emerald-bright);
  border-radius: 8px;
  padding: 6px;
  text-align: center;
}

.req-lbl {
  display: block;
  font-size: 9px;
  color: var(--slate-light);
  font-weight: 700;
}

.req-val {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold-primary);
}

/* Career Quick Stats */
.stats-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-stat-card {
  padding: 9px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-lbl {
  font-size: 9px;
  font-weight: 800;
  color: var(--slate-muted);
}

.mini-val {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-primary);
}

.mini-sub {
  font-size: 10px;
  color: var(--emerald-bright);
  font-weight: 600;
}

/* League Standings Table */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-primary);
  letter-spacing: 0.03em;
}

.section-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--emerald-deep);
  color: var(--emerald-bright);
  border: 1px solid var(--emerald-bright);
}

.Broadcast-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.Broadcast-table th {
  text-align: left;
  padding: 5px 6px;
  color: var(--gold-primary);
  font-family: var(--font-display);
  font-size: 10px;
  border-bottom: 1.5px solid rgba(255, 215, 0, 0.4);
}

.Broadcast-table td {
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.Broadcast-table tr.user-row {
  background: rgba(16, 185, 129, 0.25);
  color: var(--gold-primary);
  font-weight: 800;
}

/* Quick Hub Tiles */
.hub-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hub-tile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--navy-card);
  border: 1.5px solid var(--gold-primary);
  border-radius: 12px;
  color: var(--white-crisp);
  text-align: left;
  cursor: pointer;
}

.tile-icon {
  font-size: 22px;
}

.tile-text {
  display: flex;
  flex-direction: column;
}

.tile-text strong {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold-primary);
}

.tile-text span {
  font-size: 10px;
  color: var(--slate-light);
}

/* ==========================================================================
   COMMON SUB-SCREEN TOP BAR
   ========================================================================== */
.screen-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--navy-panel);
  border-bottom: 1.5px solid rgba(255, 215, 0, 0.45);
}

.back-pill-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--gold-primary);
  background: var(--navy-deep);
  color: var(--gold-primary);
  font-family: var(--font-display);
  font-size: 11px;
  cursor: pointer;
}

.screen-heading {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--white-crisp);
}

.star-badge {
  background: var(--emerald-deep);
  border: 1px solid var(--emerald-bright);
  color: var(--gold-primary);
  font-family: var(--font-display);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
}

/* ==========================================================================
   SCREEN 3: 30-MATCH PREMIER TOUR
   ========================================================================== */
.tier-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 12px 0;
}

.tier-tab {
  padding: 7px 4px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  background: var(--navy-card);
  color: var(--slate-light);
  font-family: var(--font-display);
  font-size: 10px;
  cursor: pointer;
}

.tier-tab.active {
  background: var(--gold-primary);
  color: var(--navy-deep);
  border-color: var(--white-crisp);
}

.tour-match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy-card);
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  padding: 10px 12px;
  gap: 8px;
}

.tour-match-card.locked {
  border-color: #475569;
  opacity: 0.82;
}

.match-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-num-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--emerald-deep);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.match-info h4 {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--white-crisp);
}

.match-info p {
  font-size: 10px;
  color: var(--emerald-bright);
  font-weight: 600;
}

.match-meta-line {
  font-size: 10px;
  color: var(--slate-light);
  margin-top: 2px;
}

.match-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.match-stars {
  font-size: 12px;
  letter-spacing: 1px;
}

.play-match-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--gold-primary);
  background: linear-gradient(180deg, #10B981, #064E3B);
  color: var(--white-crisp);
  font-family: var(--font-display);
  font-size: 11px;
  cursor: pointer;
}

.play-match-btn:disabled {
  background: #334155;
  border-color: #64748B;
  color: #94A3B8;
  cursor: not-allowed;
}

/* ==========================================================================
   SCREEN 4: PRO CRICKET KIT & BAT SHOP
   ========================================================================== */
.kit-banner-title {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-primary);
  margin-bottom: 3px;
}

.kit-banner-desc {
  font-size: 11px;
  color: var(--slate-light);
  line-height: 1.35;
}

.shop-item-card {
  background: var(--navy-card);
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  padding: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0F2942;
  border: 1.5px solid var(--emerald-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.shop-details h4 {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold-primary);
}

.shop-details p {
  font-size: 10px;
  color: var(--slate-light);
  margin: 2px 0 4px;
}

.level-pips {
  display: flex;
  gap: 4px;
}

.lvl-pip {
  width: 14px;
  height: 5px;
  border-radius: 3px;
  background: #334155;
}

.lvl-pip.filled {
  background: var(--emerald-bright);
}

.upgrade-buy-btn {
  padding: 8px 11px;
  border-radius: 10px;
  border: 1.5px solid #FFF3B0;
  background: linear-gradient(180deg, #FFD700, #F59E0B);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}

.upgrade-buy-btn:disabled {
  background: #334155;
  border-color: #475569;
  color: #94A3B8;
  cursor: not-allowed;
}

/* ==========================================================================
   SCREEN 5: TROPHY CABINET
   ========================================================================== */
.trophy-card {
  background: var(--navy-card);
  border: 2px solid #475569;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trophy-card.unlocked {
  border-color: var(--gold-primary);
  background: rgba(6, 78, 59, 0.9);
}

.trophy-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trophy-medal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.trophy-info h4 {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold-primary);
}

.trophy-info p {
  font-size: 10px;
  color: var(--slate-light);
}

.trophy-status-pill {
  font-family: var(--font-display);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #1E293B;
  color: var(--slate-muted);
}

.trophy-card.unlocked .trophy-status-pill {
  background: var(--gold-primary);
  color: var(--navy-deep);
}

/* ==========================================================================
   SCREEN 6: SETTINGS & LEGAL HUB
   ========================================================================== */
.settings-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pref-row:last-child {
  border-bottom: none;
}

.pref-row strong {
  font-size: 12px;
  color: var(--white-crisp);
}

.pref-sub {
  font-size: 10px;
  color: var(--slate-muted);
}

.toggle-pill-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 10px;
  border: 1.5px solid var(--slate-muted);
  background: #1E293B;
  color: var(--slate-light);
  cursor: pointer;
}

.toggle-pill-btn.on {
  background: var(--emerald-deep);
  border-color: var(--emerald-bright);
  color: var(--gold-primary);
}

.status-online-pill {
  font-size: 10px;
  font-weight: 800;
  color: var(--emerald-bright);
}

.about-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.meta-box {
  background: #0F2942;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 7px 8px;
}

.meta-lbl {
  display: block;
  font-size: 9px;
  color: var(--slate-muted);
  font-weight: 700;
}

.meta-val {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold-primary);
}

.settings-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.action-card-btn {
  background: #0F2942;
  border: 1.5px solid var(--gold-primary);
  border-radius: 10px;
  padding: 9px 6px;
  color: var(--white-crisp);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  cursor: pointer;
}

.act-icon {
  font-size: 18px;
}

.action-card-btn strong {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--gold-primary);
}

.action-card-btn small {
  font-size: 9px;
  color: var(--slate-light);
}

.legal-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.danger-btn {
  padding: 6px 11px;
  border-radius: 8px;
  border: 1.5px solid var(--crimson-alert);
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  font-family: var(--font-display);
  font-size: 10px;
  cursor: pointer;
}

/* ==========================================================================
   SCREEN 7: FULLSCREEN CRICKET STADIUM GAMEPLAY ARENA
   ========================================================================== */
#screen-arena {
  justify-content: space-between;
  padding: 6px 8px 8px;
  gap: 6px;
}

.arena-broadcast-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--navy-card);
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  padding: 6px 8px;
}

.arena-back-btn {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1.5px solid var(--gold-primary);
  background: #0F2942;
  color: var(--gold-primary);
  font-family: var(--font-display);
  font-size: 10px;
  cursor: pointer;
}

.scoreboard-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sb-main-score {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.sb-team-code {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--emerald-bright);
}

.sb-runs {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-primary);
}

.sb-overs {
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-light);
}

.sb-chase-target {
  font-size: 9px;
  font-weight: 800;
  color: var(--white-crisp);
  background: var(--emerald-deep);
  padding: 1px 7px;
  border-radius: 999px;
}

.bowler-speed-box {
  text-align: right;
  background: #0F2942;
  border: 1px solid var(--emerald-bright);
  padding: 4px 7px;
  border-radius: 8px;
}

.spd-lbl {
  display: block;
  font-size: 8px;
  font-weight: 800;
  color: var(--emerald-bright);
}

.spd-val {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold-primary);
}

.arena-sub-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--navy-card);
  border: 1.5px solid rgba(255, 215, 0, 0.55);
  border-radius: 10px;
  padding: 5px 8px;
}

.roar-meter-wrap {
  flex: 1;
}

.roar-label-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--gold-primary);
  margin-bottom: 3px;
}

.roar-bar-bg {
  width: 100%;
  height: 7px;
  background: #1E293B;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.roar-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #10B981, #FFD700, #F59E0B);
  transition: width 0.25s ease;
}

.over-balls-strip {
  display: flex;
  gap: 4px;
}

.ball-pip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0F2942;
  border: 1px solid #475569;
  font-family: var(--font-display);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-crisp);
}

.ball-pip.six {
  background: var(--gold-primary);
  color: var(--navy-deep);
  border-color: var(--white-crisp);
}

.ball-pip.four {
  background: var(--emerald-bright);
  color: var(--navy-deep);
}

.ball-pip.out {
  background: var(--crimson-alert);
  color: var(--white-crisp);
}

.canvas-stage-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
}

#cricket-canvas {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 14px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
  background: rgba(6, 78, 59, 0.35);
  touch-action: manipulation;
}

/* Bottom Batting Controls */
.arena-controls-dock {
  background: var(--navy-card);
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aim-selector-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.aim-btn {
  background: #0F2942;
  border: 1.5px solid #475569;
  border-radius: 8px;
  padding: 5px 4px;
  color: var(--slate-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.aim-btn.active {
  background: var(--emerald-deep);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.aim-arrow {
  font-size: 14px;
  line-height: 1;
}

.aim-btn strong {
  font-family: var(--font-display);
  font-size: 10px;
}

.aim-btn small {
  font-size: 8px;
  color: var(--slate-muted);
}

.swing-action-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 6px;
}

.bowl-trigger-btn {
  padding: 11px 8px;
  border-radius: 10px;
  border: 1.5px solid var(--emerald-bright);
  background: linear-gradient(180deg, #10B981, #064E3B);
  color: var(--white-crisp);
  font-family: var(--font-display);
  font-size: 11px;
  cursor: pointer;
}

.bowl-trigger-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.swing-bat-btn {
  padding: 11px 8px;
  border-radius: 10px;
  border: 2px solid #FFF3B0;
  background: linear-gradient(180deg, #FFD700, #F59E0B);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.45);
}

.swing-bat-btn:disabled {
  background: #334155;
  border-color: #475569;
  color: #94A3B8;
  box-shadow: none;
  cursor: not-allowed;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--navy-card);
  border-top: 2px solid var(--gold-primary);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 25;
}

.bottom-nav.hidden {
  display: none;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--slate-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.nav-item.active {
  color: var(--gold-primary);
  background: rgba(16, 185, 129, 0.18);
}

.nav-ico {
  font-size: 17px;
}

.nav-txt {
  font-family: var(--font-display);
  font-size: 9px;
}

/* ==========================================================================
   CUSTOM MODALS & DIALOGS
   ========================================================================== */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 44, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 50;
}

.modal-overlay.hidden,
.custom-modal.hidden,
.hidden {
  display: none !important;
}

.custom-modal {
  width: 100%;
  max-height: 88%;
  overflow-y: auto;
  background: #071A2C;
  border: 2.5px solid var(--gold-primary);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid var(--gold-primary);
  background: #0F2942;
  color: var(--gold-primary);
  font-weight: 800;
  cursor: pointer;
}

.modal-ribbon {
  align-self: center;
  background: var(--emerald-deep);
  border: 1px solid var(--emerald-bright);
  color: var(--gold-primary);
  font-family: var(--font-display);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 999px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold-primary);
  text-align: center;
}

.modal-subtitle {
  font-size: 12px;
  color: var(--slate-light);
  text-align: center;
  line-height: 1.4;
}

.result-stars-row {
  text-align: center;
  font-size: 26px;
  letter-spacing: 4px;
}

.result-stats-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #0F2942;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}

.res-stat span {
  display: block;
  font-size: 9px;
  color: var(--slate-muted);
  font-weight: 700;
}

.res-stat strong {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--white-crisp);
}

.gold-txt {
  color: var(--gold-primary) !important;
}

.modal-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Support Form & Rating Styles */
.custom-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-primary);
}

.form-input {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--emerald-bright);
  background: #0F2942;
  color: var(--white-crisp);
  font-family: var(--font-body);
  font-size: 12px;
}

.form-textarea {
  min-height: 68px;
  resize: vertical;
}

.support-confirm-banner {
  background: var(--emerald-deep);
  border: 1.5px solid var(--gold-primary);
  border-radius: 8px;
  padding: 8px;
  font-size: 11px;
  color: var(--white-crisp);
  text-align: center;
  font-weight: 700;
}

.mini-section-title {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.ticket-log-list {
  max-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ticket-item {
  background: #0F2942;
  border-left: 3px solid var(--gold-primary);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 10px;
}

.star-picker-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.star-pick-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid #475569;
  background: #0F2942;
  color: #64748B;
  font-size: 22px;
  cursor: pointer;
}

.star-pick-btn.active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: var(--emerald-deep);
}

.rate-caption-text {
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--emerald-bright);
}

.share-preview-box {
  background: #0F2942;
  border: 1.5px dashed var(--gold-primary);
  border-radius: 10px;
  padding: 10px;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-line;
  color: var(--gold-primary);
}

.legal-scroll-body {
  max-height: 300px;
  overflow-y: auto;
  background: #0F2942;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--slate-light);
}

.legal-scroll-body h4 {
  font-family: var(--font-display);
  color: var(--gold-primary);
  font-size: 12px;
  margin: 8px 0 4px;
}

.legal-scroll-body h4:first-child {
  margin-top: 0;
}

/* Toast Notification */
.toast-banner {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-deep);
  border: 2px solid var(--gold-primary);
  color: var(--white-crisp);
  font-family: var(--font-display);
  font-size: 11px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
  z-index: 60;
  white-space: nowrap;
}


/* ==========================================================================
   STRICT MOBILE PORTRAIT FRAME & TOUCH OPTIMIZATION (PHONE-ONLY VIEWPORT)
   ========================================================================== */
html {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto !important;
  position: relative;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

#app-shell,
#app-root,
.screen {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

canvas {
  touch-action: none;
  display: block;
}
