
/* Top Right Header Controls Cluster */
.top-header-controls {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hdr-btn {
  width: 44px;
  height: 44px;
  background: rgba(8, 14, 26, 0.75);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: #fff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}
.hdr-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  transform: scale(1.05);
}
.hdr-btn:active {
  transform: scale(0.95);
}
.fullscreen-btn {
  color: var(--neon-cyan);
}
.fullscreen-btn.fullscreen-active {
  border-color: var(--neon-mint);
  box-shadow: 0 0 14px rgba(0, 255, 198, 0.4);
  color: var(--neon-mint);
}

/* NCS Music Player Pill */
.music-pill {
  height: 44px;
  background: rgba(8, 16, 32, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 22px;
  padding: 0 12px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
  transition: all 0.2s ease;
  pointer-events: auto;
}
.hud-corner-actions .music-pill {
  height: 42px;
  border-radius: 21px;
}
.music-pill:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.45);
  transform: translateY(-1px);
}
.music-pill:active {
  transform: scale(0.98);
}

/* 3-Bar Audio Visualizer Animation */
.music-bars-anim {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  width: 14px;
  flex-shrink: 0;
}
.music-bar {
  width: 3px;
  background: var(--neon-cyan);
  border-radius: 2px;
  animation: musicBarWave 1.2s infinite ease-in-out alternate;
}
.music-bar.b1 { height: 8px; animation-delay: 0.1s; background: #00FFC6; }
.music-bar.b2 { height: 14px; animation-delay: 0.35s; background: #00E5FF; }
.music-bar.b3 { height: 6px; animation-delay: 0.2s; background: #FF6EC7; }

.music-pill.paused .music-bar {
  animation: none !important;
  height: 3px !important;
  opacity: 0.4;
}

@keyframes musicBarWave {
  0% { height: 4px; }
  50% { height: 14px; }
  100% { height: 6px; }
}

.music-genre-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00FFC6, #00B4D8);
  color: #040914;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.music-track-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1px;
  white-space: nowrap;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
  transition: color 0.2s ease;
}

.music-skip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.70rem;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}
.music-skip-btn:hover {
  background: rgba(0, 255, 198, 0.25);
  border-color: #00FFC6;
  box-shadow: 0 0 10px rgba(0, 255, 198, 0.5);
  transform: scale(1.15);
}
.music-skip-btn:active {
  transform: scale(0.9);
}

.track-changed-flash {
  animation: trackFlash 0.6s ease-out;
}
@keyframes trackFlash {
  0% { color: #00FFC6; text-shadow: 0 0 14px #00FFC6; transform: scale(1.06); }
  100% { color: #FFFFFF; text-shadow: 0 0 6px rgba(0, 229, 255, 0.5); transform: scale(1); }
}

/* =============================================
   DILI: CYBER BUMPERS — 3D Sumo Knockout CSS
   ============================================= */
:root {
  --neon-mint: #00FFC6;
  --neon-cyan: #00E5FF;
  --neon-pink: #FF6EC7;
  --neon-gold: #FFD700;
  --neon-cobalt: #4DA6FF;
  --neon-crimson: #FF3344;
  --bg-dark: #040711;
  --bg-card: rgba(8, 14, 26, 0.90);
  --glass-border: rgba(0, 229, 255, 0.25);
  --font-display: 'Orbitron', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  font-family: var(--font-body);
  color: #fff;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

canvas#gameCanvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  display: block; z-index: 1;
}

/* Audio Toggle */
.audio-btn {
  width: 44px; height: 44px;
  background: rgba(8, 14, 26, 0.75);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: #fff;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.audio-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  transform: scale(1.05);
}

/* Screen System */
.screen {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10;
  display: none;
  pointer-events: none;
}
.screen.active {
  display: flex;
  pointer-events: auto;
}
.screen.overlay {
  background: rgba(4, 7, 15, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
  z-index: 30;
}

.hidden { display: none !important; }

/* Highlights */
.highlight-mint { color: var(--neon-mint) !important; text-shadow: 0 0 10px rgba(0,255,198,0.5); }
.highlight-gold { color: var(--neon-gold) !important; text-shadow: 0 0 10px rgba(255,215,0,0.5); }
.highlight-cyan { color: var(--neon-cyan) !important; text-shadow: 0 0 10px rgba(0,229,255,0.5); }
.highlight-pink { color: var(--neon-pink) !important; text-shadow: 0 0 10px rgba(255,110,199,0.5); }

/* =============================================
   TITLE SCREEN
   ============================================= */
#titleScreen:not(.active) {
  display: none !important;
  pointer-events: none !important;
}
#titleScreen.active {
  display: flex !important;
  pointer-events: auto !important;
}
#titleScreen {
  flex-direction: column; align-items: center; justify-content: center;
  z-index: 20;
}
.title-backdrop {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(0,229,255,0.08) 0%, rgba(4,7,17,0.92) 80%);
  z-index: -1;
}
.title-content {
  text-align: center; max-width: 540px; width: 92%;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(0,0,0,0.85), 0 0 35px rgba(0,229,255,0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeInCard 0.45s ease-out;
}
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.brand-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 20px;
  padding: 5px 14px;
}
.dlicom-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}
.brand-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon-mint);
}

/* Hero Game Logo & Brand Unit */
.game-brand-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.game-emblem-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-hero-orb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.75)) drop-shadow(0 0 35px rgba(0, 255, 198, 0.35));
  animation: logoOrbFloat 4s ease-in-out infinite alternate;
}
@keyframes logoOrbFloat {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-4px) rotate(2deg) scale(1.03); }
  100% { transform: translateY(0px) rotate(0deg) scale(1); }
}
.emblem-halo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
  animation: haloPulseAnim 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}
@keyframes haloPulseAnim {
  0% { transform: scale(0.92); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 0.25; }
  100% { transform: scale(0.92); opacity: 0.8; }
}

.game-titles-column {
  display: flex;
  flex-direction: column;
}
.publisher-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}
.dlicom-publisher-mark {
  height: 15px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}
.publisher-text {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon-gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.logo-glow { margin-bottom: 22px; }
.game-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6.5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 20px var(--neon-cyan), 0 0 50px rgba(0,229,255,0.4);
  line-height: 1.05;
  margin: 0;
}
.title-accent { color: var(--neon-mint); }
.title-dash { color: var(--neon-pink); }
.tagline-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 12px;
  padding: 3px 10px;
  margin-top: 4px;
}
.tagline-text {
  font-family: var(--font-display);
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon-mint);
}
.tagline-spark { font-size: 0.65rem; }

/* In-Game HUD Dlicom Badge */
.hud-dlicom-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(5, 12, 24, 0.75);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 8px;
  padding: 4px 10px;
}
.hud-dlicom-logo {
  height: 16px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}
