/* ==========================================================================
   Baseline Volley — Grand Slam Tennis Championship CSS
   Palette: Vibrant Stadium Orange (#FF5000, #FF6600), Deep Dark Slate (#191E24),
   Crisp Stadium White (#FFFFFF) Match Cards, Court Accents (#D95326, #16A34A, #0284C7)
   Background Rule: 100% crisp unblurred bg.jpg, zero full-screen dark scrim!
========================================================================== */

:root {
  --brand-orange: #FF5000;
  --brand-orange-bright: #FF6600;
  --brand-orange-dark: #CC3D00;
  --slate-deep: #12161B;
  --slate-base: #191E24;
  --slate-card: #202731;
  --slate-border: #2E3846;
  --stadium-white: #FFFFFF;
  --stadium-offwhite: #F4F6F9;
  --text-dark: #14181F;
  --text-muted-dark: #526071;
  --text-light: #FFFFFF;
  --text-muted-light: #A0AEC0;
  --clay-red: #D95326;
  --grass-green: #16A34A;
  --hard-blue: #0284C7;
  --optic-yellow: #D9F99D;
  --gold-trophy: #F59E0B;
  --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(--text-light);
  /* 100% CRISP UNBLURRED BACKGROUND LAW: ZERO BLUR, ZERO FULL-SCREEN OVERLAY */
  background: url('bg.jpg') center/cover no-repeat fixed;
  filter: none;
}

.app-shell {
  width: 100%;
  max-width: 500px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: transparent;
}

/* ==========================================================================
   TOP STADIUM HEADER
========================================================================== */
.stadium-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--slate-base);
  border-bottom: 3px solid var(--brand-orange);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  z-index: 20;
  flex-shrink: 0;
}

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

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--brand-orange);
}

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

.brand-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
  color: var(--brand-orange-bright);
  text-transform: uppercase;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.6px;
  color: var(--stadium-white);
  line-height: 1.1;
}

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

.currency-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--slate-card);
  border: 1px solid var(--slate-border);
  padding: 5px 9px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--stadium-white);
}

.currency-icon {
  font-size: 13px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--slate-border);
  background: var(--slate-card);
  color: var(--stadium-white);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   SCREENS & SCROLL CONTAINERS
========================================================================== */
.screen {
  display: none;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

.hub-scroll-container,
.subscreen-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   CLUBHOUSE HUB CARDS (#screen-hub)
========================================================================== */
.hero-match-card {
  background: var(--slate-base);
  border: 2px solid var(--brand-orange);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.surface-pill {
  font-family: var(--font-display);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--stadium-white);
}

.surface-clay {
  background: var(--clay-red);
}

.surface-grass {
  background: var(--grass-green);
}

.surface-hard {
  background: var(--hard-blue);
}

.fixture-counter {
  font-size: 11px;
  font-weight: 800;
  color: var(--optic-yellow);
  letter-spacing: 0.5px;
}

.matchup-showcase {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  background: var(--slate-card);
  border: 1px solid var(--slate-border);
  border-radius: 12px;
  padding: 12px 10px;
}

.contender-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.contender-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
  border: 2px solid var(--stadium-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.contender-avatar.rival-badge {
  background: linear-gradient(135deg, #334155, #0F172A);
  border-color: var(--optic-yellow);
}

.contender-name {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--stadium-white);
}

.contender-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted-light);
}

.stat-mini-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2px;
}

.stat-chip {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 80, 0, 0.2);
  color: #FF854D;
  border: 1px solid rgba(255, 80, 0, 0.4);
}

.stat-chip.rival-chip {
  background: rgba(217, 249, 157, 0.14);
  color: var(--optic-yellow);
  border-color: rgba(217, 249, 157, 0.35);
}

.vs-medallion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.vs-text {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--brand-orange);
  background: var(--slate-deep);
  padding: 6px 10px;
  border-radius: 999px;
  border: 2px solid var(--brand-orange);
}

.best-of-tag {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted-light);
  text-align: center;
}

.scouting-note-box {
  background: var(--slate-deep);
  border-left: 3px solid var(--brand-orange);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #E2E8F0;
}

.scouting-label {
  font-weight: 800;
  color: var(--brand-orange-bright);
  margin-right: 4px;
}

