/* ==========================================================================
   PICKLER101 - WHIMSICAL, QUIRKY, POP-MODERN PICKLEBALL DESIGN SYSTEM
   Aesthetics: Neo-Brutalist Playful Pop + Electric Candy Volts + Tactile Squishy UI
   ========================================================================== */

:root {
  /* Whimsical & Vibrant Palette */
  --bg-main: #0b0f19;
  --bg-surface: #131b2e;
  --bg-surface-elevated: #1e293b;
  --bg-surface-glass: rgba(19, 27, 46, 0.88);
  --bg-card-pop: #18233c;

  --neon-lime: #bef264;
  --neon-volt: #84cc16;
  --neon-coral: #ff5376;
  --neon-cyan: #00f0ff;
  --neon-yellow: #fde047;
  --neon-purple: #c084fc;
  --neon-emerald: #10b981;
  --neon-orange: #fb923c;

  --border-thick: 3px solid #000000;
  --border-pop-lime: 3px solid #bef264;
  --border-pop-coral: 3px solid #ff5376;
  --border-pop-cyan: 3px solid #00f0ff;

  --pop-shadow-lime: 4px 4px 0px #bef264;
  --pop-shadow-coral: 4px 4px 0px #ff5376;
  --pop-shadow-cyan: 4px 4px 0px #00f0ff;
  --pop-shadow-yellow: 4px 4px 0px #fde047;
  --pop-shadow-dark: 5px 5px 0px #020617;
  --pop-shadow-lg: 8px 8px 0px #020617;

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #090d16;

  /* Typography */
  --font-display: 'Fredoka', 'Outfit', cursive, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius & Curves */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-bouncy: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  --trans-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Overflow Protection */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(190, 242, 100, 0.07) 0%, transparent 25%),
    radial-gradient(circle at 90% 20%, rgba(255, 83, 118, 0.06) 0%, transparent 30%),
    radial-gradient(circle at 50% 70%, rgba(0, 240, 255, 0.06) 0%, transparent 35%),
    radial-gradient(#1e293b 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
}

/* Fun Floating Doodle Elements in Background */
.doodle-bg {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  animation: floatDoodle 8s ease-in-out infinite alternate;
}

@keyframes floatDoodle {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(12deg); }
}

/* Headings with Fredoka */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--neon-lime);
  text-decoration: none;
  transition: all var(--trans-fast);
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   QUIRKY STICKERS & BADGES
   ========================================================================== */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  transform: rotate(-2deg);
  transition: transform var(--trans-bouncy);
}

.sticker:hover {
  transform: rotate(2deg) scale(1.08);
}

.sticker-lime {
  background: var(--neon-lime);
  color: #000000;
}

.sticker-coral {
  background: var(--neon-coral);
  color: #ffffff;
  transform: rotate(3deg);
}

.sticker-cyan {
  background: var(--neon-cyan);
  color: #000000;
  transform: rotate(-3deg);
}

.sticker-yellow {
  background: var(--neon-yellow);
  color: #000000;
  transform: rotate(2deg);
}

.sticker-purple {
  background: var(--neon-purple);
  color: #000000;
  transform: rotate(-1deg);
}

/* Wavy Underlines */
.wavy-underline {
  text-decoration: underline wavy var(--neon-lime);
  text-underline-offset: 6px;
}

.wavy-coral {
  text-decoration: underline wavy var(--neon-coral);
  text-underline-offset: 6px;
}

/* ==========================================================================
   XP GAMIFIED BANNER
   ========================================================================== */
.xp-tracker-bar {
  background: #020617;
  border-bottom: 2px solid #1e293b;
  padding: 0.5rem 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.xp-tracker-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.xp-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-lime);
}

.xp-progress-track {
  flex: 1;
  max-width: 360px;
  height: 12px;
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.xp-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--neon-lime), var(--neon-cyan), var(--neon-yellow));
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(190, 242, 100, 0.8);
}

.xp-points {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: 0.82rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 3px solid #1e293b;
  z-index: 1000;
  transition: all var(--trans-base);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-ball {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 35% 35%, #bef264, #65a30d);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0px #bef264;
  animation: wobbleBall 4s ease-in-out infinite;
}

@keyframes wobbleBall {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-10deg); }
  75% { transform: translateY(-2px) rotate(10deg); }
}