.hud-dlicom-text {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--neon-cyan);
}

/* Game Over Dlicom League Header */
.go-dlicom-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--neon-mint);
}
.go-dlicom-logo {
  height: 16px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--neon-mint));
}

/* Title Screen Dlicom Footer */
.title-dlicom-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.title-dlicom-footer:hover { opacity: 1; }
.title-dlicom-footer b { color: var(--neon-cyan); font-weight: 700; }
.footer-dlicom-mark {
  height: 14px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 4px var(--neon-cyan));
}

/* Suit Selector */
.suit-selector { margin-bottom: 18px; }
.suit-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.suit-options {
  display: flex; justify-content: center; gap: 8px;
  flex-wrap: wrap;
}
.suit-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #ddd;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.suit-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--suit);
  box-shadow: 0 0 10px var(--suit);
}
.suit-btn:hover {
  border-color: var(--suit);
  background: rgba(255,255,255,0.08);
}
.suit-btn.active {
  border-color: var(--suit);
  background: rgba(255,255,255,0.14);
  color: #fff;
  box-shadow: 0 0 16px var(--suit);
  transform: scale(1.05);
}

/* Pilot Input */
.pilot-input-wrap {
  position: relative;
  max-width: 380px; margin: 0 auto 20px auto;
  display: flex; align-items: center;
}
.input-icon { position: absolute; left: 14px; display: flex; align-items: center; justify-content: center; pointer-events: none; color: var(--neon-cyan); opacity: 0.85; }
#pilotName {
  width: 100%;
  padding: 13px 14px 13px 42px;
  background: rgba(5, 8, 16, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 2px;
  outline: none;
  transition: all 0.2s ease;
}
#pilotName:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}
#pilotName::placeholder { color: rgba(255,255,255,0.3); font-size: 0.75rem; }

/* Buttons */
.title-actions {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 380px; margin: 0 auto;
}
.btn-row { display: flex; gap: 10px; }
.btn-row button { flex: 1; }

.btn-primary {
  position: relative;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #00FFC6, #00E5FF);
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #050810;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 0 25px rgba(0, 255, 198, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(0, 255, 198, 0.7);
}
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-secondary:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.12);
  color: #fff;
}

.desktop-controls-hint {
  margin-top: 18px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
}
.desktop-controls-hint b { color: var(--neon-mint); }

/* =============================================
   HUD & COMBAT FEED
   ============================================= */
#hud {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.impact-vignette {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 0 rgba(255, 0, 85, 0);
  transition: box-shadow 0.1s ease-out;
}
.impact-vignette.active {
  box-shadow: inset 0 0 80px rgba(255, 0, 85, 0.65);
}
.speed-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}
.speed-lines.active {
  opacity: 1;
}
.combo-banner {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 55;
  text-align: center;
}
.hud-top {
  display: flex; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 10px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  flex-wrap: nowrap;
  width: fit-content;
}
.hud-stat {
  display: flex; flex-direction: column; min-width: 60px;
}
.hud-label {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
}
.hud-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* Arena Collapse Alert */
.arena-alert {
  position: absolute; top: 76px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 51, 68, 0.92);
  border: 2px solid #FF8899;
  border-radius: 30px;
  padding: 8px 24px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  box-shadow: 0 0 35px rgba(255, 51, 68, 0.7);
  animation: alertPulse 0.8s infinite alternate ease-in-out;
  pointer-events: auto;
}
@keyframes alertPulse {
  from { transform: translateX(-50%) scale(0.97); }
  to { transform: translateX(-50%) scale(1.03); }
}

/* Kill Feed */
.kill-feed {
  position: absolute; top: 135px; right: 16px;
  display: flex; flex-direction: column; gap: 6px;
  pointer-events: none;
  max-width: 320px;
}
.kill-item {
  background: rgba(8, 14, 26, 0.85);
  border: 1px solid var(--neon-pink);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 110, 199, 0.4);
  animation: slideInRight 0.3s ease-out;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Powerup Banner & Cursed Hazard Banners */
.powerup-banner {
  position: absolute; top: 120px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: rgba(8, 14, 26, 0.94);
  border: 1px solid var(--neon-gold);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
  border-radius: 30px;
  padding: 6px 20px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  transition: all 0.25s ease;
  z-index: 40;
}
.powerup-banner.rocket {
  border-color: var(--neon-gold);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}
.powerup-banner.rocket .powerup-bar {
  background: var(--neon-gold);
}
.powerup-banner.shield {
  border-color: #00e5ff;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
  color: #a8f5ff;
}
.powerup-banner.shield .powerup-bar {
  background: #00e5ff;
}
.powerup-banner.hazard-slow {
  background: rgba(36, 6, 54, 0.94);
  border-color: #bb00ff;
  box-shadow: 0 0 28px rgba(187, 0, 255, 0.7);
  color: #f0abff;
  animation: hazardPulse 1.1s infinite alternate ease-in-out;
}
.powerup-banner.hazard-slow .powerup-bar {
  background: #bb00ff;
}
.powerup-banner.hazard-jam {
  background: rgba(48, 8, 18, 0.94);
  border-color: #ff1144;
  box-shadow: 0 0 28px rgba(255, 17, 68, 0.75);
  color: #ff99aa;
  animation: hazardFlicker 0.4s infinite alternate;
}
.powerup-banner.hazard-jam .powerup-bar {
  background: #ff1144;
}
@keyframes hazardPulse {
  0% { transform: translateX(-50%) scale(0.97); }
  100% { transform: translateX(-50%) scale(1.03); }
}
@keyframes hazardFlicker {
  0% { opacity: 0.88; }
  100% { opacity: 1; filter: brightness(1.25); }
}
.powerup-progress {
  width: 60px; height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
}
.powerup-bar {
  width: 100%; height: 100%;
  background: var(--neon-gold);
  transition: width 0.1s linear;
}

/* Pause Button */
.hud-pause-btn {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.hud-pause-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0,229,255,0.4);
}

/* Desktop Ability Bar */
.desktop-abilities {
  position: absolute; bottom: 25px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 16px;
  pointer-events: auto;
}
.ability-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px 18px;
  text-align: center;
  min-width: 130px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ability-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}
.ability-card:active {
  transform: scale(0.96);
}
.ability-card.card-activated {
  border-color: #00FFFF !important;
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.8), inset 0 0 15px rgba(0, 255, 255, 0.5) !important;
  transform: scale(1.05) !important;
}
.action-btn.btn-activated {
  transform: scale(1.1) !important;
  box-shadow: 0 0 40px #00FFFF !important;
}
.ability-key {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--neon-cyan);
  background: rgba(0,229,255,0.15);
  padding: 2px 6px;
  border-radius: 4px;
}
.ability-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  margin-top: 4px;
}
.ability-cd-bar {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--neon-mint);
  transition: width 0.05s linear;
}