.cta-orange-xl {
  width: 100%;
  background: linear-gradient(180deg, var(--brand-orange-bright) 0%, var(--brand-orange) 100%);
  color: var(--stadium-white);
  border: 2px solid #FFA375;
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--brand-orange-dark), 0 10px 20px rgba(255, 80, 0, 0.45);
  transition: transform 0.1s ease;
}

.cta-orange-xl:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--brand-orange-dark);
}

.cta-main-text {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.8px;
}

.cta-sub-text {
  font-size: 11px;
  font-weight: 800;
  color: var(--optic-yellow);
  letter-spacing: 0.5px;
}

/* Crisp Stadium White Match Cards */
.white-match-card {
  background: var(--stadium-white);
  color: var(--text-dark);
  border-radius: 14px;
  padding: 13px;
  border-bottom: 4px solid #CBD5E1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hub-bento-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bento-half {
  padding: 11px;
}

.card-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.section-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-orange);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: block;
}

.card-title-dark {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-dark);
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--brand-orange);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.loadout-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loadout-stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted-dark);
  border-bottom: 1px dashed #E2E8F0;
  padding-bottom: 4px;
}

.loadout-stat-line strong {
  color: var(--text-dark);
  font-weight: 800;
}

/* Standings Table */
.table-preview-wrap {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.standings-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted-dark);
  padding: 6px 6px;
  border-bottom: 2px solid #E2E8F0;
}

.standings-table td {
  padding: 7px 6px;
  border-bottom: 1px solid #F1F5F9;
  font-weight: 600;
  color: var(--text-dark);
}

.standings-table tr.you-row {
  background: #FFF3EC;
  font-weight: 800;
}

.standings-table tr.you-row td {
  color: var(--brand-orange-dark);
}

/* Club Action Grid */
.club-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.club-tile-btn {
  background: var(--slate-base);
  border: 1.5px solid var(--slate-border);
  border-left: 4px solid var(--brand-orange);
  border-radius: 12px;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--stadium-white);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.club-tile-btn:active {
  transform: scale(0.98);
}

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

.tile-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile-copy strong {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--stadium-white);
}

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

/* ==========================================================================
   SEPARATE FULLSCREEN TENNIS MATCH ARENA (#screen-game)
========================================================================== */
.screen-fullscreen-arena {
  padding: 8px 10px 10px 10px;
  justify-content: space-between;
  gap: 6px;
}

.arena-top-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--slate-base);
  border: 2px solid var(--brand-orange);
  border-radius: 12px;
  padding: 7px 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.tv-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 148px;
  background: var(--slate-deep);
  border-radius: 8px;
  padding: 4px 7px;
  border: 1px solid var(--slate-border);
}

.tv-score-row {
  display: grid;
  grid-template-columns: 12px 1fr 22px 30px;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 11px;
}

.serve-dot {
  color: transparent;
  font-size: 10px;
}

.serve-dot.active {
  color: var(--optic-yellow);
}

.tv-athlete-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--stadium-white);
}

.tv-games-box {
  background: var(--slate-card);
  color: var(--text-muted-light);
  text-align: center;
  padding: 2px 0;
  border-radius: 4px;
}

.tv-points-box {
  background: var(--brand-orange);
  color: var(--stadium-white);
  text-align: center;
  padding: 2px 0;
  border-radius: 4px;
}

.arena-center-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.surface-hud-pill {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--optic-yellow);
  letter-spacing: 0.5px;
}

.rally-hud-pill,
.wind-hud-pill {
  font-size: 10px;
  font-weight: 800;
  color: var(--stadium-white);
}

.btn-arena-pause {
  background: var(--slate-card);
  color: var(--stadium-white);
  border: 1.5px solid var(--slate-border);
  border-radius: 8px;
  padding: 7px 9px;
  font-family: var(--font-display);
  font-size: 10px;
  cursor: pointer;
}

.arena-focus-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--slate-base);
  border: 1px solid var(--slate-border);
  border-radius: 999px;
  padding: 5px 12px;
  flex-shrink: 0;
}

.focus-label {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--brand-orange-bright);
  white-space: nowrap;
}

.focus-bar-track {
  flex: 1;
  height: 8px;
  background: var(--slate-deep);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--slate-border);
}

.focus-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-orange), var(--optic-yellow));
  transition: width 0.15s ease;
}

.focus-ready-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--optic-yellow);
  white-space: nowrap;
}

/* Interactive Court Canvas Stage */
.canvas-stage-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#tennis-canvas {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  touch-action: none;
  cursor: crosshair;
}

