/* ==========================================================================
   KNOW YOUR INTELLECTUAL AGE — "Pro Max" Premium Stylesheet
   Design system: dark-glass aesthetic, 4 developmental-stage themes,
   fluid typography, refined motion & micro-interactions.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Sora:wght@600;700;800&display=swap');

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --font-family: 'Outfit', system-ui, sans-serif;
  --font-display: 'Sora', 'Outfit', system-ui, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.16s;
  --dur-med: 0.35s;
  --dur-slow: 0.7s;

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  /* Elevation */
  --shadow-soft: 0 8px 24px rgba(2, 6, 23, 0.22);
  --shadow-float: 0 18px 45px rgba(2, 6, 23, 0.35);
  --shadow-pop: 0 24px 60px rgba(2, 6, 23, 0.45);

  /* Desktop Wrapper & Blurred Backdrop */
  --desktop-bg: #070b14;

  /* Toddler Theme (Ages 2-4) — warm coral sunrise */
  --toddler-bg-start: #ff5f7e;
  --toddler-bg-end: #ff8ba7;
  --toddler-accent: #ff2a5f;
  --toddler-text: #ffffff;
  --toddler-panel: rgba(15, 23, 42, 0.5);
  --toddler-border: rgba(255, 255, 255, 0.28);

  /* Child Theme (Ages 5-8) — clear ocean blue */
  --child-bg-start: #00b4ff;
  --child-bg-end: #0059ff;
  --child-accent: #00e0fe;
  --child-text: #ffffff;
  --child-panel: rgba(11, 20, 40, 0.5);
  --child-border: rgba(255, 255, 255, 0.28);

  /* Teen Theme (Ages 9-15) — neon synthwave */
  --teen-bg-start: #7b2ff7;
  --teen-bg-end: #ef3e63;
  --teen-accent: #ff8a3d;
  --teen-text: #ffffff;
  --teen-panel: rgba(15, 12, 36, 0.55);
  --teen-border: rgba(255, 255, 255, 0.26);

  /* Genius Theme (Ages 16+) — holographic emerald lab */
  --genius-bg-start: #0d9d8c;
  --genius-bg-end: #2fe07a;
  --genius-accent: #00f2fe;
  --genius-text: #ffffff;
  --genius-panel: rgba(6, 21, 26, 0.58);
  --genius-border: rgba(255, 255, 255, 0.3);

  /* State Colors */
  --color-correct: #10b981;
  --color-incorrect: #ef4444;
  --color-correct-bg: rgba(16, 185, 129, 0.18);
  --color-incorrect-bg: rgba(239, 68, 68, 0.22);
  --color-gold: #fbbf24;

  /* Default active pointers */
  --theme-bg-start: var(--child-bg-start);
  --theme-bg-end: var(--child-bg-end);
  --theme-accent: var(--child-accent);
  --theme-text: var(--child-text);
  --theme-panel: var(--child-panel);
  --theme-border: var(--child-border);
}

.theme-toddler {
  --theme-bg-start: var(--toddler-bg-start);
  --theme-bg-end: var(--toddler-bg-end);
  --theme-accent: var(--toddler-accent);
  --theme-text: var(--toddler-text);
  --theme-panel: var(--toddler-panel);
  --theme-border: var(--toddler-border);
}

.theme-child {
  --theme-bg-start: var(--child-bg-start);
  --theme-bg-end: var(--child-bg-end);
  --theme-accent: var(--child-accent);
  --theme-text: var(--child-text);
  --theme-panel: var(--child-panel);
  --theme-border: var(--child-border);
}

.theme-teen {
  --theme-bg-start: var(--teen-bg-start);
  --theme-bg-end: var(--teen-bg-end);
  --theme-accent: var(--teen-accent);
  --theme-text: var(--teen-text);
  --theme-panel: var(--teen-panel);
  --theme-border: var(--teen-border);
}

.theme-genius {
  --theme-bg-start: var(--genius-bg-start);
  --theme-bg-end: var(--genius-bg-end);
  --theme-accent: var(--genius-accent);
  --theme-text: var(--genius-text);
  --theme-panel: var(--genius-panel);
  --theme-border: var(--genius-border);
}