/* Mobile Virtual Controls */
.mobile-controls {
  display: none;
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}
@media (pointer: coarse), (max-width: 900px) {
  .mobile-controls { display: block; }
  .desktop-abilities { display: none; }
}

.joystick-zone {
  position: absolute; bottom: 30px; left: 30px;
  width: 130px; height: 130px;
  pointer-events: auto;
  touch-action: none;
}

.joystick-zone.floating-active {
  opacity: 1;
  transform: scale(1.06);
}
.joystick-zone.floating-active .joystick-base {
  border-color: var(--neon-mint);
  box-shadow: 0 0 25px rgba(0, 255, 198, 0.45);
}

.joystick-base {
  width: 100%; height: 100%;
  background: rgba(8, 14, 26, 0.65);
  border: 2px solid rgba(0, 229, 255, 0.35);
  border-radius: 50%;
  position: relative;
  backdrop-filter: blur(6px);
}
.joystick-knob {
  width: 52px; height: 52px;
  background: radial-gradient(circle at 35% 35%, var(--neon-mint), rgba(0, 229, 255, 0.5));
  border-radius: 50%;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px var(--neon-mint);
  border: 2px solid rgba(255,255,255,0.6);
  pointer-events: none;
}

.action-buttons {
  position: absolute; bottom: 30px; right: 30px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: center;
  pointer-events: auto;
}
.juke-buttons-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}
.juke-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.18);
  border: 1.5px solid var(--neon-gold);
  color: var(--neon-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.35);
}
.juke-btn .act-icon { font-size: 0.95rem; }
.juke-btn .act-txt { font-size: 0.44rem; font-weight: 800; letter-spacing: 0.5px; margin-top: 1px; }
.juke-btn:active, .juke-btn.btn-activated {
  transform: scale(0.88);
  background: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.85);
}
.action-btn {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 50%;
  font-family: var(--font-display);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.1s ease;
  touch-action: manipulation;
  overflow: hidden;
}
.action-btn:active { transform: scale(0.92); }
.act-icon { font-size: 1.25rem; line-height: 1; }
.act-txt { font-size: 0.55rem; font-weight: 700; letter-spacing: 1px; margin-top: 2px; }

.cooldown-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.dash-btn {
  background: rgba(0, 229, 255, 0.22);
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}
.emp-btn {
  background: rgba(255, 110, 199, 0.22);
  border: 2px solid var(--neon-pink);
  color: var(--neon-pink);
  box-shadow: 0 0 25px rgba(255, 110, 199, 0.4);
}

/* =============================================
   OVERLAYS & MODALS
   ============================================= */
.overlay-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  max-width: 460px; width: 92%;
  box-shadow: 0 0 50px rgba(0,0,0,0.85), 0 0 35px rgba(0,229,255,0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeInCard 0.35s ease-out;
}
.overlay-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 3px;
  margin-bottom: 6px;
  color: #fff;
  text-shadow: 0 0 20px var(--neon-cyan);
}
.pause-sub, .lb-sub, .go-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.pause-actions, .go-actions {
  display: flex; flex-direction: column; gap: 12px;
}

/* Help Card */
.help-card { max-width: 520px; text-align: left; }
.help-card h2 { text-align: center; }
.help-content { margin: 20px 0; max-height: 60vh; overflow-y: auto; padding-right: 6px; }
.help-section { margin-bottom: 18px; }
.help-section h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--neon-mint);
  margin-bottom: 8px;
}
.help-section p { font-size: 0.82rem; line-height: 1.5; color: rgba(255,255,255,0.8); }
.controls-grid, .powerups-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 8px;
}
.ctrl-item, .pu-item {
  font-size: 0.75rem; color: #ddd; display: flex; align-items: center; gap: 6px;
}
.badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  color: var(--neon-cyan);
}
.pu-badge {
  border-radius: 4px; padding: 2px 6px;
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 700;
}
.pu-badge.gold { background: rgba(255,215,0,0.2); color: var(--neon-gold); }
.pu-badge.cyan { background: rgba(0,229,255,0.2); color: var(--neon-cyan); }
.pu-badge.pink { background: rgba(255,110,199,0.2); color: var(--neon-pink); }
.pu-badge.mint { background: rgba(0,255,198,0.2); color: var(--neon-mint); }
.pu-badge.purple { background: rgba(187,0,255,0.25); color: #d880ff; }
.pu-badge.crimson { background: rgba(255,17,68,0.25); color: #ff6688; }

/* Game Over Card */
.game-over-card { max-width: 480px; }
.go-header-glow { margin-bottom: 16px; }
.record-banner {
  background: linear-gradient(135deg, var(--neon-gold), #FF8C00);
  color: #050810;
  padding: 10px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 18px;
  animation: pulseGold 1.2s infinite alternate ease-in-out;
}
@keyframes pulseGold {
  from { box-shadow: 0 0 10px var(--neon-gold); }
  to { box-shadow: 0 0 30px var(--neon-gold), 0 0 50px rgba(255,215,0,0.4); }
}

.go-stats {
  background: rgba(5,8,16,0.65);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 22px;
}
.go-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.go-stat:last-child { border-bottom: none; }
.go-stat span:first-child {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.6);
}
.go-stat span:last-child {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

/* Leaderboard */
#leaderboardScreen {
  z-index: 500 !important;
  pointer-events: auto !important;
}
#leaderboardScreen.active {
  display: flex !important;
  pointer-events: auto !important;
}
.leaderboard-card {
  max-width: 580px;
  width: 95%;
  pointer-events: auto !important;
  position: relative;
  z-index: 501 !important;
}
.lb-mode-btn,
.lb-filter-btn,
#btnLbClose {
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.lb-table-wrap {
  max-height: 52vh; overflow-y: auto;
  margin-bottom: 20px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(5,8,16,0.7);
}
.lb-table { width: 100%; border-collapse: collapse; text-align: left; }
.lb-table th {
  position: sticky; top: 0;
  background: rgba(8, 14, 26, 0.95);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  padding: 10px 10px;
  border-bottom: 1px solid var(--glass-border);
}
.lb-table td {
  padding: 8px 10px;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.lb-table tr:hover { background: rgba(0, 229, 255, 0.05); }
.lb-table tr:nth-child(1) td { color: var(--neon-gold); font-weight: 700; }
.lb-table tr:nth-child(2) td { color: #E0E0E0; font-weight: 600; }
.lb-table tr:nth-child(3) td { color: #CD7F32; font-weight: 600; }
.lb-loading { text-align: center; color: rgba(255,255,255,0.4); padding: 24px 0; }
.pilot-stats-sub {
  display: block;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-body);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

#confettiCanvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 100;
}

/* Authentic Dlicom Mascot Showcase on Title Screen */
.mascot-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0 14px;
  position: relative;
}
.mascot-bubble-wrap {
  display: none !important;
  margin-bottom: 6px;
  min-height: 32px;
}
.mascot-speech {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(7, 14, 28, 0.92);
  border: 2px solid var(--neon-mint, #00FFC6);
  box-shadow: 0 0 16px rgba(0, 255, 198, 0.45);
  padding: 6px 14px;
  border-radius: 20px;
  animation: floatBubble 2.4s ease-in-out infinite alternate;
  transition: all 0.25s ease;
}
@keyframes floatBubble {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}
.mascot-stage {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mascot-preview-img {
  width: 125px;
  height: 125px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 255, 198, 0.4));
  animation: mascotBob 2.6s ease-in-out infinite alternate;
  transition: all 0.25s ease-out;
}
@keyframes mascotBob {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.02); }
}
.mascot-pedestal-ring {
  position: absolute;
  bottom: 4px;
  width: 105px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid #00FFC6;
  background: radial-gradient(ellipse at center, rgba(0, 255, 198, 0.4) 0%, transparent 70%);
  box-shadow: 0 0 20px rgba(0, 255, 198, 0.65), inset 0 0 10px rgba(0, 255, 198, 0.4);
  transform: rotateX(65deg);
  transition: all 0.3s ease;
}

