:root {
  color-scheme: dark;
  --bg-dark: #07080e;
  --bg-card: rgba(18, 22, 34, 0.85);
  --border-glow: rgba(245, 158, 11, 0.35);
  --amber-gold: #f59e0b;
  --amber-light: #fbbf24;
  --cyan-neon: #06b6d4;
  --pink-neon: #ec4899;
  --purple-neon: #a855f7;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
}

html {
  scrollbar-color: var(--amber-gold) #07080e;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Accessible Focus Rings */
:focus-visible {
  outline: 2px solid var(--cyan-neon) !important;
  outline-offset: 3px !important;
  border-radius: 6px;
}

/* Background Canvas & Glow Spotlights */
#partyCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.glow-spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.spotlight-amber { top: -150px; left: -150px; background: var(--amber-gold); }
.spotlight-cyan { bottom: -200px; right: -200px; background: var(--cyan-neon); }
.spotlight-purple { top: 40%; left: 50%; transform: translate(-50%, -50%); background: var(--purple-neon); opacity: 0.15; }

/* Floating 3D Party Orbs & Objects */
.floating-orb {
  position: fixed;
  font-size: 36px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.4));
  animation: floatOrbSlow 6s ease-in-out infinite alternate;
  user-select: none;
}

.orb-dog          { top: 8%;  left: 3%;  font-size: 44px; animation: floatDog 5s ease-in-out infinite alternate; filter: drop-shadow(0 0 20px #fbbf24); }
.orb-rocket       { top: 15%; right: 4%; font-size: 42px; animation: floatRocket 7s ease-in-out infinite alternate; filter: drop-shadow(0 0 20px #06b6d4); }
.orb-bottle       { top: 28%; left: 5%;  font-size: 40px; animation: floatBottle 6s ease-in-out infinite alternate; }
.orb-whiskey      { top: 38%; right: 3%; font-size: 44px; animation: floatWhiskey 5.5s ease-in-out infinite alternate; filter: drop-shadow(0 0 20px #f59e0b); }
.orb-chess-king   { top: 50%; left: 2%;  font-size: 46px; animation: floatChess 8s ease-in-out infinite alternate; filter: drop-shadow(0 0 20px #a855f7); }
.orb-chess-knight { top: 62%; right: 4%; font-size: 42px; animation: floatChess 7s ease-in-out infinite alternate; filter: drop-shadow(0 0 20px #a855f7); }
.orb-cards        { top: 72%; left: 4%;  font-size: 40px; animation: floatCards 6s ease-in-out infinite alternate; }
.orb-spades       { top: 82%; right: 6%; font-size: 38px; animation: floatCards 6.5s ease-in-out infinite alternate; }
.orb-hearts       { top: 90%; left: 8%;  font-size: 38px; animation: floatCards 7.5s ease-in-out infinite alternate; filter: drop-shadow(0 0 15px #ec4899); }
.orb-atom         { top: 22%; left: 12%; font-size: 36px; animation: floatAtom 6s ease-in-out infinite alternate; filter: drop-shadow(0 0 18px #06b6d4); }
.orb-physics      { top: 44%; right: 8%; font-size: 38px; animation: floatAtom 7s ease-in-out infinite alternate; }
.orb-pizza        { top: 58%; right: 12%;font-size: 40px; animation: floatPizza 5s ease-in-out infinite alternate; }
.orb-plane        { top: 5%;  right: 18%;font-size: 42px; animation: floatPlane 8s ease-in-out infinite alternate; filter: drop-shadow(0 0 18px #06b6d4); }
.orb-ufo          { top: 32%; right: 16%;font-size: 40px; animation: floatUfo 6.5s ease-in-out infinite alternate; filter: drop-shadow(0 0 20px #a855f7); }
.orb-cheers       { bottom: 15%; left: 14%; font-size: 40px; animation: floatBottle 5.5s ease-in-out infinite alternate; }
.orb-beer         { bottom: 5%;  right: 14%; font-size: 42px; animation: floatWhiskey 6s ease-in-out infinite alternate; }
.orb-cocktail     { top: 78%; right: 15%;font-size: 38px; animation: floatBottle 7s ease-in-out infinite alternate; }
.orb-flask        { bottom: 8%; left: 22%; font-size: 36px; animation: floatAtom 8s ease-in-out infinite alternate; }

@keyframes floatDog { 0% { transform: translateY(0) rotate(-10deg); } 50% { transform: translateY(-30px) rotate(15deg); } 100% { transform: translateY(10px) rotate(-5deg); } }
@keyframes floatRocket { 0% { transform: translateY(0) rotate(45deg); } 100% { transform: translateY(-40px) translateX(20px) rotate(55deg); } }
@keyframes floatBottle { 0% { transform: translateY(0); } 100% { transform: translateY(-25px) rotate(-15deg); } }
@keyframes floatWhiskey { 0% { transform: translateY(0); } 100% { transform: translateY(-35px) scale(1.1); } }
@keyframes floatChess { 0% { transform: translateY(0); } 100% { transform: translateY(-30px) rotate(180deg); } }
@keyframes floatCards { 0% { transform: translateY(0) rotate(-5deg); } 100% { transform: translateY(-20px) rotate(20deg); } }
@keyframes floatAtom { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-25px) scale(1.2) rotate(360deg); } }
@keyframes floatPizza { 0% { transform: translateY(0); } 100% { transform: translateY(-30px) rotate(-25deg); } }
@keyframes floatPlane { 0% { transform: translateX(0) translateY(0); } 100% { transform: translateX(-30px) translateY(-30px) rotate(5deg); } }
@keyframes floatUfo { 0% { transform: translateY(0); } 100% { transform: translateY(-25px) scale(1.15); } }

/* App Layout Wrapper */
.app-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

/* Header Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 16px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-bottle-wrapper {
  position: relative;
  width: 46px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand:hover .brand-bottle-wrapper {
  transform: scale(1.12) rotate(-8deg);
}

.brand-bottle-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.5));
}

.brand-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
}

.word-pit {
  font-family: 'Outfit', sans-serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.word-domain {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #000;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-gold));
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
  line-height: 1;
}

.brand-status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: liveStatusPulse 1.5s infinite;
  margin-left: 2px;
}

@keyframes liveStatusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.brand-tagline {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 5px;
}

/* Live Audio Spectrum Visualizer */
.audio-spectrum {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
  padding: 0 10px;
}

.audio-spectrum .bar {
  width: 4px;
  background: linear-gradient(to top, var(--amber-gold), var(--cyan-neon));
  border-radius: 2px;
  animation: equalizer 1s ease-in-out infinite alternate;
}

.bar-1 { height: 60%; animation-delay: 0.1s; }
.bar-2 { height: 100%; animation-delay: 0.3s; }
.bar-3 { height: 40%; animation-delay: 0.2s; }
.bar-4 { height: 80%; animation-delay: 0.4s; }
.bar-5 { height: 50%; animation-delay: 0.15s; }

@keyframes equalizer {
  0% { height: 20%; }
  100% { height: 100%; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.location-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--amber-gold);
  color: var(--amber-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.sound-btn {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--cyan-neon);
  color: var(--cyan-neon);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sound-btn:hover {
  background: var(--cyan-neon);
  color: #000;
  box-shadow: 0 0 15px var(--cyan-neon);
}

/* Hero Section & Countdown Card */
.hero-section {
  display: flex;
  justify-content: center;
}

.countdown-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--amber-gold);
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.3), inset 0 0 30px rgba(245, 158, 11, 0.15);
  border-radius: 28px;
  padding: 40px 30px;
  text-align: center;
  width: 100%;
  max-width: 850px;
  position: relative;
  overflow: hidden;
}

.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--amber-gold);
  color: var(--amber-light);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  background-color: var(--amber-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--amber-gold);
  animation: beaconPulse 1s infinite alternate;
}

@keyframes beaconPulse {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

.hero-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 8px;
  background: linear-gradient(to right, #ffffff, var(--amber-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
  text-wrap: balance;
}

.time-highlight {
  color: var(--amber-light);
}

/* Digital Timer Grid */
.timer-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.timer-unit {
  background: rgba(9, 10, 15, 0.85);
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 16px 20px;
  min-width: 100px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.timer-unit:hover {
  transform: translateY(-3px);
  border-color: var(--amber-light);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.timer-val {
  font-family: 'Fira Code', monospace;
  font-size: 48px;
  font-weight: 700;
  color: var(--amber-light);
  text-shadow: 0 0 15px var(--amber-gold);
  line-height: 1;
}

.timer-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 6px;
}

.timer-colon {
  font-size: 36px;
  font-weight: 900;
  color: var(--amber-gold);
  animation: blinkColon 1s infinite;
}

@keyframes blinkColon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-gold), #d97706);
  color: #000;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cyan-neon);
  color: var(--cyan-neon);
}

.btn-outline:hover {
  background: var(--cyan-neon);
  color: #000;
  box-shadow: 0 0 25px var(--cyan-neon);
  transform: translateY(-3px) scale(1.03);
}

/* Global Hidden Helper */
.hidden {
  display: none !important;
}

/* Native HTML5 Dialog Modal Styling */
dialog.activity-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  background: transparent;
  padding: 20px;
  max-width: 480px;
  width: 90%;
  z-index: 9999;
}

dialog.activity-modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  background: #0f172a;
  border: 2px solid var(--amber-gold);
  box-shadow: 0 0 50px var(--amber-gold);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  width: 100%;
}

.modal-icon {
  font-size: 70px;
  margin-bottom: 12px;
}

.modal-content h2 {
  font-size: 24px;
  color: var(--amber-light);
  margin-bottom: 10px;
  font-weight: 800;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Activities Cards Grid Section */
.activities-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.section-header h2 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-wrap: balance;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 4px;
  text-wrap: balance;
}

.activity-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--amber-gold);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}

.hud-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-neon), transparent);
  animation: hudScan 3s linear infinite;
}

@keyframes hudScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.card-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--cyan-neon);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-icon {
  font-size: 42px;
  transition: transform 0.3s ease;
  user-select: none;
}

.card:hover .card-icon {
  transform: scale(1.15) rotate(6deg);
}

.card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.card-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--amber-light);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

/* ==================== 50/50 WHISKEY-COLA MIXER ==================== */
.mixer-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--amber-gold);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.25);
  border-radius: 24px;
  padding: 30px;
}

.mixer-layout {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.glass-container {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin: 0 auto;
}

.glass-rim {
  width: 120px;
  height: 8px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.glass-body {
  width: 110px;
  height: 180px;
  background: rgba(255, 255, 255, 0.04);
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top: none;
  border-radius: 0 0 16px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.glass-base {
  width: 130px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  margin-top: -2px;
}

.drink-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 85%;
  background: linear-gradient(to top, #2b1104 0%, #b45309 60%, #f59e0b 100%);
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.liquid-foam {
  width: 100%;
  height: 6px;
  background: rgba(254, 243, 199, 0.8);
  filter: blur(1px);
}

.ice-cube {
  position: absolute;
  font-size: 22px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
  animation: iceFloat 3s ease-in-out infinite alternate;
}

.ice-1 { top: 20px; left: 15px; }
.ice-2 { top: 60px; right: 18px; animation-delay: 1.5s; }

@keyframes iceFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px) rotate(15deg); }
}

.mixer-controls {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mixer-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.mixer-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

.mixer-percent {
  font-family: 'Fira Code', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--amber-gold);
  padding: 4px 14px;
  border-radius: 12px;
}

.slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mixer-slider {
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, #3f1d0b 0%, #b45309 50%, #fbbf24 100%);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  accent-color: var(--amber-gold);
}

.mixer-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--amber-gold);
  box-shadow: 0 0 15px var(--amber-gold);
  cursor: grab;
  transition: transform 0.1s ease;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.tick-perfect {
  color: var(--amber-light);
  font-weight: 900;
}

.mixer-verdict-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 16px 20px;
  border-radius: 16px;
}

