/**
 * EarBlitz Arcade 2.0 - Core Arcade Mobile Game Stylesheet
 * Aesthetic: "Neo-Arcade Pro-Audio" (Chunky 3D tactile buttons, frosted glass cards, neon feedback)
 * 100% Mobile-Friendly, Touch-Optimized, Zero Emojis.
 */

:root {
  /* Surface Layers */
  --eb-bg-deep: #060410;
  --eb-bg-radial: radial-gradient(circle at 50% 12%, #261154 0%, #12082b 48%, #060410 100%);
  --eb-card-bg: rgba(20, 16, 44, 0.94);
  --eb-card-glass: rgba(28, 22, 60, 0.75);
  --eb-border: rgba(139, 92, 246, 0.32);
  --eb-border-highlight: rgba(0, 240, 255, 0.55);

  /* Neon Energy Channels */
  --eb-cyan: #00f0ff;
  --eb-cyan-lip: #0098a6;
  --eb-magenta: #ff007f;
  --eb-magenta-lip: #a80053;
  --eb-green: #00ff88;
  --eb-green-lip: #02944f;
  --eb-gold: #ffbe0b;
  --eb-gold-lip: #b38200;
  --eb-coral: #ff5e57;
  --eb-coral-lip: #b8332c;
  --eb-purple: #a855f7;
  --eb-purple-lip: #6825ad;

  /* Textures & Shadows */
  --eb-text: #ffffff;
  --eb-text-dim: #94a3b8;
  --eb-text-subtle: #64748b;
  --eb-radius-sm: 8px;
  --eb-radius-md: 14px;
  --eb-radius-lg: 20px;
  --eb-radius-pill: 9999px;

  /* Typography */
  --eb-font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --eb-font-mono: 'JetBrains Mono', monospace;
  --eb-font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body.earblitz-app {
  background: var(--eb-bg-radial);
  background-color: var(--eb-bg-deep);
  color: var(--eb-text);
  font-family: var(--eb-font-body);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background floating ambient canvas */
#bgFxCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* SVG Icon Helper */
.eb-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.eb-icon-lg { width: 24px; height: 24px; }
.eb-icon-sm { width: 14px; height: 14px; }

/* ========================================================================= */
/* GLOBAL BRAND SINGLE-LINE LOCK                                             */
/* ========================================================================= */
.nav-brand-text {
  white-space: nowrap !important;
}

/* ========================================================================= */
/* CHUNKY 3D TACTILE BUTTON COMPONENT (Top Mobile App Aesthetic)             */
/* ========================================================================= */
.btn-arcade-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--eb-font-heading);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--eb-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
  white-space: nowrap;
}

/* Primary Green (Play / Action) */
.btn-arcade-3d.btn-primary {
  background: linear-gradient(180deg, #10f089 0%, #00bb63 100%);
  color: #032d18;
  box-shadow: 0 4px 0 var(--eb-green-lip), 0 8px 18px rgba(0, 255, 136, 0.35);
  border-color: #55ffaa;
}
.btn-arcade-3d.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--eb-green-lip), 0 3px 6px rgba(0, 255, 136, 0.4);
}

/* Cyan / Tech Blue */
.btn-arcade-3d.btn-cyan {
  background: linear-gradient(180deg, #14f3ff 0%, #00bcd4 100%);
  color: #032b30;
  box-shadow: 0 4px 0 var(--eb-cyan-lip), 0 8px 18px rgba(0, 240, 255, 0.35);
  border-color: #6cf7ff;
}
.btn-arcade-3d.btn-cyan:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--eb-cyan-lip), 0 3px 6px rgba(0, 240, 255, 0.4);
}

/* Magenta / Energetic */
.btn-arcade-3d.btn-magenta {
  background: linear-gradient(180deg, #ff2a93 0%, #db0067 100%);
  color: #ffffff;
  box-shadow: 0 4px 0 var(--eb-magenta-lip), 0 8px 18px rgba(255, 0, 127, 0.35);
  border-color: #ff66b0;
}
.btn-arcade-3d.btn-magenta:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--eb-magenta-lip), 0 3px 6px rgba(255, 0, 127, 0.4);
}