.logo-ball::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #090d16;
  border-radius: 50%;
  box-shadow: 
    -8px -4px 0 0 #090d16, 
    8px -4px 0 0 #090d16, 
    -6px 7px 0 0 #090d16, 
    6px 7px 0 0 #090d16, 
    0 -9px 0 0 #090d16;
}

.logo span {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.logo span strong {
  color: var(--neon-lime);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0.2rem;
  transition: color var(--trans-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-lime);
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-audio-toggle {
  background: #1e293b;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  color: var(--neon-lime);
  border-radius: var(--radius-full);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans-bouncy);
}

.btn-audio-toggle:hover {
  transform: scale(1.1) rotate(5deg);
  background: #bef264;
  color: #000000;
}

.mobile-menu-btn {
  display: none;
  background: var(--neon-lime);
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  color: #000000;
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.35rem 0.65rem;
}

/* ==========================================================================
   TACTILE SQUISHY BUTTONS (POPPING / POP ART)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  border: 3px solid #000000;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--trans-bouncy);
  position: relative;
  user-select: none;
}

.btn:active {
  transform: translate(3px, 3px) scale(0.97) !important;
  box-shadow: 1px 1px 0px #000000 !important;
}

.btn-primary {
  background: var(--neon-lime);
  color: #000000;
  box-shadow: 5px 5px 0px #000000;
}

.btn-primary:hover {
  background: #d9f99d;
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 7px 7px 0px #000000, 0 0 20px rgba(190, 242, 100, 0.4);
}

.btn-arcade {
  background: var(--neon-coral);
  color: #ffffff;
  box-shadow: 5px 5px 0px #000000;
}

.btn-arcade:hover {
  background: #ff708f;
  transform: translate(-2px, -2px) rotate(1.5deg);
  box-shadow: 7px 7px 0px #000000, 0 0 20px rgba(255, 83, 118, 0.4);
}

.btn-secondary {
  background: #1e293b;
  color: #ffffff;
  box-shadow: 5px 5px 0px #000000;
}

.btn-secondary:hover {
  background: #334155;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px #000000;
}

.btn-cyan {
  background: var(--neon-cyan);
  color: #000000;
  box-shadow: 5px 5px 0px #000000;
}

.btn-cyan:hover {
  background: #70f8ff;
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 7px 7px 0px #000000;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  border-width: 2px;
  box-shadow: 3px 3px 0px #000000;
}

.btn-sm:hover {
  box-shadow: 5px 5px 0px #000000;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.hero-title .highlight-lime {
  color: var(--neon-lime);
  text-shadow: 3px 3px 0px #000000;
}

.hero-title .highlight-coral {
  color: var(--neon-coral);
  text-shadow: 3px 3px 0px #000000;
}

.hero-description {
  font-size: 1.22rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-top: 0.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-top: 1.75rem;
  border-top: 2px dashed #334155;
  margin-top: 0.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-display);
}

.stat-num span {
  color: var(--neon-lime);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Pop Card */
.hero-card-preview {
  background: var(--bg-card-pop);
  border: 3px solid #000000;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: 8px 8px 0px var(--neon-lime), 8px 8px 0px 3px #000000;
  position: relative;
  transform: rotate(1deg);
  transition: transform var(--trans-bouncy);
}

.hero-card-preview:hover {
  transform: rotate(-0.5deg) scale(1.01);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.preview-header h3 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-rules-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quick-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 0.9rem;
  background: #0f172a;
  border: 2px solid #000000;
  border-radius: var(--radius-md);
  box-shadow: 3px 3px 0px #000000;
  transition: all var(--trans-fast);
}

.quick-rule-item:hover {
  transform: translateX(4px) translateY(-2px);
  box-shadow: 5px 5px 0px var(--neon-cyan);
}

.rule-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  font-family: var(--font-display);
  flex-shrink: 0;
  border: 2px solid #000000;
}

