/* ==========================================================================
   VOXEL FIGHT NIGHT 3D - ARCADE BOXING SIMULATOR
   High-octane Fight Night aesthetic with athletic gold, crimson & charcoal palette
   ========================================================================== */

:root {
  --bg-dark: #08080c;
  --bg-panel: rgba(14, 16, 24, 0.92);
  --bg-panel-border: rgba(255, 255, 255, 0.12);
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.4);
  --crimson: #ef4444;
  --crimson-glow: rgba(239, 68, 68, 0.4);
  --blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.4);
  --green: #10b981;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --font-display: 'Teko', 'Impact', sans-serif;
  --font-heading: 'Rajdhani', 'Trebuchet MS', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  touch-action: none;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   CAMERA & SCREEN EFFECTS (FLASH, VIGNETTE, BLOOD/SWEAT)
   ========================================================================== */

#screen-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

#flash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  transition: opacity 0.05s ease-out;
}

#vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
  opacity: 0.6;
}

#hurt-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(220, 38, 38, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

#lens-spatter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ==========================================================================
   HUD - HEADS UP DISPLAY
   ========================================================================== */

#fight-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 24px;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

/* Fighter Cards */
.fighter-hud-card {
  width: 320px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(9, 11, 19, 0.9));
  border: 1px solid var(--bg-panel-border);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.fighter-hud-card.player {
  border-left: 4px solid var(--blue);
}

.fighter-hud-card.opponent {
  border-right: 4px solid var(--crimson);
  text-align: right;
}

.fighter-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.fighter-hud-card.opponent .fighter-hud-header {
  flex-direction: row-reverse;
}

