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

.hidden {
  display: none !important;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: url('assets/menu_bg.jpg') center/cover no-repeat fixed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: url('assets/menu_bg.jpg') center/cover no-repeat;
}

canvas#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #256a29;
}

/* Common HUD Elements */
.hud-element {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

/* Top HUD Scoreboard */
#hud-top {
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hud-score-card {
  display: flex;
  align-items: center;
  background: rgba(10, 16, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 6px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.team-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.team-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: inline-block;
}

#home-color-dot { background-color: #0055ff; }
#away-color-dot { background-color: #e60000; }

.score-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px;
  font-size: 24px;
  font-weight: 900;
  color: #f7df1e;
  font-variant-numeric: tabular-nums;
}

.score-divider {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.hud-time-container {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 22, 33, 0.85);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #38ef7d;
  letter-spacing: 1px;
}

#penalty-hud-dots {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 16, 26, 0.92);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  padding: 4px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.pen-dots-hud {
  display: flex;
  gap: 4px;
  font-size: 13px;
}

.pen-vs-hud {
  font-size: 11px;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 1.5px;
}

/* Active Player Stamina Card */
#hud-player-card {
  bottom: 20px;
  left: 20px;
  background: rgba(10, 16, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 12px;
  min-width: 160px;
  backdrop-filter: blur(6px);
}

.player-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.player-badge-num {
  background: #38ef7d;
  color: #0b141a;
  font-weight: 900;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
}

.player-active-name {
  font-weight: 700;
  font-size: 14px;
}

.stamina-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.stamina-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #38ef7d, #11998e);
  transition: width 0.1s linear, background-color 0.2s ease;
}

/* Power Meter */
#power-meter-container {
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.power-meter-bar {
  width: 180px;
  height: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid #fff;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.power-meter-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--power-width, 0%);
  background: linear-gradient(90deg, #38ef7d 0%, #ffe600 65%, #ff2a2a 100%);
  transition: width 0.05s ease-out;
}

.power-meter-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffe600;
}

/* Possession Bar */
#possession-container {
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.possession-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.possession-bar {
  display: flex;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

#possession-home-fill {
  background: #0055ff;
  transition: width 0.3s ease;
}

#possession-away-fill {
  background: #e60000;
  transition: width 0.3s ease;
}

/* Radar Minimap */
#radar-container {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 20, 15, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

#radarCanvas {
  display: block;
  border-radius: 6px;
}

/* Match Announcements Banner */
.banner {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: linear-gradient(135deg, rgba(16, 26, 44, 0.95), rgba(8, 14, 25, 0.95));
  border: 2px solid #f7df1e;
  padding: 16px 48px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.8), 0 0 30px rgba(247, 223, 30, 0.3);
  z-index: 50;
  pointer-events: none;
  animation: bannerPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bannerPop {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

#banner-text {
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #f7df1e;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 6px;
}

#banner-subtext {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Controls Hint (Bottom-Right) */
#controls-hint {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  background: rgba(10, 16, 26, 0.7);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 10;
}

#controls-hint span {
  color: rgba(255, 255, 255, 0.85);
}

#controls-hint b {
  color: #38ef7d;
}

/* Menu Overlays with Epic Football Stadium Backdrop */
.menu-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(6, 12, 22, 0.45) 0%, rgba(6, 12, 22, 0.65) 100%),
    url('assets/menu_bg.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 10px;
}

.menu-box {
  background: rgba(14, 22, 36, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 16px 24px;
  max-width: 460px;
  width: 92%;
  max-height: 94vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: auto;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
}

.game-logo h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
}

.game-logo h1 span {
  color: #38ef7d;
}

.game-logo .subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  margin-top: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.menu-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.btn-primary {
  background: #38ef7d;
  color: #0b141a;
}
.btn-primary:hover {
  background: #2dd86e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(56, 239, 125, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.btn-action {
  background: linear-gradient(135deg, #f7df1e, #f1a10c);
  color: #090e15;
  font-size: 16px;
  letter-spacing: 1px;
  margin-top: 4px;
  padding: 11px 16px;
}
.btn-action:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(247, 223, 30, 0.4);
}

.settings-group {
  display: flex;
  justify-content: space-around;
  margin: 6px 0 2px;
  gap: 8px;
}

.settings-group label,
.tournament-group label,
.team-selection-group label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  flex: 1;
}

.tournament-group {
  display: flex;
  margin: 4px 0;
}