/* ============================================================
   SOLO MODE DIFFICULTY SELECTION
   ============================================================ */
.solo-card {
  max-width: 480px;
}
.solo-card h2 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #FFD700, #FF6EC7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.solo-sub {
  color: #8899bb;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Solo Colosseum Theme Selector */
.arena-selector-section {
  background: rgba(10, 18, 32, 0.75);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.arena-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.arena-selector-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}
.arena-active-tag {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}
.arena-pills-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.arena-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  background: rgba(15, 24, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.arena-pill:hover {
  border-color: var(--neon-cyan);
  color: #fff;
  background: rgba(0, 229, 255, 0.10);
  transform: translateY(-1px);
}
.arena-pill.active {
  background: rgba(0, 229, 255, 0.18);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
  font-weight: 800;
}
.arena-pill-icon {
  font-size: 0.95rem;
  line-height: 1;
}
.arena-pill-text {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
}

.difficulty-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.diff-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.diff-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.diff-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.diff-easy { border-color: rgba(0,255,100,0.25); }
.diff-easy:hover { background: rgba(0,255,100,0.08); border-color: rgba(0,255,100,0.5); box-shadow: 0 0 25px rgba(0,255,100,0.15); }
.diff-medium { border-color: rgba(255,200,0,0.25); }
.diff-medium:hover { background: rgba(255,200,0,0.08); border-color: rgba(255,200,0,0.5); box-shadow: 0 0 25px rgba(255,200,0,0.15); }
.diff-hard { border-color: rgba(255,50,68,0.25); }
.diff-hard:hover { background: rgba(255,50,68,0.08); border-color: rgba(255,50,68,0.5); box-shadow: 0 0 25px rgba(255,50,68,0.15); }
.diff-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.diff-name {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  min-width: 90px;
  text-align: left;
}
.diff-desc {
  color: #8899bb;
  font-size: 0.85rem;
  flex: 1;
  text-align: left;
}
.diff-tag {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.diff-easy .diff-tag { background: rgba(0,255,100,0.15); color: #00FF64; border: 1px solid rgba(0,255,100,0.3); }
.diff-medium .diff-tag { background: rgba(255,200,0,0.15); color: #FFC800; border: 1px solid rgba(255,200,0,0.3); }
.diff-hard .diff-tag { background: rgba(255,50,68,0.15); color: #FF3344; border: 1px solid rgba(255,50,68,0.3); }

/* ============================================================
   PUBLIC WAITING ROOM
   ============================================================ */
.waiting-card {
  max-width: 500px;
}
.waiting-card h2 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #00E5FF, #BF00FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.waiting-sub {
  color: #8899bb;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.waiting-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 18px;
}
.waiting-stat {
  text-align: center;
}
.waiting-label {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: #667788;
  margin-bottom: 4px;
}
.waiting-value {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 900;
  color: #00FFC6;
}
.waiting-timer {
  color: #FFD700;
  font-size: 2.2rem;
  animation: pulse-glow 1s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 8px rgba(255,215,0,0.4); }
  50% { text-shadow: 0 0 20px rgba(255,215,0,0.8), 0 0 40px rgba(255,215,0,0.3); }
}
.waiting-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
  min-height: 40px;
  max-height: 120px;
  overflow-y: auto;
}
.roster-pilot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccd;
}
.roster-pilot.you {
  border-color: rgba(0,255,198,0.4);
  background: rgba(0,255,198,0.08);
  color: #00FFC6;
}
.roster-pilot.bot-join {
  animation: bot-slide-in 0.4s ease-out;
}
@keyframes bot-slide-in {
  from { opacity: 0; transform: translateY(10px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.roster-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00FFC6;
  box-shadow: 0 0 6px rgba(0,255,198,0.5);
}
.bot-dot {
  background: #00E5FF;
  box-shadow: 0 0 6px rgba(0,229,255,0.5);
}
.waiting-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.pulse-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #00E5FF;
  animation: pulse-ring-anim 1.5s ease-in-out infinite;
}
@keyframes pulse-ring-anim {
  0% { transform: scale(0.8); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.3; }
  100% { transform: scale(0.8); opacity: 1; }
}
.pulse-text {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: #667;
  animation: blink-text 2s ease-in-out infinite;
}
@keyframes blink-text {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Public Room button styling */
.btn-public {
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(191,0,255,0.15)) !important;
  border: 2px solid rgba(0,229,255,0.3) !important;
  margin-top: 8px;
}
.btn-public:hover {
  background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(191,0,255,0.25)) !important;
  border-color: rgba(0,229,255,0.6) !important;
  box-shadow: 0 0 30px rgba(0,229,255,0.2), 0 0 60px rgba(191,0,255,0.1) !important;
}
.btn-public .btn-text {
  background: linear-gradient(90deg, #00E5FF, #BF00FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile responsive adjustments for new screens */
@media (max-width: 600px) {
  .difficulty-grid {
    gap: 8px;
  }
  .diff-btn {
    padding: 12px 14px;
    gap: 10px;
  }
  .diff-name {
    font-size: 0.9rem;
    min-width: 70px;
  }
  .diff-desc {
    font-size: 0.75rem;
  }
  .waiting-info {
    gap: 16px;
  }
  .waiting-value {
    font-size: 1.1rem;
  }
  .waiting-timer {
    font-size: 1.8rem;
  }
  .solo-card, .waiting-card {
    max-width: 95vw;
    padding: 20px 16px;
  }
}

/* ===================================================================
   CYBER COLOSSEUM - COMPREHENSIVE RESPONSIVE DESIGN (MOBILE + DESKTOP)
   =================================================================== */

/* Container: Smooth scrollable, never cuts off content */
#titleScreen {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  display: none;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 20px 12px;
  box-sizing: border-box;
  z-index: 20;
}

@media (min-height: 840px) and (min-width: 601px) {
  #titleScreen {
    justify-content: center;
  }
}

.title-backdrop {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(0,229,255,0.08) 0%, rgba(4,7,17,0.92) 80%);
  z-index: -1;
  pointer-events: none;
}