.rule-icon-box.lime { background: var(--neon-lime); color: #000000; }
.rule-icon-box.blue { background: var(--neon-cyan); color: #000000; }
.rule-icon-box.coral { background: var(--neon-coral); color: #ffffff; }

.rule-text strong {
  display: block;
  font-size: 0.96rem;
  color: #ffffff;
  font-family: var(--font-display);
  margin-bottom: 0.15rem;
}

.rule-text p {
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ==========================================================================
   STICKY COURTSIDE JUMP BAR
   ========================================================================== */
.courtside-quick-bar {
  background: #020617;
  border-top: 3px solid #000000;
  border-bottom: 3px solid #000000;
  padding: 0.85rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.quick-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.quick-bar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neon-lime);
}

.quick-bar-chips {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.chip-btn {
  background: #1e293b;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  color: #ffffff;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chip-btn:hover {
  background: var(--neon-lime);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px #000000;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: 2.85rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* ==========================================================================
   INTERACTIVE MASCOT WIDGET ("DILL-BERT")
   ========================================================================== */
.mascot-bubble-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.mascot-avatar-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #bef264, #4d7c0f);
  border: 3px solid #000000;
  box-shadow: 4px 4px 0px #000000, 0 0 20px rgba(190, 242, 100, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transition: all var(--trans-bouncy);
  animation: floatMascot 4s ease-in-out infinite;
  user-select: none;
}

.mascot-avatar-btn:hover {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 6px 6px 0px #000000;
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.mascot-speech-bubble {
  background: #ffffff;
  color: #090d16;
  border: 3px solid #000000;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.1rem;
  box-shadow: 4px 4px 0px #000000;
  max-width: 240px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  position: relative;
  display: none;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: 12px;
  right: -10px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid #000000;
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.5) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================================
   ARCADE MINI-GAME SECTION ("DINK MASTER 3000")
   ========================================================================== */
.arcade-game-wrapper {
  background: #090d16;
  border: 4px solid #000000;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: 10px 10px 0px var(--neon-coral), 10px 10px 0px 4px #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.arcade-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 1rem;
}

.arcade-stats-hud {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  flex-wrap: wrap;
}

.arcade-stat-badge {
  background: #1e293b;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
}

.arcade-stat-badge strong {
  color: var(--neon-lime);
}

.game-canvas-container {
  width: 100%;
  max-width: 600px;
  background: #064e3b;
  border: 4px solid #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 4px 4px 0px #000000;
  position: relative;
}

#dinkGameCanvas {
  display: block;
  width: 100%;
  height: 280px;
  cursor: pointer;
}

.arcade-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-dink-hit {
  background: var(--neon-lime);
  color: #000000;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  padding: 1.1rem 2.75rem;
  border-radius: var(--radius-full);
  border: 3px solid #000000;
  box-shadow: 5px 5px 0px #000000;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-dink-hit:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0px #000000;
}

/* ==========================================================================
   PICKLE SOUNDBOARD WIDGET
   ========================================================================== */
.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.soundboard-btn {
  background: #1e293b;
  border: 3px solid #000000;
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0px #000000;
  padding: 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--trans-bouncy);
}

.soundboard-btn:hover {
  background: var(--neon-lime);
  color: #000000;
  transform: translateY(-4px) rotate(-2deg);
  box-shadow: 6px 6px 0px #000000;
}

.soundboard-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

/* ==========================================================================
   CRACK A PICKLE JOKE & TRIVIA GENERATOR
   ========================================================================== */
.pickle-joke-box {
  background: #131b2e;
  border: 3px solid #000000;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 6px 6px 0px var(--neon-yellow), 6px 6px 0px 3px #000000;
  text-align: center;
  max-width: 600px;
  margin: 3rem auto 0;
}

.pickle-joke-box h4 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--neon-yellow);
}

.joke-display {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #ffffff;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

/* ==========================================================================
   PICKLEBALL ARCHETYPES SELECTOR
   ========================================================================== */
.archetypes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.archetype-card-btn {
  background: #131b2e;
  border: 3px solid #000000;
  border-radius: var(--radius-lg);
  box-shadow: 5px 5px 0px #000000;
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--trans-bouncy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.archetype-card-btn:hover, .archetype-card-btn.active {
  border-color: #000000;
  background: var(--neon-lime);
  color: #000000;
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 8px 8px 0px #000000;
}

.archetype-card-btn:hover p, .archetype-card-btn.active p {
  color: #000000;
}

.archetype-icon {
  font-size: 2.6rem;
}

.archetype-result-box {
  margin-top: 2.5rem;
  background: var(--neon-cyan);
  color: #000000;
  border: 4px solid #000000;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  text-align: center;
  box-shadow: 8px 8px 0px #000000;
  display: none;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   SECTION 1: THE 60-SECOND CRASH COURSE
   ========================================================================== */
.crash-course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.crash-card {
  background: #131b2e;
  border: 3px solid #000000;
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0px #000000;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: all var(--trans-bouncy);
  position: relative;
  overflow: hidden;
}

.crash-card:hover {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 8px 8px 0px var(--neon-lime), 8px 8px 0px 3px #000000;
}

.crash-card-number {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 4rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.crash-card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--neon-lime);
  color: #000000;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0px #000000;
}

.crash-card h3 {
  font-size: 1.45rem;
}

.crash-card p {
  font-size: 0.98rem;
  line-height: 1.6;
}

.highlight-box {
  background: #090d16;
  border: 2px solid #000000;
  border-left: 5px solid var(--neon-lime);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 2px 2px 0px #000000;
}

/* ==========================================================================
   SECTION 2: INTERACTIVE COURT & KITCHEN EXPLORER
   ========================================================================== */
.court-interactive-wrapper {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  background: #131b2e;
  border: 4px solid #000000;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 8px 8px 0px var(--neon-cyan), 8px 8px 0px 4px #000000;
}

.court-canvas-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.court-svg-container {
  width: 100%;
  max-width: 650px;
  background: #064e3b;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 4px solid #000000;
  box-shadow: 5px 5px 0px #000000;
  position: relative;
  user-select: none;
}

.court-svg {
  width: 100%;
  height: auto;
  display: block;
}

.court-zone {
  cursor: pointer;
  transition: all var(--trans-fast);
}

.court-zone:hover, .court-zone.active {
  filter: brightness(1.35);
  stroke: #bef264 !important;
  stroke-width: 4px !important;
}

.court-line {
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.court-net {
  stroke: #f8fafc;
  stroke-width: 3.5;
  stroke-dasharray: 4 2;
}

.court-control-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.court-tab-btn {
  padding: 0.5rem 1rem;
  background: #1e293b;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  color: #ffffff;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans-bouncy);
}

.court-tab-btn:hover, .court-tab-btn.active {
  background: var(--neon-lime);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px #000000;
}

.court-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.court-detail-card {
  background: #0f172a;
  border: 3px solid #000000;
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0px #000000;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-header h3 {
  font-size: 1.5rem;
  color: var(--neon-lime);
}

.dimension-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  background: #1e293b;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 700;
}

.detail-desc {
  font-size: 0.96rem;
  line-height: 1.6;
}

.pro-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #18233c;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px var(--neon-lime);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: #ffffff;
}

.pro-tip .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.kitchen-tester {
  background: #0f172a;
  border: 3px solid #000000;
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0px #000000;
  padding: 1.75rem;
}

.kitchen-tester h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-cyan);
}