.team-selection-group {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0;
}

select {
  background: #1b263b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.team-customizer {
  display: flex;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 6px 12px;
  margin: 6px 0;
}

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

.custom-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.7);
}

input[type=color] {
  border: none;
  width: 36px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  background: none;
}

.result-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 32px;
  font-weight: 900;
  margin: 20px 0;
  color: #f7df1e;
}

#result-summary {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.hidden {
  display: none !important;
}

/* 1. Splash Screen & Traffic Wonders Loading Bar */
.splash-box {
  text-align: center;
  max-width: 520px;
  width: 90%;
  padding: 40px 30px;
  background: rgba(8, 14, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  animation: splashFadeIn 0.4s ease-out;
}

@keyframes splashFadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.presents-tag {
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 800;
  color: #38ef7d;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.splash-title {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.1;
  color: #fff;
}

.splash-title span {
  color: #f7df1e;
}

.splash-subtitle {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 8px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.splash-loader-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}

#splash-loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38ef7d, #f7df1e);
  border-radius: 6px;
  transition: width 0.5s ease-out;
}

.loading-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

/* 2. Platform Selector Layout */
.platform-box {
  max-width: 580px;
}

.platform-cards {
  display: flex;
  gap: 16px;
  margin: 20px 0 24px;
}

.platform-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.platform-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: rgba(56, 239, 125, 0.5);
}

.platform-card.active {
  border-color: #38ef7d;
  background: rgba(56, 239, 125, 0.1);
  box-shadow: 0 0 20px rgba(56, 239, 125, 0.3);
}

.platform-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.platform-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.platform-card p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin-bottom: 16px;
  flex: 1;
}

.badge-select {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.platform-card.active .badge-select {
  background: #38ef7d;
  color: #0b141a;
}

.platform-indicator-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

#platform-badge {
  background: rgba(56, 239, 125, 0.2);
  border: 1px solid rgba(56, 239, 125, 0.4);
  color: #38ef7d;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.8px;
}

.btn-text-link {
  background: none;
  border: none;
  color: #f7df1e;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* 3. Android / Mobile Ergonomic Virtual Controls */
#touch-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

/* Left Thumb Virtual Joystick D-Pad */
#touch-dpad-container {
  position: absolute;
  bottom: 25px;
  left: 25px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(10, 20, 30, 0.5) 70%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  pointer-events: auto;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

#touch-dpad-stick {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #38ef7d, #11998e);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transform: translate(0px, 0px);
  transition: transform 0.04s linear;
}

/* Right Thumb Action Buttons */
#touch-action-buttons {
  position: absolute;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
  touch-action: none;
}

.touch-row {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.touch-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  font-family: inherit;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.08s ease, filter 0.08s ease;
}

.touch-btn:active, .touch-btn.active {
  transform: scale(0.9);
  filter: brightness(1.3);
}

.btn-pass {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  width: 66px;
  height: 66px;
  font-size: 13px;
}