.fighter-name {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.fighter-nickname {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-bars-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fighter-hud-card.opponent .bar-row {
  flex-direction: row-reverse;
}

.bar-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  width: 44px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-bar-bg {
  flex: 1;
  height: 10px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-bar-fill {
  height: 100%;
  width: 100%;
  border-radius: 2px;
  transition: width 0.15s cubic-bezier(0.2, 0, 0.2, 1);
}

.progress-bar-fill.head-health {
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
}

.progress-bar-fill.body-health {
  background: linear-gradient(90deg, #991b1b, #d97706);
}

.progress-bar-fill.stamina {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.progress-bar-fill.guard {
  background: linear-gradient(90deg, #8b5cf6, #c084fc);
}

.status-badges-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.fighter-hud-card.opponent .status-badges-row {
  justify-content: flex-end;
}

.status-badge {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.status-badge.cut-badge {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.status-badge.kd-badge {
  background: rgba(245, 158, 11, 0.25);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

/* Center Clock & Round Info */
.round-clock-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, rgba(23, 25, 35, 0.95), rgba(10, 11, 16, 0.9));
  border: 1px solid var(--bg-panel-border);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 8px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.round-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
}

.clock-display {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: 2px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.bell-indicator {
  font-size: 11px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* HUD Center Dynamic Announcements */
.hud-center-announcements {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 30;
}

.announcement-banner {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 30px var(--gold-glow);
  padding: 6px 32px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.7), transparent);
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.announcement-banner.show {
  opacity: 1;
  transform: scale(1);
}

.announcement-banner.counter {
  color: #38bdf8;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.8);
}

.announcement-banner.knockdown {
  color: #ef4444;
  text-shadow: 0 0 35px rgba(239, 68, 68, 0.9);
}

.announcement-banner.ko {
  font-size: 88px;
  color: #fbbf24;
  text-shadow: 0 0 40px rgba(251, 191, 36, 1);
}

/* HUD Bottom - Punch Guide & Defense Indicator */
.hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.punch-guide-card {
  background: rgba(14, 16, 24, 0.85);
  border: 1px solid var(--bg-panel-border);
  border-radius: 8px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  max-width: 380px;
}

.punch-guide-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

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

.punch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.key-badge {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  min-width: 22px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.punch-name {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 500;
}

.punch-name span {
  color: var(--text-muted);
  font-size: 10px;
}

.defense-status-card {
  display: flex;
  gap: 8px;
  background: rgba(14, 16, 24, 0.85);
  border: 1px solid var(--bg-panel-border);
  border-radius: 8px;
  padding: 8px 14px;
  backdrop-filter: blur(8px);
}

.defense-pill {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
}

.defense-pill.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 12px var(--blue-glow);
}

/* ==========================================================================
   MINIGAMES (GET-UP MINIGAME & CLINCH BREAK)
   ========================================================================== */

#getup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: all;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#getup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.getup-panel {
  background: linear-gradient(180deg, #181c28, #0d0f17);
  border: 2px solid var(--crimson);
  border-radius: 12px;
  padding: 24px 36px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px var(--crimson-glow);
  width: 440px;
  max-width: 90vw;
}

.getup-title {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--crimson);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 6px;
}

.getup-subtitle {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.referee-count-display {
  font-family: var(--font-display);
  font-size: 72px;
  color: #fbbf24;
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
}

.getup-meter-container {
  width: 100%;
  height: 28px;
  background: #1f2430;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.getup-sweet-spot {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.4), rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.4));
  border-left: 2px solid #10b981;
  border-right: 2px solid #10b981;
}

.getup-needle {
  position: absolute;
  top: 0;
  width: 6px;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
  transform: translateX(-50%);
}

.getup-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 16px;
}

.getup-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  transition: width 0.08s linear;
}

.getup-button {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  transition: transform 0.05s ease, background 0.15s ease;
}

.getup-button:active {
  transform: scale(0.97);
  background: linear-gradient(180deg, #b91c1c, #991b1b);
}

/* ==========================================================================
   CORNER BREAK MODAL (BETWEEN ROUNDS)
   ========================================================================== */

#corner-break-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 8, 14, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#corner-break-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.corner-break-modal {
  width: 760px;
  max-width: 92vw;
  background: linear-gradient(180deg, #131722, #0a0c13);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.2);
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.corner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.corner-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
  text-transform: uppercase;
}

.corner-timer {
  font-family: var(--font-display);
  font-size: 32px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.corner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.corner-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.corner-damage-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.damage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

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

.corner-action-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: all 0.15s ease;
}

.corner-action-btn:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold);
  transform: translateX(4px);
}

.corner-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.corner-action-cost {
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  color: var(--gold);
}

.coach-advice-box {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #cbd5e1;
  font-style: italic;
}

.corner-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.points-left {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
}

.ready-next-round-btn {
  padding: 12px 28px;
  background: linear-gradient(180deg, var(--gold), #d97706);
  border: none;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease;
}

.ready-next-round-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   POST-FIGHT SCORECARD & RESULTS SCREEN
   ========================================================================== */

#post-fight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 10, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

#post-fight-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.post-fight-modal {
  width: 860px;
  max-width: 95vw;
  background: linear-gradient(180deg, #141824, #0b0d14);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 32px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-header {
  text-align: center;
}

.result-tagline {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.winner-announcement {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  margin: 6px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.method-announcement {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-muted);
}

.stats-scorecards-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.tab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.stats-table th {
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.stats-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.stats-table td:nth-child(2) {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
}

.stats-table td:nth-child(1) {
  color: #60a5fa;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stats-table td:nth-child(3) {
  color: #f87171;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Scorecards */
.scorecards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.judge-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.judge-name {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}

.judge-round-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.judge-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 6px;
  margin-top: 4px;
}

.post-fight-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.action-btn-primary, .action-btn-secondary {
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn-primary {
  background: linear-gradient(180deg, var(--gold), #d97706);
  border: none;
  color: #000;
  font-weight: 700;
}

.action-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.action-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.action-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   MAIN MENU, FIGHTER SELECT, CUSTOMIZER, TRAINING, SETTINGS
   ========================================================================== */

.overlay-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 10, 16, 0.95);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}

.overlay-screen.active {
  opacity: 1;
  pointer-events: all;
}

/* Title Screen */
.title-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
}

.title-logo-badge {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.title-main {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 0.9;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 40px var(--gold-glow);
  margin-bottom: 8px;
}

.title-main span {
  color: var(--gold);
}

.title-subtitle {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 36px;
}

.main-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 320px;
}

.menu-btn {
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.15s ease;
}

.menu-btn:hover {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.08));
  border-color: var(--gold);
  transform: translateX(6px);
  color: var(--gold);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.menu-btn.primary {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  border: none;
}

.menu-btn.primary:hover {
  filter: brightness(1.1);
  color: #000;
  transform: scale(1.03);
}

/* Modals & Screens Common */
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 960px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.screen-title {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.screen-title span {
  color: var(--gold);
}

.back-btn {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Fighter Select Screen */
.fighter-select-container {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 960px;
  align-items: stretch;
}

.roster-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 320px;
}

.roster-item {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.roster-item:hover, .roster-item.selected {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold);
  transform: translateX(4px);
}

.roster-info h5 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: #fff;
}

.roster-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.roster-difficulty {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.diff-easy { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.diff-med { background: rgba(245, 158, 11, 0.2); color: #fde68a; }
.diff-hard { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.diff-boss { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }

.fighter-details-card {
  flex: 1;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fighter-bio h3 {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: #fff;
}

.fighter-bio .style-badge {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.fighter-bio p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.fighter-stats-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

/* Customizer Grid */
.customizer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 960px;
}

.custom-card {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.form-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 10px 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
}

.palette-picker {
  display: flex;
  gap: 8px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s ease;
}

.color-swatch:hover, .color-swatch.active {
  transform: scale(1.15);
  border-color: #fff;
}

.choice-buttons {
  display: flex;
  gap: 8px;
}

.choice-btn {
  flex: 1;
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.choice-btn.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* Training / Gym Screen */
.gym-drills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 680px;
}

.drill-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.drill-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.drill-info h4 {
  font-family: var(--font-display);
  font-size: 24px;
  color: #fff;
}

.drill-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.drill-check {
  font-size: 20px;
  color: var(--text-muted);
}

.drill-check.completed {
  color: var(--green);
}

/* Pause Menu */
#pause-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#pause-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.pause-panel {
  background: linear-gradient(180deg, #161a26, #0c0e16);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 32px 40px;
  text-align: center;
  width: 380px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.pause-title {
  font-family: var(--font-display);
  font-size: 48px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Touch Controls for Mobile / Tablets */
#touch-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
  display: none;
}

#touch-controls.active {
  display: block;
}

.touch-dpad {
  position: absolute;
  bottom: 24px;
  left: 24px;
  width: 140px;
  height: 140px;
  pointer-events: all;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
}

.dpad-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-family: var(--font-heading);
  touch-action: none;
}

.dpad-btn:active {
  background: var(--gold);
  color: #000;
}

.touch-actions {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: all;
}

.touch-row {
  display: flex;
  gap: 8px;
}

.touch-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.touch-btn:active {
  background: var(--blue);
  transform: scale(0.92);
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */

@media (max-width: 900px) {
  .fighter-hud-card {
    width: 240px;
    padding: 8px 10px;
  }
  .fighter-name {
    font-size: 20px;
  }
  .round-title {
    font-size: 20px;
  }
  .clock-display {
    font-size: 36px;
  }
  .punch-guide-card {
    display: none;
  }
  .fighter-select-container, .customizer-container {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
  .roster-list {
    width: 100%;
  }
}

@media (max-width: 600px) {
  #fight-hud {
    padding: 8px 12px;
  }
  .fighter-hud-card {
    width: 160px;
  }
  .bar-label {
    display: none;
  }
  .title-main {
    font-size: 56px;
  }
  .scorecards-container {
    grid-template-columns: 1fr;
  }
}