/* Dark Glass Control Button (Cockpit Action Buttons) */
.btn-arcade-3d.btn-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  padding: 8px 14px;
}
.btn-arcade-3d.btn-glass:hover {
  border-color: var(--eb-cyan);
  color: var(--eb-cyan);
}
.btn-arcade-3d.btn-glass:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}
.btn-arcade-3d.btn-glass.active-glow {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.28) 0%, rgba(0, 240, 255, 0.12) 100%);
  border-color: var(--eb-cyan);
  color: var(--eb-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.btn-arcade-3d.btn-glass.active-mic {
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.28) 0%, rgba(0, 255, 136, 0.12) 100%);
  border-color: var(--eb-green);
  color: var(--eb-green);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  animation: pulseActiveMic 1.8s infinite alternate ease-in-out;
}
@keyframes pulseActiveMic {
  0% { box-shadow: 0 0 10px rgba(0, 255, 136, 0.35); }
  100% { box-shadow: 0 0 24px rgba(0, 255, 136, 0.85); }
}

/* ========================================================================= */
/* ARCADE COCKPIT HUD (Unified Master Controls)                              */
/* ========================================================================= */
.arcade-cockpit-bar {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--eb-card-bg);
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius-md);
  padding: 8px 14px;
  margin: 6px auto 10px;
  box-shadow: var(--eb-card-shadow);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 50;
  gap: 12px;
  box-sizing: border-box;
}

.cockpit-brand-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cockpit-stats-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 769px) {
  .cockpit-stats-bar {
    margin-right: auto;
    margin-left: 14px;
  }
}

.cockpit-left, .cockpit-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Brand Title */
.brand-title-arcade {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--eb-font-heading);
  font-size: 19px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1.5px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-title-arcade .ear-neon {
  color: var(--eb-magenta);
  text-shadow: 0 0 12px var(--eb-magenta);
}
.brand-title-arcade .blitz-neon {
  color: var(--eb-cyan);
  text-shadow: 0 0 12px var(--eb-cyan);
}
.brand-badge-pill {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: var(--eb-radius-pill);
  background: rgba(0, 240, 255, 0.15);
  color: var(--eb-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
  font-style: normal;
}

/* Score Pill */
.cockpit-score-badge {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: var(--eb-radius-sm);
  border: 1px solid rgba(255, 190, 11, 0.3);
}
.score-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--eb-text-dim);
  text-transform: uppercase;
}
.score-val {
  font-family: var(--eb-font-mono);
  font-size: 20px;
  font-weight: 900;
  color: var(--eb-gold);
  text-shadow: 0 0 12px rgba(255, 190, 11, 0.6);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Streak Group */
.hud-streak-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: var(--eb-radius-sm);
  border: 1px solid rgba(255, 94, 87, 0.3);
}
.streak-num {
  font-size: 19px;
  font-weight: 900;
  font-style: italic;
  color: var(--eb-coral);
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 94, 87, 0.6);
  font-variant-numeric: tabular-nums;
}
.mult-badge {
  font-family: var(--eb-font-mono);
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: rgba(255, 190, 11, 0.2);
  border: 1px solid var(--eb-gold);
  border-radius: var(--eb-radius-pill);
  padding: 2px 7px;
  line-height: 1;
}

/* ========================================================================= */
/* ARENA STAGE CONTAINER & GAMEPLAY MODALS                                   */
/* Overlays are strictly scoped to the gameplay arena, keeping the header    */
/* and educational content undisturbed.                                      */
/* ========================================================================= */
.arena-stage-container {
  position: relative;
  width: 100%;
}