.btn-shoot {
  background: linear-gradient(135deg, #ff0844, #ffb199);
  width: 66px;
  height: 66px;
  font-size: 13px;
}

.btn-sprint {
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #111;
}

.btn-tackle {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

.btn-lob {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: #111;
}

.btn-switch {
  background: linear-gradient(135deg, #434343, #282828);
  border-color: rgba(255, 255, 255, 0.25);
}

/* 4. Victory Celebration Layout */
.celebration-box {
  position: relative;
  background: linear-gradient(160deg, #162438 0%, #0d1624 100%);
  border: 2px solid #f7df1e;
  border-radius: 28px;
  padding: 24px 32px;
  max-width: 520px;
  width: 92%;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: auto;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(247, 223, 30, 0.35);
  animation: celebrationPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes celebrationPop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

#celebration-confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.trophy-badge {
  font-size: 72px;
  margin-bottom: 6px;
  animation: trophyFloat 2s ease-in-out infinite;
  display: inline-block;
  position: relative;
  z-index: 2;
}

@keyframes trophyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.celebration-heading {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #f7df1e;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

.celebration-subheading {
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 800;
  color: #38ef7d;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.celebration-box .result-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 16px 24px;
  margin: 15px 0 18px;
  position: relative;
  z-index: 2;
}

.team-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 120px;
}

.team-score-col .team-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.team-score-col .score-num {
  font-size: 42px;
  font-weight: 900;
  color: #f7df1e;
  line-height: 1;
}

.score-sep {
  font-size: 30px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

.celebration-box #result-summary {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.celebration-options {
  position: relative;
  z-index: 2;
}

/* =========================================================
   ECONOMY SYSTEM, TABS, UPGRADES, SHOP (INR), & TUTORIAL
   ========================================================= */

/* Currency Header in Main Menu */
.economy-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 5px 10px;
  margin-bottom: 8px;
}

.currency-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.coins-badge {
  border-color: rgba(247, 223, 30, 0.4);
}

.diamonds-badge {
  border-color: rgba(0, 198, 255, 0.4);
}

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

.currency-val {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.coins-badge .currency-val {
  color: #ffd700;
}

.diamonds-badge .currency-val {
  color: #5ce1e6;
}

.currency-label {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}

.btn-shop-shortcut {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 114, 255, 0.35);
}

.btn-shop-shortcut:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

/* Menu Nav Tabs */
.menu-nav-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-btn {
  flex: 1;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 2px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.nav-btn.active, .nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #38ef7d;
}

/* Modal Headers & Boxes */
.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.modal-header-row h2 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s ease;
}

.btn-close-modal:hover {
  background: rgba(255, 60, 60, 0.7);
}

.upgrade-box, .shop-box, .tutorial-box, .menu-box, .menu-overlay {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}

.upgrade-box::-webkit-scrollbar,
.shop-box::-webkit-scrollbar,
.tutorial-box::-webkit-scrollbar,
.menu-box::-webkit-scrollbar,
.menu-overlay::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0px;
  background: transparent;
}

.upgrade-box, .shop-box, .tutorial-box {
  max-width: 580px;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth swipe on mobile */
  scroll-behavior: smooth;
}

.upgrade-balance-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

.squad-ovr-badge {
  background: linear-gradient(135deg, #f7df1e, #f1a10c);
  color: #0b141a;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Upgrades List */
.upgrades-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  text-align: left;
}

.upgrade-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  gap: 12px;
}

.upgrade-info {
  flex: 1;
}

.upgrade-name {
  display: block;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  margin-bottom: 2px;
}

.upgrade-desc {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.upgrade-level-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.level-fill {
  height: 100%;
  background: linear-gradient(90deg, #38ef7d, #00c6ff);
  transition: width 0.3s ease;
}

.upgrade-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.stat-value {
  font-size: 11px;
  font-weight: 800;
  color: #38ef7d;
}

.btn-buy-upgrade {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  border: none;
  color: #111;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-buy-upgrade:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn-buy-upgrade.maxed {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

/* Shop (INR Combos) */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
  text-align: center;
}

.shop-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.shop-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 239, 125, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.featured-pack {
  border-color: rgba(247, 223, 30, 0.6);
  background: linear-gradient(160deg, rgba(247, 223, 30, 0.1), rgba(0, 0, 0, 0.4));
}

.mega-pack {
  border-color: rgba(0, 198, 255, 0.6);
  background: linear-gradient(160deg, rgba(0, 198, 255, 0.12), rgba(0, 0, 0, 0.45));
}

.shop-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
}

.shop-tag.popular {
  color: #ff3b30;
  font-weight: 900;
}

.shop-tag.golden {
  color: #ffd700;
  font-weight: 900;
}

.shop-rewards {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  font-weight: 800;
}

.reward-row.bonus {
  font-size: 10px;
  color: #38ef7d;
  font-weight: 800;
}

.shop-price {
  font-size: 20px;
  font-weight: 900;
  color: #ffd700;
}

.btn-inr-buy {
  padding: 8px 12px;
  font-size: 13px;
}

.diamond-exchange-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  text-align: left;
}

.exchange-text h4 {
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.exchange-text p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

/* Tutorial Modal */
.tutorial-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.t-tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.t-tab-btn.active {
  background: #38ef7d;
  color: #0b141a;
  border-color: #38ef7d;
}

.control-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  margin-bottom: 16px;
}

.control-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.control-table td {
  padding: 7px 6px;
  color: rgba(255, 255, 255, 0.85);
}

.control-table td:first-child {
  color: #ffd700;
  font-weight: 700;
  width: 38%;
}

.rules-list {
  text-align: left;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.rules-list b {
  color: #38ef7d;
}

.btn-full {
  width: 100%;
}



/* =========================================================
   MULTIPLAYER (4-DIGIT ROOM)
   ========================================================= */
.mp-box {
  max-width: 580px;
}

.mp-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.mp-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.mp-icon {
  font-size: 32px;
}

.mp-card h3 {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

.mp-card p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

.room-pin-input-group {
  display: flex;
  gap: 6px;
  width: 100%;
}

#input-room-pin {
  width: 100%;
  background: #101826;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffd700;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 3px;
  text-align: center;
  border-radius: 8px;
  padding: 6px 8px;
  outline: none;
}

/* Room Lobby Display */
.mp-lobby-container {
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(56, 239, 125, 0.4);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.room-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
}

.room-code-display {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 5px;
  color: #ffd700;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 16px;
  border-radius: 10px;
  border: 1px solid #ffd700;
}

.players-connected-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 16px;
}

.connected-player {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.p-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.p-status-dot.online {
  background: #38ef7d;
  box-shadow: 0 0 8px #38ef7d;
}

.p-status-dot.waiting {
  background: #ff9800;
  box-shadow: 0 0 8px #ff9800;
  animation: pulseDot 1.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1.0; }
}

.mp-lobby-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Fullscreen Top-Right HUD Button */
#hud-top-right {
  top: 15px;
  right: 18px;
  pointer-events: auto;
  z-index: 25;
}