.umpire-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(25, 30, 36, 0.95);
  border: 2px solid var(--brand-orange);
  border-radius: 14px;
  padding: 12px 22px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  z-index: 10;
}

.umpire-call-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--optic-yellow);
  letter-spacing: 1px;
}

.umpire-call-sub {
  font-size: 11px;
  font-weight: 800;
  color: var(--stadium-white);
  margin-top: 3px;
}

/* Bottom Shot Mode Selector */
.arena-controls-bar {
  background: var(--slate-base);
  border: 1.5px solid var(--slate-border);
  border-radius: 12px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.shot-mode-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.shot-mode-btn {
  background: var(--slate-card);
  border: 1.5px solid var(--slate-border);
  border-radius: 9px;
  padding: 6px 6px;
  color: var(--stadium-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: pointer;
}

.shot-mode-btn.active {
  background: rgba(255, 80, 0, 0.22);
  border-color: var(--brand-orange);
  box-shadow: inset 0 0 10px rgba(255, 80, 0, 0.35);
}

.shot-mode-btn.smash-ready {
  border-color: var(--optic-yellow);
  animation: pulseGlow 1.1s infinite alternate;
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 4px rgba(217, 249, 157, 0.4); }
  to { box-shadow: 0 0 14px rgba(217, 249, 157, 0.9); }
}

.shot-key {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-orange-bright);
}

.shot-mode-btn strong {
  font-family: var(--font-display);
  font-size: 11px;
}

.shot-mode-btn small {
  font-size: 9px;
  color: var(--text-muted-light);
}

.arena-hint-strip {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--optic-yellow);
  letter-spacing: 0.4px;
}

/* ==========================================================================
   SUBSCREENS: FIXTURES, LOCKER, BRACKET, SETTINGS
========================================================================== */
.subscreen-header-card {
  background: var(--slate-base);
  border: 2px solid var(--brand-orange);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.subscreen-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--stadium-white);
}

.surface-filter-tabs,
.locker-subtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.surface-tab,
.locker-tab,
.bracket-tab {
  flex: 1;
  background: var(--slate-card);
  color: var(--text-muted-light);
  border: 1px solid var(--slate-border);
  border-radius: 8px;
  padding: 7px 8px;
  font-family: var(--font-display);
  font-size: 10px;
  cursor: pointer;
  text-align: center;
}

.surface-tab.active,
.locker-tab.active,
.bracket-tab.active {
  background: var(--brand-orange);
  color: var(--stadium-white);
  border-color: #FFA375;
}

.fixtures-grid,
.upgrades-grid,
.athletes-grid,
.achievements-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fixture-card {
  background: var(--stadium-white);
  color: var(--text-dark);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-left: 6px solid var(--brand-orange);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.fixture-card.locked {
  opacity: 0.78;
  background: #E2E8F0;
}

.fixture-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fixture-info h4 {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-dark);
}

.fixture-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted-dark);
}

.locker-panel,
.bracket-panel {
  display: none;
}

.locker-panel.active,
.bracket-panel.active {
  display: block;
}

/* Upgrades & Athletes Cards */
.upgrade-card,
.athlete-card,
.achievement-card {
  background: var(--stadium-white);
  color: var(--text-dark);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 3px solid #CBD5E1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

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

.item-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--slate-base);
  color: var(--stadium-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.item-details h4 {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-dark);
}

.item-details p {
  font-size: 11px;
  color: var(--text-muted-dark);
  margin-top: 2px;
}

.level-pips {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-orange);
  margin-top: 4px;
}

/* Knockout Bracket */
.knockout-tree {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bracket-round-box {
  background: var(--stadium-offwhite);
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px;
}

.bracket-round-title {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--brand-orange);
  margin-bottom: 6px;
}

.bracket-match-pair {
  background: var(--stadium-white);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

/* Settings & Legal */
.settings-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #E2E8F0;
}

.setting-sub {
  font-size: 11px;
  color: var(--text-muted-dark);
}

.toggle-pill {
  background: #CBD5E1;
  color: var(--text-dark);
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 10px;
  cursor: pointer;
}

.toggle-pill.active {
  background: var(--grass-green);
  color: var(--stadium-white);
}

.about-header-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-mini-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid var(--brand-orange);
}

.version-badge {
  font-size: 11px;
  color: var(--text-muted-dark);
  margin-top: 2px;
}