.game-over-overlay,
.round-complete-overlay,
.pause-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 5, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  border-radius: var(--eb-radius-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  box-sizing: border-box;
}
.game-over-overlay.show,
.round-complete-overlay.show,
.pause-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.game-over-card,
.pause-card {
  width: 100%;
  max-width: 440px;
  max-height: 94%;
  overflow-y: auto;
  background: linear-gradient(180deg, #181236 0%, #0d0922 100%);
  border: 1.5px solid var(--eb-border-highlight);
  border-radius: var(--eb-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.2);
  padding: 24px 22px 20px;
  text-align: center;
  transform: scale(0.94);
  transition: transform 0.24s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}
.pause-card {
  max-width: 380px;
  border-color: rgba(255, 184, 0, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 184, 0, 0.25);
}
.game-over-overlay.show .game-over-card,
.round-complete-overlay.show .game-over-card,
.pause-overlay.show .pause-card {
  transform: scale(1);
}
.pause-title {
  font-family: var(--eb-font-heading);
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 0 16px rgba(255, 184, 0, 0.4);
}
.game-over-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--eb-cyan);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 3px 12px;
  border-radius: var(--eb-radius-pill);
  margin-bottom: 10px;
}
.game-over-title {
  font-family: var(--eb-font-heading);
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}
.game-over-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--eb-radius-md);
  padding: 12px;
  text-align: center;
}
.stat-box-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--eb-text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.stat-box-val {
  font-family: var(--eb-font-mono);
  font-size: 22px;
  font-weight: 900;
  color: var(--eb-cyan);
}
.game-over-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.pause-card .game-over-actions .btn-arcade-3d,
.game-over-card .game-over-actions .btn-arcade-3d {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 20px;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

/* ========================================================================= */
/* SUPERCHARGED STREAK FLAME EVOLUTION                                      */
/* ========================================================================= */
.hud-streak-group {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: var(--eb-radius-pill);
  font-family: var(--eb-font-mono);
  font-size: 13px;
  font-weight: 800;
  transition: all 0.25s ease;
}
.hud-streak-group.streak-spark {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.hud-streak-group.streak-spark .eb-icon {
  color: var(--eb-cyan) !important;
}
.hud-streak-group.streak-gold {
  border-color: var(--eb-gold);
  background: rgba(255, 190, 11, 0.12);
  box-shadow: 0 0 16px rgba(255, 190, 11, 0.4);
  animation: streakGoldPulse 1.2s infinite alternate ease-in-out;
}
.hud-streak-group.streak-gold .eb-icon {
  color: var(--eb-gold) !important;
}
.hud-streak-group.streak-supercharged {
  border-color: var(--eb-magenta);
  background: linear-gradient(90deg, rgba(255, 0, 127, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  box-shadow: 0 0 24px rgba(255, 0, 127, 0.6), inset 0 0 10px rgba(255, 0, 127, 0.3);
  animation: streakInfernoPulse 0.8s infinite alternate ease-in-out;
}
.hud-streak-group.streak-supercharged .eb-icon {
  color: var(--eb-magenta) !important;
}
@keyframes streakGoldPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}
@keyframes streakInfernoPulse {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 0, 127, 0.5); }
  100% { transform: scale(1.08); box-shadow: 0 0 32px rgba(255, 0, 127, 0.85); }
}

/* ========================================================================= */
/* ARCADE START OVERLAY MODAL (Tap to Start / Audio Context Unlock)          */
/* Scoped strictly to .arena-stage-container so it only covers the game      */
/* component and never obscures educational content or links below the game. */
/* ========================================================================= */
.arcade-start-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 16, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: var(--eb-radius-lg);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.26s ease, visibility 0.26s ease;
  box-sizing: border-box;
}
.arcade-start-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.arcade-start-card {
  width: 100%;
  max-width: 440px;
  max-height: 95%;
  overflow-y: auto;
  background: linear-gradient(180deg, #181236 0%, #0d0922 100%);
  border: 1.5px solid var(--eb-border-highlight);
  border-radius: var(--eb-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 240, 255, 0.25);
  padding: 28px 24px;
  text-align: center;
  animation: startCardPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes startCardPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.start-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--eb-radius-pill);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--eb-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.start-card-title {
  font-family: var(--eb-font-heading);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 8px;
}
.start-card-desc {
  font-size: 14px;
  color: var(--eb-text-dim);
  line-height: 1.55;
  margin-bottom: 18px;
}
.start-mode-options {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--eb-radius-md);
  padding: 14px;
  margin-bottom: 20px;
  text-align: left;
}
.start-option-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.option-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--eb-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.input-mode-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-input-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: var(--eb-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: var(--eb-font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.btn-input-mode:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-input-mode.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--eb-cyan);
  color: var(--eb-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}
.start-headphone-tip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--eb-gold);
  line-height: 1.4;
}
.btn-start-action {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  letter-spacing: 1px;
}