.btn-hud-icon {
  background: rgba(10, 16, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #38ef7d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-hud-icon:hover {
  background: rgba(56, 239, 125, 0.2);
  border-color: #38ef7d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 239, 125, 0.35);
}

/* Rotate Device Modal (Android Prompt) */
.rotate-box {
  max-width: 480px;
  text-align: center;
  padding: 36px 28px;
  animation: bannerPop 0.35s ease-out;
}

.rotate-phone-anim {
  font-size: 54px;
  display: inline-block;
  margin-bottom: 12px;
  position: relative;
  animation: phoneRotate 2.2s infinite ease-in-out;
}

.rotate-phone-anim span {
  font-size: 32px;
  color: #38ef7d;
  margin-left: 4px;
}

@keyframes phoneRotate {
  0% { transform: rotate(0deg); }
  35% { transform: rotate(-90deg); }
  70% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

.rotate-box h2 {
  font-size: 24px;
  font-weight: 900;
  color: #f7df1e;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.rotate-box .subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin-bottom: 24px;
}

.rotate-box .subtitle b {
  color: #38ef7d;
}

.rotate-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================================================
   COMPREHENSIVE MOBILE & LANDSCAPE RESPONSIVENESS
   Ensures menus, text, buttons, and HUD fit inside screen
   ========================================================= */
@media screen and (max-height: 520px), screen and (max-width: 900px) {
  /* Menu Container & Boxes */
  .menu-overlay {
    padding: 6px 8px;
    align-items: flex-start;
  }

  .menu-box {
    padding: 12px 18px;
    max-height: 96vh;
    border-radius: 14px;
    margin: 4px auto;
  }

  .game-logo h1 {
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 2px;
  }

  .game-logo .subtitle {
    font-size: 10px;
    margin-bottom: 8px;
    letter-spacing: 1px;
  }

  .platform-indicator-row {
    margin-bottom: 8px;
    gap: 8px;
  }

  #platform-badge {
    font-size: 10px;
    padding: 2px 8px;
  }

  /* Compact Currency Header */
  .economy-header-card {
    padding: 4px 8px;
    margin-bottom: 8px;
  }

  .currency-badge {
    padding: 2px 6px;
    font-size: 11px;
  }

  .btn-shop-shortcut {
    font-size: 10px;
    padding: 4px 8px;
  }

  /* Compact Menu Tabs */
  .menu-nav-row {
    margin-bottom: 8px;
    padding: 2px;
  }

  .nav-btn {
    font-size: 9px;
    padding: 5px 2px;
  }

  /* Compact Menu Options */
  .menu-options {
    gap: 6px;
  }

  .btn {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
  }

  .btn-action {
    font-size: 14px;
    padding: 9px 12px;
    margin-top: 4px;
  }

  /* Two-column responsive layout for form controls in landscape */
  .settings-group, .team-selection-group {
    margin: 4px 0;
    gap: 6px;
  }

  .settings-group label,
  .tournament-group label,
  .team-selection-group label {
    font-size: 10px;
    gap: 2px;
  }

  select {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 6px;
  }

  .team-customizer {
    padding: 4px;
    margin: 4px 0;
  }

  .custom-col h4 {
    font-size: 10px;
  }

  input[type=color] {
    width: 32px;
    height: 24px;
  }

  /* Compact Celebration / Result Modal */
  .celebration-box {
    padding: 14px 20px;
    max-width: 480px;
    max-height: 96vh;
    border-radius: 16px;
  }

  .trophy-badge {
    font-size: 40px;
    margin-bottom: 2px;
  }

  .celebration-heading {
    font-size: 24px;
    margin-bottom: 2px;
  }

  .celebration-subheading {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .celebration-box .result-score {
    padding: 8px 16px;
    margin: 8px 0 10px;
    gap: 12px;
  }

  .team-score-col {
    min-width: 80px;
  }

  .team-score-col .team-name {
    font-size: 12px;
  }

  .team-score-col .score-num {
    font-size: 28px;
  }

  .celebration-box #result-summary {
    font-size: 12px;
    margin-bottom: 12px;
  }

  /* Compact Platform Selector */
  .platform-cards {
    margin: 8px 0 12px;
    gap: 10px;
  }

  .platform-card {
    padding: 12px 8px;
    border-radius: 12px;
  }

  .platform-icon {
    font-size: 28px;
    margin-bottom: 4px;
  }

  .platform-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .platform-card p {
    font-size: 10px;
    margin-bottom: 8px;
    line-height: 1.25;
  }

  /* Compact Touch Controls so they never crowd pitch */
  #touch-dpad-container {
    bottom: 12px;
    left: 12px;
    width: 115px;
    height: 115px;
  }

  #touch-dpad-stick {
    width: 44px;
    height: 44px;
  }

  #touch-action-buttons {
    bottom: 12px;
    right: 12px;
    gap: 8px;
  }

  .touch-row {
    gap: 8px;
  }

  .touch-btn {
    width: 48px;
    height: 48px;
    font-size: 10px;
  }

  .btn-pass, .btn-shoot {
    width: 52px;
    height: 52px;
    font-size: 11px;
  }

  /* Rotate Box */
  .rotate-box {
    padding: 18px 20px;
  }

  .rotate-phone-anim {
    font-size: 38px;
    margin-bottom: 6px;
  }

  .rotate-box h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .rotate-box .subtitle {
    font-size: 11px;
    margin-bottom: 14px;
  }

  /* =========================================================
     MOBILE HUD COMPACT OPTIMIZATION (Fixes big fonts & giant minimap)
     ========================================================= */
  #hud-top {
    top: 6px;
    gap: 2px;
  }

  .hud-score-card {
    padding: 3px 10px;
    border-radius: 14px;
    background: rgba(10, 16, 26, 0.92);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

  .team-badge {
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .team-badge .team-name {
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .team-color-dot {
    width: 8px;
    height: 8px;
  }

  .score-display {
    margin: 0 8px;
    font-size: 15px;
    gap: 4px;
  }

  .hud-time-container {
    padding: 1px 6px;
    font-size: 9px;
    border-radius: 8px;
    gap: 4px;
  }

  /* Compact Possession Bar on Mobile (Moved cleanly under score card) */
  #possession-container {
    top: 48px;
    width: 140px;
    gap: 1px;
  }

  .possession-labels {
    font-size: 7.5px;
  }

  .possession-bar {
    height: 3px;
  }

  /* Compact Radar Minimap on Mobile - Pushed to bottom center out of pitch view */
  #radar-container {
    bottom: 6px;
    padding: 2px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 20, 15, 0.65);
    opacity: 0.85;
  }

  #radarCanvas {
    width: 110px !important;
    height: 65px !important;
  }

  /* Compact Stamina Card on Mobile */
  #hud-player-card {
    bottom: 8px;
    left: 8px;
    padding: 4px 8px;
    min-width: 110px;
  }

  .player-info-row {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .player-badge-num {
    font-size: 9px;
  }
}