.kitchen-tester p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.scenario-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.scenario-btn {
  text-align: left;
  background: #1e293b;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scenario-btn:hover {
  background: var(--neon-lime);
  color: #000000;
  transform: translateX(4px);
  box-shadow: 4px 4px 0px #000000;
}

.scenario-result {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 3px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  font-size: 0.95rem;
  font-family: var(--font-display);
  font-weight: 700;
  display: none;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scenario-result.legal {
  background: var(--neon-lime);
  color: #000000;
  display: block;
}

.scenario-result.fault {
  background: var(--neon-coral);
  color: #ffffff;
  display: block;
}

/* ==========================================================================
   SECTION 3: THE 5 GOLDEN RULES
   ========================================================================== */
.golden-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.rule-card {
  background: #131b2e;
  border: 3px solid #000000;
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0px #000000;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: all var(--trans-bouncy);
}

.rule-card:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 8px 8px 0px var(--neon-yellow), 8px 8px 0px 3px #000000;
}

.rule-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rule-badge-num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--neon-lime);
  border: 3px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  flex-shrink: 0;
}

.rule-top h3 {
  font-size: 1.35rem;
}

.rule-card p {
  font-size: 0.96rem;
  line-height: 1.6;
}

.rule-visual-helper {
  background: #090d16;
  border: 2px dashed #334155;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.rule-visual-helper strong {
  color: var(--neon-lime);
}

/* ==========================================================================
   SECTION 4: INTERACTIVE SCORING & ROTATION TRAINER
   ========================================================================== */
.scoring-trainer-wrapper {
  background: #131b2e;
  border: 4px solid #000000;
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: 8px 8px 0px var(--neon-yellow), 8px 8px 0px 4px #000000;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.scoring-explanation {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.score-display-box {
  background: #020617;
  border: 3px solid #000000;
  box-shadow: 5px 5px 0px #000000;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
}

.score-digits {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 900;
  color: var(--neon-lime);
  letter-spacing: 0.1em;
  text-shadow: 3px 3px 0px #000000;
}