/* ========================================================================= */
/* CONTENT & EDITORIAL FOLD STYLING (EEAT Master Template)                   */
/* ========================================================================= */
.earblitz-content-section {
  width: 100%;
  max-width: 1000px;
  margin: 36px auto 48px;
  padding: 0 16px;
  position: relative;
  z-index: 20;
}
.content-card-article {
  background: var(--eb-card-glass);
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius-lg);
  padding: 36px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  color: #e2e8f0;
  line-height: 1.7;
}
.content-card-article h2 {
  font-family: var(--eb-font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 28px 0 12px;
  letter-spacing: 0.5px;
}
.content-card-article h2:first-of-type { margin-top: 0; }
.content-card-article h3 {
  font-family: var(--eb-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--eb-cyan);
  margin: 20px 0 8px;
}
.content-card-article p {
  margin-bottom: 16px;
  font-size: 15px;
  color: #cbd5e1;
}
.content-card-article ul, .content-card-article ol {
  margin-left: 24px;
  margin-bottom: 18px;
}
.content-card-article li { margin-bottom: 8px; }

/* FAQ Accordion */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--eb-radius-md);
  overflow: hidden;
  transition: border-color 0.16s ease;
}
.faq-item:hover { border-color: var(--eb-cyan); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--eb-font-heading);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--eb-text-dim);
  line-height: 1.6;
}

/* Author Box */
.author-eeat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--eb-radius-md);
  padding: 20px;
  margin-top: 36px;
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--eb-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
  object-fit: cover;
  flex-shrink: 0;
}
.author-info h4 {
  font-family: var(--eb-font-heading);
  font-size: 17px;
  color: #fff;
  margin-bottom: 4px;
}
.author-info p {
  font-size: 13px;
  color: var(--eb-text-dim);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ========================================================================= */
/* DAILY CHALLENGE & VIRAL SHARE CARD WIDGET                                 */
/* ========================================================================= */
.daily-result-card-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 184, 0, 0.45);
  border-radius: var(--eb-radius-md);
  padding: 14px 16px;
  margin: 14px 0 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.2), inset 0 1px 1px rgba(255, 184, 0, 0.3);
}
.daily-emoji-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 5px;
  margin-bottom: 6px;
  user-select: all;
}

/* ========================================================================= */
/* GLOBAL LEADERBOARD & SUBMISSION WIDGET                                   */
/* ========================================================================= */
.leaderboard-submit-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: var(--eb-radius-md);
  padding: 12px 14px;
  margin: 14px 0 10px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 184, 0, 0.2);
}
.leaderboard-submit-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--eb-gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.leaderboard-submit-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.arcade-callsign-input {
  flex: 1;
  background: rgba(10, 8, 22, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--eb-radius-sm);
  color: #fff;
  font-family: var(--eb-font-mono);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-align: center;
  text-transform: uppercase;
  height: 44px;
  padding: 0 10px;
  box-sizing: border-box;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.arcade-callsign-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  letter-spacing: 1px;
}
.arcade-callsign-input:focus {
  outline: none;
  border-color: var(--eb-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}
.btn-submit-leaderboard {
  height: 44px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.leaderboard-submit-status {
  margin-top: 8px;
}
.leaderboard-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.18) 0%, rgba(0, 255, 136, 0.18) 100%);
  border: 1px solid rgba(255, 184, 0, 0.5);
  border-radius: var(--eb-radius-sm);
  padding: 8px 14px;
  font-family: var(--eb-font-mono);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.25);
  animation: pulseGlowRank 2s infinite alternate ease-in-out;
}
.leaderboard-rank-badge .rank-highlight {
  color: var(--eb-gold);
  font-weight: 900;
  font-size: 14px;
}
@keyframes pulseGlowRank {
  0% { box-shadow: 0 0 12px rgba(255, 184, 0, 0.2); }
  100% { box-shadow: 0 0 22px rgba(255, 184, 0, 0.45); }
}