/* Grand Glassmorphic Card */
.title-content {
  text-align: center;
  max-width: 620px !important;
  width: 100% !important;
  margin: auto 0 !important;
  padding: 22px 26px !important;
  background: radial-gradient(135% 100% at 50% 0%, rgba(13, 24, 44, 0.94) 0%, rgba(5, 10, 20, 0.98) 100%) !important;
  border: 1px solid rgba(0, 229, 255, 0.3) !important;
  border-radius: 22px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 229, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  animation: fadeInCard 0.4s ease-out;
}

.title-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00FFC6, #00E5FF, #FF6EC7, transparent);
  opacity: 0.85;
}

.title-grid-columns {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Audio button */
.audio-icon {
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.audio-btn:active .audio-icon {
  transform: scale(0.9);
}
.audio-icon-svg {
  stroke: var(--neon-cyan, #00E5FF);
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.6));
  vertical-align: middle;
}
.audio-label {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.62rem;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--neon-cyan, #00E5FF);
}
.audio-btn.muted .audio-icon-svg {
  stroke: #ff4d6d;
  filter: none;
  opacity: 0.7;
}
.audio-btn.muted .audio-label {
  color: #ff4d6d;
  opacity: 0.8;
}

/* Top Status Bar */
.top-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 0 !important;
}
.dlicom-logo { height: 18px; width: auto; object-fit: contain; }
.brand-text {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--neon-mint, #00FFC6);
}
.live-server-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 20px;
  padding: 4px 12px;
}
.live-pill-text {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #00FF88;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}
.pulse-green-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00FF88;
  box-shadow: 0 0 10px #00FF88;
  animation: pulseGreen 1.5s ease-in-out infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #00FF88; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Hero Game Title */
.logo-glow { margin-bottom: 14px; }
.game-title {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 20px var(--neon-cyan), 0 0 45px rgba(0,229,255,0.4);
  line-height: 1.1;
  margin: 0;
}
.tagline-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.25);
  padding: 3px 12px;
  border-radius: 20px;
}
.tagline-text {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: clamp(0.6rem, 1.8vw, 0.72rem);
  letter-spacing: 2.5px;
  color: #FFD700;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}
.tagline-spark { color: #FFD700; font-size: 0.75rem; }

/* Mascot Showcase Centerpiece */
.mascot-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px 0 12px;
  position: relative;
}
.mascot-bubble-wrap {
  margin-bottom: 4px;
  min-height: 28px;
}
.mascot-speech-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(9, 18, 36, 0.95);
  border: 1.5px solid var(--neon-mint, #00FFC6);
  box-shadow: 0 0 16px rgba(0, 255, 198, 0.4);
  padding: 5px 14px;
  border-radius: 20px;
  animation: floatBubble 2.5s ease-in-out infinite alternate;
  transition: all 0.25s ease;
}
@keyframes floatBubble {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}
.speech-spark { font-size: 0.85rem; }
.mascot-stage {
  position: relative;
  width: 115px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mascot-preview-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 255, 198, 0.4));
  animation: mascotBob 2.6s ease-in-out infinite alternate;
  transition: all 0.25s ease-out;
}
@keyframes mascotBob {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-6px) scale(1.02); }
}
.mascot-pedestal-ring {
  position: absolute;
  bottom: 2px;
  width: 90px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #00FFC6;
  background: radial-gradient(ellipse at center, rgba(0, 255, 198, 0.4) 0%, transparent 70%);
  box-shadow: 0 0 18px rgba(0, 255, 198, 0.6), inset 0 0 8px rgba(0, 255, 198, 0.4);
  transition: all 0.3s ease;
}

/* Suit Selector */
.suit-selector { margin-bottom: 12px; }
.suit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 440px;
  margin: 0 auto 6px;
}
.suit-label {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.65);
}
.suit-active-tag {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px currentColor;
}
.suit-options {
  display: flex;
  justify-content: center;
  gap: 6px;
  max-width: 440px;
  margin: 0 auto;
}
.suit-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #ddd;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.suit-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--suit);
  box-shadow: 0 0 8px var(--suit);
  flex-shrink: 0;
}
.suit-btn:hover {
  border-color: var(--suit);
  background: rgba(255,255,255,0.08);
}
.suit-btn.active {
  border-color: var(--suit);
  background: rgba(255,255,255,0.14);
  color: #fff;
  box-shadow: 0 0 14px var(--suit);
  transform: scale(1.04);
}

/* Pilot Input Terminal */
.pilot-input-wrap {
  position: relative;
  max-width: 440px !important;
  margin: 0 auto 14px auto !important;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--neon-cyan);
}
#pilotName {
  width: 100%;
  padding: 10px 12px 10px 38px;
  background: rgba(5, 8, 16, 0.88);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.8rem;
  letter-spacing: 2px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
#pilotName:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
}
.input-badge {
  position: absolute;
  right: 10px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--neon-cyan, #00E5FF);
  pointer-events: none;
}

/* ============================================================
   DUAL ACTION GAME MODES (DESKTOP DEFAULT)
   ============================================================ */
.game-modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 580px;
  margin: 0 auto 14px auto;
}

.mode-card {
  position: relative;
  border-radius: 14px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  overflow: hidden;
  box-sizing: border-box;
}
.mode-card:hover { transform: translateY(-3px) scale(1.02); }
.mode-card:active { transform: translateY(0) scale(0.99); }

/* Live Public Arena Card */
.mode-card-live {
  background: linear-gradient(145deg, rgba(22, 18, 52, 0.9) 0%, rgba(9, 32, 58, 0.95) 100%);
  border: 1.5px solid rgba(0, 229, 255, 0.5);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.2);
}
.mode-card-live:hover {
  border-color: #00FFC6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 255, 198, 0.4);
}