.score-breakdown {
  display: flex;
  justify-content: space-around;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 2px dashed #1e293b;
  font-size: 0.82rem;
  font-family: var(--font-display);
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 800;
}

.score-breakdown span {
  color: #ffffff;
}

.scoring-interactive-board {
  background: #0f172a;
  border: 3px solid #000000;
  border-radius: var(--radius-lg);
  box-shadow: 5px 5px 0px #000000;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.teams-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.team-card {
  background: #1e293b;
  border: 2px solid #000000;
  border-radius: var(--radius-md);
  box-shadow: 3px 3px 0px #000000;
  padding: 1.1rem;
  position: relative;
  transition: all var(--trans-base);
}

.team-card.serving {
  border-color: #000000;
  background: var(--neon-lime);
  color: #000000;
  box-shadow: 4px 4px 0px #000000;
}

.team-card.serving .players-court-pos {
  color: #000000;
}

.team-card.serving .players-court-pos .active-server {
  color: #000000;
  font-weight: 900;
  background: rgba(0,0,0,0.1);
  padding: 1px 4px;
  border-radius: 4px;
}

.team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.team-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.serving-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: #000000;
  color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 900;
  display: none;
}

.team-card.serving .serving-badge {
  display: inline-block;
}

.players-court-pos {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sim-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.btn-rally-win {
  background: var(--neon-lime);
  color: #000000;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 800;
  cursor: pointer;
  transition: all var(--trans-fast);
  font-size: 0.92rem;
}

.btn-rally-win:hover {
  background: #d9f99d;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #000000;
}

.btn-rally-loss {
  background: var(--neon-coral);
  color: #ffffff;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 800;
  cursor: pointer;
  transition: all var(--trans-fast);
  font-size: 0.92rem;
}

.btn-rally-loss:hover {
  background: #ff708f;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #000000;
}

.sim-log {
  background: #020617;
  border: 2px solid #000000;
  border-radius: var(--radius-md);
  box-shadow: 2px 2px 0px #000000;
  padding: 0.95rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  min-height: 52px;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   SECTION 5: ESSENTIAL SHOTS & TECHNIQUES
   ========================================================================== */
.skills-tabs-container {
  background: #131b2e;
  border: 4px solid #000000;
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: 8px 8px 0px var(--neon-lime), 8px 8px 0px 4px #000000;
}

.skills-nav {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 1.25rem;
  border-bottom: 2px dashed #334155;
  margin-bottom: 2.25rem;
}

.skill-tab-btn {
  padding: 0.75rem 1.45rem;
  background: #1e293b;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  color: #ffffff;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--trans-bouncy);
}

.skill-tab-btn:hover, .skill-tab-btn.active {
  background: var(--neon-lime);
  color: #000000;
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 5px 5px 0px #000000;
}

.skill-content-panel {
  display: none;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-content-panel.active {
  display: grid;
}

.skill-info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.skill-info h3 {
  font-size: 2rem;
  color: #ffffff;
}

.skill-info p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.drill-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 0.5rem;
}

.drill-step {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  font-size: 0.95rem;
}

.drill-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--neon-lime);
  color: #000000;
  border: 2px solid #000000;
  font-size: 0.85rem;
  font-weight: 900;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.skill-visual-card {
  background: #0f172a;
  border: 3px solid #000000;
  box-shadow: 5px 5px 0px #000000;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.skill-animation-box {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--neon-lime);
  border: 4px solid #000000;
  box-shadow: 5px 5px 0px #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  animation: wobbleBall 3s infinite;
}

/* ==========================================================================
   SECTION 6: FIRST-DAY ETIQUETTE & SURVIVAL
   ========================================================================== */
.etiquette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.etiquette-card {
  background: #131b2e;
  border: 3px solid #000000;
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0px #000000;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  transition: all var(--trans-bouncy);
}

.etiquette-card:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 8px 8px 0px var(--neon-cyan), 8px 8px 0px 3px #000000;
}

.etiquette-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--neon-cyan);
  color: #000000;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0px #000000;
}

.etiquette-card h3 {
  font-size: 1.3rem;
}

.etiquette-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.safety-banner {
  margin-top: 3rem;
  background: var(--neon-coral);
  color: #ffffff;
  border: 4px solid #000000;
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  box-shadow: 8px 8px 0px #000000;
  transform: rotate(-0.5deg);
}