/* --------------------------------------------------------------------------
   2. BASE RESETS
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button {
  font-family: inherit;
}

body {
  font-family: var(--font-family);
  background-color: var(--desktop-bg);
  color: #fff;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Focus visibility for keyboard players */
button:focus-visible,
input:focus-visible {
  outline: 2.5px solid var(--color-gold);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. AMBIENT BACKGROUND LAYERS
   -------------------------------------------------------------------------- */
.desktop-ambient-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 25%, var(--theme-bg-start) 0%, transparent 55%),
    radial-gradient(circle at 82% 75%, var(--theme-bg-end) 0%, transparent 60%),
    linear-gradient(160deg, var(--theme-bg-start) 0%, var(--theme-bg-end) 100%);
  filter: blur(90px) saturate(1.15);
  opacity: 0.72;
  transition: background 1.2s ease-in-out;
  animation: ambientDrift 22s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, 2%); }
}

.bokeh-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.bokeh-bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: floatBokeh 10s ease-in-out infinite alternate;
}

.bubble-1 {
  width: 250px; height: 250px;
  background: var(--theme-accent);
  top: 8%; left: -5%;
  animation-duration: 12s;
}

.bubble-2 {
  width: 320px; height: 320px;
  background: #f43f5e;
  bottom: 8%; right: -8%;
  animation-duration: 16s;
  animation-delay: -2s;
}

.bubble-3 {
  width: 200px; height: 200px;
  background: #3b82f6;
  top: 65%; left: 10%;
  animation-duration: 14s;
  animation-delay: -4s;
}

.bubble-4 {
  width: 270px; height: 270px;
  background: #a855f7;
  top: -8%; right: 15%;
  animation-duration: 18s;
  animation-delay: -6s;
}

@keyframes floatBokeh {
  0%   { transform: translateY(0) scale(1) rotate(0deg); }
  100% { transform: translateY(-40px) scale(1.18) rotate(360deg); }
}

/* --------------------------------------------------------------------------
   4. APP VIEWPORT & SCREENS
   -------------------------------------------------------------------------- */
.app-viewport-wrapper {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#app-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  scrollbar-width: none;
  position: relative;
  z-index: 15;
}

.screen::-webkit-scrollbar {
  display: none;
}

.hidden {
  display: none !important;
}

.screen-content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* --------------------------------------------------------------------------
   5. GLASS PANELS
   -------------------------------------------------------------------------- */
.glass-panel {
  position: relative;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 45%), var(--theme-panel);
  border: 1px solid var(--theme-border);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow:
    var(--shadow-float),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 1.2s ease, border-color 1.2s ease, box-shadow var(--dur-med) var(--ease-smooth);
}

/* --------------------------------------------------------------------------
   6. TOP NAVIGATION
   -------------------------------------------------------------------------- */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  z-index: 10;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 1.1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-med) ease, box-shadow var(--dur-med) ease;
}

.theme-teen .btn-icon,
.theme-genius .btn-icon {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-icon:active {
  transform: scale(0.92);
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   7. HUD PANEL & PROGRESS
   -------------------------------------------------------------------------- */
.hud-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-badge {
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  letter-spacing: 0.01em;
  transition: transform var(--dur-fast) var(--ease-spring);
}

/* Score pop micro-interaction (added via JS) */
.stat-pop {
  animation: statPop 0.45s var(--ease-spring);
}

@keyframes statPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.28); background: var(--color-gold); color: #1e293b; }
  100% { transform: scale(1); }
}

.streak-badge {
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.45);
  animation: pulse 1.5s infinite;
}

/* Avatar Section */
.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.avatar-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  padding: 7px;
  background: conic-gradient(from 210deg, var(--theme-accent), rgba(255, 255, 255, 0.9), var(--theme-accent));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.3),
    0 0 40px color-mix(in srgb, var(--theme-accent) 35%, transparent);
  margin-bottom: 0.65rem;
  transition: width var(--dur-med) ease, height var(--dur-med) ease, box-shadow var(--dur-slow) ease;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 4px solid #fff;
}

.idle-breathe {
  animation: breathe 3s ease-in-out infinite;
}