.verdict-icon {
  font-size: 36px;
}

.verdict-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--amber-light);
  margin-bottom: 2px;
}

.verdict-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==================== WHITE PAPER STUDIO ==================== */
.interactive-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.chalkboard-wrapper {
  background: #111622;
  border: 2px solid #334155;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.chalkboard-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pen-palette {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pen-color-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pen-color-btn.active {
  border-color: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.pen-sizes {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pen-size-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.pen-size-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.chalk-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.chalk-btn:hover {
  background: var(--amber-gold);
  color: #000;
  font-weight: 700;
}

.chalk-btn-clear {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #f87171;
  margin-left: auto;
}

.chalk-btn-clear:hover {
  background: #ef4444;
  color: #fff;
}

#napkinCanvas {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  width: 100%;
  height: 320px;
  cursor: crosshair;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05), 0 10px 25px rgba(0, 0, 0, 0.3);
  touch-action: none;
}

/* ==================== SPORCLE SECTION ==================== */
.sporcle-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid var(--cyan-neon);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.25);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sporcle-bar {
  background: #0f172a;
  border-bottom: 1px solid var(--cyan-neon);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.sporcle-title {
  font-weight: 800;
  color: var(--cyan-neon);
  font-size: 14px;
  letter-spacing: 1px;
}

.sporcle-link-btn {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--cyan-neon);
  color: var(--cyan-neon);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sporcle-link-btn:hover {
  background: var(--cyan-neon);
  color: #000;
  box-shadow: 0 0 15px var(--cyan-neon);
}

.sporcle-crop-container {
  width: 100%;
  min-height: 480px;
  overflow: hidden;
  position: relative;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sporcle-facade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  gap: 16px;
  width: 100%;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.15) 0%, rgba(7, 8, 14, 0.95) 70%);
}