/* =========================================================
   FIFA WORLD CUP TOURNAMENT BRACKET / TREE MAP
   Matches media_1789454303705.png dark esports broadcast theme
   ========================================================= */
.bracket-box {
  max-width: 1200px;
  width: 95vw;
  max-height: 92vh;
  padding: 16px 20px;
  background: radial-gradient(circle at center, rgba(20, 26, 36, 0.98), rgba(8, 12, 18, 0.99));
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 215, 0, 0.1);
  overflow-y: auto;
}

.bracket-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(230, 30, 30, 0.8);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.bracket-title-col h2 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.bracket-badge-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.bracket-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.bracket-subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 6px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #cbd5e1;
}

.bracket-user-team-badge {
  color: #38ef7d;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Viewport for horizontal scrolling on smaller mobile screens */
.bracket-viewport {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
}

.bracket-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 980px;
  gap: 12px;
  padding: 10px 0;
}

.bracket-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.bracket-column {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 480px;
}

.bracket-round-title {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #94a3b8;
  margin-bottom: 6px;
}

/* Matchup Nodes */
.matchup-node {
  background: rgba(18, 24, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  width: 140px;
  padding: 4px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.matchup-node:hover {
  border-color: rgba(255, 215, 0, 0.6);
  transform: scale(1.03);
}

.matchup-node.user-match {
  border: 2px solid #38ef7d;
  box-shadow: 0 0 16px rgba(56, 239, 125, 0.4);
}

.matchup-node.user-active-next {
  border: 2px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  animation: pulseNode 1.5s infinite alternate;
}

@keyframes pulseNode {
  0% { transform: scale(1); box-shadow: 0 0 12px rgba(255, 215, 0, 0.4); }
  100% { transform: scale(1.04); box-shadow: 0 0 24px rgba(255, 215, 0, 0.8); }
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}

.team-row.winner-row {
  background: rgba(56, 239, 125, 0.15);
  color: #38ef7d;
}

.team-row.loser-row {
  opacity: 0.45;
}

.team-flag {
  font-size: 14px;
  margin-right: 6px;
}

.team-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-score {
  font-weight: 900;
  font-size: 12px;
  padding-left: 6px;
}

/* Single Slot (Quarter Finals & Semi Finals as seen in user reference image) */
.single-slot {
  width: 80px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  text-align: center;
}

.single-slot .team-flag-box {
  font-size: 24px;
  line-height: 1;
}

.single-slot .slot-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.single-slot .slot-name {
  font-size: 9px;
  font-weight: 800;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
}

.single-slot .slot-score {
  font-size: 10px;
  font-weight: 900;
  color: #ffd700;
}

.sf-slot {
  width: 90px;
  height: 60px;
}

/* Bracket Connecting Lines */
.bracket-connectors {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 480px;
  width: 20px;
}

.conn-fork {
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-left: none;
  position: relative;
}

.conn-left-1 .conn-fork {
  border-left: none;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0 8px 8px 0;
}

.conn-right-1 .conn-fork {
  border-right: none;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px 0 0 8px;
}

.conn-fork-tall {
  height: 220px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  position: relative;
}

.conn-left-2 .conn-fork-tall {
  border-left: none;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0 10px 10px 0;
}

.conn-right-2 .conn-fork-tall {
  border-right: none;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px 0 0 10px;
}

/* Center Stage: Trophy & Final Match */
.bracket-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  gap: 12px;
}

.final-header-badge {
  font-size: 12px;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 2px;
  background: rgba(255, 215, 0, 0.15);
  padding: 4px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.final-match-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(14, 20, 30, 0.95);
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
  cursor: pointer;
}

.final-contender {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.final-flag {
  font-size: 26px;
}

.final-name {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.final-score {
  font-size: 14px;
  font-weight: 900;
  color: #ffd700;
}

.final-vs {
  font-size: 11px;
  font-weight: 900;
  color: #ef4444;
  padding: 0 6px;
}

.trophy-stage-wrap {
  position: relative;
  width: 140px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.center-trophy-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.5));
}

.trophy-glow-halo {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  pointer-events: none;
  animation: trophyHalo 2.5s ease-in-out infinite alternate;
}

@keyframes trophyHalo {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0.9; }
}

.champion-banner {
  position: absolute;
  bottom: 0;
  background: linear-gradient(135deg, #ffd700, #ff8800);
  color: #000;
  padding: 4px 12px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
}

.champion-banner span {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  display: block;
}

.champion-banner h3 {
  font-size: 13px;
  font-weight: 900;
  margin: 0;
}

.third-place-box {
  background: rgba(20, 26, 36, 0.8);
  border: 1px dashed rgba(205, 127, 50, 0.5);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  width: 100%;
  font-size: 10px;
}

.third-label {
  display: block;
  font-weight: 800;
  color: #cd7f32;
  margin-bottom: 2px;
}

.third-row {
  display: flex;
  justify-content: space-around;
  font-weight: 700;
  color: #cbd5e1;
}

.third-score {
  color: #ffd700;
  font-weight: 900;
}