.jump-happy {
  animation: jump 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.shrink-shiver {
  animation: shiver 0.6s ease-in-out forwards;
}

.avatar-label-tag {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 23, 42, 0.62);
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Growth progress bar */
.growth-progress-container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.progress-bar-fill {
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, var(--theme-accent), #fff 160%);
  border-radius: 999px;
  width: 0%;
  transition: width 0.6s var(--ease-out);
  overflow: hidden;
}

/* Shimmer sweep across the fill */
.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 2.4s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

.progress-subtext {
  font-size: 0.75rem;
  font-weight: 800;
  text-align: right;
  color: #fff;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   8. SPLASH SCREEN
   -------------------------------------------------------------------------- */
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  gap: 0.85rem;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.splash-buttons-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.logo-circle {
  width: 140px;
  height: 140px;
  background: #000;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.7),
    0 0 32px color-mix(in srgb, var(--theme-accent) 45%, transparent);
  animation: float 4s ease-in-out infinite;
  overflow: hidden;
}

.splash-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.splash-title span {
  display: block;
  font-size: 1.8rem;
  background: linear-gradient(to right, #ffe066 0%, #fbbf24 45%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  margin-top: 0.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.45));
}

.splash-desc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #fff;
  opacity: 0.95;
  max-width: 320px;
}

/* --------------------------------------------------------------------------
   9. INPUTS & PRESETS
   -------------------------------------------------------------------------- */
.start-age-input-field {
  width: 80px;
  text-align: center;
  font-size: 1.35rem;
  font-family: var(--font-family);
  font-weight: 600 !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  color: var(--color-gold) !important;
  -webkit-text-fill-color: var(--color-gold) !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border-radius: 14px;
  outline: none;
  padding: 0.45rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: border-color var(--dur-med), background var(--dur-med), box-shadow var(--dur-med), transform var(--dur-fast);
}

.start-age-input-field::placeholder {
  color: rgba(251, 191, 36, 0.6) !important;
  -webkit-text-fill-color: rgba(251, 191, 36, 0.6) !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

.start-age-input-field:focus {
  border-color: var(--color-gold) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
  transform: scale(1.03);
}

.btn-preset {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 2px solid rgba(255, 255, 255, 0.15) !important;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-preset:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-preset.active:not([class*="btn-preset-"]) {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  text-shadow: none;
}

.btn-preset-toddler {
  background: rgba(245, 158, 11, 0.35) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
}
.btn-preset-toddler:hover, .btn-preset-toddler.active {
  background: #f59e0b !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.6) !important;
}

.btn-preset-kids {
  background: rgba(244, 63, 94, 0.35) !important;
  border-color: rgba(244, 63, 94, 0.45) !important;
}
.btn-preset-kids:hover, .btn-preset-kids.active {
  background: #f43f5e !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.6) !important;
}

.btn-preset-teens {
  background: rgba(168, 85, 247, 0.35) !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
}
.btn-preset-teens:hover, .btn-preset-teens.active {
  background: #a855f7 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.6) !important;
}

.btn-preset-adult {
  background: rgba(16, 185, 129, 0.35) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}
.btn-preset-adult:hover, .btn-preset-adult.active {
  background: #10b981 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.6) !important;
}

.start-age-response-text {
  font-size: 0.85rem;
  text-align: center;
  min-height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff !important;
  background: rgba(15, 23, 42, 0.45);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 100%;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  animation: borderGlow 2.5s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  from { border-color: rgba(255, 255, 255, 0.2); }
  to   { border-color: var(--theme-accent); }
}

/* --------------------------------------------------------------------------
   10. CATEGORY SCREENS
   -------------------------------------------------------------------------- */
.screen-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.screen-subtitle {
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.25rem;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.btn-category {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-lg) !important;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all var(--dur-med) var(--ease-out);
  width: 100%;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* sheen sweep on hover */
.btn-category::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease-out);
  pointer-events: none;
}

.btn-category:hover::before {
  transform: translateX(120%);
}

.btn-category:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-pop);
}

.btn-category .category-icon {
  font-size: 1.55rem;
  transition: transform var(--dur-med) var(--ease-spring);
}

.btn-category:hover .category-icon {
  transform: scale(1.25) rotate(-6deg);
}

/* --------------------------------------------------------------------------
   11. QUIZ SCREEN
   -------------------------------------------------------------------------- */
.quiz-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0.5rem;
  gap: 1.05rem;
}