.facade-icon {
  font-size: 64px;
  filter: drop-shadow(0 0 20px var(--cyan-neon));
  animation: pulseFacade 2s infinite alternate;
}

@keyframes pulseFacade {
  0% { transform: scale(0.95); }
  100% { transform: scale(1.08); }
}

.sporcle-facade h3 {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  text-wrap: balance;
}

.sporcle-facade p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 500px;
  text-wrap: balance;
  margin-bottom: 8px;
}

.sporcle-iframe-crop {
  width: 100%;
  height: 1050px;
  border: none;
  margin-top: -245px;
}

/* ==================== QUIZ CARDS ==================== */
.geo-quiz-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--cyan-neon);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.physics-quiz-card {
  border-color: var(--amber-gold);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.quiz-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-badge-category {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--amber-gold);
  color: var(--amber-light);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.badge-physics {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
}

.quiz-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.quiz-score-item strong {
  color: var(--cyan-neon);
  font-family: 'Fira Code', monospace;
  font-size: 15px;
}

.quiz-question {
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan-neon);
  text-wrap: balance;
}

.physics-quiz-card .quiz-question {
  color: var(--amber-light);
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.quiz-opt-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
}

.quiz-opt-btn:hover:not(:disabled) {
  background: var(--cyan-neon);
  color: #000;
  border-color: var(--cyan-neon);
}