.safety-icon {
  font-size: 3.2rem;
  color: #ffffff;
  flex-shrink: 0;
}

.safety-text h4 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
  text-shadow: 2px 2px 0px #000000;
}

.safety-text p {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 7: INTERACTIVE READY-TO-PLAY QUIZ
   ========================================================================== */
.quiz-wrapper {
  background: #131b2e;
  border: 4px solid #000000;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 8px 8px 0px var(--neon-lime), 8px 8px 0px 4px #000000;
  position: relative;
}

.quiz-progress-bar {
  width: 100%;
  height: 12px;
  background: #0f172a;
  border: 2px solid #000000;
  border-radius: var(--radius-full);
  margin-bottom: 2.25rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 20%;
  background: var(--neon-lime);
  transition: width var(--trans-bouncy);
}

.quiz-question-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.question-counter {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--neon-lime);
}

.question-text {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.35;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.quiz-option-btn {
  background: #1e293b;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  text-align: left;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans-fast);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quiz-option-btn:hover {
  background: #334155;
  transform: translateX(5px);
  box-shadow: 5px 5px 0px #000000;
}

.quiz-option-btn.selected-correct {
  background: var(--neon-lime) !important;
  color: #000000 !important;
}

.quiz-option-btn.selected-wrong {
  background: var(--neon-coral) !important;
  color: #ffffff !important;
}

.option-letter {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #090d16;
  color: #ffffff;
  border: 2px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  flex-shrink: 0;
}

.quiz-explanation {
  background: #0f172a;
  border: 3px solid #000000;
  border-left: 6px solid var(--neon-cyan);
  box-shadow: 3px 3px 0px #000000;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  display: none;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-next-btn {
  align-self: flex-end;
  display: none;
}

.quiz-result-view {
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cert-card {
  background: #1e293b;
  border: 4px solid #000000;
  border-radius: var(--radius-xl);
  padding: 3rem 2.25rem;
  width: 100%;
  max-width: 540px;
  box-shadow: 8px 8px 0px var(--neon-lime), 8px 8px 0px 4px #000000;
  position: relative;
}

.cert-badge-seal {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--neon-lime);
  border: 4px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin: 0 auto 1.25rem;
}

.cert-card h3 {
  font-size: 1.85rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.cert-score {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--neon-lime);
  margin: 1rem 0;
  text-shadow: 3px 3px 0px #000000;
}

/* Confetti Canvas */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   SECTION 8: GEAR & BALL GUIDE
   ========================================================================== */
.gear-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.gear-card {
  background: #131b2e;
  border: 3px solid #000000;
  border-radius: var(--radius-xl);
  box-shadow: 6px 6px 0px #000000;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gear-card h3 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ball-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.ball-comparison-table th, .ball-comparison-table td {
  padding: 0.85rem;
  text-align: left;
  border-bottom: 2px solid #1e293b;
}

.ball-comparison-table th {
  color: var(--neon-lime);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION 9: SEARCHABLE GLOSSARY & JARGON BUSTER
   ========================================================================== */
.glossary-controls {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.glossary-search {
  width: 100%;
  padding: 1rem 1.35rem 1rem 3rem;
  background: #131b2e;
  border: 3px solid #000000;
  border-radius: var(--radius-full);
  box-shadow: 4px 4px 0px #000000;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  outline: none;
  transition: all var(--trans-fast);
}

.glossary-search:focus {
  border-color: var(--neon-lime);
  box-shadow: 6px 6px 0px var(--neon-lime);
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
}

.glossary-card {
  background: #131b2e;
  border: 3px solid #000000;
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0px #000000;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--trans-bouncy);
}

.glossary-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 6px 6px 0px var(--neon-coral);
}

.glossary-card h4 {
  font-size: 1.15rem;
  color: var(--neon-lime);
}

.glossary-card p {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================================
   COURTSIDE CHEAT SHEET MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-dialog {
  background: #131b2e;
  border: 4px solid #000000;
  border-radius: var(--radius-xl);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.75rem;
  position: relative;
  box-shadow: 10px 10px 0px var(--neon-lime), 10px 10px 0px 4px #000000;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #1e293b;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-family: var(--font-display);
}

.modal-close-btn:hover {
  background: var(--neon-coral);
  transform: scale(1.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #020617;
  border-top: 4px solid #000000;
  padding: 4.5rem 0 2.5rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.95rem;
  margin-top: 0.75rem;
  max-width: 340px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--neon-lime);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--neon-lime);
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px dashed #1e293b;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE, TABLET & IPHONE FIXES)
   ========================================================================== */

/* Utility text toggles */
.desktop-only-txt { display: inline; }
.mobile-only-txt { display: none; }

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 2px solid #000000;
  border-radius: var(--radius-md);
  background: #0f172a;
  margin-top: 0.5rem;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }

  .court-interactive-wrapper {
    grid-template-columns: 1fr;
  }

  .scoring-trainer-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .gear-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
  }

  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #0f172a;
    border-bottom: 3px solid #000000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.8);
    padding: 1.5rem;
    z-index: 1001;
    gap: 1rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Containers & Spacing */
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .crash-course-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .golden-rules-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .skill-content-panel {
    grid-template-columns: 1fr;
  }

  .court-interactive-wrapper,
  .skills-tabs-container,
  .quiz-wrapper,
  .arcade-game-wrapper {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }

  /* Sticky Quick Bar */
  .quick-bar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .quick-bar-chips {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .quick-bar-chips::-webkit-scrollbar {
    display: none;
  }

  .chip-btn {
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  /* Scoring Simulator iPhone / Mobile Fixes */
  .scoring-trainer-wrapper {
    padding: 1.25rem 0.9rem;
    border-radius: var(--radius-lg);
    box-shadow: 5px 5px 0px var(--neon-yellow), 5px 5px 0px 3px #000000;
    gap: 1.5rem;
  }

  .score-display-box {
    padding: 1.25rem 0.75rem;
  }

  .score-digits {
    font-size: 2.75rem;
    letter-spacing: 0.05em;
  }

  .score-breakdown {
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
  }

  .scoring-interactive-board {
    padding: 1.15rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .teams-status-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }

  .team-card {
    padding: 0.85rem;
  }

  .team-name {
    font-size: 0.95rem;
  }

  .sim-actions {
    grid-template-columns: 1fr !important;
    gap: 0.65rem;
  }

  .btn-rally-win, .btn-rally-loss {
    padding: 0.85rem 0.75rem;
    font-size: 0.88rem;
    text-align: center;
    white-space: normal;
  }

  .sim-log {
    font-size: 0.82rem;
    padding: 0.75rem;
  }

  /* Gear / Equipment Section Fixes */
  .gear-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }

  .ball-comparison-table {
    font-size: 0.82rem;
    min-width: 290px;
  }

  .ball-comparison-table th, .ball-comparison-table td {
    padding: 0.6rem 0.5rem;
  }

  /* Safety Banner */
  .safety-banner {
    transform: none !important;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  /* Modal */
  .modal-dialog {
    padding: 1.75rem 1.15rem;
    border-radius: var(--radius-lg);
  }

  /* Mascot */
  .mascot-bubble-widget {
    bottom: 16px;
    right: 16px;
  }

  .mascot-avatar-btn {
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }
}

@media (max-width: 640px) {
  /* Toggle mobile/desktop button text */
  .desktop-only-txt { display: none; }
  .mobile-only-txt { display: inline; }

  /* XP Tracker Bar */
  .xp-tracker-content {
    gap: 0.5rem;
  }

  .xp-level-badge span {
    display: none;
  }

  .xp-level-badge strong {
    font-size: 0.8rem;
  }

  .xp-progress-track {
    max-width: 90px;
    height: 8px;
  }

  .xp-points {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  /* Navbar */
  .navbar .container {
    height: 62px;
    padding: 0 0.75rem;
  }

  .logo {
    font-size: 1.15rem;
    gap: 0.45rem;
  }

  .logo-ball {
    width: 32px;
    height: 32px;
  }

  .logo .sticker {
    display: none !important;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .btn-audio-toggle {
    width: 36px;
    height: 36px;
  }

  .btn-audio-toggle svg {
    width: 17px;
    height: 17px;
  }

  .btn-open-cheatsheet.btn-sm {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
  }

  .mobile-menu-btn {
    padding: 0.25rem 0.5rem;
    font-size: 1.2rem;
  }

  /* Hero Actions */
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 0.75rem;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  /* Skills & Tabs */
  .skills-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .skills-nav::-webkit-scrollbar {
    display: none;
  }

  .skill-tab-btn {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
  }

  /* Archetypes & Soundboard */
  .soundboard-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

  .soundboard-btn {
    padding: 0.85rem 0.4rem;
    font-size: 0.82rem;
  }
}