/* Question meta chips (counter + topic) */
.quiz-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quiz-chip {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.quiz-chip.topic {
  background: color-mix(in srgb, var(--theme-accent) 30%, rgba(15, 23, 42, 0.5));
  border-color: color-mix(in srgb, var(--theme-accent) 55%, transparent);
}

.question-container {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.question-swap-in {
  animation: questionIn 0.45s var(--ease-out) both;
}

@keyframes questionIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-option {
  position: relative;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform var(--dur-fast) var(--ease-out),
    box-shadow 0.25s ease;
  overflow: hidden;
}

.btn-option:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.26);
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-option:hover:not(:disabled) .option-marker {
  background: var(--theme-accent);
  transform: scale(1.12);
}

.btn-option:disabled {
  cursor: default;
}

.option-marker {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  transition: background var(--dur-med) ease, transform var(--dur-med) var(--ease-spring);
}

.btn-option.correct {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.55) !important;
  animation: correctPulse 0.6s var(--ease-spring);
}

@keyframes correctPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.035); }
  100% { transform: scale(1); }
}

.btn-option.correct .option-marker {
  background-color: rgba(255, 255, 255, 0.3);
}

.btn-option.incorrect {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  animation: wrongNudge 0.45s ease;
}

@keyframes wrongNudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

.btn-option.incorrect .option-marker {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Dim the remaining wrong options once answered */
.btn-option.faded {
  opacity: 0.45;
  filter: saturate(0.6);
}

/* Explanation Box */
.explanation-panel {
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-md);
  font-size: 0.87rem;
  line-height: 1.5;
  margin-top: 0.35rem;
  animation: slideUp 0.35s var(--ease-out);
}

.explanation-panel.correct-explanation {
  background: var(--color-correct-bg);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.explanation-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
}

/* Streak Combo Badge */
.combo-indicator {
  align-self: center;
  background: linear-gradient(135deg, #f97316 0%, #eab308 100%);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
  margin-bottom: 0.45rem;
  text-align: center;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

/* Floating +1 score particle */
.float-plus {
  position: absolute;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--color-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 150;
  animation: floatPlus 0.9s var(--ease-out) forwards;
}

@keyframes floatPlus {
  0%   { opacity: 0; transform: translateY(6px) scale(0.7); }
  25%  { opacity: 1; transform: translateY(-6px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-34px) scale(1); }
}

/* --------------------------------------------------------------------------
   12. BIRTHDAY / LEVEL-UP SCREEN
   -------------------------------------------------------------------------- */
.birthday-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  gap: 1.25rem;
  max-width: 500px;
  margin: 0 auto;
}

.birthday-banner {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1.25;
  animation: scalePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-shadow: 0 4px 20px rgba(251, 191, 36, 0.35);
}

.birthday-horn {
  font-size: 4rem;
  animation: shake 1s ease infinite;
}

.birthday-text {
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.95;
  max-width: 340px;
}

/* --------------------------------------------------------------------------
   13. GAME OVER / RESULTS SCREEN
   -------------------------------------------------------------------------- */
.summary-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  gap: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.trophy-badge {
  font-size: 4.25rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 22px rgba(251, 191, 36, 0.35));
}

.score-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-gold);
  text-shadow: 0 2px 12px rgba(251, 191, 36, 0.3);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.15rem;
}

/* The intellectual-age verdict panel */
.verdict-panel {
  width: 100%;
  border-color: color-mix(in srgb, var(--color-gold) 45%, transparent) !important;
  background:
    linear-gradient(150deg, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0.03) 60%),
    var(--theme-panel) !important;
  animation: verdictGlow 3s ease-in-out infinite alternate;
}

@keyframes verdictGlow {
  from { box-shadow: 0 0 18px rgba(251, 191, 36, 0.12), var(--shadow-float); }
  to   { box-shadow: 0 0 42px rgba(251, 191, 36, 0.35), var(--shadow-float); }
}