.mode-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.mode-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #00FFC6;
}
.ping-circle {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00FFC6;
  box-shadow: 0 0 8px #00FFC6;
  animation: pulseGreen 1.4s infinite;
}
.mode-stat {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 8px;
}

.mode-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mode-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.live-icon {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00E5FF;
}
.solo-icon {
  background: rgba(0, 255, 198, 0.15);
  border: 1px solid rgba(0, 255, 198, 0.4);
  color: #00FFC6;
}

.mode-title-group { display: flex; flex-direction: column; }
.mode-title {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  line-height: 1.2;
}
.mode-desc {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.25;
  margin-top: 2px;
}

.mode-btn-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.22) 0%, rgba(0, 255, 198, 0.28) 100%);
  border: 1px solid rgba(0, 255, 198, 0.5);
  border-radius: 7px;
  padding: 5px 10px;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #00FFC6;
  transition: all 0.2s ease;
}
.mode-card-live:hover .mode-btn-cta {
  background: linear-gradient(90deg, #00FFC6 0%, #00E5FF 100%);
  color: #040812;
  box-shadow: 0 0 14px rgba(0, 255, 198, 0.5);
}

/* Solo Practice Card */
.mode-card-solo {
  background: linear-gradient(145deg, rgba(14, 28, 40, 0.9) 0%, rgba(7, 18, 30, 0.95) 100%);
  border: 1.5px solid rgba(0, 255, 198, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 255, 198, 0.15);
}
.mode-card-solo:hover {
  border-color: #00E5FF;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 229, 255, 0.35);
}
.mode-tag.solo-tag {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #FFD700;
}
.mode-btn-cta.solo-cta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.mode-card-solo:hover .mode-btn-cta.solo-cta {
  background: linear-gradient(90deg, #00E5FF 0%, #4DA6FF 100%);
  color: #040812;
  border-color: #00E5FF;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}

/* Feature Ticker Pills */
.feature-pills-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  transition: all 0.2s ease;
}
.feature-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.4);
  color: #fff;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; }
.pill-dot.mint { background: #00FFC6; box-shadow: 0 0 6px #00FFC6; }
.pill-dot.cyan { background: #00E5FF; box-shadow: 0 0 6px #00E5FF; }
.pill-dot.pink { background: #FF6EC7; box-shadow: 0 0 6px #FF6EC7; }
.pill-dot.gold { background: #FFD700; box-shadow: 0 0 6px #FFD700; }
.pill-dot.purple { background: #B388FF; box-shadow: 0 0 6px #B388FF; }

/* Bottom Action Row */
.title-bottom-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ddd !important;
  transition: all 0.2s ease !important;
}
.nav-btn:hover {
  background: rgba(0, 229, 255, 0.12) !important;
  border-color: var(--neon-cyan, #00E5FF) !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3) !important;
  transform: translateY(-2px);
}
.nav-btn svg { stroke: var(--neon-cyan, #00E5FF); }

/* Desktop Keycap Badges */
.desktop-controls-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
}
.control-key-group { display: inline-flex; align-items: center; gap: 5px; }
.key-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 2px solid rgba(0, 229, 255, 0.6);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.58rem;
  font-weight: 700;
  color: #00FFC6;
  letter-spacing: 1px;
}
.key-label { color: rgba(255, 255, 255, 0.7); }
.key-divider { color: rgba(255, 255, 255, 0.3); }

.mobile-touch-hint {
  display: none;
}

/* ============================================================
   RESPONSIVE DESIGN: MOBILE PORTRAIT (< 600px)
   Ultra-sleek, un-congested, perfectly fitted!
   ============================================================ */
@media (max-width: 600px) {
  #titleScreen {
    padding: 10px 8px !important;
    justify-content: flex-start !important;
  }
  .title-content {
    max-width: 440px !important;
    padding: 12px 12px 14px !important;
    border-radius: 16px !important;
  }

  .top-status-bar {
    margin-bottom: 6px !important;
    gap: 6px !important;
  }
  .brand-badge {
    padding: 3px 8px !important;
    gap: 5px !important;
  }
  .dlicom-logo { height: 15px !important; }
  .brand-text { font-size: 0.56rem !important; letter-spacing: 1px !important; }
  .live-server-pill { padding: 3px 8px !important; gap: 5px !important; }
  .live-pill-text { font-size: 0.54rem !important; letter-spacing: 1px !important; }

  /* Hero Title & Brand Emblem */
  .game-brand-hero {
    gap: 12px !important;
    margin-bottom: 8px !important;
  }
  .game-emblem-wrap {
    width: 52px !important;
    height: 52px !important;
  }
  .publisher-line {
    gap: 5px !important;
    margin-bottom: 2px !important;
  }
  .dlicom-publisher-mark { height: 12px !important; }
  .publisher-text {
    font-size: 0.52rem !important;
    letter-spacing: 1.5px !important;
  }
  .logo-glow { margin-bottom: 6px !important; }
  .game-title {
    font-size: 1.6rem !important;
    letter-spacing: 1.5px !important;
  }
  .tagline-wrap {
    margin-top: 2px !important;
    padding: 2px 8px !important;
    gap: 5px !important;
  }
  .tagline-text {
    font-size: 0.54rem !important;
    letter-spacing: 1.2px !important;
  }
  .tagline-spark { font-size: 0.60rem !important; }
  .title-dlicom-footer {
    margin-top: 10px !important;
    font-size: 0.58rem !important;
  }
  .footer-dlicom-mark { height: 12px !important; }

  /* Mascot Showcase: scaled down to avoid height congestion */
  .mascot-showcase {
    margin: 4px 0 8px !important;
  }
  .mascot-bubble-wrap {
    min-height: 22px !important;
    margin-bottom: 2px !important;
  }
  .mascot-speech-bubble {
    font-size: 0.66rem !important;
    padding: 3px 10px !important;
    box-shadow: 0 0 10px rgba(0, 255, 198, 0.3) !important;
  }
  .speech-spark { font-size: 0.72rem !important; }
  .mascot-stage {
    width: 78px !important;
    height: 72px !important;
  }
  .mascot-preview-img {
    width: 68px !important;
    height: 68px !important;
  }
  .mascot-pedestal-ring {
    width: 66px !important;
    height: 15px !important;
    bottom: 2px !important;
  }

  /* Suit Customization: Sleek single row */
  .suit-selector {
    margin-bottom: 8px !important;
  }
  .suit-header {
    margin: 0 auto 5px !important;
  }
  .suit-label { font-size: 0.54rem !important; letter-spacing: 1px !important; }
  .suit-active-tag { font-size: 0.56rem !important; letter-spacing: 1px !important; }
  .suit-options {
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }
  .suit-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 5px 3px !important;
    gap: 3px !important;
    border-radius: 6px !important;
  }
  .suit-dot { width: 7px !important; height: 7px !important; }
  .suit-name {
    font-size: 0.54rem !important;
    letter-spacing: 0.5px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Pilot Input Terminal */
  .pilot-input-wrap {
    margin: 0 auto 8px auto !important;
  }
  #pilotName {
    padding: 7px 10px 7px 32px !important;
    font-size: 0.75rem !important;
    height: 35px !important;
  }
  .input-icon svg { width: 14px !important; height: 14px !important; }
  .input-badge {
    font-size: 0.5rem !important;
    padding: 2px 5px !important;
    right: 8px !important;
  }

  /* Game Mode Cards: Sleek horizontal battle cards */
  .game-modes-grid {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    margin: 0 auto 8px auto !important;
  }
  .mode-card {
    min-height: auto !important;
    padding: 8px 10px !important;
    border-radius: 11px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  .mode-card-header {
    display: none !important;
  }
  .mode-title-row {
    margin-bottom: 0 !important;
    gap: 8px !important;
    flex: 1 !important;
    align-items: center !important;
  }
  .mode-icon-wrap {
    width: 32px !important;
    height: 32px !important;
    border-radius: 7px !important;
  }
  .mode-icon-wrap svg {
    width: 17px !important;
    height: 17px !important;
  }
  .mode-title {
    font-size: 0.76rem !important;
    letter-spacing: 1px !important;
  }
  .mode-desc {
    font-size: 0.56rem !important;
    margin-top: 1px !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mode-btn-cta {
    padding: 5px 9px !important;
    font-size: 0.6rem !important;
    letter-spacing: 1px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    gap: 3px !important;
  }
  .mode-btn-cta svg { width: 12px !important; height: 12px !important; }

  /* Feature Pills: Clean single horizontal row */
  .feature-pills-row {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 5px !important;
    margin-bottom: 8px !important;
    padding: 2px 2px !important;
    justify-content: flex-start !important;
  }
  .feature-pills-row::-webkit-scrollbar { display: none; }
  .feature-pill {
    font-size: 0.56rem !important;
    padding: 3px 7px !important;
    border-radius: 9px !important;
    flex-shrink: 0 !important;
  }
  .pill-dot { width: 5px !important; height: 5px !important; }

  /* Navigation Buttons */
  .title-bottom-actions {
    gap: 8px !important;
    margin-bottom: 6px !important;
  }
  .nav-btn {
    padding: 7px 10px !important;
    font-size: 0.62rem !important;
    letter-spacing: 1px !important;
    gap: 5px !important;
    flex: 1 !important;
    border-radius: 7px !important;
  }
  .nav-btn svg { width: 13px !important; height: 13px !important; }

  /* Controls Hint: Hide keyboard, show mobile touch hint */
  .desktop-controls-hint {
    display: none !important;
  }
  .mobile-touch-hint {
    display: block !important;
    font-family: var(--font-display, 'Orbitron', sans-serif);
    font-size: 0.56rem !important;
    letter-spacing: 1px !important;
    color: rgba(0, 255, 198, 0.85);
    text-shadow: 0 0 6px rgba(0, 255, 198, 0.4);
    margin-top: 2px !important;
  }
}

/* ============================================================
   RESPONSIVE DESIGN: MOBILE LANDSCAPE (< 520px height)
   2-Column horizon view so phone held sideways fits 100%!
   ============================================================ */
@media (max-height: 520px) and (orientation: landscape) {
  #titleScreen {
    padding: 6px 10px !important;
    justify-content: center !important;
  }
  .title-content {
    max-width: 740px !important;
    padding: 10px 14px !important;
  }
  .title-grid-columns {
    display: grid !important;
    grid-template-columns: 1fr 1.15fr !important;
    gap: 12px !important;
    align-items: center !important;
  }
  .title-panel-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .title-panel-right {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .top-status-bar { margin-bottom: 4px !important; }
  .logo-glow { margin-bottom: 4px !important; }
  .game-title { font-size: 1.35rem !important; }
  .tagline-wrap { display: none !important; }
  .mascot-showcase { margin: 2px 0 6px !important; }
  .mascot-stage { width: 62px !important; height: 60px !important; }
  .mascot-preview-img { width: 54px !important; height: 54px !important; }
  .mascot-pedestal-ring { width: 54px !important; height: 13px !important; }
  .suit-selector { margin-bottom: 6px !important; }
  .pilot-input-wrap { margin-bottom: 0 !important; }
  .game-modes-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
  }
  .mode-card {
    min-height: auto !important;
    padding: 6px 9px !important;
    flex-direction: row !important;
  }
  .feature-pills-row { margin-bottom: 6px !important; }
  .title-bottom-actions { margin-bottom: 4px !important; }
}

/* REMATCH BUTTON FIX */
#btnRetry {
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.go-actions {
  pointer-events: auto !important;
}


/* =============================================
   RADAR, RING COUNTDOWN, KNOCKOUT BANNER & SPECTATOR
   ============================================= */
.hud-top-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  z-index: 25;
}

.ring-countdown-hud {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(8, 14, 26, 0.90);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
  border-radius: 10px;
  padding: 6px 14px;
  width: fit-content;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ring-countdown-hud .rc-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.rc-label { color: rgba(255, 255, 255, 0.6); }
.rc-name, .rc-ring-name { color: var(--neon-cyan); }
.rc-timer { color: var(--neon-gold); font-size: 0.8rem; font-weight: 900; }
.rc-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.rc-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  transition: width 0.25s linear;
  box-shadow: 0 0 8px var(--neon-cyan);
}
.ring-countdown-hud.warning {
  border-color: #FF0055;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
  animation: pulseDanger 0.6s infinite alternate;
}
@keyframes pulseDanger {
  from { opacity: 0.85; transform: scale(1); }
  to { opacity: 1; transform: scale(1.02); }
}

/* In-Game Corner Action Controls (Top Right: Audio + Pause) */
.hud-corner-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 30;
  pointer-events: auto;
}
.hud-action-icon-btn {
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.hud-action-icon-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  transform: scale(1.05);
}

/* Cyber Radar / Mini-Map */
.radar-container {
  position: absolute;
  top: 66px;
  right: 16px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(10, 20, 36, 0.92) 0%, rgba(4, 8, 16, 0.96) 100%);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35), inset 0 0 15px rgba(0, 229, 255, 0.2);
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}
#radarCanvas {
  width: 100%;
  height: 100%;
  display: block;
}
.radar-scanline {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(0, 229, 255, 0.25) 360deg);
  animation: radarSweep 2.4s linear infinite;
  pointer-events: none;
}
@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Knockout Flash Banner */
.knockout-banner {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(16, 24, 44, 0.95), rgba(8, 12, 24, 0.98));
  border: 2px solid var(--neon-cyan);
  border-radius: 36px;
  padding: 10px 28px;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.6), inset 0 0 15px rgba(0, 229, 255, 0.3);
  pointer-events: none;
  z-index: 50;
  animation: koBannerPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.knockout-banner.double {
  border-color: var(--neon-pink);
  box-shadow: 0 0 45px rgba(255, 110, 199, 0.7);
}
.knockout-banner.rampage {
  border-color: var(--neon-gold);
  box-shadow: 0 0 55px rgba(255, 215, 0, 0.8);
}
.ko-icon { font-size: 1.8rem; }
.ko-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 12px var(--neon-cyan);
}
.ko-sub {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-gold);
  letter-spacing: 1.5px;
}
@keyframes koBannerPop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.6); }
  70% { transform: translateX(-50%) scale(1.08); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* Spectator Bar */
.spectator-bar {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 16, 30, 0.95);
  border: 1px solid var(--neon-pink);
  box-shadow: 0 0 30px rgba(255, 110, 199, 0.4);
  border-radius: 30px;
  padding: 8px 20px;
  pointer-events: auto;
  z-index: 60;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideInUp 0.3s ease-out;
}
.spec-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--glass-border);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.spec-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
}
.spec-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
}
.spec-badge {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: var(--neon-pink);
  font-weight: 700;
}
.spec-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
}
.spec-respawn-btn {
  background: linear-gradient(135deg, var(--neon-cyan), #00A3FF);
  color: #000;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
  transition: all 0.2s;
}
.spec-respawn-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.8);
}