.physics-quiz-card .quiz-opt-btn:hover:not(:disabled) {
  background: var(--amber-gold);
  color: #000;
  border-color: var(--amber-gold);
}

.quiz-opt-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.quiz-result {
  font-size: 16px;
  font-weight: 800;
  padding: 16px 20px;
  border-radius: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-result.correct {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid #22c55e;
}

.quiz-result.wrong {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid #ef4444;
}

.quiz-fact {
  margin-top: 4px;
  font-size: 14px;
  color: #e2e8f0;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  border-radius: 10px;
  border-left: 3px solid var(--cyan-neon);
}

.physics-quiz-card .quiz-fact {
  border-left-color: var(--amber-gold);
}

/* ==================== FOOTER ==================== */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.footer-brand span {
  color: var(--amber-light);
  font-weight: 800;
}

/* Falling Emojis / Particles */
.toast-particle {
  position: fixed;
  top: -50px;
  font-size: 32px;
  pointer-events: none;
  z-index: 99;
  animation: fallParticle linear forwards;
}

@keyframes fallParticle {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  .timer-val { font-size: 32px; }
  .timer-unit { min-width: 70px; padding: 12px; }
  .hero-title { font-size: 26px; }
  .hero-subtitle { font-size: 15px; }
  .navbar { padding: 12px 16px; }
  .location-badge { display: none; }
  .audio-spectrum { display: none; }
  .floating-orb { display: none; }
  .activity-cards-grid { grid-template-columns: 1fr; }
  .mixer-layout { flex-direction: column; }
  .chalkboard-toolbar { justify-content: center; }
  .chalk-btn-clear { margin-left: 0; }
}