.verdict-text {
  font-size: 0.9rem;
  line-height: 1.55;
  margin-top: 0.65rem;
  opacity: 0.95;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   14. TROPHY SHOWCASE
   -------------------------------------------------------------------------- */
.small-trophy {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem !important;
  text-align: center;
  border-radius: var(--radius-md) !important;
  transition: transform var(--dur-med) var(--ease-spring), box-shadow var(--dur-med) ease, filter var(--dur-med) ease;
}

.small-trophy:hover {
  transform: translateY(-4px) scale(1.03);
}

.small-trophy h4 {
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 0.35rem;
  line-height: 1.2;
}

.small-trophy .trophy-status {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.8;
  margin-top: 0.15rem;
  text-transform: uppercase;
}

.trophy-item.locked {
  filter: grayscale(1) opacity(0.45);
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.trophy-item:not(.locked) {
  filter: none !important;
  border-color: #facc15 !important;
  background: rgba(250, 204, 21, 0.15) !important;
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.25) !important;
}

.trophy-item:not(.locked) .trophy-status {
  color: #eab308;
}

#giant-trophy-card:not(.locked) {
  animation: goldGlow 2.5s ease-in-out infinite alternate;
  border-color: #facc15 !important;
  background: rgba(250, 204, 21, 0.15) !important;
}

@keyframes goldGlow {
  from { box-shadow: 0 0 15px rgba(250, 204, 21, 0.2), inset 0 0 10px rgba(250, 204, 21, 0.1); }
  to   { box-shadow: 0 0 35px rgba(250, 204, 21, 0.75), inset 0 0 20px rgba(250, 204, 21, 0.4); }
}

.small-trophy::after {
  content: attr(data-desc);
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: rgba(15, 23, 42, 0.96);
  border: 1.5px solid var(--theme-border);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  width: 160px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  line-height: 1.35;
}

.small-trophy:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.trophies-container {
  max-width: 540px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   15. MODALS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 12, 24, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  animation: fadeInModal 0.25s ease-out forwards;
}

.modal-content {
  width: 100%;
  max-width: 340px;
  background: var(--theme-panel);
  border: 1.5px solid var(--theme-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  text-align: center;
  box-shadow: var(--shadow-pop);
  animation: scalePopModal 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-incorrect);
  margin-bottom: 0.45rem;
}

.modal-body p {
  font-size: 0.85rem;
  line-height: 1.45;
  opacity: 0.9;
  margin-bottom: 0.3rem;
}

.modal-actions {
  display: flex;
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   16. ACHIEVEMENT TOAST
   -------------------------------------------------------------------------- */
.achievement-toast {
  position: absolute;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.95) 0%, rgba(245, 158, 11, 0.95) 100%);
  color: #1c1917;
  box-shadow: 0 14px 40px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  animation: toastIn 0.5s var(--ease-spring) forwards, toastOut 0.4s ease-in 3.4s forwards;
  pointer-events: none;
  max-width: min(92%, 420px);
}

.achievement-toast .toast-emoji {
  font-size: 1.6rem;
}

.achievement-toast .toast-copy {
  text-align: left;
}

.achievement-toast .toast-kicker {
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

.achievement-toast .toast-title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-24px) scale(0.85); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(0.92); }
}

/* --------------------------------------------------------------------------
   17. BUTTONS & INTERACTION FEEDBACK
   -------------------------------------------------------------------------- */
.touch-scale {
  transition: transform var(--dur-fast) var(--ease-out);
}

.touch-scale:active {
  transform: scale(0.96) !important;
}

.haptic-click {
  transform: scale(0.92) !important;
}

.btn-primary {
  position: relative;
  width: 100%;
  background: var(--theme-accent);
  color: #fff;
  border: none;
  padding: 1.05rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) ease, filter var(--dur-med) ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.3) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}

.btn-primary:hover::before {
  transform: translateX(130%);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-declared-gradient {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-declared-gradient:hover {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%) !important;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn-classic-gradient {
  background: linear-gradient(135deg, #f43f5e 0%, #a855f7 100%) !important;
  box-shadow: 0 8px 22px rgba(168, 85, 247, 0.25) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-classic-gradient:hover {
  background: linear-gradient(135deg, #ff758c 0%, #c084fc 100%) !important;
  box-shadow: 0 10px 26px rgba(168, 85, 247, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn-showcase-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%) !important;
  border: 2px solid rgba(251, 191, 36, 0.6) !important;
  color: #ffffff !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.35) !important;
}

.btn-showcase-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Screen Shake regression */
.shake-anim {
  animation: screenShake 0.45s ease-in-out;
}

@keyframes screenShake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  10%, 30%, 50%, 70%, 90% { transform: translate(-4px, 2px) rotate(-0.6deg); }
  20%, 40%, 60%, 80% { transform: translate(4px, -2px) rotate(0.6deg); }
}

/* --------------------------------------------------------------------------
   18. CONFETTI & SHARED KEYFRAMES
   -------------------------------------------------------------------------- */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  border-radius: 2px;
  animation: fall 3s linear forwards;
}

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

@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(360deg); opacity: 0.2; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03) translateY(-1px); }
}