/* Arcade Hub Standings Board */
.hub-leaderboard-section {
  margin-top: 10px;
  margin-bottom: 24px;
}
.leaderboard-card {
  background: var(--eb-card-bg);
  border: 1.5px solid var(--eb-border);
  border-radius: var(--eb-radius-lg);
  padding: 22px 20px 18px;
  box-shadow: var(--eb-card-shadow);
  position: relative;
  overflow: hidden;
}
.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.leaderboard-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.leaderboard-trophy-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--eb-radius-md);
  background: rgba(255, 184, 0, 0.16);
  border: 1px solid rgba(255, 184, 0, 0.4);
  color: var(--eb-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.3);
  flex-shrink: 0;
}
.leaderboard-title {
  font-family: var(--eb-font-heading);
  font-size: 21px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  margin: 0 0 3px 0;
}
.leaderboard-subtitle {
  font-size: 12.5px;
  color: var(--eb-text-dim);
  margin: 0;
}
.leaderboard-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.leaderboard-tabs {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--eb-radius-pill);
  padding: 3px;
  gap: 3px;
}
.btn-board-tab {
  background: transparent;
  border: none;
  color: var(--eb-text-dim);
  font-family: var(--eb-font-ui);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--eb-radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-board-tab:hover {
  color: #fff;
}
.btn-board-tab.active {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.28) 0%, rgba(0, 240, 255, 0.12) 100%);
  color: var(--eb-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.leaderboard-table-container {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--eb-radius-md);
  overflow: hidden;
}
.leaderboard-table-header {
  display: grid;
  grid-template-columns: 60px 1.8fr 1.2fr 1fr 1fr;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--eb-font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--eb-text-dim);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.leaderboard-table-body {
  display: flex;
  flex-direction: column;
  height: 245px;
  min-height: 245px;
  max-height: 245px;
  overflow-y: auto;
  position: relative;
  transition: opacity 0.15s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.4) rgba(0, 0, 0, 0.3);
}
.leaderboard-table-body::-webkit-scrollbar {
  width: 6px;
}
.leaderboard-table-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
.leaderboard-table-body::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.35);
  border-radius: 4px;
}
.leaderboard-table-body::-webkit-scrollbar-thumb:hover {
  background: var(--eb-cyan);
}
.leaderboard-table-body.is-fetching {
  opacity: 0.55;
  pointer-events: none;
}
.leaderboard-row {
  display: grid;
  grid-template-columns: 60px 1.8fr 1.2fr 1fr 1fr;
  padding: 10px 14px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  transition: background 0.12s ease;
}
.leaderboard-row:last-child {
  border-bottom: none;
}
.leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.leaderboard-row.rank-1 {
  background: rgba(255, 184, 0, 0.07);
}
.leaderboard-row.rank-2 {
  background: rgba(0, 240, 255, 0.05);
}
.leaderboard-row.rank-3 {
  background: rgba(255, 0, 127, 0.05);
}

.rank-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--eb-font-mono);
  font-size: 11.5px;
  font-weight: 900;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--eb-text-dim);
  background: rgba(0, 0, 0, 0.4);
}
.rank-badge-pill.gold {
  background: rgba(255, 184, 0, 0.2);
  border-color: var(--eb-gold);
  color: var(--eb-gold);
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.5);
}
.rank-badge-pill.silver {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--eb-cyan);
  color: var(--eb-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.rank-badge-pill.bronze {
  background: rgba(255, 94, 87, 0.2);
  border-color: var(--eb-coral);
  color: var(--eb-coral);
  box-shadow: 0 0 10px rgba(255, 94, 87, 0.5);
}

.cell-player {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #fff;
}
.player-callsign-text {
  font-family: var(--eb-font-mono);
  font-size: 13.5px;
  letter-spacing: 0.8px;
}
.country-tag-pill {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: var(--eb-font-mono);
}
.cell-score {
  font-family: var(--eb-font-mono);
  font-weight: 900;
  font-size: 14px;
  color: var(--eb-gold);
}
.cell-streak {
  font-family: var(--eb-font-mono);
  font-size: 12.5px;
  color: var(--eb-cyan);
}
.cell-accuracy {
  font-family: var(--eb-font-mono);
  font-size: 12.5px;
  color: var(--eb-green);
}

.leaderboard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}
.leaderboard-footer-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--eb-text-dim);
}
.btn-board-refresh {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--eb-radius-sm);
  color: #cbd5e1;
  font-size: 11.5px;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.btn-board-refresh:hover {
  border-color: var(--eb-cyan);
  color: var(--eb-cyan);
}
.leaderboard-loading,
.leaderboard-empty {
  height: 100%;
  min-height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--eb-text-dim);
  font-size: 13px;
  padding: 16px;
  box-sizing: border-box;
}