.help-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-action-card {
  background: var(--stadium-offwhite);
  border: 1.5px solid #CBD5E1;
  border-left: 4px solid var(--brand-orange);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.help-icon {
  font-size: 20px;
}

.help-action-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-dark);
}

.help-action-card span {
  font-size: 11px;
  color: var(--text-muted-dark);
}

.ticket-history-box {
  background: var(--stadium-offwhite);
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px;
}

.ticket-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 6px;
}

.status-pill {
  background: var(--slate-base);
  color: var(--stadium-white);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.ticket-item {
  background: var(--stadium-white);
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 6px 8px;
}

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

/* ==========================================================================
   BUTTONS
========================================================================== */
.cta-orange-md {
  background: var(--brand-orange);
  color: var(--stadium-white);
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  cursor: pointer;
  text-align: center;
}

.btn-slate-sm {
  background: var(--slate-base);
  color: var(--stadium-white);
  border: none;
  border-radius: 8px;
  padding: 7px 11px;
  font-family: var(--font-display);
  font-size: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-slate-md {
  background: var(--slate-base);
  color: var(--stadium-white);
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 11px;
  cursor: pointer;
}

.btn-outline-md {
  background: transparent;
  color: var(--stadium-white);
  border: 1.5px solid var(--slate-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 11px;
  cursor: pointer;
}

.btn-danger-sm {
  background: #DC2626;
  color: var(--stadium-white);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font-display);
  font-size: 10px;
  cursor: pointer;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR
========================================================================== */
.bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: var(--slate-base);
  border-top: 2px solid var(--brand-orange);
  padding: 6px 6px 10px 6px;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.5);
  z-index: 20;
  flex-shrink: 0;
}

.nav-tab {
  background: none;
  border: none;
  color: var(--text-muted-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px 2px;
}

.nav-tab.active {
  color: var(--brand-orange-bright);
}

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

.nav-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.4px;
}

.nav-tab-play .nav-play-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: var(--stadium-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-top: -14px;
  border: 2px solid var(--stadium-white);
  box-shadow: 0 4px 10px rgba(255, 80, 0, 0.5);
}

/* ==========================================================================
   CUSTOM MODALS & TOAST
========================================================================== */
.hidden {
  display: none !important;
}

.modal-overlay {
  position: fixed;
   inset: 0;
  background: rgba(12, 16, 22, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.custom-modal {
  width: 100%;
  max-width: 400px;
  background: var(--slate-base);
  border: 2px solid var(--brand-orange);
  border-radius: 16px;
  padding: 16px;
  color: var(--stadium-white);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-kicker {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-orange-bright);
  letter-spacing: 0.8px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
}

.modal-desc {
  font-size: 12px;
  color: var(--text-muted-light);
}

.modal-close-x {
  background: var(--slate-card);
  color: var(--stadium-white);
  border: 1px solid var(--slate-border);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
}

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

.result-scoreboard-box {
  background: var(--slate-deep);
  border: 1px solid var(--slate-border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 14px;
}

.result-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.result-stat-item {
  background: var(--slate-card);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.result-stat-item strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--optic-yellow);
  margin-top: 2px;
}

/* Custom Forms */
.custom-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted-light);
}

.form-select,
.form-input,
.form-textarea {
  width: 100%;
  background: var(--slate-deep);
  border: 1px solid var(--slate-border);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--stadium-white);
  font-family: var(--font-body);
  font-size: 12px;
}

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

.star-btn {
  background: var(--slate-card);
  border: 1px solid var(--slate-border);
  color: #64748B;
  font-size: 24px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
}

.star-btn.active {
  color: var(--gold-trophy);
  border-color: var(--gold-trophy);
}

.share-invite-card {
  background: var(--slate-deep);
  border: 1.5px dashed var(--brand-orange);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.share-card-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--optic-yellow);
}

.invite-code-box {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--brand-orange-bright);
  background: var(--slate-card);
  padding: 6px;
  border-radius: 6px;
}

.legal-scroll-body {
  max-height: 250px;
  overflow-y: auto;
  background: var(--slate-deep);
  border: 1px solid var(--slate-border);
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
  line-height: 1.45;
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-scroll-body h4 {
  color: var(--brand-orange-bright);
  font-size: 12px;
}

.toast-banner {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--slate-base);
  color: var(--optic-yellow);
  border: 2px solid var(--brand-orange);
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  z-index: 150;
}