@keyframes slideInUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Hide menu header controls during active gameplay to eliminate overlapping buttons */
body.in-game .top-header-controls {
  display: none !important;
}

@media (max-width: 768px) {
  #hud {
    padding: 8px !important;
  }

  .music-pill {
    height: 34px !important;
    padding: 0 7px 0 9px !important;
    gap: 6px !important;
  }
  .music-track-text {
    max-width: 75px !important;
    font-size: 0.70rem !important;
  }
  .music-genre-badge {
    display: none !important;
  }
  .music-skip-btn {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.60rem !important;
  }
  .radar-container {
    top: 52px !important;
    right: 8px !important;
    width: 80px !important;
    height: 80px !important;
  }
  .hud-corner-actions {
    top: 8px !important;
    right: 8px !important;
    gap: 5px !important;
  }

  /* Compact Cyber Status Capsule on Mobile (Top Left) */
  .hud-top-bar {
    position: absolute;
    top: 8px;
    left: 8px;
    max-width: calc(100vw - 86px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
    z-index: 20;
  }

  .hud-top {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
    background: rgba(6, 12, 24, 0.94);
    border: 1px solid rgba(0, 229, 255, 0.45);
    border-radius: 10px;
    padding: 4px 8px;
    width: fit-content;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: auto;
  }

  .hud-stat {
    min-width: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 3px;
  }

  .hud-label {
    font-size: 0.46rem;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1;
  }

  .hud-value {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
  }

  /* Hide bulky ping badge on small mobile screen to give breathing room */
  .hud-arena-badge,
  .hud-ping-badge,
  .fullscreen-toggle-btn {
    display: none !important;
  }

  /* Compact Ring Collapse Countdown */
  .ring-countdown-hud {
    padding: 3px 8px;
    border-radius: 6px;
    gap: 3px;
    width: fit-content;
    background: rgba(6, 12, 24, 0.90);
    border: 1px solid rgba(0, 229, 255, 0.35);
  }

  .ring-countdown-hud .rc-info {
    font-size: 0.55rem;
    gap: 6px;
  }

  .ring-countdown-hud .rc-progress-track {
    height: 3px;
  }

  /* In-Game Corner Controls (Top Right: Audio + Pause) */
  .hud-corner-actions {
    top: 8px;
    right: 8px;
    gap: 5px;
    z-index: 25;
  }

  .hud-action-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .hud-pause-btn {
    display: none !important;
  }

  /* Cyber Radar: Positioned safely below the corner buttons (Zero overlap!) */
  .radar-container {
    top: 48px;
    right: 8px;
    width: 62px;
    height: 62px;
    z-index: 20;
  }

  /* Live Kill Feed: Positioned safely below the radar */
  .kill-feed {
    top: 116px;
    right: 8px;
    max-width: 150px;
    z-index: 15;
  }

  .kill-item {
    font-size: 0.56rem;
    padding: 3px 6px;
  }

  /* Arena Alert */
  .arena-alert {
    top: 84px;
    font-size: 0.68rem;
    padding: 5px 12px;
    gap: 6px;
  }

  .spectator-bar {
    bottom: 90px;
    padding: 6px 12px;
  }
  .spec-btn {
    width: 30px; height: 30px;
    font-size: 0.85rem;
  }
  .spec-name {
    font-size: 0.8rem;
  }
  .knockout-banner {
    padding: 8px 18px;
    top: 22%;
  }
  .ko-title {
    font-size: 0.95rem;
  }
}
/* =========================================================================
   DUAL LEADERBOARD (SOLO vs PUBLIC ARENA) & DILI JUMP RANKING STYLES
   ========================================================================= */