@keyframes jump {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-16px) scaleY(1.05) scaleX(0.95); }
  50% { transform: translateY(-22px) rotate(10deg); }
  75% { transform: translateY(2px) scaleY(0.96) scaleX(1.04); }
}

@keyframes shiver {
  0%, 100% { transform: scale(1) rotate(0); }
  15%, 45%, 75% { transform: scale(0.93) rotate(-3deg); }
  30%, 60%, 90% { transform: scale(0.93) rotate(3deg); }
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes scalePop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.fade-in {
  animation: fadeIn 0.4s var(--ease-out) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scalePopModal {
  0%   { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.scale-pop-animation {
  animation: scalePopCombo 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scalePopCombo {
  0%   { transform: scale(0.6) rotate(-6deg); opacity: 0; }
  70%  { transform: scale(1.2) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* --------------------------------------------------------------------------
   19. RESPONSIVE LAYOUTS
   -------------------------------------------------------------------------- */

/* A. Mobile & Portrait tablet (<= 768px) */
@media (max-width: 768px) {
  .screen {
    padding: 1.15rem 1.15rem;
  }

  .screen-content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .quiz-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
  }

  .categories-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.25rem 0;
  }

  .small-trophies-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }

  .trophies-container {
    max-width: 100%;
  }

  .avatar-wrapper {
    width: 170px !important;
    height: 170px !important;
  }
}

/* B. Desktop & landscape tablet (> 768px) */
@media (min-width: 769px) {
  .app-viewport-wrapper {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .screen-content-wrapper {
    max-width: 1000px;
    margin: auto;
    padding: 1.5rem 0;
  }

  .quiz-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 2.25rem;
    align-items: center;
    flex: 1;
    overflow: hidden;
  }

  .categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 1.5rem 0;
  }

  .categories-grid .btn-category {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.5rem 1rem;
  }

  .categories-grid .btn-category .category-icon {
    font-size: 2.1rem;
  }

  /* Subcategory grid keeps horizontal cards readable */
  #subcategories-list.categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #subcategories-list .btn-category {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    padding: 1.1rem 1.5rem;
  }

  .small-trophies-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.85rem;
  }

  .small-trophy {
    padding: 0.95rem 0.55rem !important;
  }

  .trophies-container {
    max-width: 680px;
  }

  .quiz-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }

  .hud-panel {
    justify-content: center;
    padding: 2.5rem 2rem;
  }

  .avatar-wrapper {
    width: 260px !important;
    height: 260px !important;
    margin-bottom: 1.25rem;
  }

  .quiz-card {
    padding: 2rem;
  }

  .splash-buttons-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    width: 100%;
    margin-top: 0.5rem;
  }

  .splash-content {
    max-width: 800px;
    gap: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   20. TOOLTIPS & MISC
   -------------------------------------------------------------------------- */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: rgba(15, 23, 42, 0.96);
  border: 1.5px solid var(--theme-border);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1000;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.btn-lang-toggle {
  font-weight: 800 !important;
  color: var(--color-gold) !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
}

.btn-lang-toggle:hover {
  background: rgba(251, 191, 36, 0.2) !important;
  border-color: var(--color-gold) !important;
}

/* Multiplayer player header cards */
.mp-player-card.show-stats .mini-avatar {
  opacity: 0 !important;
}

.mp-player-card.show-stats .mini-stats {
  opacity: 1 !important;
}

.mp-player-card {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Next Challenge button */
#btn-next-question {
  font-family: var(--font-family) !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: 0.95rem 1.75rem !important;
  border-radius: var(--radius-md) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  background: var(--theme-accent) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
  text-shadow: none !important;
}

#btn-next-question:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* --------------------------------------------------------------------------
   21. ACCESSIBILITY — REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