/* ========================================================================= */
/* RESPONSIVE MEDIA QUERIES (Mobile-First Polish)                            */
/* ========================================================================= */
@media (max-width: 768px) {
  .arcade-cockpit-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin: 4px auto 8px;
    gap: 8px 0;
    border-radius: var(--eb-radius-sm);
    box-sizing: border-box;
    width: 100%;
  }

  /* Row 1: Brand title on left, all control buttons on right */
  .cockpit-brand-bar {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand-title-arcade {
    font-size: 15px;
    letter-spacing: 0.8px;
    white-space: nowrap;
  }

  .cockpit-right {
    order: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .cockpit-right .btn-arcade-3d {
    padding: 6px 8px;
    font-size: 11px;
    min-width: 32px;
    height: 32px;
    gap: 4px;
    border-radius: 6px;
    box-sizing: border-box;
    justify-content: center;
  }
  .cockpit-right .btn-arcade-3d .eb-icon {
    width: 14px;
    height: 14px;
  }
  .cockpit-right .desktop-only-tools-btn {
    display: none;
  }
  #vocalTempoVal {
    font-size: 10.5px;
  }

  /* Row 2: Full-width stats strip with score & streak */
  .cockpit-stats-bar {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2px;
  }
  .cockpit-score-badge {
    padding: 3px 10px;
    gap: 6px;
  }
  .score-label {
    font-size: 8px;
  }
  .score-val {
    font-size: 16px;
  }
  .hud-streak-group {
    padding: 3px 8px;
    gap: 5px;
  }
  .streak-num {
    font-size: 15px;
  }
  .mult-badge {
    font-size: 9.5px;
    padding: 1px 4px;
  }
  .match-timer-pill {
    padding: 3px 10px;
    font-size: 12px;
    height: 28px;
    gap: 5px;
  }

  .game-over-card,
  .pause-card,
  .arcade-start-card {
    padding: 20px 16px;
    max-width: 95%;
  }
  .game-over-title {
    font-size: 24px;
  }
  .pause-title {
    font-size: 22px;
  }
  .pause-card .game-over-actions .btn-arcade-3d,
  .game-over-card .game-over-actions .btn-arcade-3d {
    height: 44px;
    min-height: 44px;
    font-size: 12.5px;
    padding: 0 16px;
  }
  .start-card-title {
    font-size: 24px;
  }

  /* Leaderboard Mobile Tuning */
  .leaderboard-submit-form {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }
  .arcade-callsign-input {
    width: 100%;
    height: 40px;
    font-size: 12.5px;
  }
  .btn-submit-leaderboard {
    width: 100%;
    height: 40px;
    font-size: 11.5px;
    justify-content: center;
  }
  .leaderboard-card {
    padding: 16px 12px;
  }
  .leaderboard-header {
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .leaderboard-title {
    font-size: 17px;
  }
  .leaderboard-subtitle {
    font-size: 11.5px;
  }
  .leaderboard-table-header,
  .leaderboard-row {
    grid-template-columns: 38px 1.6fr 1fr 0.8fr;
    padding: 8px 10px;
    font-size: 11.5px;
  }
  .leaderboard-table-body {
    height: 205px;
    min-height: 205px;
    max-height: 205px;
  }
  .leaderboard-loading,
  .leaderboard-empty {
    min-height: 205px;
  }
  .col-accuracy,
  .cell-accuracy {
    display: none;
  }
  .rank-badge-pill {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .player-callsign-text {
    font-size: 12px;
  }
  .cell-score {
    font-size: 12.5px;
  }
  .btn-board-tab {
    font-size: 10px;
    padding: 4px 8px;
  }

  .content-card-article { padding: 24px 18px; }
  .author-eeat-card { flex-direction: column; text-align: center; }
}