.lb-header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}
.lb-logo {
  height: 24px;
  width: auto;
}
.lb-mode-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  width: 100%;
}
.lb-mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  background: rgba(12, 20, 36, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lb-mode-btn:hover {
  border-color: var(--neon-cyan);
  color: #fff;
}
.lb-mode-btn.active {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
  font-weight: 700;
}
.leaderboard-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.lb-filter-btn {
  flex: 1;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #94a3b8;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lb-filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.lb-filter-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--neon-cyan);
  color: #00f3ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}
.pilot-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}
.pilot-suit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pilot-name-text {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.pilot-diff-pill {
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-transform: uppercase;
}
.pilot-diff-pill.diff-hard {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.pilot-diff-pill.diff-medium {
  color: #facc15;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.4);
}
.pilot-diff-pill.diff-normal {
  color: #00ffc2;
  background: rgba(0, 255, 194, 0.12);
  border: 1px solid rgba(0, 255, 194, 0.35);
}
.pilot-diff-pill.diff-champion {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.18);
  border: 1px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}
.pilot-diff-pill.diff-live {
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
}
.rank-1 { color: #facc15 !important; font-weight: 900 !important; }
.rank-2 { color: #e2e8f0 !important; font-weight: 800 !important; }
.rank-3 { color: #cd7f32 !important; font-weight: 800 !important; }
