/* ═══════════════════════════════════════════════════════════════
   BALWADI - New Design System (replaces sidebar layout)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700;800;900&family=Baloo+2:wght@500;600;700;800&family=Quicksand:wght@500;600;700;800&family=Nunito:wght@400;600;700;800;900&family=Noto+Sans+Devanagari:wght@500;700;900&display=swap');

/* ── CSS Variables ── */
:root {
  --topbar-h: 70px;
  --bottomnav-h: 80px;
  --font-display: 'Fredoka', 'Baloo 2', cursive, sans-serif;
  --font-body: 'Quicksand', 'Nunito', 'Baloo 2', sans-serif;

  /* Playful Primary Colors */
  --c-videos: #FF5A5F; /* Cherry Red */
  --c-videos-shadow: #C0392B;
  
  --c-songs: #FF007F; /* Hot Pink */
  --c-songs-shadow: #B30059;
  
  --c-books: #00A8E8; /* Bright Blue */
  --c-books-shadow: #007EA7;
  
  --c-games: #FFB703; /* Sunny Yellow */
  --c-games-shadow: #FB8500;
  
  --c-draw: #06D6A0; /* Lime Green */
  --c-draw-shadow: #04A77B;
  
  --c-quiz: #8338EC; /* Grape Purple */
  --c-quiz-shadow: #5E23AA;

  /* UI Base Colors */
  --bg-page: #F5F7FF;
  --topbar-bg: #FFFFFF;
  --bottomnav-bg: #FFFFFF;
  --color-white: #FFFFFF;
  
  /* Chunky UI dimensions */
  --radius-card: 40px; /* Extremely round */
  --radius-pill: 100px;

  /* Shared shell foundation for home + hub + info pages */
  --shell-bg: #F5F7FF;
  --shell-surface: #FFFFFF;
  --shell-surface-alt: #F8FAFC;
  --shell-border: #D9E2EC;
  --shell-border-strong: #B8C7D9;
  --shell-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shell-radius: 18px;
  --shell-gap: 12px;
  --shell-padding: 14px;
  --page-max-width: 1380px;

  /* ══════════════════════════════════════════════════════════════
     GLOBAL GRADIENT DESIGN SYSTEM (16 THEMED COLORWAYS)
     ══════════════════════════════════════════════════════════════ */
  /* Family 1: Festivals & Celebrations */
  --grad-ganesh: linear-gradient(135deg, #F59E0B 0%, #EA580C 50%, #C2410C 100%);
  --grad-diwali: linear-gradient(135deg, #FF6B35 0%, #F7C52D 50%, #E85D04 100%);
  --grad-holi: linear-gradient(90deg, #FF3366 0%, #FF9933 30%, #33CC99 70%, #3399FF 100%);
  --grad-christmas: linear-gradient(135deg, #C0392B 0%, #E74C3C 40%, #27AE60 100%);
  --grad-navratri: linear-gradient(135deg, #FF007F 0%, #FFB703 50%, #8338EC 100%);

  /* Family 2: Nature & Earthly Adventures */
  --grad-ocean: linear-gradient(135deg, #0984E3 0%, #00CEC9 50%, #6C5CE7 100%);
  --grad-jungle: linear-gradient(135deg, #00B894 0%, #55EFC4 50%, #059669 100%);
  --grad-sunset: linear-gradient(135deg, #FD79A8 0%, #FAB1A0 40%, #FFEAA7 100%);
  --grad-aurora: linear-gradient(135deg, #00CEC9 0%, #6C5CE7 60%, #81ECEC 100%);

  /* Family 3: Fun, Snacks & Candy Pops */
  --grad-bubblegum: linear-gradient(135deg, #FF7675 0%, #FD79A8 100%);
  --grad-citrus: linear-gradient(135deg, #FF9F43 0%, #FECA57 100%);
  --grad-berry: linear-gradient(135deg, #4834D4 0%, #686DE0 50%, #22A6B3 100%);
  --grad-mint: linear-gradient(135deg, #10AC84 0%, #1DD1A1 100%);

  /* Family 4: Magic, Space & Cosmic Wonder */
  --grad-galaxy: linear-gradient(135deg, #2C3E50 0%, #341F97 50%, #5F27CD 100%);
  --grad-starlight: linear-gradient(135deg, #8338EC 0%, #3A86FF 100%);
  --grad-unicorn: linear-gradient(135deg, #FD79A8 0%, #A29BFE 50%, #74B9FF 100%);
  --grad-neon: linear-gradient(135deg, #FF007F 0%, #7928CA 100%);
}

/* ══════════════════════════════════════════════════════════════
   HIGH-DEPTH 3D GRADIENT CARDS & SHIMMER POP EFFECTS
   ══════════════════════════════════════════════════════════════ */
.banner-pop-gradient {
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.2) !important;
}

.banner-pop-gradient::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 60% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent) !important;
  transform: skewX(-25deg) !important;
  animation: bannerShimmerSweep 5s infinite ease-in-out !important;
  pointer-events: none !important;
}

@keyframes bannerShimmerSweep {
  0% { left: -100%; }
  25%, 100% { left: 200%; }
}

.grad-ganesh { background: var(--grad-ganesh) !important; }
.grad-diwali { background: var(--grad-diwali) !important; }
.grad-holi { background: var(--grad-holi) !important; }
.grad-christmas { background: var(--grad-christmas) !important; }
.grad-navratri { background: var(--grad-navratri) !important; }
.grad-ocean { background: var(--grad-ocean) !important; }
.grad-jungle { background: var(--grad-jungle) !important; }
.grad-sunset { background: var(--grad-sunset) !important; }
.grad-aurora { background: var(--grad-aurora) !important; }
.grad-bubblegum { background: var(--grad-bubblegum) !important; }
.grad-citrus { background: var(--grad-citrus) !important; }
.grad-berry { background: var(--grad-berry) !important; }
.grad-mint { background: var(--grad-mint) !important; }
.grad-galaxy { background: var(--grad-galaxy) !important; }
.grad-starlight { background: var(--grad-starlight) !important; }
.grad-unicorn { background: var(--grad-unicorn) !important; }
.grad-neon { background: var(--grad-neon) !important; }

/* ── Background Floating & Canvas Layers ── */
#confetti-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 999 !important;
}

#balloon-drift-area,
.floating-bg-icons {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 0 !important;
  overflow: hidden !important;
}

/* ═══════════════════════════
   BRIGHT SUNNY BACKGROUND
═══════════════════════════ */
/* Default subtle polka dot background pattern applied globally */
body::before, .sunny-bg {
  content: '';
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -10;
  pointer-events: none;
  /* Subtle polka dot pattern for toy feel */
  background-image: radial-gradient(#FDCB6E 15%, transparent 16%), radial-gradient(#FDCB6E 15%, transparent 16%);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  opacity: 0.3;
}
/* If index.html has both body::before and .sunny-bg, hide .sunny-bg to avoid double rendering */
.sunny-bg {
  display: none;
}

/* ═══════════════════════════
   TOP BAR (Chunky White Pill)
═══════════════════════════ */
.topbar {
  position: fixed;
  top: 15px; left: 20px; right: 20px;
  height: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  border: none;
  box-shadow: none;
  padding: 0;
  pointer-events: none; /* Let clicks pass through empty space */
}

.topbar-lang {
  pointer-events: auto; /* Enable clicks on actual elements */
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  border: 4px solid #DFE6E9;
  box-shadow: 0 6px 0 #DFE6E9, 0 10px 15px rgba(0,0,0,0.08);
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.topbar-lang:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Hide mobile-specific badges, redundant plain-text auth button, duplicate search bars, and sidebar categories on desktop */
.header-badge,
#mobile-auth-btn,
#auth-action-btn,
.vp-search-wrap,
.sidebar-search-input,
#media-search,
.sidebar-categories-list,
#sidebar-categories {
  display: none !important;
}

.topbar-profile {
  pointer-events: auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  height: auto !important;
  padding: 0 !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible !important;
  margin-top: 5px !important;
  width: 100% !important;
}

/* Enable 3D Lanyard loop clip & punched slot design */
.topbar-profile::before {
  content: "" !important;
  position: absolute !important;
  top: -12px !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 28px !important;
  height: 12px !important;
  max-height: 12px !important;
  align-self: center !important;
  background: #FF7675 !important; /* Pastel Red clip */
  border: 4px solid #2D3436 !important;
  border-bottom: none !important;
  border-radius: 8px 8px 0 0 !important;
  z-index: 10 !important;
  display: block !important;
}

.topbar-profile::after {
  content: "" !important;
  position: absolute !important;
  top: 6px !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 16px !important;
  height: 6px !important;
  max-height: 6px !important;
  align-self: center !important;
  background: #2D3436 !important; /* Slot hole in keycard */
  border-radius: 3px !important;
  z-index: 10 !important;
  display: block !important;
}

.topbar-profile:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 8px 0 #2D3436, 0 12px 20px rgba(0,0,0,0.08) !important;
}

.topbar-profile:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #2D3436 !important;
}

.profile-pill-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.profile-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #2D3436;
  background: #FFEAA7; /* default soft yellow */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 3px 0 #2D3436;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.topbar-profile:hover .profile-avatar {
  transform: scale(1.08) rotate(5deg);
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.profile-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: #2D3436;
  line-height: 1.2;
}

.profile-badge {
  display: inline-block !important; /* Keep visible in both states */
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  color: #2D3436 !important;
  background: #00D2D3 !important; /* Beautiful active teal */
  border: 2px solid #2D3436 !important;
  border-radius: 12px !important;
  padding: 4px 10px !important;
  box-shadow: 0 3px 0 #2D3436 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-left: 12px !important;
}

/* Badge variants depending on content (Using !important to override inline template styles) */
.profile-badge.guest {
  background: #FF7675 !important; /* Soft Coral Red guest badge */
  color: #FFFFFF !important;
  border-color: #2D3436 !important;
  box-shadow: 0 3px 0 #2D3436 !important;
}

.topbar-logo {
  pointer-events: auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  gap: 8px; /* Slightly tighter gap */
  white-space: nowrap;
  padding: 0;
  margin: 0;
  overflow: visible !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.topbar-logo:hover {
  transform: scale(1.02);
}

.topbar-logo .logo-img {
  height: 60px; /* Mascot height increased */
  width: auto;
  border-radius: 0 !important;
  object-fit: contain;
  margin-right: 8px; /* Added spacing between mascot and name */
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
  animation: gentle-bounce 3s ease-in-out infinite alternate;
  padding-top: 15px; /* Safety padding to prevent browser crop on bounce! */
  box-sizing: content-box;
}

@keyframes gentle-bounce {
  0% { transform: translateY(0) rotate(0); }
  100% { transform: translateY(-5px) rotate(2deg); }
}

.topbar-logo .logo-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  align-items: flex-start;
  z-index: 1;
  margin-right: 12px; /* Margin before language trigger button */
}

/* Capsule 3D Trigger styles inside Logo row */
.topbar-logo .topbar-lang {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  height: auto;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-logo .topbar-lang-trigger {
  height: 38px;
  width: auto;
  border-radius: 18px !important;
  padding: 0 10px;
  background: #FFFFFF;
  border: 3px solid #2D3436;
  box-shadow: 0 4px 0 #2D3436;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  outline: none;
}

.topbar-logo .topbar-lang-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2D3436;
}

.topbar-logo .topbar-lang-trigger:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2D3436;
}

/* Right Controls Wrapper inside logo container (Mobile-focused) */
.topbar-right-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto; /* Pushes to the right in flex headers */
  pointer-events: auto; /* Enable clicks */
}

/* Mobile Auth Button (Default hidden on desktop) */
.mobile-auth-btn {
  display: none;
}

/* Mobile Sound Button (Default hidden on desktop) */
.mobile-sound-btn {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-sound-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    border-radius: 50% !important;
    background: #FFFFFF;
    border: 2px solid #2D3436;
    box-shadow: 0 2px 0 #2D3436;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  
  .mobile-sound-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #2D3436;
  }
  
  .mobile-sound-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #2D3436;
  }

  .mobile-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 10px;
    border-radius: 12px;
    background: #FF7675; /* Coral red theme matching guest badge */
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    border: 2px solid #2D3436;
    box-shadow: 0 2px 0 #2D3436;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }
  
  .mobile-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #2D3436;
  }
  
  .mobile-auth-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #2D3436;
  }
  
  /* Logged-in styling variant */
  .mobile-auth-btn.logged-in {
    background: #2ECC71; /* Bright premium emerald green for logged-in user */
    color: #FFFFFF;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
  }
}

.logo-word {
  display: flex;
  white-space: nowrap;
}

.logo-letter {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.5vw, 32px); /* Larger, matches Anya Sharma mockup */
  letter-spacing: 0.5px;
  text-shadow: 
    0 1px 0 var(--shadow, #B2BEC3),
    0 2px 0 var(--shadow, #B2BEC3),
    0 3px 0 var(--shadow, #B2BEC3),
    0 4px 0 var(--shadow, #B2BEC3),
    0 5px 0 var(--shadow, #B2BEC3),
    0 8px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: float-letter 2s ease-in-out infinite alternate;
  animation-delay: calc(var(--let-index, 0) * 0.15s);
}

@keyframes float-letter {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.logo-letter:hover {
  transform: translateY(-6px) scale(1.18) rotate(4deg) !important;
  cursor: default;
}

/* Language Switcher */
.topbar-lang {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-pill {
  font-family: var(--font-display);
  border: none;
  background: transparent;
  color: #636E72;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lang-pill.active {
  background: #00A8E8;
  color: #FFFFFF;
  box-shadow: 0 4px 0 #007EA7;
  transform: translateY(-2px);
}

/* Profile / Guest Explorer */
.topbar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.profile-pill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 4px solid #DFE6E9;
  box-shadow: 0 6px 0 #DFE6E9, 0 10px 15px rgba(0,0,0,0.08);
  border-radius: var(--radius-pill);
  padding: 0 16px 0 6px;
  height: 58px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #2D3436;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
  min-width: 0;
}

.profile-pill-btn span:not(.badge-mini) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}

.profile-pill-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #DFE6E9;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFB703;
  border: 3px solid #FB8500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Sound toggle */
.sound-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}
.sound-btn:hover { background: #e9ecef; transform: scale(1.1); }

/* ═══════════════════════════
   QUICK-JUMP CORNER LAUNCHER (FAB & POPUP MENU)
═══════════════════════════ */
.quick-jump-container {
  position: fixed !important;
  bottom: 20px !important;
  left: 24px !important;
  z-index: 1000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.quick-jump-fab {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe) !important;
  border: 3px solid #2D3436 !important;
  box-shadow: 0 4px 0 #2D3436, 0 8px 16px rgba(108, 92, 231, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  cursor: pointer !important;
  outline: none !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease !important;
  user-select: none !important;
}

.quick-jump-fab:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 6px 0 #2D3436, 0 12px 20px rgba(108, 92, 231, 0.4) !important;
}

.quick-jump-fab:active {
  transform: translateY(1px) scale(0.96) !important;
  box-shadow: 0 2px 0 #2D3436 !important;
}

.quick-jump-fab.open {
  background: linear-gradient(135deg, #FF7675, #fab1a0) !important;
  transform: rotate(90deg) !important;
}

.quick-jump-menu {
  position: absolute !important;
  bottom: 66px !important;
  left: 0 !important;
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  border-radius: 20px !important;
  box-shadow: 0 6px 0 #2D3436, 0 16px 32px rgba(0,0,0,0.18) !important;
  padding: 12px !important;
  display: grid !important;
  grid-template-columns: repeat(4, 76px) !important;
  gap: 8px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(12px) scale(0.92) !important;
  transform-origin: bottom left !important;
  transition: opacity 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-sizing: border-box !important;
}

.quick-jump-container.active .quick-jump-menu {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.qjump-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 4px !important;
  background: #F8F9FA !important;
  border: 2px solid #2D3436 !important;
  border-radius: 14px !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.qjump-item:hover {
  transform: translateY(-2px) !important;
  background: #FFF3CD !important;
}

.qjump-item.active {
  background: #FFEAA7 !important;
  border-color: #E17055 !important;
}

.qjump-icon {
  font-size: 24px !important;
  line-height: 1 !important;
  margin-bottom: 3px !important;
}

.qjump-label {
  font-family: var(--font-display) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #2D3436 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Hide legacy bottom-nav pill on all pages */
.bottom-nav,
div[style*="--bottomnav-h"] {
  display: none !important;
}

/* ═══════════════════════════
   PAGE WRAPPER
═══════════════════════════ */
.page-content {
  padding-top: var(--topbar-h);
  padding-bottom: var(--bottomnav-h);
  min-height: 100vh;
}

/* ═══════════════════════════
   HOME PAGE - THREE-COLUMN console LAYOUT
═══════════════════════════ */
.home-layout,
.two-col-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
}

body[data-page="home"] .home-layout {
  grid-template-columns: 220px 1fr;
}

.layout-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Widescreen Sidebar Elements Adjustments to prevent horizontal overflow in 200px column */
@media (min-width: 1025px) {
  body[data-page="home"] {
    overflow-x: hidden;
  }
  
  /* Horizontally align Logo mascot and logo name on Row 1, wrap controls to Row 2 */
  .layout-sidebar .topbar-logo {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important; /* Wrap to second row */
    align-items: center !important;
    justify-content: center !important; /* Center branding row */
    gap: 12px !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
    box-sizing: border-box !important;
  }
  
  .layout-sidebar .topbar-logo .logo-img {
    margin-right: 0 !important;
    padding-top: 5px !important;
    height: 75px !important; /* Mascot size made nice and big! */
    flex: 0 0 auto !important;
  }

  .layout-sidebar .topbar-logo .logo-name {
    margin-right: 0 !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  
  /* Scale logo letters to be nice and big */
  .layout-sidebar .topbar-logo .logo-letter {
    font-size: 30px !important; /* Made logo name big! */
    text-shadow: 
      0 1px 0 var(--shadow, #B2BEC3),
      0 2px 0 var(--shadow, #B2BEC3),
      0 3px 0 var(--shadow, #B2BEC3),
      0 4px 10px rgba(0, 0, 0, 0.12) !important;
  }

  .layout-sidebar .topbar-logo .topbar-lang {
    margin-top: 8px !important;
    width: 100% !important; /* Force to take the second row */
    display: flex !important; gap: 8px !important;
    align-items: center !important;
    justify-content: center !important; /* Center controls inline */
    margin-left: 0 !important;
  }

  /* Compact Language trigger button style */
  .layout-sidebar .topbar-lang-trigger {
    padding: 4px 8px !important;
    border-radius: 12px !important;
    height: 28px !important;
    min-height: 0 !important;
    background: #F1F2F6 !important;
    border: 2.5px solid #2D3436 !important;
    box-shadow: 0 3px 0 #2D3436 !important;
  }

  /* Controls layout adjustments: stack them vertically */
  /* Controls layout adjustments: stack them vertically */
  .layout-sidebar .home-controls-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: -4px !important; /* Pulls profile card closer to age selector */
  }

  .layout-sidebar .home-controls-row .topbar-profile {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* Premium Explorer-style Profile Card Layout - Vertical Stack passport widget */
  .layout-sidebar .profile-pill-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 10px !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #E0F7FA, #B2EBF2) !important; /* Cool minty ice blue */
    border: 4px solid #00ACC1 !important;
    box-shadow: 0 6px 0 #00ACC1, 0 8px 15px rgba(0,0,0,0.06) !important;
    color: #006064 !important;
    transition: all 0.15s ease !important;
  }

  .layout-sidebar .profile-pill-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 0 #00ACC1, 0 10px 20px rgba(0,0,0,0.08) !important;
  }

  .layout-sidebar .profile-pill-btn:active {
    transform: translateY(3px) !important;
    box-shadow: 0 3px 0 #00ACC1 !important;
  }

  .layout-sidebar .profile-pill-btn .profile-avatar {
    margin-right: 0 !important;
    font-size: 26px !important;
    background: #FFFFFF !important;
    border: 2.5px solid #00ACC1 !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.1) !important;
  }

  /* Target name by both ID and classes just in case */
  .layout-sidebar .profile-pill-btn #profile-name,
  .layout-sidebar .profile-pill-btn .profile-name {
    font-size: 13px !important;
    text-align: center !important;
    width: 100% !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800 !important;
    color: #00838F !important;
  }

  .layout-sidebar .profile-pill-btn .profile-badge.guest {
    margin-left: 0 !important;
    margin-top: 2px !important;
    padding: 6px 14px !important;
    font-size: 10.5px !important;
    display: inline-block !important;
    width: auto !important;
    box-sizing: border-box !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(135deg, #FF7675, #FF4757) !important; /* Bouncy Coral Red */
    border: 3.5px solid #2D3436 !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 0 #2D3436 !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
    animation: badgePulse 1.5s infinite alternate;
  }

  @keyframes badgePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.08) rotate(-3deg); }
  }

  /* Widescreen Active Page Pill: Bouncy 3D Play button */
  body[data-page="home"] .layout-sidebar .active-page-pill {
    background: linear-gradient(135deg, #FF6B6B, #EE5253) !important;
    border: 3.5px solid #2D3436 !important;
    box-shadow: 0 5px 0 #2D3436, 0 7px 10px rgba(0,0,0,0.08) !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    border-radius: 16px !important;
    text-shadow: 0 2px 0 rgba(0,0,0,0.15) !important;
    transition: all 0.15s ease !important;
    cursor: pointer;
  }
  
  body[data-page="home"] .layout-sidebar .active-page-pill:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 0 #2D3436, 0 10px 15px rgba(0,0,0,0.1) !important;
  }
  
  body[data-page="home"] .layout-sidebar .active-page-pill:active {
    transform: translateY(3px) !important;
    box-shadow: 0 3px 0 #2D3436 !important;
  }

  /* Spun Today Reward Badge state override */
  body[data-page="home"] .layout-sidebar .spin-wheel-card .spin-wheel-trigger-btn[style*="pointer-events: none"] {
    background: linear-gradient(135deg, #FFE066, #F5B041) !important; /* Warm Gold badge */
    border-color: #D35400 !important;
    box-shadow: 0 4px 0 #D35400 !important;
    color: #FFFFFF !important;
    opacity: 1 !important;
    filter: none !important;
    cursor: default !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
    transform: translateY(2px) !important;
  }

}


.layout-center-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.active-page-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: white;
  text-shadow: 0 2px 0 rgba(0,0,0,0.15);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2), 0 4px 6px rgba(0,0,0,0.1);
  border: 3px solid #2D3436;
}

/* Page themes colors for pill */
.active-page-pill.theme-home { background: linear-gradient(135deg, #FF9F43, #FF5252); }
.active-page-pill.theme-books { background: #00B4D8; }
.active-page-pill.theme-videos { background: #FF007F; }
.active-page-pill.theme-paint { background: #FFB703; color: #2D3436; text-shadow: none; }
.active-page-pill.theme-games { background: #00C49F; }
.active-page-pill.theme-quiz { background: #8338EC; }
.active-page-pill.theme-audio { background: #FF5E7E; }
.active-page-pill.theme-jokes { background: #FF7043; }
.active-page-pill.theme-parents { background: #78909C; }

.layout-center-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0; /* Prevents grid column stretching from child max-content */
}

/* Side-by-Side Homepage Row (Comics Left, Activities Console Right) */
.homepage-top-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  width: 100%;
  align-items: stretch; /* Stretches columns to same height! */
  margin-top: 5px;
}

.homepage-top-row .toon-corner-section {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.homepage-top-row .homepage-activities-section {
  flex: 0 0 350px;
  width: 350px;
  margin-top: 5px;
  position: relative;
  align-self: stretch !important;
  box-sizing: border-box;
}

.activities-absolute-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.homepage-activities-section .activity-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important; /* Balanced 2-columns layout matching mockup */
  grid-template-rows: repeat(4, 1fr) !important;    /* 4 equal rows */
  gap: 8px !important;
  width: 100%;
  flex: 1 !important;
  min-height: 0 !important;
  margin-bottom: 8px !important;
}

/* Make activities cards look like premium uniform candy pills matching mockup */
.homepage-activities-section .activity-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 6px 14px !important;
  border-radius: 18px !important;
  height: 52px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #FFFFFF !important;
  border: 3.5px solid #2D3436 !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s !important;
  cursor: pointer;
  text-decoration: none;
  gap: 10px !important;
}

/* Individual Color Borders & Icon Backdrops matching Mockup */
.homepage-activities-section .card-videos { border-color: #FF5A5F !important; box-shadow: 0 4px 0 #E03137 !important; }
.homepage-activities-section .card-songs  { border-color: #9B51E0 !important; box-shadow: 0 4px 0 #7E30C7 !important; }
.homepage-activities-section .card-books  { border-color: #27AE60 !important; box-shadow: 0 4px 0 #1E8449 !important; }
.homepage-activities-section .card-games  { border-color: #F39C12 !important; box-shadow: 0 4px 0 #D68910 !important; }
.homepage-activities-section .card-draw   { border-color: #00CEC9 !important; box-shadow: 0 4px 0 #00A8A3 !important; }
.homepage-activities-section .card-quiz   { border-color: #E67E22 !important; box-shadow: 0 4px 0 #CA6F1E !important; }
.homepage-activities-section .card-jokes  { border-color: #FD79A8 !important; box-shadow: 0 4px 0 #E84393 !important; }
.homepage-activities-section .card-friends{ border-color: #0984E3 !important; box-shadow: 0 4px 0 #0768B2 !important; }

/* Hover bounce effect */
.homepage-activities-section .activity-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 0 #2D3436 !important;
}

/* Click/Active press effect */
.homepage-activities-section .activity-card:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

/* Graphic Cartoon Image */
.homepage-activities-section .activity-card .activity-card-img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.12));
}

.homepage-activities-section .activity-card .activity-card-emoji {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
}

/* Clean, dark, high-contrast category label */
.homepage-activities-section .activity-card .card-title {
  font-family: 'Fredoka One', 'Nunito', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.3px !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
  flex: 1 !important;
  color: #2D3436 !important;
  text-shadow: none !important;
  box-sizing: border-box !important;
}

@media (max-width: 1200px) {
  .homepage-top-row {
    flex-direction: column !important;
    gap: 20px;
    align-items: stretch;
  }
  .homepage-activities-section {
    margin-top: 0 !important;
  }
}



body[data-page="home"] .page-content {
  padding-top: 10px !important; /* Pull layout up near the announcement bar */
}

@media (min-width: 1200px) {
  body[data-page="home"] .page-content {
    height: calc(100vh - 10px);
    overflow: hidden;
    padding-bottom: 0 !important;
    padding-top: 10px !important;
  }
}


.home-brand-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.home-brand-block .topbar-logo {
  width: 100%;
  justify-content: center; /* Center logo branding bubble content */
}

/* Controls row (Lang Switcher, Sound Toggle & Profile side-by-side) */
.home-controls-row {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.home-controls-row .topbar-lang,
.home-controls-row .topbar-profile {
  flex: 1;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  height: auto;
  pointer-events: auto;
}

.home-controls-row .topbar-lang {
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  border: 4px solid #DFE6E9;
  box-shadow: 0 6px 0 #DFE6E9, 0 10px 15px rgba(0,0,0,0.08);
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home-controls-row .sound-toggle-btn {
  display: none !important;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid #DFE6E9;
  box-shadow: 0 6px 0 #DFE6E9, 0 10px 15px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
}

.home-controls-row .sound-toggle-btn svg {
  width: 20px;
  height: 20px;
  stroke: #2D3436;
  stroke-width: 3px;
}

.home-controls-row .sound-toggle-btn .sound-icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-controls-row .profile-pill-btn {
  width: 100%;
  height: 54px;
  border-radius: var(--radius-pill);
  border: 4px solid #DFE6E9;
  box-shadow: 0 6px 0 #DFE6E9, 0 10px 15px rgba(0,0,0,0.08);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px 0 6px;
  font-size: 12px; /* Slightly smaller text for compact side-by-side fit */
  font-weight: 800;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home-controls-row .profile-avatar {
  width: 32px;
  height: 32px;
  font-size: 14px;
  border-width: 2px;
}

.home-controls-row .topbar-lang:hover,
.home-controls-row .sound-toggle-btn:hover,
.home-controls-row .profile-pill-btn:hover {
  transform: translateY(-3px) scale(1.04);
}

.home-controls-row .topbar-lang:active,
.home-controls-row .sound-toggle-btn:active,
.home-controls-row .profile-pill-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #DFE6E9;
}
.speech-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  border: 4px solid #0984E3;
  border-radius: 20px;
  padding: 12px 18px;
  width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  z-index: 20;
  margin-bottom: 25px;
  pointer-events: none;
}

.speech-bubble p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  color: #2D3436;
  line-height: 1.4;
  margin: 0;
  text-shadow: none; /* Reset shadow from parent hero text */
}

.bubble-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #0984E3;
}

.bubble-arrow::after {
  content: '';
  position: absolute;
  top: -14px;
  left: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #FFFFFF;
}

@keyframes speakPop {
  0% { transform: translateX(-50%) scale(0); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* ═══════════════════════════
   NEWSLETTER BOX (Friendly Toy Box)
═══════════════════════════ */
.newsletter-box {
  margin: 40px auto 120px auto; 
  max-width: 1200px;
  background: #FFFFFF; 
  padding: 40px; 
  border-radius: 40px; 
  text-align: center; 
  border: 6px solid #DFE6E9; 
  box-shadow: 0 15px 0 #DFE6E9, 0 25px 30px rgba(0,0,0,0.1); 
  position: relative; 
  overflow: hidden;
}

/* ═══════════════════════════
   HOME PAGE - MASCOT SIDE (Tall Sky Bubble)
═══════════════════════════ */
/* ═══════════════════════════════════════════════
   SPIN & WIN SIDEBAR WIDGET
   ═══════════════════════════════════════════════ */
.spin-wheel-card {
  width: 100%;
  box-sizing: border-box;
}

.spin-wheel-card .spin-wheel-trigger-btn {
  width: 100%;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  justify-content: center !important;
  border-radius: 18px !important;
  border: 3.5px solid #2D3436 !important;
  box-shadow: 0 5px 0 #2D3436 !important;
  background: linear-gradient(135deg, #FF7675, #D63031) !important;
  color: #FFFFFF !important;
  text-shadow: 0 2px 0 rgba(0,0,0,0.15) !important;
  transition: all 0.15s ease !important;
}

.spin-wheel-card .spin-wheel-trigger-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 0 #2D3436 !important;
}

.spin-wheel-card .spin-wheel-trigger-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 3px 0 #2D3436 !important;
}

/* ═══════════════════════════════════════════════
   DAILY SPARK BOARD (3-Column Center Grid)
   ═══════════════════════════════════════════════ */
.daily-spark-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 25px;
  box-sizing: border-box;
}

.daily-spark-badges-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
  justify-content: space-between;
  box-sizing: border-box;
}

.spark-badge-btn {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  height: 40px;
  border-radius: 14px;
  border: 3px solid #2D3436;
  font-family: 'Fredoka One', 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 11.5px;
  cursor: pointer;
  box-shadow: 0 4px 0 #2D3436;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s;
  outline: none;
  position: relative;
  min-width: 0;
  box-sizing: border-box;
}

.spark-badge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2D3436;
}

.spark-badge-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #2D3436;
}

/* Option 3 Gradients & Color themes for badges */
.spark-badge-btn.badge-quiz {
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
  color: #FFFFFF;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.spark-badge-btn.badge-fact {
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  color: #2D3436;
}

.spark-badge-btn.badge-thought {
  background: linear-gradient(135deg, #ff7675, #ee5253);
  color: #FFFFFF;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.spark-badge-btn .badge-icon {
  font-size: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spark-badge-btn .badge-label {
  font-family: 'Fredoka One', 'Nunito', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-size: 11px;
  white-space: nowrap;
  line-height: 1;
}

/* Compact Parents Corner Link Widget */
.parents-corner-widget {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.parents-link-compact {
  font-family: var(--font-display, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 11px;
  color: #636E72;
  text-decoration: none;
  background: #F8F9FA;
  border: 2px solid #DFE6E9;
  border-radius: 12px;
  padding: 6px 12px;
  transition: all 0.15s ease;
  text-align: center;
}

.parents-link-compact:hover {
  background: #E8F0FE;
  color: #2D3436;
  border-color: #2D3436;
  transform: translateY(-1px);
}

/* Stacking for smaller viewports */
@media (max-width: 900px) {
  .daily-spark-board {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.mascot-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 60px 30px;
  border-radius: 60px;
  background: #74B9FF; /* Bright Sky Blue */
  border: 6px solid #0984E3;
  box-shadow: inset 0 -15px 0 rgba(0,0,0,0.1), 0 15px 0 #0984E3, 0 25px 40px rgba(0,0,0,0.2);
  position: relative;
  overflow: visible; /* Let mascot float out slightly */
}


/* Decorative Clouds */
.cloud-dec {
  position: absolute;
  font-size: 80px;
  opacity: 0.8;
  animation: cloudFloat 6s ease-in-out infinite;
  pointer-events: none;
}
.cloud-1 { top: -20px; left: 10%; animation-delay: 0s; }
.cloud-2 { bottom: 10px; right: 20%; font-size: 100px; animation-delay: -2s; }
.cloud-3 { top: 20px; right: 5%; font-size: 60px; animation-delay: -4s; }

@keyframes cloudFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.mascot-container {
  z-index: auto !important;
}

.hero-mascot-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
  box-shadow: 0 15px 0 #FB8500, 0 25px 30px rgba(0,0,0,0.3);
  animation: heroBounce 3s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
  border: 8px solid #FFB703;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: auto !important;
}

.hero-mascot-img {
  width: 140%;
  height: 140%;
  object-fit: contain;
  background: transparent;
}

@keyframes heroBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-text {
  flex: 1;
  z-index: 2;
}

.hero-greeting {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 6px 0 #0984E3, 0 10px 15px rgba(0,0,0,0.3);
  line-height: 1.1;
  letter-spacing: 1px;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 20px;
  color: #FFFFFF;
  margin-top: 10px;
  font-weight: 800;
  text-shadow: 0 3px 0 #0984E3;
}

.hero-stars-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ═══════════════════════════
   HOME PAGE - ACTIVITY GRID (Chunky 3D Toys)
═══════════════════════════ */
.activity-grid {
  flex: 1.8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.activity-card {
  color: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  height: 200px;
  border: 5px solid rgba(255,255,255,0.3);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

/* Massive Chunky 3D Styling per theme */
.card-videos { background: var(--c-videos); box-shadow: inset 0 -15px 0 rgba(0,0,0,0.1), 0 15px 0 var(--c-videos-shadow), 0 25px 30px rgba(0,0,0,0.2); }
.card-songs  { background: var(--c-songs); box-shadow: inset 0 -15px 0 rgba(0,0,0,0.1), 0 15px 0 var(--c-songs-shadow), 0 25px 30px rgba(0,0,0,0.2); }
.card-books  { background: var(--c-books); box-shadow: inset 0 -15px 0 rgba(0,0,0,0.1), 0 15px 0 var(--c-books-shadow), 0 25px 30px rgba(0,0,0,0.2); }
.card-games  { background: var(--c-games); box-shadow: inset 0 -15px 0 rgba(0,0,0,0.1), 0 15px 0 var(--c-games-shadow), 0 25px 30px rgba(0,0,0,0.2); }
.card-draw   { background: var(--c-draw); box-shadow: inset 0 -15px 0 rgba(0,0,0,0.1), 0 15px 0 var(--c-draw-shadow), 0 25px 30px rgba(0,0,0,0.2); }
.card-quiz   { background: var(--c-quiz); box-shadow: inset 0 -15px 0 rgba(0,0,0,0.1), 0 15px 0 var(--c-quiz-shadow), 0 25px 30px rgba(0,0,0,0.2); }

/* Bouncy Hover Effect */
.activity-card:hover {
  transform: translateY(-15px) scale(1.05);
}

/* Physical Push-Down Click Effect */
.activity-card:active {
  transform: translateY(10px) scale(0.98);
  /* Compress the shadow to make it look physically pushed */
}
.card-videos:active { box-shadow: inset 0 -5px 0 rgba(0,0,0,0.1), 0 5px 0 var(--c-videos-shadow), 0 10px 15px rgba(0,0,0,0.2); }
.card-songs:active { box-shadow: inset 0 -5px 0 rgba(0,0,0,0.1), 0 5px 0 var(--c-songs-shadow), 0 10px 15px rgba(0,0,0,0.2); }
.card-books:active { box-shadow: inset 0 -5px 0 rgba(0,0,0,0.1), 0 5px 0 var(--c-books-shadow), 0 10px 15px rgba(0,0,0,0.2); }
.card-games:active { box-shadow: inset 0 -5px 0 rgba(0,0,0,0.1), 0 5px 0 var(--c-games-shadow), 0 10px 15px rgba(0,0,0,0.2); }
.card-draw:active { box-shadow: inset 0 -5px 0 rgba(0,0,0,0.1), 0 5px 0 var(--c-draw-shadow), 0 10px 15px rgba(0,0,0,0.2); }
.card-quiz:active { box-shadow: inset 0 -5px 0 rgba(0,0,0,0.1), 0 5px 0 var(--c-quiz-shadow), 0 10px 15px rgba(0,0,0,0.2); }

/* Playful Emoji styling */
.card-emoji {
  font-size: 80px;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 8px 0 rgba(0,0,0,0.15));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.activity-card:hover .card-emoji {
  transform: scale(1.2) translateY(-10px) rotate(5deg);
}

.activity-card:nth-child(2) .card-emoji { animation-delay: 0.5s; }
.activity-card:nth-child(3) .card-emoji { animation-delay: 1s; }
.activity-card:nth-child(4) .card-emoji { animation-delay: 0.3s; }
.activity-card:nth-child(5) .card-emoji { animation-delay: 0.8s; }
.activity-card:nth-child(6) .card-emoji { animation-delay: 1.2s; }

@keyframes emojiFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.card-sub {
  font-family: var(--font-body);
  font-size: clamp(10px, 2vw, 13px);
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-top: 4px;
}

/* "NEW" badge on cards */
.card-new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  color: #e84393;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

/* Floating background decoration */
.page-floaters {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.9;
}

.floater {
  position: absolute;
  font-size: 18px;
  opacity: 0.05;
  filter: blur(0.2px);
  animation: floatAround linear infinite;
}

@keyframes floatAround {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.05; }
  90% { opacity: 0.05; }
  100% { transform: translateY(-200px) rotate(360deg); opacity: 0; }
}

/* ═══════════════════════════
   VIDEOS PAGE - 3-COLUMN APP CONSOLE STYLE
═══════════════════════════ */
.videos-page {
  background: transparent;
  min-height: 100vh;
  color: #2D3436;
}

.videos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 30px;
  border: 4px solid #DFE6E9;
  box-shadow: 0 6px 0 #DFE6E9, 0 10px 15px rgba(0,0,0,0.08);
  padding: 12px 24px;
}

.videos-header-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #2D3436;
}

.videos-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F2F6;
  border: 3px solid #DFE6E9;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  max-width: 220px;
  width: 100%;
}

.videos-search span {
  font-size: 14px;
}

.videos-search input {
  background: none;
  border: none;
  outline: none;
  color: #2D3436;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 700;
  width: 100%;
}

@media (min-width: 1025px) {
  #videos-center-col {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 12px;
  }
  #videos-center-col::-webkit-scrollbar {
    width: 10px;
  }
  #videos-center-col::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.03);
    border-radius: 10px;
  }
  #videos-center-col::-webkit-scrollbar-thumb {
    background: #DFE6E9;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }
  #videos-center-col::-webkit-scrollbar-thumb:hover {
    background-color: #B2BEC3;
  }
}

/* Category Filters Pill Bar */
.category-filters-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 5px 22px 5px;
  scrollbar-width: none;
  width: 100%;
  height: 80px;
  align-items: center;
}
.category-filters-row::-webkit-scrollbar {
  display: none;
}
.filter-pill {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 3px solid #DFE6E9;
  box-shadow: 0 4px 0 #DFE6E9;
  color: #2D3436;
  white-space: nowrap;
  transition: transform 0.1s, box-shadow 0.1s;
}
.filter-pill:hover {
  transform: translateY(-2px);
}
.filter-pill.active {
  background: #FF5A5F;
  border-color: #C0392B;
  box-shadow: 0 4px 0 #C0392B;
  color: #FFFFFF;
  transform: translateY(-2px);
}
.filter-pill:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #DFE6E9;
}

/* Category Rows as Friendly White Panels */
.videos-page .category-row {
  background: #FFFFFF;
  border-radius: 30px;
  border: 4px solid #DFE6E9;
  box-shadow: 0 6px 0 #DFE6E9, 0 10px 15px rgba(0,0,0,0.08);
  padding: 20px;
  margin-bottom: 20px;
  width: 100%;
}
.videos-page .category-row-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 15px 0;
}
.videos-page .category-row-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #2D3436;
}
.videos-page .category-count {
  font-size: 12px;
  color: #636E72;
  font-weight: 800;
  background: #F1F2F6;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Horizontal Scroll Video Strip */
.videos-page .video-strip {
  display: flex;
  gap: 14px;
  padding: 10px 5px 15px 5px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.videos-page .video-strip::-webkit-scrollbar {
  display: none;
}

/* Video Poster Card on Bright Theme */
.videos-page .video-poster-card {
  flex-shrink: 0;
  width: 220px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  background: #FFFFFF;
  border: 4px solid #DFE6E9;
  box-shadow: 0 5px 0 #DFE6E9, 0 8px 15px rgba(0,0,0,0.05);
}
.videos-page .video-poster-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 0 #DFE6E9, 0 15px 25px rgba(0,0,0,0.08);
}
.videos-page .video-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #DFE6E9;
  border-bottom: 3px solid #DFE6E9;
}
.videos-page .video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.videos-page .video-thumb-wrap::after {
  display: none; /* Remove dark overlay gradient */
}

/* Play button overlay */
.videos-page .video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 44px; height: 44px;
  background: #FF5A5F;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 4px 0 #C0392B;
  border: 2px solid #FFFFFF;
}
.videos-page .video-poster-card:hover .video-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Title text block placed below the thumbnail card */
.videos-page .video-title-overlay {
  position: static;
  padding: 12px 14px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.videos-page .video-title-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #2D3436;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}
.videos-page .video-lang-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.badge-en { background: #3b82f6; color: #fff; }
.badge-hi { background: #f59e0b; color: #fff; }
.badge-mr { background: #8b5cf6; color: #fff; }

/* ── Premium Video Grid Card — duration, channel, stats ── */
.videos-page .video-duration-tag {
  position: absolute;
  bottom: 7px;
  right: 8px;
  background: rgba(0,0,0,0.80);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 3;
  letter-spacing: 0.5px;
}
.videos-page .video-card-channel-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}
.videos-page .video-card-channel {
  font-size: 12px;
  color: #636e72;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.videos-page .video-card-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #00b894;
  color: #fff;
  font-size: 7px;
  font-weight: 900;
  flex-shrink: 0;
}
.videos-page .video-card-stats-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #a0a0b0;
  flex-wrap: wrap;
  margin-top: 2px;
}
.videos-page .meta-dot {
  color: #b2bec3;
  font-size: 10px;
  font-weight: bold;
}
.videos-page .video-lang-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-left: auto;
}

/* Right Column Player Console Styles */
#inline-player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1e1e2e;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 4px solid #DFE6E9;
  overflow: hidden;
}
#player-placeholder {
  text-align: center;
  padding: 20px;
}
#player-placeholder .placeholder-emoji {
  font-size: 54px;
  animation: heroBounce 3s ease-in-out infinite;
  margin-bottom: 10px;
}
#player-placeholder .placeholder-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #636E72;
}
#inline-player-title {
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #2D3436;
  text-align: left;
}
#inline-player-desc {
  margin-top: 8px;
  font-size: 14px;
  color: #636E72;
  line-height: 1.5;
  text-align: left;
}

/* Category row color accent bar */
.category-row.row-rhymes .category-row-title { color: #fd79a8; }
.category-row.row-stories .category-row-title { color: #74b9ff; }
.category-row.row-educational .category-row-title { color: #55efc4; }
.category-row.row-cartoons .category-row-title { color: #fdcb6e; }

/* Featured "NEW" indicator */
.video-featured-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  z-index: 3;
  font-family: var(--font-display);
}

/* Empty state */
.category-empty {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-display);
  font-size: 18px;
}

/* ═══════════════════════════
   INNER PAGES (Audio, Books, Games, etc.)
═══════════════════════════ */
.inner-page {
  background: var(--bg-page);
}

.inner-page-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.inner-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #2d3436;
}

.inner-page-emoji {
  font-size: 32px;
}

.inner-content {
  padding: 0 16px;
  overflow-y: auto;
  height: calc(100vh - var(--topbar-h) - var(--bottomnav-h) - 80px);
}

/* Generic filter bar for inner pages */
.filter-row {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid #e9ecef;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover { border-color: #a29bfe; color: #6c5ce7; }
.filter-chip.active { background: #6c5ce7; border-color: #6c5ce7; color: #fff; }

/* Generic content grid for inner pages */
.content-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 0 16px 16px;
}

/* Generic media card - clean modern style */
.media-card-new {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.media-card-new:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }

.media-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #f0f0f0;
}

.media-card-body-new {
  padding: 12px;
}

.media-card-title-new {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #2d3436;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  margin-bottom: 8px;
}

.media-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.media-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-body);
}
.media-tag-rhymes    { background: #fce7f3; color: #db2777; }
.media-tag-stories   { background: #dbeafe; color: #1d4ed8; }
.media-tag-edu       { background: #d1fae5; color: #047857; }
.media-tag-cartoons  { background: #fef3c7; color: #b45309; }
.media-tag-default   { background: #f3f4f6; color: #555; }

/* ═══════════════════════════
   MODAL OVERLAY (shared)
═══════════════════════════ */
.modal-overlay-new {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.7) !important;
  z-index: 99999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay-new.open,
.modal-overlay-new.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

.modal-sheet {
  background: #fff;
  border-radius: 24px;
  width: min(540px, 95vw);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  animation: sheetIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.videos-page .modal-sheet { background: #1a1a2e; color: #fff; }

@keyframes sheetIn {
  from { transform: scale(0.85) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.videos-page .modal-sheet-header { border-bottom-color: rgba(255,255,255,0.1); }

.modal-sheet-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.modal-close-x {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-close-x:hover { background: #e9ecef; }

.videos-page .modal-close-x { background: rgba(255,255,255,0.1); color: #fff; }

.modal-video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.modal-video-wrap iframe {
  width: 100%; height: 100%; border: none;
}

.modal-desc-text {
  padding: 16px 20px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  overflow-y: auto;
}

/* ═══════════════════════════
   AUTH MODAL (Login/Signup)
═══════════════════════════ */
.auth-sheet {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-tabs-new {
  display: flex;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 4px;
}

.auth-tab-new {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #888;
  background: none;
  transition: all 0.2s ease;
}

.auth-tab-new.active {
  background: #fff;
  color: #6c5ce7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-form-new { display: none; flex-direction: column; gap: 12px; }
.auth-form-new.active { display: flex; }

/* SSO Login Styling */
.sso-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: #888;
  font-family: var(--font-display);
  font-size: 13px;
}

.sso-divider::before,
.sso-divider::after {
  content: '';
  flex: 1;
  border-bottom: 2px dashed #E9ECEF;
}

.sso-divider:not(:empty)::before {
  margin-right: .5em;
}

.sso-divider:not(:empty)::after {
  margin-left: .5em;
}

.sso-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.sso-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius-pill);
  border: 3px solid #DFE6E9;
  background: #FFFFFF;
  color: #2D3436;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 0 #DFE6E9;
  cursor: pointer;
  transition: all 0.1s ease;
  white-space: nowrap;
}

.sso-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #DFE6E9;
}

.sso-google:hover { border-color: #4285F4; box-shadow: 0 4px 0 #4285F4; color: #4285F4; }
.sso-google:active { box-shadow: 0 2px 0 #4285F4; }

.sso-facebook:hover { border-color: #1877F2; box-shadow: 0 4px 0 #1877F2; color: #1877F2; }
.sso-facebook:active { box-shadow: 0 2px 0 #1877F2; }

.sso-apple:hover { border-color: #000000; box-shadow: 0 4px 0 #000000; color: #000000; }
.sso-apple:active { box-shadow: 0 2px 0 #000000; }

.auth-desc {
  font-size: 13px;
  color: #636E72;
  margin-bottom: 8px;
  line-height: 1.4;
  font-weight: 600;
}

.auth-input-group { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: 13px; font-weight: 700; color: #444; font-family: var(--font-display); }
.auth-input {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.auth-input:focus { border-color: #a29bfe; }

.btn-primary-new {
  padding: 14px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(108,92,231,0.4);
}
.btn-primary-new:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,92,231,0.5); }
.btn-primary-new:active { transform: translateY(1px); }

/* ═══════════════════════════
   HOME BOTTOM ROW (Bulletin & Newsletter)
═══════════════════════════ */
.home-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 120px auto;
  padding: 0 20px;
}

.event-card,
.bulletin-board-card,
.newsletter-card {
  background: #FFFFFF;
  padding: 30px 40px;
  border-radius: 40px;
  border: 6px solid #DFE6E9;
  box-shadow: 0 15px 0 #DFE6E9, 0 25px 30px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

/* Event Card Specific Styles */
.event-card {
  border-color: #FFB703;
  box-shadow: 0 15px 0 #FB8500, 0 25px 30px rgba(0,0,0,0.15);
  background: #FFF9E6;
}

.event-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: #D35400;
  margin-bottom: 16px;
}

.event-details {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #FFFFFF;
  padding: 12px 18px;
  border-radius: 20px;
  border: 2px solid #FDCB6E;
}

.event-graphic {
  font-size: 40px;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.1));
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-name {
  font-family: var(--font-display);
  font-size: 16px;
  color: #2D3436;
}

.event-time {
  font-size: 13px;
  color: #E67E22;
  font-weight: 800;
}

/* Bulletin Board Specific Styles */
.bulletin-board-card {
  border-color: #A29BFE;
  box-shadow: 0 15px 0 #8C7AE6, 0 25px 30px rgba(0,0,0,0.15);
}

.bulletin-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: #6C5CE7;
  margin-bottom: 16px;
}

.bulletin-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bulletin-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8F9FA;
  padding: 12px 18px;
  border-radius: 20px;
  border: 2px solid #E9ECEF;
  font-weight: 700;
  font-size: 15px;
  color: #2D3436;
}

.bulletin-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  color: white;
  white-space: nowrap;
}

.bulletin-tag.info {
  background: #FF7DA4;
}

.bulletin-tag.event {
  background: #06D6A0;
}

/* Newsletter Specific Styles */
.newsletter-card {
  border-color: #74B9FF;
  box-shadow: 0 15px 0 #0984E3, 0 25px 30px rgba(0,0,0,0.15);
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: #0984E3;
  margin-bottom: 8px;
}

.newsletter-desc {
  color: #636E72;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Slick Inline Subscription Form */
.newsletter-form-pill {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 3px solid #DFE6E9;
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow: inset 0 4px 6px rgba(0,0,0,0.05);
}

.newsletter-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #2D3436;
  width: 100%;
}

.newsletter-btn {
  background: #00A8E8;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 15px;
  box-shadow: 0 4px 0 #007EA7;
  border: none;
  cursor: pointer;
  transition: all 0.1s ease;
  white-space: nowrap;
}

.newsletter-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #007EA7;
}

/* Playful Hover and Active Physics for bottom cards */
.event-card,
.bulletin-board-card,
.newsletter-card {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s;
}

.event-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 0 #FB8500, 0 30px 45px rgba(251,133,0,0.15);
}
.event-card:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #FB8500, 0 8px 12px rgba(0,0,0,0.1);
}

.bulletin-board-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 0 #8C7AE6, 0 30px 45px rgba(108,92,231,0.15);
}
.bulletin-board-card:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #8C7AE6, 0 8px 12px rgba(0,0,0,0.1);
}

.newsletter-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 0 #0984E3, 0 30px 45px rgba(0,168,232,0.15);
}
.newsletter-card:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #0984E3, 0 8px 12px rgba(0,0,0,0.1);
}

/* Homepage footer with link to Admin contributor area */
.home-footer {
  text-align: center;
  margin: 20px auto 110px auto;
  width: 100%;
  z-index: 10;
  position: relative;
}

.parents-corner-link {
  display: inline-block;
  background: #FFFFFF;
  border: 4px solid #DFE6E9;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #2D3436;
  box-shadow: 0 6px 0 #DFE6E9, 0 10px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.parents-corner-link:hover {
  transform: translateY(-4px) scale(1.05);
  background: #FFF2D6;
  border-color: #FFB703;
  box-shadow: 0 8px 0 #FB8500, 0 12px 18px rgba(0,0,0,0.1);
  color: #D35400;
}

.parents-corner-link:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #FB8500;
}

/* ═══════════════════════════
   HOME PAGE SPECIFIC OVERRIDES (Zero-Scroll Widescreen Fit)
═══════════════════════════ */
/* Custom compact sidebar rules only apply to the custom single-screen TV videos page layout */
body[data-page="videos"] .mascot-side {
  padding: 25px 20px; /* Reduced from 60px 30px to fit on single screen */
  border-radius: 40px;
  gap: 12px;
}

body[data-page="videos"] .hero-mascot-circle {
  width: 120px;
  height: 120px;
  border-width: 6px;
}

body[data-page="videos"] .hero-greeting {
  font-size: 32px;
}

body[data-page="videos"] .hero-sub {
  font-size: 16px;
  margin-top: 5px;
}

body[data-page="videos"] .event-card,
body[data-page="videos"] .bulletin-board-card,
body[data-page="videos"] .newsletter-card {
  padding: 15px 20px; /* Reduced padding from 18px 24px */
  border-radius: 25px;
  border-width: 4px;
}

body[data-page="videos"] .event-title,
body[data-page="videos"] .bulletin-title,
body[data-page="videos"] .newsletter-title {
  font-size: 18px; /* Shrunk from 20px */
  margin-bottom: 8px;
}

body[data-page="videos"] .bulletin-item {
  padding: 6px 12px;
  font-size: 12px;
}

body[data-page="videos"] .newsletter-desc {
  font-size: 12px;
  margin-bottom: 8px;
}

/* ═══════════════════════════
   FESTIVAL TRANSITIONS & THEMES
═══════════════════════════ */
body {
  transition: background-color 0.8s ease;
}

/* Ganesh Utsav - Warm marigold orange & saffron glow */
body.theme-ganesh {
  background-color: #FFF7ED;
}
body.theme-ganesh::before, body.theme-ganesh .sunny-bg {
  background-image: 
    radial-gradient(circle, #F97316 10%, transparent 11%),
    radial-gradient(circle, #FBBF24 7%, transparent 8%),
    radial-gradient(circle, #EA580C 5%, transparent 6%),
    radial-gradient(circle, #F59E0B 8%, transparent 9%);
  background-size: 130px 130px, 170px 170px, 210px 210px, 250px 250px;
  background-position: 0 0, 65px 65px, 105px 105px, 145px 145px;
  opacity: 0.28;
}

/* Diwali - Warm golden sunset with subtle firework starbursts */
body.theme-diwali {
  background-color: #FFF2D6;
}
body.theme-diwali::before, body.theme-diwali .sunny-bg {
  background-image: 
    radial-gradient(circle, #F39C12 10%, transparent 11%),
    radial-gradient(circle, #F1C40F 6%, transparent 7%),
    radial-gradient(circle, #E67E22 4%, transparent 5%),
    radial-gradient(circle, #F39C12 8%, transparent 9%);
  background-size: 120px 120px, 160px 160px, 200px 200px, 240px 240px;
  background-position: 0 0, 60px 60px, 100px 100px, 140px 140px;
  opacity: 0.25;
}

/* Holi - Energetic peach pink with soft color powder splashes */
body.theme-holi {
  background-color: #FFE6E6;
}
body.theme-holi::before, body.theme-holi .sunny-bg {
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(255, 90, 95, 0.45) 0%, rgba(255, 90, 95, 0.45) 16%, transparent 22%),
    radial-gradient(circle at 80% 25%, rgba(255, 183, 3, 0.45) 0%, rgba(255, 183, 3, 0.45) 20%, transparent 26%),
    radial-gradient(circle at 30% 75%, rgba(9, 132, 227, 0.4) 0%, rgba(9, 132, 227, 0.4) 22%, transparent 28%),
    radial-gradient(circle at 75% 70%, rgba(46, 204, 113, 0.4) 0%, rgba(46, 204, 113, 0.4) 18%, transparent 24%);
  background-size: 320px 320px;
  opacity: 0.85;
}

/* Christmas - Soft winter snow with drifting snowflakes */
body.theme-christmas {
  background-color: #EAF2F8;
}
body.theme-christmas::before, body.theme-christmas .sunny-bg {
  background-image: 
    radial-gradient(circle, #FFFFFF 8%, transparent 9%),
    radial-gradient(circle, #85C1E9 12%, transparent 13%),
    radial-gradient(circle, #FFFFFF 5%, transparent 6%);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  background-position: 0 0, 50px 50px, 100px 100px;
  opacity: 0.45;
}

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */
@media (max-width: 899px) {
  body[data-page="home"] .home-layout,
  .home-layout {
    grid-template-columns: 1fr !important;
    margin-top: 20px;
    gap: 20px;
  }
  .layout-sidebar,
  .layout-center-col,
  .layout-right-col {
    gap: 20px;
    width: 100%;
  }
  .mascot-side {
    width: 100%;
    max-width: none;
    padding: 40px 20px;
    border-radius: 40px;
  }
  body[data-page="home"] .activity-grid {
    grid-template-columns: repeat(3, 1fr); /* Return to 3-columns layout on tablet viewports */
    width: 100%;
  }
  body[data-page="videos"] .layout-right-col {
    display: none !important;
  }
  
  /* Mobile stack for videos two column layout */
  .videos-page .two-col-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    padding: 0 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
  }

  .videos-page .layout-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 0 10px !important;
  }

  .videos-page .layout-main-workspace {
    padding: 8px 0 20px !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .videos-page #media-container {
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
  }

  .videos-page .category-row {
    padding: 14px 12px;
    border-radius: 22px;
    box-sizing: border-box;
  }

  .videos-page .category-row-header {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .videos-page .cat-strip-nav {
    width: 100%;
    justify-content: space-between;
  }

  .videos-page .video-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 6px 0 10px;
  }

  .videos-page .video-strip .video-poster-card {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .videos-page .home-brand-block {
    display: flex;
    justify-content: center;
  }

  .videos-page .home-controls-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .videos-page .home-controls-row .topbar-lang {
    flex: 1;
    min-width: 140px;
  }

  .videos-page .home-controls-row .sound-toggle-btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important;
  }
  .videos-page .home-controls-row .sound-toggle-btn span[data-translate],
  .videos-page .home-controls-row .sound-toggle-btn span:not(.sound-icon) {
    display: none !important;
  }

  .videos-page .home-controls-row .topbar-profile {
    flex: 1;
    min-width: 140px;
  }

  .videos-page .mascot-side,
  .videos-page .sidebar-categories-list {
    display: none !important;
  }

  /* Home Page mobile layout enhancements */
  body[data-page="home"] .active-page-pill {
    display: none !important;
  }
  body[data-page="home"] .layout-sidebar {
    gap: 12px !important;
  }
  body[data-page="home"] .home-controls-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 5px !important;
  }
  body[data-page="home"] .home-controls-row .topbar-lang {
    flex: 1 !important;
    min-width: 120px !important;
  }
  body[data-page="home"] .home-controls-row .topbar-profile {
    flex: 1 !important;
    min-width: 140px !important;
  }
  body[data-page="home"] .home-controls-row .sound-toggle-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important;
  }
  body[data-page="home"] .home-controls-row .sound-toggle-btn span[data-translate],
  body[data-page="home"] .home-controls-row .sound-toggle-btn span:not(.sound-icon) {
    display: none !important;
  }
  body[data-page="home"] .profile-pill-btn {
    flex-direction: row !important;
    padding: 8px 12px !important;
    border-radius: 30px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  body[data-page="home"] .profile-pill-btn .profile-avatar {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
    margin-bottom: 0 !important;
  }
  body[data-page="home"] .profile-pill-btn .profile-name {
    font-size: 12px !important;
    display: inline-block !important;
  }
  body[data-page="home"] .spin-wheel-card,
  body[data-page="home"] .parents-corner-widget {
    display: inline-block !important;
    width: 48% !important;
    margin-bottom: 10px !important;
    vertical-align: top !important;
  }
  body[data-page="home"] .spin-wheel-card {
    margin-right: 4% !important;
  }
  body[data-page="home"] .spin-wheel-trigger-btn,
  body[data-page="home"] .parents-link-compact {
    width: 100% !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  body[data-page="home"] .parents-link-compact {
    background: #FFFFFF !important;
    border: 3px solid #2D3436 !important;
    border-radius: 30px !important;
    font-family: var(--font-display) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #2D3436 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    transition: transform 0.1s, box-shadow 0.1s !important;
  }
  body[data-page="home"] .parents-link-compact:active {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 #2D3436 !important;
  }

  .videos-page .top-player-row {
    display: flex !important;
  }

  .videos-page .featured-carousel-section {
    display: block !important;
    width: 100%;
    margin-top: 4px;
  }

  .videos-page .section-title-chunky {
    font-size: 18px;
    margin: 0 0 8px;
  }

  .videos-page .featured-carousel {
    gap: 12px;
    padding: 0 2px 10px;
  }

  .videos-page .featured-carousel .video-poster-card {
    width: 230px;
    min-width: 230px;
  }
}

@media (min-width: 769px) {
  .card-jokes {
    grid-column: 2 / 3 !important;
  }
}
@media (max-width: 768px) and (min-width: 451px), (max-width: 1024px) and (min-width: 451px) and (orientation: landscape) {
  .card-jokes {
    grid-column: span 2 !important;
  }
}




/* 4. Toy Train Viewport Full Width Across Entire Window in Classic Mode */
body[data-page="home"]:not(.theme-immersive) {
  min-height: 100vh !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

#announcement-bar {
  flex-shrink: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body[data-page="home"]:not(.theme-immersive) #page-content {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 6px 14px 4px 14px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

@media (min-width: 1025px) {
  body[data-page="home"]:not(.theme-immersive) .home-layout {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin-bottom: 4px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .toy-train-container.full-screen-track {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 110px !important;
    min-height: 110px !important;
    margin: 4px 0 !important;
    padding: 0 !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
    overflow: visible !important;
  }
}

@media (min-width: 1025px) {
  body[data-page="home"]:not(.theme-immersive) .toy-train-container.full-screen-track .toy-train-viewport {
    width: 100% !important;
    max-width: 100% !important;
    height: 110px !important;
    margin: 0 !important;
    padding: 0 0 10px 0 !important;
    border-radius: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    display: flex !important;
    align-items: flex-end !important;
    background: transparent !important;
    background-image: none !important;
  }
}

@media (min-width: 900px) {
  body[data-page="home"]:not(.theme-immersive) .train-front-spacer {
    width: 100vw !important;
    min-width: 100vw !important;
    flex-shrink: 0 !important;
    height: 10px !important;
    pointer-events: none !important;
  }

  body[data-page="home"]:not(.theme-immersive) .train-end-spacer {
    width: 100vw !important;
    min-width: 100vw !important;
    flex-shrink: 0 !important;
    height: 10px !important;
    pointer-events: none !important;
  }

  body[data-page="home"]:not(.theme-immersive) .toy-train-track {
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .home-layout {
    display: grid !important;
    grid-template-columns: 210px 1fr !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  /* (Legacy desktop rules neutralised in favor of Option 1 unified layout) */
}

/* Compact Laptop Window (Heights <= 800px e.g. 1366x768 browser with tabs) */
@media (min-width: 1025px) and (max-height: 800px) {
  body[data-page="home"]:not(.theme-immersive) .home-layout {
    height: calc(100vh - 145px) !important;
    max-height: calc(100vh - 145px) !important;
  }

  body[data-page="home"]:not(.theme-immersive) .layout-sidebar {
    max-height: 395px !important;
    gap: 6px !important;
    justify-content: space-between !important;
  }

  /* Hide redundant 'Explorer Map' pill on desktop home page to give spacious room */
  body[data-page="home"]:not(.theme-immersive) .layout-sidebar .active-page-pill {
    display: none !important;
  }

  .layout-sidebar .topbar-logo .logo-img {
    height: 52px !important;
  }

  .layout-sidebar .topbar-logo .logo-letter {
    font-size: 28px !important;
  }

  .layout-sidebar .topbar-lang {
    height: 32px !important;
    background: #EDF2F7 !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 2px 0 #2D3436 !important;
    padding: 2px !important;
  }

  .layout-sidebar .topbar-lang .lang-pill {
    font-size: 10.5px !important;
    padding: 2px 6px !important;
    border-radius: 999px !important;
    color: #636E72 !important;
  }

  .layout-sidebar .topbar-lang .lang-pill.active {
    background: #FFFFFF !important;
    color: #2D3436 !important;
    box-shadow: 0 1.5px 3px rgba(0,0,0,0.15) !important;
  }

  .layout-sidebar .sound-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 13px !important;
    background: linear-gradient(135deg, #00CEC9, #00B894) !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 2px 0 #2D3436 !important;
    color: #FFFFFF !important;
  }

  .layout-sidebar .search-input-wrapper {
    height: 34px !important;
    background: #F8F9FA !important;
    border: 2px solid #DFE6E9 !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04) !important;
  }

  .layout-sidebar .search-input-wrapper input {
    font-size: 11px !important;
  }

  .layout-sidebar .age-filter-options {
    display: flex !important;
    gap: 3px !important;
    justify-content: space-between !important;
    width: 100% !important;
    background: #EDF2F7 !important;
    padding: 2px !important;
    border-radius: 999px !important;
    border: 1.5px solid #CBD5E0 !important;
    box-sizing: border-box !important;
  }

  .layout-sidebar .age-btn {
    flex: 1 !important;
    height: 22px !important;
    font-size: 10px !important;
    border-radius: 999px !important;
    border: none !important;
    background: transparent !important;
    color: #718096 !important;
    box-shadow: none !important;
  }

  .layout-sidebar .age-btn.active {
    background: #0984E3 !important;
    color: #FFFFFF !important;
    box-shadow: 0 1.5px 3px rgba(9, 132, 227, 0.3) !important;
    font-weight: 900 !important;
  }

  .layout-sidebar .kid-passport-card {
    padding: 5px 8px !important;
    border-radius: 16px !important;
  }

  .layout-sidebar .profile-avatar {
    width: 30px !important;
    height: 30px !important;
    font-size: 16px !important;
  }

  .layout-sidebar .passport-name {
    font-size: 11.5px !important;
  }

  .layout-sidebar .passport-xp-track {
    height: 5px !important;
  }

  .layout-sidebar .sidebar-bottom-action-dock {
    gap: 5px !important;
  }

  .layout-sidebar .parents-portal-btn {
    height: 36px !important;
    font-size: 11.5px !important;
  }

  .layout-sidebar .mini-spin-dock {
    height: 36px !important;
    width: 42px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-top-row {
    max-height: 395px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .toon-corner-section {
    max-height: 395px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-wrap,
  body[data-page="home"]:not(.theme-immersive) .hero-console-wrap {
    max-height: 395px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section {
    max-height: 395px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-grid {
    grid-template-rows: repeat(4, 60px) !important;
    gap: 6px 8px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card {
    height: 60px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .spark-badge-btn {
    width: 44px !important;
    height: 44px !important;
  }
}

/* --- Top 3-Tab Candy Switcher Bar --- */
body[data-page="home"]:not(.theme-immersive) .hero-mode-tabs-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  padding-bottom: 2px !important;
  border-bottom: 2px dashed #DFE6E9 !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-tab-pill {
  height: 30px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 2px solid #2D3436 !important;
  background: #F8F9FA !important;
  color: #636E72 !important;
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 0 #2D3436 !important;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-tab-pill:hover {
  transform: translateY(-2px) !important;
  background: #FFEAA7 !important;
  color: #2D3436 !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-tab-pill.active {
  background: linear-gradient(135deg, #FF7675 0%, #FF9F43 100%) !important;
  color: #FFFFFF !important;
  border-color: #2D3436 !important;
  box-shadow: 0 3px 0 #2D3436, 0 4px 10px rgba(255, 118, 117, 0.3) !important;
  transform: translateY(-1px) !important;
}

body[data-page="home"]:not(.theme-immersive) .tab-badge-count {
  font-size: 10px !important;
  background: #2D3436 !important;
  color: #FFEAA7 !important;
  padding: 1px 6px !important;
  border-radius: 999px !important;
}

body[data-page="home"]:not(.theme-immersive) .tab-badge-done {
  font-size: 12px !important;
}

/* --- Hero Mount Stage Container --- */
body[data-page="home"]:not(.theme-immersive) .hero-stage-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  gap: 3px !important;
}

/* --- Comic Strip Mode --- */
body[data-page="home"]:not(.theme-immersive) .homepage-comic-header {
  margin-bottom: 2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 4px !important;
  flex-shrink: 0 !important;
}

body[data-page="home"]:not(.theme-immersive) .homepage-comic-strip-container {
  border-radius: 14px !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 0 !important;
}

body[data-page="home"]:not(.theme-immersive) .homepage-comic-strip-wrap {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body[data-page="home"]:not(.theme-immersive) .homepage-comic-strip-img {
  max-height: 100% !important;
  max-width: 100% !important;
  width: auto !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  border: 2px solid #2D3436 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

body[data-page="home"]:not(.theme-immersive) .hoarding-click-overlay {
  display: none !important;
}

body[data-page="home"]:not(.theme-immersive) .hoarding-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  background: #FFB703 !important;
  border: 2.5px solid #2D3436 !important;
  box-shadow: 0 3px 0 #2D3436 !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: #2D3436 !important;
  transition: transform 0.15s ease !important;
}

body[data-page="home"]:not(.theme-immersive) .hoarding-arrow:hover {
  transform: translateY(-50%) scale(1.1) !important;
}

body[data-page="home"]:not(.theme-immersive) .hoarding-arrow-left { left: 14px !important; }
body[data-page="home"]:not(.theme-immersive) .hoarding-arrow-right { right: 14px !important; }

/* ══════════════════════════════════════════════════════════
   MODE 2: 🎯 DAILY QUEST & MISSION HUB VIEW
   ══════════════════════════════════════════════════════════ */
body[data-page="home"]:not(.theme-immersive) .quest-hub-view {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 4px 0 !important;
  box-sizing: border-box !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-progress-bar-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin-bottom: 8px !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-mascot-cheer {
  font-size: 26px !important;
  line-height: 1 !important;
  animation: mascotCheerBounce 1.5s infinite ease-in-out !important;
}

@keyframes mascotCheerBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(8deg); }
}

body[data-page="home"]:not(.theme-immersive) .quest-progress-track {
  flex: 1 !important;
  height: 22px !important;
  background: #EDF2F7 !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-progress-fill {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(90deg, #00B894 0%, #00CEC9 50%, #0984E3 100%) !important;
  border-radius: 999px !important;
  transition: width 0.4s ease !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-progress-text {
  position: relative !important;
  z-index: 2 !important;
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-reward-badge {
  background: linear-gradient(135deg, #FFEAA7, #FDCB6E) !important;
  border: 2px solid #2D3436 !important;
  box-shadow: 0 2px 0 #2D3436 !important;
  border-radius: 999px !important;
  padding: 2px 10px !important;
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin-bottom: 6px !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-mini-card {
  background: #FFFFFF !important;
  border: 2.5px solid #2D3436 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  padding: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  overflow: hidden !important;
  position: relative !important;
  min-height: 0 !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-mini-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 0 #2D3436 !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-mini-card.completed {
  background: linear-gradient(180deg, #FFFFFF 0%, #EBFBF3 100%) !important;
  border-color: #27AE60 !important;
  box-shadow: 0 4px 0 #1E8449 !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-card-thumb-holder {
  width: 100% !important;
  height: clamp(108px, 18vh, 145px) !important;
  flex: 0 1 auto !important;
  border-radius: 12px !important;
  border: 2px solid #2D3436 !important;
  overflow: hidden !important;
  position: relative !important;
  background: #F0F3F6 !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-card-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-card-cat-badge {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  padding: 2px 8px !important;
  border-radius: 8px !important;
  border: 1.5px solid #2D3436 !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.2) !important;
  z-index: 2 !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-card-reward-badge {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  background: #FFD32A !important;
  padding: 2px 8px !important;
  border-radius: 8px !important;
  border: 1.5px solid #2D3436 !important;
  z-index: 2 !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-card-completed-stamp {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(39, 174, 96, 0.88) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: #FFFFFF !important;
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  z-index: 3 !important;
  animation: popStamp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

@keyframes popStamp {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

body[data-page="home"]:not(.theme-immersive) .quest-card-title {
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #2D3436 !important;
  line-height: 1.25 !important;
  margin: 8px 0 6px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 34px !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-action-btn {
  width: 100% !important;
  height: 32px !important;
  border-radius: 999px !important;
  border: 2px solid #2D3436 !important;
  background: linear-gradient(135deg, #0984E3, #00CEC9) !important;
  color: #FFFFFF !important;
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-action-btn.done {
  background: linear-gradient(135deg, #27AE60, #2ECC71) !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-claim-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-claim-stars-btn {
  background: linear-gradient(135deg, #FF7675 0%, #FF9F43 100%) !important;
  color: #FFFFFF !important;
  border: 2.5px solid #2D3436 !important;
  box-shadow: 0 3px 0 #2D3436, 0 4px 10px rgba(255, 118, 117, 0.3) !important;
  border-radius: 999px !important;
  padding: 6px 24px !important;
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  animation: pulseRewardBtn 1.5s infinite ease-in-out !important;
}

@keyframes pulseRewardBtn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

body[data-page="home"]:not(.theme-immersive) .quest-claimed-banner {
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #27AE60 !important;
}

body[data-page="home"]:not(.theme-immersive) .quest-hint-msg {
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #636E72 !important;
}

/* ══════════════════════════════════════════════════════════
   MODE 3: 🎭 LIVE STORY THEATRE & RHYME SPOTLIGHT VIEW
   ══════════════════════════════════════════════════════════ */
body[data-page="home"]:not(.theme-immersive) .story-theatre-view {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

body[data-page="home"]:not(.theme-immersive) .theatre-stage-frame {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  background: linear-gradient(180deg, #2D3436 0%, #1E272E 100%) !important;
  border-radius: 18px !important;
  border: 3px solid #2D3436 !important;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4) !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 8px !important;
}

body[data-page="home"]:not(.theme-immersive) .theatre-curtain-left,
body[data-page="home"]:not(.theme-immersive) .theatre-curtain-right {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 32px !important;
  background: repeating-linear-gradient(90deg, #D63031, #D63031 10px, #E17055 10px, #E17055 20px) !important;
  z-index: 5 !important;
  box-shadow: 0 0 10px rgba(0,0,0,0.5) !important;
}

body[data-page="home"]:not(.theme-immersive) .theatre-curtain-left { left: 0 !important; border-top-left-radius: 14px; border-bottom-left-radius: 14px; }
body[data-page="home"]:not(.theme-immersive) .theatre-curtain-right { right: 0 !important; border-top-right-radius: 14px; border-bottom-right-radius: 14px; }

body[data-page="home"]:not(.theme-immersive) .theatre-spotlight-glow {
  position: absolute !important;
  width: 220px !important;
  height: 220px !important;
  background: radial-gradient(circle, rgba(255, 234, 167, 0.35) 0%, transparent 70%) !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none !important;
}

body[data-page="home"]:not(.theme-immersive) .theatre-stage-canvas {
  position: relative !important;
  z-index: 4 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 40px !important;
}

body[data-page="home"]:not(.theme-immersive) .theatre-mascot-actor {
  font-size: 48px !important;
  line-height: 1 !important;
  animation: actorBounce 2s infinite ease-in-out !important;
}

body[data-page="home"]:not(.theme-immersive) .theatre-mascot-actor-secondary {
  font-size: 28px !important;
  position: absolute !important;
  right: 50px !important;
  bottom: 50px !important;
  animation: actorBounce 2s infinite ease-in-out 0.5s !important;
}

@keyframes actorBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.05); }
}

body[data-page="home"]:not(.theme-immersive) .theatre-rhyme-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 2px solid #FFEAA7 !important;
  border-radius: 14px !important;
  padding: 6px 14px !important;
  margin-top: 6px !important;
}

body[data-page="home"]:not(.theme-immersive) .theatre-rhyme-title {
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
}

body[data-page="home"]:not(.theme-immersive) .theatre-rhyme-lyrics {
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0984E3 !important;
}

body[data-page="home"]:not(.theme-immersive) .theatre-control-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}

body[data-page="home"]:not(.theme-immersive) .theatre-sound-btn {
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 2px solid #2D3436 !important;
  background: #FFFFFF !important;
  color: #2D3436 !important;
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  transition: transform 0.15s ease !important;
}

body[data-page="home"]:not(.theme-immersive) .theatre-sound-btn.bouncing {
  transform: scale(1.2) translateY(-3px) !important;
  background: #FFEAA7 !important;
}

body[data-page="home"]:not(.theme-immersive) .theatre-more-songs-btn {
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 2px solid #2D3436 !important;
  background: linear-gradient(135deg, #6C5CE7, #A29BFE) !important;
  color: #FFFFFF !important;
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
}

@media (min-width: 1025px) {
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section {
    flex: 0 0 250px !important;
    width: 250px !important;
    height: 483px !important;
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
  }
}

body[data-page="home"]:not(.theme-immersive) .activities-absolute-wrapper {
  position: static !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 0 !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(4, 78px) !important;
    gap: 12px 10px !important;
    flex: none !important;
    margin-bottom: 0 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card {
    grid-column: auto !important;
    height: 78px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 4px !important;
    gap: 2px !important;
    border-radius: 20px !important;
    border: 3.5px solid #2D3436 !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease !important;
  }
}

/* Candy Top Specular Gloss Reflection */
body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card::before {
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  left: 10% !important;
  width: 80% !important;
  height: 10px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.1) 100%) !important;
  border-radius: 999px !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* 🍬 Vibrant 3D Solid Candy Capsules */
body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-videos {
  background: linear-gradient(180deg, #FF6B6B 0%, #EE5253 100%) !important;
  box-shadow: 0 6px 0 #C0392B, 0 8px 16px rgba(238, 82, 83, 0.4) !important;
}
body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-songs {
  background: linear-gradient(180deg, #48DBFB 0%, #0ABDE3 100%) !important;
  box-shadow: 0 6px 0 #0984E3, 0 8px 16px rgba(10, 189, 227, 0.4) !important;
}
body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-books {
  background: linear-gradient(180deg, #1DD1A1 0%, #10AC84 100%) !important;
  box-shadow: 0 6px 0 #057A55, 0 8px 16px rgba(16, 172, 132, 0.4) !important;
}
body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-games {
  background: linear-gradient(180deg, #FFA502 0%, #FF7F50 100%) !important;
  box-shadow: 0 6px 0 #D35400, 0 8px 16px rgba(255, 127, 80, 0.4) !important;
}
body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-draw {
  background: linear-gradient(180deg, #FF9FF3 0%, #F368E0 100%) !important;
  box-shadow: 0 6px 0 #B53471, 0 8px 16px rgba(243, 104, 224, 0.4) !important;
}
body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-quiz {
  background: linear-gradient(180deg, #FD79A8 0%, #E84393 100%) !important;
  box-shadow: 0 6px 0 #A91E60, 0 8px 16px rgba(232, 67, 147, 0.4) !important;
}
body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-jokes {
  background: linear-gradient(180deg, #FECA57 0%, #FF9F43 100%) !important;
  box-shadow: 0 6px 0 #E67E22, 0 8px 16px rgba(255, 159, 67, 0.4) !important;
}
body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-learn {
  background: linear-gradient(180deg, #A29BFE 0%, #6C5CE7 100%) !important;
  box-shadow: 0 6px 0 #4834D4, 0 8px 16px rgba(108, 92, 231, 0.4) !important;
}

body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card:hover {
  transform: translateY(-4px) scale(1.03) !important;
}

body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card:active {
  transform: translateY(3px) scale(0.97) !important;
  box-shadow: 0 2px 0 #2D3436 !important;
}

body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card .activity-card-img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.2)) !important;
}

body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card .activity-card-emoji {
  font-size: 28px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.2)) !important;
}

body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card .card-title {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  text-align: center !important;
  width: 100% !important;
  line-height: 1.25 !important;
  padding: 0 4px !important;
  color: #FFFFFF !important;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.35) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
  letter-spacing: 0.5px !important;
}

/* ══════════════════════════════════════════════════════════
   3. POLISHED 3D CIRCULAR MEDAL ORBS (Daily Quiz, Fact, Thought)
   ══════════════════════════════════════════════════════════ */
body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-row {
  margin-top: 10px !important;
  gap: 12px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-around !important;
  width: 100% !important;
  max-width: 250px !important;
  box-sizing: border-box !important;
  padding: 0 4px !important;
}

body[data-page="home"]:not(.theme-immersive) .spark-badge-btn {
  width: 58px !important;
  height: 58px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 3px solid #2D3436 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  position: relative !important;
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.18s ease !important;
}

/* 🎯 Daily Quiz - Purple/Violet Jelly Orb */
body[data-page="home"]:not(.theme-immersive) .spark-badge-btn.badge-quiz {
  background: linear-gradient(135deg, #A29BFE 0%, #6C5CE7 100%) !important;
  box-shadow: 0 4px 0 #4834D4, 0 6px 12px rgba(108, 92, 231, 0.35) !important;
  color: #FFFFFF !important;
}

/* 💡 Fun Fact - Sunny Golden Amber Orb */
body[data-page="home"]:not(.theme-immersive) .spark-badge-btn.badge-fact {
  background: linear-gradient(135deg, #FFEAA7 0%, #FDCB6E 100%) !important;
  box-shadow: 0 4px 0 #E17055, 0 6px 12px rgba(253, 203, 110, 0.35) !important;
  color: #2D3436 !important;
}

/* 🌟 Today's Thought - Rose Coral Orb */
body[data-page="home"]:not(.theme-immersive) .spark-badge-btn.badge-thought {
  background: linear-gradient(135deg, #FF7675 0%, #D63031 100%) !important;
  box-shadow: 0 4px 0 #B71540, 0 6px 12px rgba(214, 48, 49, 0.35) !important;
  color: #FFFFFF !important;
}

body[data-page="home"]:not(.theme-immersive) .spark-badge-btn:hover {
  transform: translateY(-4px) scale(1.08) !important;
}

body[data-page="home"]:not(.theme-immersive) .spark-badge-btn:active {
  transform: translateY(3px) scale(0.95) !important;
  box-shadow: 0 1.5px 0 #2D3436 !important;
}

body[data-page="home"]:not(.theme-immersive) .spark-badge-btn .badge-icon {
  font-size: 20px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2)) !important;
}

body[data-page="home"]:not(.theme-immersive) .spark-badge-btn .badge-label {
  font-family: 'Baloo 2', 'Fredoka', 'Nunito', sans-serif !important;
  font-size: 9.5px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2px !important;
}

/* In Classic mode, hide floating layout-switcher-widget (the bottom-left 🚀 rocket button triggers it cleanly without cluttering the top) */
body[data-page="home"]:not(.theme-immersive) .layout-switcher-widget {
  display: none !important;
}

body[data-page="home"]:not(.theme-immersive) + div[style*="--bottomnav-h"],
body[data-page="home"]:not(.theme-immersive) .bottom-nav {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   HEIGHT COMPRESSION & CARTOON RUNNING TRAIN ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

/* 1. Height Compression Overrides for Desktop */
@media (min-width: 1200px) {
  body[data-page="home"] .home-layout {
    gap: 15px !important;
    margin: 4px auto 0 auto !important;
    height: auto !important;
    overflow: visible !important;
    align-items: start !important;
  }
  body[data-page="home"] .layout-sidebar {
    height: auto !important;
    min-height: 0;
    overflow: visible !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  body[data-page="home"] .layout-sidebar::-webkit-scrollbar {
    display: none !important;
  }
  body[data-page="home"] .layout-center-col {
    overflow: visible !important;
  }
  /* Train viewport grows to fill remaining right column height */
  body[data-page="home"] .toy-train-viewport {
    flex: 1;
    min-height: 0;
  }


  body[data-page="home"] .layout-sidebar {
    gap: 12px !important;
    justify-content: flex-start !important;
  }
  body[data-page="home"] .mascot-side {
    padding: 15px 12px !important;
    border-radius: 24px !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
  }

  /* Daily Spark card — let it size naturally to its content */
  body[data-page="home"] .daily-spark-card {
    flex-shrink: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body[data-page="home"] .spark-body {
    overflow: visible !important;
  }

  body[data-page="home"] .spark-text {
    white-space: normal !important;
    overflow: visible !important;
    max-height: none !important;
  }
  body[data-page="home"] .hero-greeting {
    margin: 5px 0 2px 0 !important;
    font-size: 22px !important;
  }
  body[data-page="home"] .hero-sub {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }
  body[data-page="home"] .mascot-side-actions {
    margin-top: 3px !important;
  }


  body[data-page="home"] .section-title-chunky {
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    font-size: 18px !important;
  }
}

/* 2. Cartoon Passenger Windows for Carriages */
.hub-card-window {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  background: #E8F0FE;
  border: 3px solid #2D3436;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  box-shadow: inset 0 3px 0 rgba(0,0,0,0.1);
  overflow: hidden;
}

.passenger-emoji {
  font-size: 22px;
  display: inline-block;
  animation: passengerBob 2s ease-in-out infinite alternate;
}

.toy-train-track .hub-card {
  overflow: visible !important;
  padding: 10px 12px !important;
}

.toy-train-track .hub-card-img {
  width: 70px !important;
  height: 70px !important;
}

.toy-train-track .hub-card-content {
  padding-right: 0 !important;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* Circular icon container on the left side of each carriage */
.hub-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.hub-card-icon .hub-card-img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain;
}

/* Fallback emoji inside icon container */
.hub-card-icon > div {
  font-size: 36px !important;
  width: 48px !important;
  height: 48px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}


.toy-train-track .hub-card-title {
  font-size: 16px !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.toy-train-track .hub-card-desc {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.toy-train-track .hub-card-decor {
  right: 5px !important;
  bottom: 5px !important;
  font-size: 55px !important;
}

@keyframes passengerBob {
  from { transform: translateY(2px) rotate(-3deg); }
  to { transform: translateY(-1px) rotate(3deg); }
}

/* 3. Locomotive Chimney Steam Puff Animation */
.train-engine-chimney {
  position: absolute !important;
}

.steam-puff {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%) scale(0.3);
  opacity: 0;
  font-size: 18px;
  pointer-events: none;
  animation: puffUp 1.8s ease-out infinite;
}

.steam-1 { animation-delay: 0s; }
.steam-2 { animation-delay: 0.6s; }
.steam-3 { animation-delay: 1.2s; }

@keyframes puffUp {
  0% {
    transform: translate(-50%, 0) scale(0.3);
    opacity: 0;
  }
  15% {
    opacity: 0.75;
  }
  100% {
    transform: translate(calc(-50% - 15px), -45px) scale(1.4);
    opacity: 0;
  }
}

/* SVG Locomotive Chimney Steam Puffs */
.svg-steam-puff {
  animation: svgLocomotivePuff 1.6s infinite ease-out;
  transform-origin: 42px 14px;
}
.svg-steam-puff.steam-1 { animation-delay: 0s; }
.svg-steam-puff.steam-2 { animation-delay: 0.5s; }
.svg-steam-puff.steam-3 { animation-delay: 1.0s; }

@keyframes svgLocomotivePuff {
  0% { transform: translateY(0) scale(0.6); opacity: 0.85; }
  50% { transform: translateY(-8px) scale(1.1); opacity: 0.6; }
  100% { transform: translateY(-24px) translateX(-14px) scale(1.6); opacity: 0; }
}

/* 4. Default Running Wheel & Connecting Rod Animations */
body[data-page="home"] .wheel {
  animation-play-state: running !important;
}

body[data-page="home"] .wheel-connecting-rod {
  animation: rodMove 3s linear infinite !important;
  animation-play-state: running !important;
}

/* Pause running elements on hover */
body[data-page="home"] .toy-train-viewport:hover .wheel,
body[data-page="home"] .toy-train-viewport:hover .wheel-connecting-rod,
body[data-page="home"] .toy-train-viewport:hover .steam-puff {
  animation-play-state: paused !important;
}

/* 5. Staggered Train Chugging Bounce Animation */
@keyframes trainChug {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

body[data-page="home"] .train-engine {
  animation: none !important;
}

/* Whistle shake effect when clicked */
@keyframes whistleShake {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: translateY(-5px) rotate(-1.5deg); }
  20%, 40%, 60%, 80% { transform: translateY(-5px) rotate(1.5deg); }
}
.whistle-shake {
  animation: whistleShake 0.4s ease-in-out infinite !important;
}

/* Interactive Whistle Steam Puffs */
.interactive-steam-puff {
  position: absolute;
  top: -30px;
  font-size: 28px !important;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  animation: whistleSteam 1.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards !important;
}

@keyframes whistleSteam {
  0% {
    transform: translate(0, 0) scale(0.4);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  100% {
    transform: translate(25px, -85px) scale(2.2);
    opacity: 0;
  }
}

body[data-page="home"] .toy-train-track .hub-card {
  animation: trainChug 0.6s ease-in-out infinite !important;
}

body[data-page="home"] .toy-train-track .hub-card:nth-of-type(odd) {
  animation-delay: 0.15s !important;
}

body[data-page="home"] .toy-train-track .hub-card:nth-of-type(even) {
  animation-delay: 0.3s !important;
}

body[data-page="home"] .toy-train-viewport:hover .train-engine,
body[data-page="home"] .toy-train-viewport:hover .hub-card {
  animation-play-state: paused !important;
}

/* Allow individual wiggles on card hover */
body[data-page="home"] .toy-train-track .hub-card:hover {
  animation: trainWiggle 0.5s ease-in-out infinite !important;
  animation-play-state: running !important;
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP LAYOUT FINAL FIXES — parents corner & carriage sizing
   ═══════════════════════════════════════════════════════════════ */

/* Hide mobile footer on desktop (we have one in the left column) */
@media (min-width: 1025px) {
  .home-footer-mobile {
    display: none !important;
  }

  /* Left-column parents corner link */
  .home-footer-left {
    text-align: center;
    margin-top: 10px;
  }

  /* Shrink carriage illustration so title+desc always fully visible */
  .toy-train-track .hub-card-img {
    width: 55px !important;
    height: 55px !important;
    flex-shrink: 0;
  }

  /* Clip only the card BODY rectangle, not the wheels outside */
  .toy-train-track .hub-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    /* This inner pseudo-element provides clip context for bg imagery */
  }

  /* Give content column enough room: no overflow clip on card itself (done above) */
  .toy-train-track .hub-card-content {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .toy-train-track .hub-card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .toy-train-track .hub-card-desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

  /* On mobile keep footer visible */
@media (max-width: 1024px) {
  .home-footer-left {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TOON CORNER / COMIC STRIP CORNER
   ═══════════════════════════════════════════════════════════════ */
.comic-shelf-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0 20px 0;
  margin-top: 10px;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.comic-shelf-viewport::-webkit-scrollbar {
  display: none;
}

.comic-shelf-track {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 10px 0;
  width: 100%;
  justify-content: flex-start;
}

/* Comic Book Card design */
.comic-card {
  width: 250px;
  background: white;
  border: 4px solid #2D3436;
  border-radius: 20px;
  box-shadow: 0 8px 0 #2D3436;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
  text-decoration: none;
  color: #2D3436;
  position: relative;
}

.comic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 0 #2D3436;
}

.comic-card-img-holder {
  width: 100%;
  height: 140px;
  border-bottom: 4px solid #2D3436;
  overflow: hidden;
  position: relative;
}

.comic-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comic-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #6C5CE7;
  color: white;
  padding: 4px 10px;
  border: 2px solid #2D3436;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  box-shadow: 0 2px 0 #2D3436;
  z-index: 2;
}

.comic-card-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comic-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  color: #2D3436;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comic-card-sub {
  font-size: 12px;
  color: #636E72;
  font-weight: 600;
}

/* Homepage Featured Comic Strip */
.homepage-comic-wrap {
  max-width: 700px;
  width: 100%;
  margin: 10px 0 0 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: #2D3436;
  box-sizing: border-box;
}

.homepage-comic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
}

.homepage-comic-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.homepage-comic-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: #2D3436;
}

.homepage-comic-badge {
  background: #6C5CE7;
  color: white;
  padding: 4px 10px;
  border: 2px solid #2D3436;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  box-shadow: 0 2px 0 #2D3436;
}

.homepage-comic-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Fixed-ratio comic strip container — all strips shown at same size as Changu Mangu (1024x500) */
.homepage-comic-strip-wrap {
  width: 100%;
  aspect-ratio: 1024 / 500;  /* Exact Changu Mangu ratio */
  overflow: hidden;
  border: 4px solid #2D3436;
  border-radius: 16px;
  background: #F8F9FA;
  box-shadow: 0 6px 0 #2D3436;
  display: block;
  position: relative;
  transition: transform 0.2s;
}

.homepage-comic-strip-wrap:hover {
  transform: scale(1.01);
}

.homepage-comic-strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* Crops taller images to fill the fixed ratio box */
  object-position: top;     /* Show the top of the strip (most important part) */
  display: block;
  border-radius: 12px;
  border: none;
  box-shadow: none;
  background: #F8F9FA;
  transition: none;
}

.homepage-comic-btn {
  background: linear-gradient(135deg, #FFB703, #FB8500);
  color: white;
  border: 3px solid #2D3436;
  border-radius: 16px;
  padding: 6px 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 4px 0 #2D3436;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.homepage-comic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2D3436;
}

.homepage-comic-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2D3436;
}

/* Comic Page and Interactive Reader Styles */
.comics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  padding: 20px;
}

/* Fullscreen Overlay Reader Modal */
.comic-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 52, 54, 0.95);
  backdrop-filter: blur(8px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.comic-modal.active {
  display: flex;
}

.comic-modal-content {
  background: #FFF;
  border: 6px solid #2D3436;
  border-radius: 28px;
  width: 100%;
  max-width: 750px;
  max-height: 94vh;
  box-shadow: 0 20px 0 rgba(0,0,0,0.3);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.comic-modal-header {
  padding: 16px 20px;
  background: #FEEAA2; /* bright soft yellow */
  border-bottom: 4px solid #2D3436;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comic-modal-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: #2D3436;
}

.comic-modal-close {
  background: #FF7675;
  border: 3px solid #2D3436;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
  color: white;
  box-shadow: 0 3px 0 #2D3436;
  transition: transform 0.1s;
}

.comic-modal-close:active {
  transform: translateY(3px);
  box-shadow: none;
}

/* Comic Panel Viewport */
.comic-viewport-container {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #F5F6FA;
}

.comic-panel-viewport {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  border: 4px solid #2D3436;
  border-radius: 16px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.1);
  background: white;
}

.comic-strip-image {
  position: absolute;
  height: 100%;
  object-fit: fill;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  left: 0;
  top: 0;
}

/* Zoom action for panel clicks */
.comic-zoom-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(45, 52, 54, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 11px;
  pointer-events: none;
  font-weight: 800;
}

/* Dialog translation caption box */
.comic-caption-box {
  padding: 16px 20px;
  border-top: 4px solid #2D3436;
  background: #FFF;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.comic-dialogue-text {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: #2D3436;
  line-height: 1.5;
  white-space: pre-line;
}

.comic-listen-btn {
  background: #00CEC9;
  border: 3px solid #2D3436;
  border-radius: 14px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 800;
  color: #2D3436;
  cursor: pointer;
  box-shadow: 0 4px 0 #2D3436;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.1s;
}

.comic-listen-btn:active {
  transform: translateY(3px);
  box-shadow: none;
}

/* Navigation controls inside reader */
.comic-controls-box {
  padding: 16px 20px;
  background: #F5F6FA;
  border-top: 4px solid #2D3436;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comic-nav-btn {
  background: #FFD2D2;
  border: 3px solid #2D3436;
  padding: 10px 20px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: #2D3436;
  cursor: pointer;
  box-shadow: 0 4px 0 #2D3436;
  transition: transform 0.1s;
}

.comic-nav-btn:active {
  transform: translateY(3px);
  box-shadow: none;
}

.comic-nav-btn.btn-next {
  background: #55EFC4;
}

.comic-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 4px 0 #2D3436 !important;
}

.comic-panel-indicator {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #2D3436;
}

/* Language selection inside modal */
.comic-modal-lang-selector {
  display: flex;
  gap: 8px;
}

.comic-modal-lang-btn {
  background: white;
  border: 2.5px solid #2D3436;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: #2D3436;
}

.comic-modal-lang-btn.active {
  background: #E84393;
  color: white;
}

@media (max-width: 600px) {
  .comic-modal {
    padding: 8px;
  }
  .comic-modal-content {
    max-height: 96vh;
    border-radius: 20px;
    border-width: 4px;
  }
  .comic-modal-header {
    padding: 10px 14px;
  }
  .comic-modal-title {
    font-size: 15px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .comic-viewport-container {
    padding: 10px;
  }
  .comic-caption-box {
    padding: 10px 14px;
    min-height: 60px;
    gap: 10px;
  }
  .comic-dialogue-text {
    font-size: 13.5px;
  }
  .comic-listen-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .comic-controls-box {
    padding: 10px 14px;
  }
  .comic-nav-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .comic-panel-indicator {
    font-size: 13px;
  }
}

/* Style for panels count group in admin page */
.admin-cms-comic-panels-label {
  font-weight: 600;
  margin-bottom: 4px;
}

/* ==========================================================================
   3D BENTO GRID LANGUAGE SELECTOR (POP-OVER STYLE)
   ========================================================================== */
.topbar-lang-trigger {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #2D3436;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

.flag-icon {
  width: 22px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45, 52, 54, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* Sit on top of everything */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: #FFFDF5;
  border-radius: 32px;
  border: 4px solid #DFE6E9;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15), inset 0 6px 12px rgba(255,255,255,0.9);
  padding: 30px;
  width: 90%;
  max-width: 480px;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-sheet {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 3px dashed #DFE6E9;
  padding-bottom: 12px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #2D3436;
  margin: 0;
}

.modal-close {
  background: #FF4D4F;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 0 #CC2E30;
  transition: all 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:active {
  transform: translateY(2px);
  box-shadow: none;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.bento-key {
  position: relative;
  background: #FFFFFF;
  border: 3px solid #2D3436;
  border-radius: 20px;
  padding: 15px 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #2D3436;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 0 #2D3436;
  outline: none;
}

.bento-key.active {
  background: var(--bg) !important;
  color: #FFFFFF !important;
  border-color: var(--border) !important;
  box-shadow: 0 6px 0 var(--border) !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.bento-key:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--hover-shadow, #2D3436);
}

.bento-key:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--hover-shadow, #2D3436);
}

.key-en { --bg: #4CC9F0; --border: #27A4D0; --hover-shadow: #27A4D0; }
.key-hi { --bg: #FFB703; --border: #FB8500; --hover-shadow: #FB8500; }
.key-mr { --bg: #06D6A0; --border: #04A077; --hover-shadow: #04A077; }
.key-gu { --bg: #FF6B35; --border: #CC4A1E; --hover-shadow: #CC4A1E; }
.key-ta { --bg: #8338EC; --border: #5E23AA; --hover-shadow: #5E23AA; }
.key-te { --bg: #FF006E; --border: #CC0057; --hover-shadow: #CC0057; }
.key-kn { --bg: #FF4D4F; --border: #CC2E30; --hover-shadow: #CC2E30; }
.key-bn { --bg: #FF8A00; --border: #E05300; --hover-shadow: #E05300; }
.key-pa { --bg: #9B5DE5; --border: #7B3FE4; --hover-shadow: #7B3FE4; }
.key-ml { --bg: #00F5D4; --border: #00BBBB; --hover-shadow: #00BBBB; }

.toast-bubble {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: #2D3436;
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
}

.toast-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2D3436;
}

.toast-bubble.active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   DAILY SPARK POPUP MODAL STYLING (GIANT FONTS)
   ═══════════════════════════════════════════════ */
.spark-popup-sheet {
  max-width: 520px !important;
  width: min(92vw, 520px) !important;
  border-radius: 18px !important;
  border: 1.5px solid #CBD5E1 !important;
  padding: 0 !important;
  color: #1E293B !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box;
  text-align: center !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14) !important;
}

/* Modal Themes depending on current Spark Type */
.spark-popup-sheet.theme-quiz {
  --spark-accent: #7E22CE;
  --spark-accent-soft: #FAF5FF;
  --spark-accent-border: #E9D5FF;
}
.spark-popup-sheet.theme-fact {
  --spark-accent: #A16207;
  --spark-accent-soft: #FEFCE8;
  --spark-accent-border: #FEF08A;
}
.spark-popup-sheet.theme-thought {
  --spark-accent: #BE123C;
  --spark-accent-soft: #FFF1F2;
  --spark-accent-border: #FECDD3;
}

.spark-popup-close {
  background: #FFFFFF !important;
  color: #475569 !important;
  border: 1.5px solid #CBD5E1 !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.1s, box-shadow 0.1s !important;
}

.spark-popup-close:hover {
  transform: scale(1.1) !important;
}

.spark-popup-close:active {
  transform: translateY(2px) scale(0.95) !important;
  box-shadow: 0 2px 0 #2D3436 !important;
}

.spark-popup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0;
  border-bottom: 1.5px solid var(--spark-accent-border, #E2E8F0);
  background: var(--spark-accent-soft, #F8FAFC);
  padding: 16px 48px 16px 20px;
  color: var(--spark-accent, #475569);
}

.spark-popup-icon {
  font-size: 28px;
  animation: sparkPulse 2s infinite alternate;
}

.spark-popup-label {
  font-family: var(--font-display, 'Nunito', sans-serif);
  font-weight: 900;
  font-size: 18px;
  text-shadow: none;
}

.spark-popup-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  margin-bottom: 0;
}

.spark-popup-content-text {
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  text-shadow: none;
  margin: 0;
  white-space: normal !important;
}

.spark-popup-tts-btn {
  width: 30px !important;
  height: 30px !important;
  margin-left: 4px !important;
  border: 1.5px solid var(--spark-accent-border, #CBD5E1) !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  color: var(--spark-accent, #475569) !important;
  font-size: 14px !important;
}

/* Quiz Container inside Popup */
.spark-popup-quiz-container {
  width: 100%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.spark-popup-options {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.spark-popup-opt-btn {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 12px 10px;
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #2D3436;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.07);
  transition: all 0.15s ease;
  text-align: center;
}

.spark-popup-opt-btn:hover {
  transform: translateY(-2px);
  border-color: var(--spark-accent, #94A3B8);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.spark-popup-opt-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Option feedback colors inside popup */
.spark-popup-opt-btn.correct-ans {
  background: #55EFC4 !important;
  border-color: #00B894 !important;
  box-shadow: 0 6px 0 #00B894 !important;
  color: #004D38 !important;
}

.spark-popup-opt-btn.wrong-ans {
  background: #FF7675 !important;
  border-color: #D63031 !important;
  box-shadow: 0 6px 0 #D63031 !important;
  color: #4D0000 !important;
  animation: optShake 0.3s ease-in-out;
}

.spark-popup-feedback {
  font-size: 15px !important;
  font-weight: 900;
  text-align: center;
  text-shadow: none;
  margin-top: 2px;
}

/* Shared surface alignment for the Parent Zone and station-based media pages. */
body[data-page="parents"] .parents-tabs {
  border-bottom: 1.5px solid var(--shell-border) !important;
}

body[data-page="parents"] .parents-tab-btn {
  border: 1.5px solid var(--shell-border) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  color: #475569 !important;
}

body[data-page="parents"] .parents-tab-btn:hover {
  border-color: var(--shell-border-strong) !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important;
  background: #FFFEEA !important;
}

body[data-page="parents"] .parents-tab-btn.active {
  background: #FFF7D6 !important;
  border-color: #F4C95D !important;
  box-shadow: 0 2px 5px rgba(217, 119, 6, 0.12) !important;
  transform: none !important;
}

body[data-page="parents"] .ptab-content .parent-welcome,
body[data-page="parents"] .forum-new-thread-box,
body[data-page="parents"] .announcement-card {
  border-width: 1.5px !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05) !important;
}

body[data-page="videos"] .station-banner-card,
body[data-page="audio"] .station-banner-card,
body[data-page="videos"] .station-banner-card,
body[data-page="audio"] .station-banner-card,
body[data-page="books"] .station-banner-card,
body[data-page="games"] .station-banner-card,
body[data-page="paint"] .station-banner-card,
body[data-page="art"] .station-banner-card,
body[data-page="quiz"] .station-banner-card,
body[data-page="jokes"] .station-banner-card,
body[data-page="fun"] .station-banner-card {
  border: 1.5px solid var(--shell-border) !important;
  border-radius: var(--shell-radius) !important;
  box-shadow: var(--shell-shadow) !important;
}

body[data-page="videos"] .station-cat-pill,
body[data-page="audio"] .station-cat-pill,
body[data-page="books"] .station-cat-pill,
body[data-page="games"] .station-cat-pill,
body[data-page="paint"] .station-cat-pill,
body[data-page="art"] .station-cat-pill,
body[data-page="quiz"] .station-cat-pill,
body[data-page="jokes"] .station-cat-pill,
body[data-page="fun"] .station-cat-pill,
body[data-page="videos"] .station-cat-arrow,
body[data-page="audio"] .station-cat-arrow,
body[data-page="books"] .station-cat-arrow,
body[data-page="games"] .station-cat-arrow,
body[data-page="paint"] .station-cat-arrow,
body[data-page="art"] .station-cat-arrow,
body[data-page="quiz"] .station-cat-arrow,
body[data-page="jokes"] .station-cat-arrow,
body[data-page="fun"] .station-cat-arrow {
  border: 1.5px solid var(--shell-border) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body[data-page="videos"] .station-bento-card,
body[data-page="audio"] .station-bento-card,
body[data-page="books"] .station-bento-card,
body[data-page="games"] .station-bento-card,
body[data-page="paint"] .station-bento-card,
body[data-page="art"] .station-bento-card,
body[data-page="quiz"] .station-bento-card,
body[data-page="jokes"] .station-bento-card,
body[data-page="fun"] .station-bento-card {
  border: 1.5px solid var(--shell-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

body[data-page="videos"] .station-bento-card:hover,
body[data-page="audio"] .station-bento-card:hover,
body[data-page="books"] .station-bento-card:hover,
body[data-page="games"] .station-bento-card:hover,
body[data-page="paint"] .station-bento-card:hover,
body[data-page="art"] .station-bento-card:hover,
body[data-page="quiz"] .station-bento-card:hover,
body[data-page="jokes"] .station-bento-card:hover,
body[data-page="fun"] .station-bento-card:hover {
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.1) !important;
}

.station-modal-sheet {
  border: 1.5px solid var(--shell-border) !important;
  border-radius: var(--shell-radius) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18) !important;
}

.station-modal-header {
  border-bottom: 1.5px solid var(--shell-border) !important;
  background: var(--shell-surface-alt) !important;
}

.station-modal-close-btn,
.station-card-action-pill {
  border: 1.5px solid var(--shell-border) !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.1) !important;
}

body[data-page="hub"] .hub-fasthop-container,
body[data-page="hub"] .hub-quest-pass-card,
body[data-page="hub"] .hub-dashboard-box {
  border: 1.5px solid var(--shell-border) !important;
  border-radius: var(--shell-radius) !important;
  box-shadow: var(--shell-shadow) !important;
}

body[data-page="hub"] .fasthop-pill,
body[data-page="hub"] .hub-shelf-arrow-btn,
body[data-page="hub"] .hub-bento-arrow-btn {
  border: 1.5px solid var(--shell-border) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body[data-page="hub"] .fasthop-pill:hover,
body[data-page="hub"] .hub-shelf-arrow-btn:hover,
body[data-page="hub"] .hub-bento-arrow-btn:hover {
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1) !important;
}

body[data-page="hub"] .fasthop-pill.active {
  border-color: #F4C95D !important;
  box-shadow: 0 2px 5px rgba(217, 119, 6, 0.14) !important;
  transform: none !important;
}

body[data-page="hub"] .hub-hero {
  border: 1.5px solid var(--shell-border) !important;
  border-radius: var(--shell-radius) !important;
  box-shadow: var(--shell-shadow) !important;
}

body[data-page="hub"] .hub-media-card {
  border: 1.5px solid var(--shell-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

body[data-page="hub"] .hub-media-card:hover {
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.1) !important;
}

body[data-page="hub"] .hub-card-thumb-wrap {
  border-bottom: 1.5px solid #E2E8F0 !important;
}

body[data-page="hub"] .hub-card-lang {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body[data-page="parents"] .learning-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="parents"] .learning-domain-card {
  background: var(--shell-surface);
  border: 1.5px solid var(--shell-border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

body[data-page="parents"] .learning-domain-progress {
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

body[data-page="parents"] .learning-progress-track {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

body[data-page="parents"] .learning-milestones {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

body[data-page="parents"] .learning-milestone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 5px 8px;
  color: #64748B;
  font-size: 11px;
  font-weight: 700;
}

body[data-page="parents"] .learning-milestone.completed {
  background: #F0FDF4;
  border-color: #A7F3D0;
  color: #065F46;
}

body[data-page="parents"] .parents-legal-footer {
  margin-top: 12px !important;
  padding-bottom: 0 !important;
}

body[data-page="parents"] .forum-new-thread-box,
body[data-page="parents"] .forum-card,
body[data-page="parents"] .newsletter-card,
body[data-page="parents"] .gated-contrib-card,
body[data-page="parents"] .contribute-form-card,
body[data-page="parents"] .added-items-list {
  border: 1.5px solid var(--shell-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05) !important;
}

body[data-page="parents"] .forum-replies-list {
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
}

body[data-page="parents"] #forum-thread-title,
body[data-page="parents"] #forum-thread-lang,
body[data-page="parents"] #forum-thread-body,
body[data-page="parents"] .forum-input-reply,
body[data-page="parents"] .newsletter-input,
body[data-page="parents"] .contribute-form-card input,
body[data-page="parents"] .contribute-form-card select,
body[data-page="parents"] .contribute-form-card textarea {
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body[data-page="parents"] .forum-btn-post,
body[data-page="parents"] .forum-btn-reply,
body[data-page="parents"] .newsletter-btn,
body[data-page="parents"] .gated-contrib-card .btn-primary,
body[data-page="parents"] .contribute-form-card .btn-primary,
body[data-page="parents"] .delete-contrib-btn {
  border: 1.5px solid transparent !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.12) !important;
}

body[data-page="parents"] #ptab-submit.active:not(.has-contribution-form) {
  overflow-y: hidden !important;
}

@media (min-width: 769px) {
  body[data-page="parents"] {
    height: 100vh;
    overflow: hidden !important;
    overflow-y: hidden !important;
  }

  html:has(body[data-page="parents"]) {
    overflow: hidden !important;
  }

  body[data-page="parents"] .page-content.inner-page {
    height: 100vh !important;
    overflow: hidden !important;
  }

  body[data-page="parents"] .two-col-layout {
    height: calc(100vh - var(--topbar-h) - 20px) !important;
    min-height: 0 !important;
  }

  body[data-page="parents"] .layout-main-workspace {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 12px !important;
  }

  body[data-page="parents"] .ptab-content.active {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 2px 10px 4px 2px !important;
    scrollbar-width: thin;
    scrollbar-color: #6CCFC0 #EAF7F4;
  }

  body[data-page="parents"] .ptab-content.active::-webkit-scrollbar {
    width: 8px;
  }

  body[data-page="parents"] .ptab-content.active::-webkit-scrollbar-track {
    background: #EAF7F4;
    border-radius: 999px;
  }

  body[data-page="parents"] .ptab-content.active::-webkit-scrollbar-thumb {
    background: #6CCFC0;
    border: 2px solid #EAF7F4;
    border-radius: 999px;
  }

  body[data-page="parents"] .inner-page-header,
  body[data-page="parents"] .parents-tabs,
  body[data-page="parents"] .parents-legal-footer {
    flex-shrink: 0 !important;
  }
}

@media (max-width: 1024px) {
  body[data-page="parents"] .learning-path-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-height: 680px) {
  body[data-page="parents"] .gated-contrib-card {
    padding: 16px 20px !important;
    margin: 8px auto !important;
  }

  body[data-page="parents"] .gated-contrib-card .lock-icon {
    font-size: 38px !important;
    margin-bottom: 6px !important;
  }

  body[data-page="parents"] .gated-contrib-card h3 {
    font-size: 18px !important;
    margin-bottom: 5px !important;
  }

  body[data-page="parents"] .gated-contrib-card p {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
  }
}

/* Stacking buttons for mobile viewports inside popups */
@media (max-width: 600px) {
  .spark-popup-options {
    flex-direction: column;
  }
  .spark-popup-content-text {
    font-size: 20px !important;
  }
  .spark-popup-opt-btn {
    font-size: 16px !important;
    padding: 14px 10px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM TOY TRAIN REDESIGN (OPTION B: CARGO-FILLED TIMBER WAGONS)
   ═══════════════════════════════════════════════════════════════ */

/* 1. Train Spacers (Front & End) */
@media (min-width: 1025px) {
  .train-front-spacer, .train-end-spacer {
    width: 100% !important;
    height: 50px;
    flex-shrink: 0;
    pointer-events: none;
  }
}

/* ─── DESKTOP LOCOMOTIVE ENGINE LAYOUT ───────────────────────── */
.toy-train-track .train-engine {
  position: relative !important;
  width: 200px !important;
  min-width: 200px !important;
  height: 120px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  cursor: pointer !important;
  overflow: visible !important;
}

.toy-train-track .engine-body {
  position: absolute !important;
  bottom: 24px !important;
  left: 0 !important;
  width: 100% !important;
  height: 85px !important;
}

/* Boiler: left tube section of engine */
.toy-train-track .engine-boiler {
  position: absolute !important;
  bottom: 0 !important;
  left: 14px !important;
  width: 100px !important;
  height: 58px !important;
  border-radius: 16px 8px 8px 8px !important;
  overflow: visible !important;
}

/* Cab: right tall section */
.toy-train-track .engine-cab {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 64px !important;
  height: 82px !important;
  border-radius: 14px 14px 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Cab roof sits on top of cab */
.toy-train-track .engine-cab-roof {
  position: absolute !important;
  top: -12px !important;
  left: -4px !important;
  right: -4px !important;
  height: 16px !important;
  border-radius: 8px 8px 0 0 !important;
}

/* Cab window — circular porthole */
.toy-train-track .engine-cab-window {
  position: relative !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  z-index: 2 !important;
}

/* Chimney on top of boiler */
.toy-train-track .train-engine-chimney {
  position: absolute !important;
  top: -30px !important;
  left: 28px !important;
  width: 22px !important;
  height: 32px !important;
}

/* Cowcatcher: angled wedge at the very front */
.toy-train-track .engine-cowcatcher {
  position: absolute !important;
  bottom: -6px !important;
  left: -18px !important;
  width: 20px !important;
  height: 38px !important;
  border-radius: 4px 0 0 4px !important;
  transform: skewY(12deg) !important;
}

/* Headlight on boiler front */
.toy-train-track .engine-headlight {
  position: absolute !important;
  left: -8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
}

/* Dome on top of boiler */
.toy-train-track .engine-dome {
  position: absolute !important;
  top: -14px !important;
  right: 18px !important;
  width: 24px !important;
  height: 18px !important;
  border-radius: 50% 50% 0 0 !important;
}

/* Wheels row under engine */
.toy-train-track .engine-wheels {
  position: absolute !important;
  bottom: 0 !important;
  left: 8px !important;
  width: 180px !important;
  height: 36px !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 14px !important;
}

.toy-train-track .wheel-small {
  width: 28px !important;
  height: 28px !important;
  position: relative !important;
  bottom: auto !important;
}

.toy-train-track .wheel-large {
  width: 36px !important;
  height: 36px !important;
  position: relative !important;
  bottom: auto !important;
}

/* Connecting rod between driver wheels */
.toy-train-track .wheel-connecting-rod {
  position: absolute !important;
  bottom: 14px !important;
  left: 36px !important;
  width: 84px !important;
  height: 8px !important;
  border-radius: 4px !important;
  z-index: 9 !important;
}

/* 2. Volumetric Boiler & Locomotive Cab Styling */

.engine-boiler {
  background: linear-gradient(135deg, #FF3B30, #C91D13) !important;
  border: 5px solid #2D3436 !important;
  position: absolute !important;
  overflow: visible;
  box-shadow: inset 0 6px 8px rgba(255,255,255,0.45),
              inset 0 -8px 10px rgba(0,0,0,0.25),
              0 8px 0 #9E1B12,
              0 12px 15px rgba(0,0,0,0.2) !important;
}

.boiler-band {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(to right, #FFE066, #F1C40F, #D4AC0D);
  border-left: 2.5px solid #2D3436;
  border-right: 2.5px solid #2D3436;
  z-index: 6;
}

.boiler-band.band-1 { left: 20px; }
.boiler-band.band-2 { left: 55px; }

.engine-cab {
  background: linear-gradient(135deg, #FFCC00, #FF9500) !important;
  border: 5px solid #2D3436 !important;
  box-shadow: inset 0 8px 10px rgba(255,255,255,0.45),
              inset 0 -8px 10px rgba(0,0,0,0.25),
              0 8px 0 #C27D0E,
              0 12px 15px rgba(0,0,0,0.2) !important;
}

/* Rounded Cabin Window & Roof red gradient overrides */
.engine-cab-window {
  background: #EBF5FB !important;
  border: 3.5px solid #2D3436 !important;
  border-radius: 50% !important;
  box-shadow: inset 0 3px 5px rgba(0,0,0,0.2) !important;
  animation: passengerBob 2.5s ease-in-out infinite alternate !important;
}

.engine-cab-roof {
  background: linear-gradient(135deg, #FF3B30, #C91D13) !important;
  border: 4px solid #2D3436 !important;
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.45), 0 3px 5px rgba(0,0,0,0.15) !important;
}

/* Solid Black Iron Toy Chassis Deck plate under engine cab & boiler */
.engine-body::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: -12px;
  width: 188px;
  height: 10px;
  background: linear-gradient(to bottom, #424242, #1A1A1A) !important;
  border: 3.5px solid #2D3436 !important;
  border-radius: 5px !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), 0 3px 5px rgba(0,0,0,0.2) !important;
  z-index: 4;
}

.train-engine-chimney {
  position: absolute !important;
  background: linear-gradient(135deg, #2D3436, #1A1A1A) !important;
  border: 4px solid #2D3436 !important;
  border-radius: 6px 6px 2px 2px !important;
  box-shadow: inset 0 4px 0 rgba(255,255,255,0.2) !important;
}

.engine-cowcatcher {
  background: repeating-linear-gradient(45deg, #FF3B30, #FF3B30 4px, #FFCC00 4px, #FFCC00 8px) !important;
  border: 4px solid #2D3436 !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2) !important;
}

.engine-dome {
  background: linear-gradient(135deg, #FFCC00, #FF9500) !important;
  border: 4.5px solid #2D3436 !important;
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.4) !important;
}

.wheel-connecting-rod {
  background: linear-gradient(to bottom, #EBF5FB, #BDC3C7) !important;
  border: 3px solid #2D3436 !important;
  box-shadow: 0 3px 4px rgba(0,0,0,0.2) !important;
}

/* 3. Glowing Headlight & Spotlight Beam */
.engine-headlight {
  background: linear-gradient(135deg, #FFF9C4, #F1C40F) !important;
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.8), inset 0 2px 3px rgba(255,255,255,0.8);
  position: relative;
}

.headlight-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  background: rgba(255, 235, 59, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(5px);
  animation: headlightPulse 1.8s infinite alternate ease-in-out;
  pointer-events: none;
}

.headlight-beam {
  position: absolute;
  top: -26px;
  right: 12px;
  width: 140px;
  height: 68px;
  background: linear-gradient(to left, rgba(255, 235, 59, 0.4), rgba(255, 235, 59, 0));
  clip-path: polygon(100% 45%, 0 0, 0 100%, 100% 55%);
  transform-origin: right center;
  pointer-events: none;
  z-index: -1;
  filter: drop-shadow(0 0 4px rgba(255,235,59,0.2));
}

@keyframes headlightPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; }
}

@keyframes rollWheels {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* 4. Wheel spokes & Volumetric Toy Wheels */
.wheel-spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  height: 5px;
  background: #2D3436;
  transform: translate(-50%, -50%);
  border-radius: 3px;
  z-index: 1;
}

.wheel-spoke::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #2D3436;
  transform: rotate(90deg);
  border-radius: 3px;
}

/* Volumetric Toy Wheel design */
.wheel {
  border-radius: 50%;
  border: 5px solid #2D3436;
  background: radial-gradient(circle, #2D3436 24%, #F1C40F 24% 34%, #E74C3C 34% 50%, #2D3436 50% 64%, #BDC3C7 64%);
  box-shadow: inset 0 4px 0 rgba(255,255,255,0.4), 
              inset 0 -4px 0 rgba(0,0,0,0.3),
              0 6px 8px rgba(0,0,0,0.35) !important;
  position: absolute;
  bottom: 0;
  animation: rollWheels 1.8s linear infinite !important;
  z-index: 8;
}

/* SVG Wagon Wheels Rotation with exact wheel centers */
.svg-wheels .svg-wheel-left {
  transform-origin: 36px 94px !important;
  transform-box: view-box !important;
  animation: rollWheels 1.8s linear infinite !important;
}

.svg-wheels .svg-wheel-right {
  transform-origin: 138px 94px !important;
  transform-box: view-box !important;
  animation: rollWheels 1.8s linear infinite !important;
}

/* Hide headlight cone from bleeding behind engine */
.engine-headlight {
  background: linear-gradient(135deg, #FFF9C4, #F1C40F) !important;
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.7);
  position: relative;
  overflow: hidden !important;
}

.headlight-beam {
  display: none !important; /* Hide yellow yellow projection block in front of engine */
}

.toy-train-viewport.paused .wheel,
.toy-train-viewport.paused .svg-wheels .svg-wheel-left,
.toy-train-viewport.paused .svg-wheels .svg-wheel-right {
  animation-play-state: paused !important;
}

/* 5. Compact Squarish 3D Toy Carriage Cards */
.toy-train-track .hub-card {
  width: 170px !important;  /* Low-profile flatbed width */
  height: 80px !important;   /* Sleek horizontal height */
  margin: 0 0 15px 0 !important;
  border: 5px solid #2D3436 !important;
  border-radius: 18px !important;
  position: relative !important;
  background-clip: padding-box !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 8px !important;
}

/* Wood slatted crate paneling */
.wagon-wood-planks {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 3px;
  pointer-events: none;
  z-index: 1;
}

.wood-plank {
  height: 38%;
  background: rgba(255, 255, 255, 0.12);
  border-bottom: 3.5px solid rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.wood-plank:last-child {
  border-bottom: none;
}

/* Hide circular image thumbnail on train wagons to keep it clean and toy-like! */
.toy-train-track .hub-card-icon {
  display: none !important;
}

/* Chunky Title Signage - Left aligned, vertically centered */
.toy-train-track .hub-card-content {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  left: 12px !important;
  right: 52px !important; /* Leaves room for window on the right */
  text-align: left !important;
  z-index: 5 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  height: auto !important;
}

.toy-train-track .hub-card-title {
  font-family: var(--font-display) !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  text-shadow: 0 2px 0 rgba(0,0,0,0.35), 0 3px 0 rgba(0,0,0,0.15) !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  white-space: normal !important;
  text-transform: uppercase !important; /* Chunky uppercase titles */
  letter-spacing: 0.5px !important;
}

/* Hide description text completely to make it look like a toy wagon front */
.toy-train-track .hub-card-desc {
  display: none !important;
}

/* Round passenger window cut-out - Right aligned, vertically centered */
.toy-train-track .hub-card-window {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 8px !important;
  width: 38px !important;
  height: 38px !important;
  background: #EBF5FB !important;
  border: 3px solid #2D3436 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 6 !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2) !important;
  overflow: hidden !important;
}

.toy-train-track .passenger-emoji {
  font-size: 22px !important;
}

/* Alignment of wheels under compact carriages */
.toy-train-track .card-wheels {
  position: absolute !important;
  bottom: -22px !important;
  left: 0 !important;
  right: 0 !important;
  height: 0 !important;
  z-index: 4 !important;
}

.toy-train-track .card-wheels .wheel-1 {
  left: 20px !important;
}

.toy-train-track .card-wheels .wheel-2 {
  right: 20px !important;
}

/* Wagon Title Badge (High Contrast Readability centered on wagon body) */
.toy-train-track .wagon-inner-content {
  position: absolute !important;
  top: 32px !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

.toy-train-track .wagon-direct-title {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  background: #2D3436 !important;
  border: 2px solid #F1C40F !important;
  border-radius: 999px !important;
  padding: 2px 12px !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.35) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8) !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
}

/* 6. Massive Cargo Spilling Overflows */
.toy-train-track .wagon-cargo {
  position: absolute !important;
  top: -42px !important;
  left: 6px !important;
  right: 6px !important;
  height: 48px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-around !important;
  z-index: 6 !important;
}

.cargo-item, .cargo-abacus, .cargo-book, .toy-block, .cargo-rocket, .cargo-planet, .cargo-star, .cargo-diya, .cargo-lantern, .cargo-sweet {
  filter: drop-shadow(0 4px 3px rgba(0,0,0,0.24));
  animation: cargoBob 2.2s ease-in-out infinite alternate;
}

@keyframes cargoBob {
  0% { transform: translateY(2px) scale(0.95) rotate(-2deg); }
  100% { transform: translateY(-7px) scale(1.05) rotate(3deg); }
}

/* Math abacus */
.cargo-abacus {
  width: 52px !important;
  height: 40px !important;
  background: linear-gradient(135deg, #E67E22, #D35400) !important;
  border: 3.5px solid #2D3436 !important;
  border-radius: 8px !important;
  padding: 4px !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2), 0 4px 6px rgba(0,0,0,0.15) !important;
}

.abacus-frame {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-around !important;
  height: 100% !important;
}

.abacus-wire {
  height: 2px !important;
  background: #BDC3C7 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 1.5px !important;
}

.abacus-bead {
  width: 7px !important;
  height: 9px !important;
  border-radius: 2.5px !important;
  border: 1px solid #2D3436 !important;
}

.math-num-1 { font-size: 26px !important; color: #FFFFFF !important; font-weight: 900 !important; text-shadow: 0 2px 0 rgba(0,0,0,0.3) !important; }
.math-num-2 { font-size: 18px !important; color: #FFEB3B !important; font-weight: 900 !important; text-shadow: 0 2px 0 rgba(0,0,0,0.3) !important; }
.math-num-3 { font-size: 28px !important; color: #FFFFFF !important; font-weight: 900 !important; text-shadow: 0 2px 0 rgba(0,0,0,0.3) !important; }

/* English: big open storybook & alphabet blocks */
.cargo-book {
  font-size: 38px !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.cargo-toy-blocks {
  display: flex !important;
  gap: 2px !important;
}

.toy-block {
  width: 26px !important;
  height: 26px !important;
  border-radius: 5px !important;
  border: 3.5px solid #2D3436 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25) !important;
}

.block-a { background: #FF3B30 !important; }
.block-b { background: #FFCC00 !important; }
.block-c { background: #34C759 !important; }

/* Space: Large rocket & Saturn */
.cargo-rocket {
  font-size: 38px !important;
}

.cargo-planet {
  font-size: 32px !important;
}

/* Diwali: candle flame wiggles & lanterns */
.cargo-diya {
  font-size: 32px !important;
}

.diya-glow {
  top: -2px !important;
  width: 16px !important;
  height: 16px !important;
}

.cargo-lantern {
  font-size: 32px !important;
}

.cargo-sweet {
  font-size: 24px !important;
}

/* 7. Volumetric 3D Tactile Carriage Gradients */
.card-math {
  background: linear-gradient(135deg, #11998E, #38EF7D) !important;
  box-shadow: inset 0 6px 0 rgba(255,255,255,0.4),
              inset 0 -12px 0 rgba(0,0,0,0.2), 
              0 10px 0 #107A6F, 
              0 15px 20px rgba(0,0,0,0.2) !important;
}
.card-math:active {
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.2),
              inset 0 -6px 0 rgba(0,0,0,0.2), 
              0 4px 0 #107A6F, 
              0 8px 10px rgba(0,0,0,0.15) !important;
}

.card-english {
  background: linear-gradient(135deg, #8E2DE2, #4A00E0) !important;
  box-shadow: inset 0 6px 0 rgba(255,255,255,0.4),
              inset 0 -12px 0 rgba(0,0,0,0.2), 
              0 10px 0 #5E0EB3, 
              0 15px 20px rgba(0,0,0,0.2) !important;
}
.card-english:active {
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.2),
              inset 0 -6px 0 rgba(0,0,0,0.2), 
              0 4px 0 #5E0EB3, 0 8px 10px rgba(0,0,0,0.15) !important;
}

.card-space {
  background: linear-gradient(135deg, #23074D, #CC5333) !important;
  box-shadow: inset 0 6px 0 rgba(255,255,255,0.4),
              inset 0 -12px 0 rgba(0,0,0,0.2), 
              0 10px 0 #1A053A, 
              0 15px 20px rgba(0,0,0,0.2) !important;
}
.card-space:active {
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.2),
              inset 0 -6px 0 rgba(0,0,0,0.2), 
              0 4px 0 #1A053A, 0 8px 10px rgba(0,0,0,0.15) !important;
}

.card-diwali {
  background: linear-gradient(135deg, #FF9900, #FF5E62) !important;
  box-shadow: inset 0 6px 0 rgba(255,255,255,0.4),
              inset 0 -12px 0 rgba(0,0,0,0.2), 
              0 10px 0 #B36B00, 
              0 15px 20px rgba(0,0,0,0.2) !important;
}
.card-diwali:active {
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.2),
              inset 0 -6px 0 rgba(0,0,0,0.2), 
              0 4px 0 #B36B00, 0 8px 10px rgba(0,0,0,0.15) !important;
}

/* ============================================================================
   WONDERWORLD EXTENSIONS: SEARCH, AGE GROUP & THEME HUB STYLING
   ============================================================================ */

/* 1. Sidebar Search Widget */
.sidebar-search-box {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.search-input-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

#sidebar-search-input {
  width: 100% !important;
  height: 100% !important;
  padding: 0 32px 0 10px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  color: #2D3436 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  outline: none !important;
}

#sidebar-search-input:focus {
  border-color: transparent !important;
  box-shadow: none !important;
}

#sidebar-voice-search-btn {
  position: absolute !important;
  right: 4px !important;
  width: 22px !important;
  height: 22px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

#sidebar-voice-search-btn:hover {
  transform: translateY(-50%) !important;
  background: rgba(56, 189, 248, 0.18) !important;
}

#sidebar-voice-search-btn.listening {
  background: linear-gradient(135deg, #FF7675, #D63031) !important;
  color: #FFFFFF !important;
  animation: pulseListen 1s infinite alternate;
}

@keyframes pulseListen {
  0% { transform: scale(1); box-shadow: 0 2px 0 #2D3436, 0 0 0 rgba(214, 48, 49, 0.4); }
  100% { transform: scale(1.15); box-shadow: 0 2px 0 #2D3436, 0 0 10px rgba(214, 48, 49, 0.8); }
}

/* 2. Sidebar Age Filter Widget */
.sidebar-age-filter {
  width: 100% !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.age-filter-title {
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-size: 10px !important;
  color: #2D3436 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 4px;
}

.age-filter-options {
  display: flex;
  background: #F1F2F6 !important;
  border: 3px solid #2D3436 !important;
  border-radius: 18px !important;
  box-shadow: 0 3px 0 #2D3436 !important;
  padding: 2px !important;
  overflow: hidden;
  box-sizing: border-box;
}

.age-btn {
  flex: 1;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  color: #57606F !important;
  background: transparent !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 5px 2px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-align: center !important;
}

.age-btn.active {
  background: linear-gradient(135deg, #FFB703, #FB8500) !important; /* Premium Bouncy Orange */
  color: #FFFFFF !important;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.15) !important;
}

.age-btn:not(.active):hover {
  background: rgba(0,0,0,0.05) !important;
  color: #2D3436 !important;
}

/* 3. Fullscreen Search Overlay Grid (Homepage) */
.search-results-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 253, 245, 0.98); /* warm kids theme backdrop */
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 30px;
  box-sizing: border-box;
}

.search-results-overlay.active {
  display: flex;
}

.search-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  border-bottom: 4px dashed #2D3436;
  padding-bottom: 15px;
}

.search-overlay-title {
  font-family: var(--font-display) !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #e84393 !important;
}

.search-overlay-close {
  background: #FF7675 !important;
  border: 3.5px solid #2D3436 !important;
  border-radius: 50% !important;
  width: 44px;
  height: 44px;
  font-size: 18px !important;
  color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.search-overlay-close:hover {
  transform: scale(1.1) rotate(90deg) !important;
}

.search-results-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding-bottom: 30px;
}

/* 4. Themed Explorer Hub Bento Block */
.explorer-hub-section {
  background: #FFF !important;
  border: 5px solid #2D3436 !important;
  border-radius: var(--radius-card) !important;
  box-shadow: 0 10px 0 #2D3436 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  margin-bottom: 20px;
}

.explorer-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.explorer-hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px !important;
  border-radius: 20px !important;
  border: 4px solid #2D3436 !important;
  box-shadow: 0 6px 0 #2D3436 !important;
  text-decoration: none !important;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  cursor: pointer;
  text-align: center;
}

.explorer-hub-card .hub-icon {
  font-size: 38px !important;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.explorer-hub-card .hub-name {
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
}

.explorer-hub-card:hover {
  transform: translateY(-4px) !important;
}

.explorer-hub-card:active {
  transform: translateY(3px) !important;
  box-shadow: 0 3px 0 #2D3436 !important;
}

/* Specific Hub Card Theme Colors */
.card-theme-animals { background: linear-gradient(135deg, #FFEAA7, #FFD25A) !important; border-color: #2D3436 !important; }
.card-theme-space { background: linear-gradient(135deg, #DFF9FB, #81ECEC) !important; border-color: #2D3436 !important; }
.card-theme-oceans { background: linear-gradient(135deg, #74B9FF, #0984E3) !important; border-color: #2D3436 !important; }
.card-theme-dinosaurs { background: linear-gradient(135deg, #55E6C1, #58B19F) !important; border-color: #2D3436 !important; }
.card-theme-animals:hover { box-shadow: 0 8px 0 #2D3436, 0 12px 18px rgba(253,203,110,0.4) !important; }
.card-theme-space:hover { box-shadow: 0 8px 0 #2D3436, 0 12px 18px rgba(129,236,236,0.4) !important; }
.card-theme-oceans:hover { box-shadow: 0 8px 0 #2D3436, 0 12px 18px rgba(9,132,227,0.4) !important; }
.card-theme-dinosaurs:hover { box-shadow: 0 8px 0 #2D3436, 0 12px 18px rgba(88,177,159,0.4) !important; }
/* ============================================================
   FLAT CARTOON ANIMATED SCENE BACKGROUND (bg_scene.js)
   ============================================================ */

/* ═══════════════════════════════════════════════════════════════
   OPTION 1: WARM SUNNY MORNING SKY CANVAS & TACTILE 3D TOY SHELLS
   ═══════════════════════════════════════════════════════════════ */
#animated-bg-scene {
  display: none !important;
}

/* Warm, gentle morning sky on homepage — perfectly harmonizes with the railway station and top sky bar */
body[data-page="home"] {
  background: linear-gradient(180deg, #BAE6FD 0%, #E0F2FE 40%, #FEF9C3 100%) !important;
  background-attachment: fixed !important;
}

body[data-page="home"] .inner-page {
  background: transparent !important;
}

/* Gentle playful stardust/sun-sparkle texture — ONLY shown when Seasonal Atmosphere & Sparkle Drift is ON in Admin 1.3 */
body[data-page="home"]::before {
  content: none !important;
  display: none !important;
}
body[data-page="home"].balwadi-sparkles-active::before {
  content: '' !important;
  display: block !important;
  position: fixed !important;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none !important;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.6) 1.5px, transparent 1.5px), 
    radial-gradient(rgba(245, 158, 11, 0.15) 1.2px, transparent 1.2px) !important;
  background-size: 32px 32px, 64px 64px !important;
  background-position: 0 0, 16px 16px !important;
  opacity: 0.7 !important;
  z-index: 0 !important;
}

/* Background floating emojis — hidden when Sparkle Drift is OFF so the sky stays crisp & clean */
body[data-page="home"] .page-floaters {
  display: none !important;
}
body[data-page="home"].balwadi-sparkles-active .page-floaters {
  display: block !important;
}
body[data-page="home"].balwadi-sparkles-active .page-floaters .floater {
  opacity: 0.18 !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08)) !important;
}

/* Content sits comfortably above the sky canvas */
body[data-page="home"] .page-content {
  position: relative;
  z-index: 1;
}

/* Homepage legal footer links on morning sky canvas */
body[data-page="home"] .app-legal-footer .legal-footer-links {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}
body[data-page="home"] .app-legal-footer .legal-link-item {
  color: #475569 !important;
}
body[data-page="home"] .app-legal-footer .legal-link-item:hover {
  color: #0284C7 !important;
}
body[data-page="home"] .app-legal-footer .legal-link-item.legal-privacy-highlight {
  color: #059669 !important;
}
body[data-page="home"] .app-legal-footer .legal-link-item.legal-privacy-highlight:hover {
  color: #047857 !important;
}
body[data-page="home"] .app-legal-footer .legal-link-sep {
  color: #CBD5E1 !important;
}
body[data-page="home"] .app-legal-footer .legal-footer-copy {
  color: #64748B !important;
}

/* Give sidebar fully transparent background */
.layout-sidebar {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 20px !important;
  padding: 12px 10px !important;
}
body[data-page="home"] .layout-center-col {
  position: relative;
  z-index: 1;
}

/* ── Sun rays spin ── */
@keyframes bg-spin-rays {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.bg-sun-rays {
  animation: bg-spin-rays 14s linear infinite;
  transform-origin: 1230px 130px;
}

/* ── Sun group bobs up/down ── */
@keyframes bg-sun-bob {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
.bg-sun-group {
  animation: bg-sun-bob 4.5s ease-in-out infinite;
}

/* ── Rainbow shimmer ── */
@keyframes bg-rainbow-shimmer {
  0%, 100% { opacity: 0.60; }
  50%       { opacity: 0.90; }
}
.bg-rainbow {
  animation: bg-rainbow-shimmer 4s ease-in-out infinite;
}

/* ── Cloud layer 1 — slow (80s full cycle) ── */
@keyframes bg-cloud-drift-1 {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-1800px); }
}
.bg-cloud-1 {
  animation: bg-cloud-drift-1 80s linear infinite;
}

/* ── Cloud layer 2 — medium (50s) ── */
@keyframes bg-cloud-drift-2 {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-2100px); }
}
.bg-cloud-2 {
  animation: bg-cloud-drift-2 50s linear infinite;
}

/* ── Cloud layer 3 — fast (32s) ── */
@keyframes bg-cloud-drift-3 {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-1900px); }
}
.bg-cloud-3 {
  animation: bg-cloud-drift-3 32s linear infinite;
}

/* ── Birds group A — fly left to right across sky ── */
@keyframes bg-birds-fly-a {
  0%   { transform: translate(-300px, 185px); }
  100% { transform: translate(1700px,  95px); }
}
.bg-birds-a {
  animation: bg-birds-fly-a 20s linear infinite;
}

/* ── Birds group B — fly left to right, delayed, lower ── */
@keyframes bg-birds-fly-b {
  0%   { transform: translate(-500px, 258px); }
  100% { transform: translate(1700px, 210px); }
}
.bg-birds-b {
  animation: bg-birds-fly-b 28s linear infinite 10s;
}

/* ── River wave scroll ── */
@keyframes bg-wave-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-400px); }
}
.bg-wave-scroll {
  animation: bg-wave-scroll 5s linear infinite;
}

/* ── Sailboat Gentle River Float ── */
@keyframes bg-sailboat-sail {
  0%   { transform: translate(-80px, 638px) rotate(-3deg); }
  25%  { transform: translate(320px, 628px) rotate(2deg); }
  50%  { transform: translate(720px, 642px) rotate(-2deg); }
  75%  { transform: translate(1120px, 626px) rotate(3deg); }
  100% { transform: translate(1520px, 636px) rotate(-1deg); }
}
.bg-sailboat {
  animation: bg-sailboat-sail 26s linear infinite;
  cursor: pointer;
  transition: filter 0.2s;
}
.bg-sailboat:hover {
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.8));
}

/* ── Spinning Windmill Blades ── */
@keyframes bg-windmill-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.bg-windmill-blades {
  animation: bg-windmill-spin 8s linear infinite;
  transform-origin: 0px 0px;
}

/* ── Fish 1 — orange, swims rightward, loops ── */
@keyframes bg-fish-1-swim {
  0%   { transform: translate(280px,  640px); }
  100% { transform: translate(1500px, 620px); }
}
.bg-fish-1 {
  animation: bg-fish-1-swim 13s linear infinite;
}

/* ── Fish 2 — purple, swims rightward, delayed ── */
@keyframes bg-fish-2-swim {
  0%   { transform: translate(600px,  668px); }
  100% { transform: translate(1500px, 648px); }
}
.bg-fish-2 {
  animation: bg-fish-2-swim 9s linear infinite 4s;
}

/* ── Fish 3 — cyan, swims LEFTWARD ── */
@keyframes bg-fish-3-swim {
  0%   { transform: translate(1380px, 656px); }
  100% { transform: translate(-100px,  670px); }
}
.bg-fish-3 {
  animation: bg-fish-3-swim 15s linear infinite 2s;
}

/* ── Chimney smoke puffs ── */
@keyframes bg-smoke-a {
  0%   { transform: translate(0, 0)   scale(1);   opacity: 0.85; }
  100% { transform: translate(-6px, -38px) scale(1.6); opacity: 0; }
}
@keyframes bg-smoke-b {
  0%   { transform: translate(0, 0)   scale(1);   opacity: 0.65; }
  100% { transform: translate(6px, -32px)  scale(1.5); opacity: 0; }
}
@keyframes bg-smoke-c {
  0%   { transform: translate(0, 0)   scale(1);   opacity: 0.45; }
  100% { transform: translate(-3px, -26px) scale(1.4); opacity: 0; }
}
.bg-smoke-a { animation: bg-smoke-a 2.8s ease-out infinite; }
.bg-smoke-b { animation: bg-smoke-b 2.8s ease-out infinite 0.9s; }
.bg-smoke-c { animation: bg-smoke-c 2.8s ease-out infinite 1.8s; }

/* ── Flowers sway ── */
@keyframes bg-flower-sway-1 {
  0%, 100% { transform: rotate(-7deg); }
  50%       { transform: rotate(7deg); }
}
@keyframes bg-flower-sway-2 {
  0%, 100% { transform: rotate(6deg); }
  50%       { transform: rotate(-6deg); }
}
@keyframes bg-flower-sway-3 {
  0%, 100% { transform: rotate(-5deg); }
  50%       { transform: rotate(9deg); }
}
.bg-flower-sw  { animation: bg-flower-sway-1 2.6s ease-in-out infinite; transform-box: fill-box; }
.bg-flower-sw2 { animation: bg-flower-sway-2 3.1s ease-in-out infinite; transform-box: fill-box; }
.bg-flower-sw3 { animation: bg-flower-sway-3 2.2s ease-in-out infinite; transform-box: fill-box; }

/* Pause all animations when tab is not visible (battery saving) */
@media (prefers-reduced-motion: reduce) {
  #animated-bg-scene * { animation: none !important; }
}

@keyframes parentGateShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* ──────────────────────────────────────────────────────────
   PARENTS ZONE STYLING (parents.html Redesign)
   ────────────────────────────────────────────────────────── */

body[data-page="parents"] .page-content.inner-page {
  padding: 6px 14px 14px 14px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

body[data-page="parents"] .two-col-layout,
body[data-page="about"] .two-col-layout,
body[data-page="legal"] .two-col-layout,
body[data-page="contact"] .two-col-layout,
body[data-page="terms"] .two-col-layout,
body[data-page="privacy"] .two-col-layout {
  gap: 12px !important;
  align-items: start !important;
}

body[data-page="parents"] .layout-main-workspace,
body[data-page="about"] .layout-main-workspace,
body[data-page="legal"] .layout-main-workspace,
body[data-page="contact"] .layout-main-workspace,
body[data-page="terms"] .layout-main-workspace,
body[data-page="privacy"] .layout-main-workspace {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1.5px solid var(--shell-border) !important;
  border-radius: var(--shell-radius) !important;
  box-shadow: var(--shell-shadow) !important;
}

body[data-page="parents"] .inner-page-header,
body[data-page="about"] .inner-page-header,
body[data-page="legal"] .inner-page-header,
body[data-page="contact"] .inner-page-header,
body[data-page="terms"] .inner-page-header,
body[data-page="privacy"] .inner-page-header {
  margin-bottom: 8px !important;
  padding: 12px 18px 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(240,247,255,0.9)) !important;
  border: 1.5px solid var(--shell-border) !important;
  border-radius: 999px !important;
  box-shadow: var(--shell-shadow) !important;
}

body[data-page="parents"] .inner-page-header .inner-page-title {
  margin: 0 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

.parents-tabs {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  border-bottom: 1.5px solid var(--shell-border) !important;
  padding-bottom: 8px !important;
  flex-wrap: wrap !important;
}

.parents-tab-btn {
  padding: 6px 14px !important;
  border: 1.5px solid var(--shell-border) !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  font-family: var(--font-display, 'Fredoka', 'Baloo 2', cursive) !important;
  font-weight: 900 !important;
  font-size: 12.5px !important;
  color: #475569 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.parents-tab-btn:hover {
  transform: translateY(-1px) !important;
  border-color: var(--shell-border-strong) !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important;
  background: #FFFEEA !important;
}

.parents-tab-btn.active {
  background: #FFF7D6 !important;
  border-color: #F4C95D !important;
  transform: none !important;
  box-shadow: 0 2px 5px rgba(217, 119, 6, 0.12) !important;
}

.ptab-content {
  width: 100% !important;
  box-sizing: border-box !important;
}

.ptab-content .parent-welcome {
  margin-bottom: 14px !important;
  padding: 12px 16px !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
}

/* What's New & Tips */
.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.announcement-card {
  background: #FFFFFF;
  border: 3.5px solid #2D3436;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 5px 0 #2D3436;
}

.announcement-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  border: 2px solid #2D3436;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tag-news { background: #74B9FF; }
.tag-tip { background: #55E6C1; }
.tag-update { background: #A29BFE; }

.announcement-title {
  font-family: var(--font-display) !important;
  font-size: 18px;
  font-weight: 900;
  color: #2D3436;
  margin-bottom: 6px;
}

.announcement-desc {
  font-size: 13.5px;
  color: #57606F;
  line-height: 1.5;
}

/* Forum Styles */
.forum-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.forum-card {
  background: #FFFFFF;
  border: 3.5px solid #2D3436;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 5px 0 #2D3436;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forum-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.forum-card-title {
  font-family: var(--font-display) !important;
  font-size: 17px;
  font-weight: 900;
  color: #2D3436;
}

.forum-card-meta {
  font-size: 12px;
  color: #888;
  font-weight: 700;
}

.forum-card-body {
  font-size: 14px;
  color: #57606F;
  line-height: 1.5;
}

.forum-replies-list {
  background: #F1F2F6;
  border: 2px solid #2D3436;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.forum-reply-item {
  font-size: 13px;
  color: #2D3436;
  line-height: 1.4;
  padding-bottom: 6px;
  border-bottom: 1px dashed #CCC;
}

.forum-reply-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.forum-actions-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
}

.forum-input-reply {
  flex: 1;
  padding: 8px 12px;
  border: 2.5px solid #2D3436;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
}

.forum-btn-reply {
  padding: 8px 14px;
  border: 2.5px solid #2D3436 !important;
  border-radius: 10px !important;
  background: #55E6C1 !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  cursor: pointer;
  box-shadow: 0 3px 0 #2D3436 !important;
}

.forum-new-thread-box {
  background: #FFF9E6;
  border: 3.5px solid #2D3436;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 5px 0 #2D3436;
  margin-bottom: 25px;
}

.forum-new-thread-box h4 {
  font-family: var(--font-display) !important;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 12px;
}

.forum-new-thread-box input,
.forum-new-thread-box textarea {
  width: 100%;
  padding: 10px;
  border: 2.5px solid #2D3436;
  border-radius: 12px;
  font-size: 13px;
  outline: none;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.forum-btn-post {
  padding: 10px 18px;
  border: 2.5px solid #2D3436 !important;
  border-radius: 12px !important;
  background: #FFEAA7 !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  cursor: pointer;
  box-shadow: 0 3px 0 #2D3436 !important;
}

/* Newsletter Styles */
.newsletter-card {
  background: linear-gradient(135deg, #FFEAA7, #FFD25A);
  border: 4px solid #2D3436;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 0 #2D3436;
  text-align: center;
  max-width: 500px;
  margin: 20px auto;
}

.newsletter-card h3 {
  font-family: var(--font-display) !important;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 10px;
}

.newsletter-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #2D3436;
  margin-bottom: 20px;
}

.newsletter-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 12px;
  border: 3px solid #2D3436;
  border-radius: 16px;
  font-size: 14px;
  outline: none;
}

.newsletter-btn {
  padding: 12px 24px;
  border: 3px solid #2D3436 !important;
  border-radius: 16px !important;
  background: #FF7675 !important;
  color: #FFFFFF !important;
  font-weight: 900 !important;
  cursor: pointer;
  box-shadow: 0 4px 0 #2D3436 !important;
  transition: transform 0.1s;
}

.newsletter-btn:active {
  transform: translateY(4px) !important;
  box-shadow: none !important;
}

/* Gated Contributions Prompt */
.gated-contrib-card {
  background: #FFFFFF;
  border: 4px solid #2D3436;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 8px 0 #2D3436;
  text-align: center;
  max-width: 450px;
  margin: 30px auto;
}

.gated-contrib-card .lock-icon {
  font-size: 55px;
  margin-bottom: 15px;
}

.gated-contrib-card h3 {
  font-family: var(--font-display) !important;
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 10px;
}

.gated-contrib-card p {
  font-size: 14px;
  color: #57606F;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ========================================================
   CARTOON TOY SHELF GAMES CENTER STYLE SHEET
   ======================================================== */

/* Games Page Body Lock */
body[data-page="games"] {
  background: var(--color-bg) !important;
}

/* Playful Hero Banner */
.games-hero-banner {
  background: linear-gradient(135deg, #FFB703 0%, #FB8500 100%);
  border: 4px solid #2D3436;
  border-radius: 28px;
  padding: 20px 25px;
  box-shadow: 0 8px 0 #2D3436;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.games-hero-banner::after {
  content: '⭐';
  position: absolute;
  font-size: 64px;
  right: 5%;
  top: -10px;
  opacity: 0.15;
  transform: rotate(15deg);
}
.hero-banner-content {
  display: flex;
  align-items: center;
  gap: 25px;
}
.hero-banner-mascot {
  width: 110px;
  height: 110px;
  object-fit: contain;
  animation: bounceLittle 2s infinite alternate ease-in-out;
}
.hero-banner-text {
  flex: 1;
}
.hero-banner-title {
  font-family: var(--font-display) !important;
  font-weight: 900;
  font-size: 26px;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  text-shadow: 2px 2px 0 #2D3436;
}
.hero-banner-subtitle {
  font-size: 15px;
  color: #FFFFFF;
  font-weight: bold;
  margin: 0 0 14px 0;
  line-height: 1.4;
}
.hero-banner-btn {
  background: #FFF;
  border: 3px solid #2D3436;
  border-radius: 16px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 900;
  color: #FB8500;
  cursor: pointer;
  box-shadow: 0 4px 0 #2D3436;
  transition: transform 0.1s, box-shadow 0.1s;
}
.hero-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2D3436;
}
.hero-banner-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2D3436;
}

/* 2D Outline Cartoon Game Cartridges */
body[data-page="games"] .video-poster-card {
  border: 4px solid #2D3436 !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 0 #2D3436 !important;
  background: #FFFFFF !important;
  padding: 8px !important;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out !important;
}
body[data-page="games"] .video-poster-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 13px 0 #2D3436 !important;
}
body[data-page="games"] .video-poster-card:active {
  transform: translateY(3px) !important;
  box-shadow: 0 5px 0 #2D3436 !important;
}
body[data-page="games"] .video-thumb-wrap {
  border: 3px solid #2D3436 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* Fullscreen Handheld Console Overlay Modal */
.console-overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.console-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 52, 54, 0.75);
  backdrop-filter: blur(8px);
}
.console-handheld-device {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FFF9C4; /* Yellow console body */
  border: 6px solid #2D3436;
  border-radius: 36px;
  padding: 20px;
  box-shadow: 0 16px 0 #2D3436;
  width: 90%;
  max-width: 600px;
  box-sizing: border-box;
}
.console-bezel-outer {
  background: #FFF;
  border: 4px solid #2D3436;
  border-radius: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.1);
}
.console-marquee-header {
  background: #2D3436;
  color: #FFB703;
  text-align: center;
  padding: 6px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1.5px;
  font-family: var(--font-display);
}
.console-bezel-inner {
  padding: 10px;
  background: #E0FBFC;
  border-top: 4px solid #2D3436;
}
.console-screen-area {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 4px solid #2D3436;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.console-screen-area iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Console Control Deck Buttons */
.console-dpad-buttons-row {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
.console-arcade-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 900;
  border: 3px solid #2D3436;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  font-family: var(--font-display) !important;
}
.console-arcade-btn.prev-btn {
  background: #8338EC;
  color: #FFF;
  box-shadow: 0 5px 0 #2D3436;
}
.console-arcade-btn.exit-btn {
  background: #E71D36;
  color: #FFF;
  box-shadow: 0 5px 0 #2D3436;
}
.console-arcade-btn.next-btn {
  background: #2EC4B6;
  color: #FFF;
  box-shadow: 0 5px 0 #2D3436;
}
.console-arcade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #2D3436;
}
.console-arcade-btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #2D3436;
}

/* Hide sidebar categories list specifically on Games page to prevent redundancy */
body[data-page="games"] #sidebar-categories {
  display: none !important;
}

/* 2D Cartoon Games Tabbed Dashboard Layout */
.games-tabbed-dashboard {
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
}


/* Horizontal category tabs row */
.games-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
}

/* Cartoon Tab buttons */
.games-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 900;
  font-family: var(--font-display);
  color: #2D3436;
  background: #FFF;
  border: 3px solid #2D3436;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 0 #2D3436;
  transition: transform 0.1s, box-shadow 0.1s;
}
.games-tab-btn.active {
  background: #FFB703;
  color: #FFF;
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2D3436;
}
.games-tab-btn:hover:not(.active) {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2D3436;
}
.games-tab-btn:active:not(.active) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2D3436;
}

/* 2D grid area containing game cartridges */
.games-grid-container {
  background: rgba(255,255,255,0.75);
  border: 3px solid rgba(0,0,0,0.08);
  border-radius: 24px;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Games grid: responsive auto-fill, no scroll */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

/* ============================================================
   GAME CARTRIDGE CARD
   ============================================================ */
.game-cartridge-card {
  display: flex;
  flex-direction: column;
  border: 3px solid #2D3436;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 0 #2D3436;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s;
  background: #fff;
  min-width: 0;
}
.game-cartridge-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 0 #2D3436;
}
.game-cartridge-card:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2D3436;
}

/* Emoji art panel — FIXED HEIGHT, not aspect-ratio */
.game-cart-art {
  position: relative;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid #2D3436;
  overflow: hidden;
  flex-shrink: 0;
}
.game-cart-shine {
  position: absolute;
  top: -30%;
  left: -30%;
  width: 60%;
  height: 60%;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  pointer-events: none;
}
.game-cart-emoji {
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.30));
  z-index: 1;
  animation: gameEmojiFloat 3s ease-in-out infinite;
}
@keyframes gameEmojiFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

/* Label area at bottom */
.game-cart-label {
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
}
.game-cart-lang-badge {
  align-self: flex-start;
  font-size: 9px;
  font-weight: 900;
  font-family: var(--font-display);
  padding: 2px 7px;
  border-radius: 8px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-lang-en { background: #0984E3; }
.badge-lang-hi { background: #E17055; }
.badge-lang-mr { background: #6C5CE7; }

.game-cart-title {
  margin: 0;
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 800;
  font-family: var(--font-display);
  color: #2D3436;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-cart-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-display);
  color: #fff;
  background: #FFB703;
  border: 2px solid #FB8500;
  border-radius: 10px;
  padding: 4px 10px;
  box-shadow: 0 3px 0 #FB8500;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  width: fit-content;
  margin-top: 2px;
}
.game-cartridge-card:hover .game-cart-play-btn {
  background: #FB8500;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #c96a00;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
  .game-cart-art {
    height: 90px;
  }
  .game-cart-emoji {
    font-size: 38px;
  }
}

/* ═══════════════════════════════════════════════════════
   VIDEOS PAGE v2 — Slim Sidebar + Now-Playing Bar
   ═══════════════════════════════════════════════════════ */

@media (min-width: 1025px) {
  body.videos-page {
    overflow: hidden !important;
  }
}

/* ── Slim Sidebar Brand ── */
.videos-page .vp-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.videos-page .vp-brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
}
.videos-page .vp-brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: #2d3436;
  letter-spacing: -0.3px;
}

/* ── Lang Switcher ── */
.videos-page .vp-lang-switcher {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
}
.videos-page .vp-lang-switcher .lang-pill {
  flex: 1;
  padding: 5px 0;
  font-size: 11px;
  font-weight: 800;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  background: #fff;
  color: #636e72;
  cursor: pointer;
  transition: all 0.15s;
}
.videos-page .vp-lang-switcher .lang-pill.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,0.30);
}

/* ── Sidebar Search ── */
.videos-page .vp-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 10px;
  background: #f1f3f5;
  border-radius: 10px;
  padding: 8px 12px;
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
}
.videos-page .vp-search-wrap:focus-within {
  border-color: #4f46e5;
  background: #fff;
}
.videos-page .vp-search-icon { font-size: 14px; opacity: 0.5; }
.videos-page .vp-search-input {
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: var(--font-display);
  color: #2d3436;
  width: 100%;
  outline: none;
}
.videos-page .vp-search-input::placeholder { color: #b2bec3; }

/* ── Sidebar Profile at bottom ── */
.videos-page .vp-sidebar-profile {
  padding: 12px 14px;
  border-top: 1px solid rgba(0,0,0,0.07);
  margin-top: auto;
}
.videos-page .vp-sidebar-profile .profile-pill-btn {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  background: #f8f9fa;
  border: 1.5px solid #e9ecef;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}

/* Sidebar is a flex column so profile sticks to bottom */
.videos-page .layout-sidebar {
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto;
  overflow-x: hidden;
}
.videos-page .sidebar-categories-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding: 4px 0;
}

/* ── Theater Mode Player ── */
.vp-theater {
  display: flex;
  flex-direction: column;
  background: #0d0d1a;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 16px;
  width: 100%;
  max-width: 1200px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(79, 70, 229, 0.15);
  animation: vpSlideIn 0.35s cubic-bezier(0.22,1,0.36,1);
  flex-shrink: 0;
}
@keyframes vpSlideIn {
  from { opacity: 0; transform: translateY(-15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cinema Mode Split layout (Player Left, Playlist Right) */
.vp-theater-main-content {
  display: flex;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  background: #0d0d1a;
  padding: 0 16px 16px 16px;
}
.vp-theater-screen-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.vp-theater-playlist-side {
  width: 30%;
  min-width: 260px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  box-sizing: border-box;
}
.vp-theater-playlist-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.vp-theater-playlist-side .vp-playlist-header {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.vp-theater-playlist-side .vp-playlist-title {
  color: #fff;
}
.vp-theater-playlist-side .vp-playlist-count {
  color: rgba(255,255,255,0.5);
}
.vp-theater-playlist-side .vp-playlist-row {
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.vp-theater-playlist-side .vp-playlist-row:hover {
  background: rgba(255,255,255,0.05);
}
.vp-theater-playlist-side .vp-playlist-row.vp-playlist-row-playing {
  background: rgba(255, 140, 0, 0.15);
  border-left: 4px solid #ff8c00;
  border-radius: 0 8px 8px 0;
}
.vp-theater-playlist-side .vp-playlist-row-title {
  color: #eee;
  font-size: 11px;
}
.vp-theater-playlist-side .vp-playlist-row-dur {
  color: rgba(255,255,255,0.4);
}

.vp-theater-titlebar {
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vp-theater-title-text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.vp-theater-now-badge {
  background: #4f46e5;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.vp-theater-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vp-theater-close {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.vp-theater-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.vp-theater-screen {
  background: #000;
  width: 100%;
  position: relative;
  height: auto;
  aspect-ratio: auto;
}

/* Custom cabinet inside theater overrides */
.vp-theater {
  background: #FFFEEA !important; /* warm soft cream */
  border: 4px solid #2D3436 !important;
  border-radius: 28px !important;
  box-shadow: 0 10px 0 #2D3436, 0 20px 30px rgba(0,0,0,0.1) !important;
  overflow: hidden !important;
  margin-bottom: 24px !important;
}

.vp-theater .toy-tv-cabinet {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.vp-theater .tv-antenna { display: none !important; }

.vp-theater .tv-screen-bezel {
  border-radius: 20px 20px 0 0 !important;
  border: none !important;
  border-bottom: 4px solid #2D3436 !important;
  background: #000 !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9 !important;
  position: relative !important;
  box-shadow: none !important;
  display: block !important;
  overflow: hidden !important;
}

/* Ambient glow when playing */
.vp-theater .toy-tv-cabinet.playing .tv-screen-bezel {
  box-shadow: 0 0 30px rgba(251, 133, 0, 0.5), inset 0 0 20px rgba(0,0,0,0.8) !important;
  transition: box-shadow 0.8s alternate infinite ease-in-out;
}

.vp-theater #inline-player-wrap {
  width: 100% !important;
  height: 100% !important;
  background: #000 !important;
}

.vp-theater #inline-player-wrap iframe,
.videos-page #inline-player-wrap iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

.vp-theater .tv-cabinet-bottom {
  background: #FFF !important;
  padding: 16px 20px !important;
  border-radius: 0 0 20px 20px !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.vp-theater .tv-speaker-grille { display: none !important; }

.vp-theater .tv-power-led {
  width: 10px !important; height: 10px !important;
  border-radius: 50% !important;
  border: 2px solid #2D3436 !important;
  background: #FF4757 !important; /* red when paused */
  box-shadow: none !important;
}

.vp-theater .toy-tv-cabinet.playing .tv-power-led {
  background: #00d2d3 !important; /* bright cyan when playing */
  box-shadow: 0 0 8px #00d2d3 !important;
}

.vp-theater .controls-row-top { 
  gap: 12px !important; 
  margin-bottom: 12px !important;
}

/* Upgraded Chunky 3D Toy Buttons */
.vp-theater .player-ctrl-btn {
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  color: #2D3436 !important;
  border-radius: 14px !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  cursor: pointer !important;
  transition: transform 0.1s, box-shadow 0.1s !important;
}

.vp-theater .player-ctrl-btn svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2.5px !important;
}

.vp-theater .player-ctrl-btn:hover {
  background: #F1F2F6 !important;
}

.vp-theater .player-ctrl-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

/* Play/Pause custom color */
.vp-theater .play-btn {
  background: #06D6A0 !important; /* Bright mint green */
  box-shadow: 0 4px 0 #04A77B !important;
}
.vp-theater .play-btn:active {
  box-shadow: 0 1px 0 #04A77B !important;
}

/* Mute custom color */
.vp-theater .mute-btn {
  background: #FFB703 !important; /* Sun yellow */
  box-shadow: 0 4px 0 #D99B00 !important;
}
.vp-theater .mute-btn:active {
  box-shadow: 0 1px 0 #D99B00 !important;
}

/* Next/Prev custom color */
.vp-theater .nav-btn {
  background: #3498DB !important; /* Sky blue */
  box-shadow: 0 4px 0 #2980B9 !important;
}
.vp-theater .nav-btn:active {
  box-shadow: 0 1px 0 #2980B9 !important;
}

/* Like button active state override */
.vp-theater .like-btn.liked {
  background: #FF4757 !important; /* Candy red */
  color: #FFFFFF !important;
  box-shadow: 0 4px 0 #D63031 !important;
}
.vp-theater .like-btn.liked:active {
  box-shadow: 0 1px 0 #D63031 !important;
}

/* Volume Slider wrapper */
.vp-theater .volume-slider-wrap {
  flex: 1 !important;
  max-width: 140px !important;
  background: #FFF !important;
  border: 3px solid #2D3436 !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 0 #2D3436 !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 10px !important;
}

.vp-theater .toy-slider { 
  accent-color: #2D3436 !important; 
  cursor: pointer !important;
}

/* Mascot Walk progress track */
.vp-theater .controls-row-bottom {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #FDFBF7 !important;
  border: 3px solid #2D3436 !important;
  border-radius: 16px !important;
  padding: 8px 14px !important;
  box-shadow: 0 4px 0 #2D3436 !important;
}

.vp-theater .progress-slider {
  -webkit-appearance: none !important;
  appearance: none !important;
  flex: 1 !important;
  height: 12px !important;
  background: #E8F4F8 !important;
  border: 3px solid #2D3436 !important;
  border-radius: 6px !important;
  outline: none !important;
}

.vp-theater .progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #FFB703 !important; /* yellow mascot knob */
  border: 3px solid #2D3436 !important;
  box-shadow: 0 3px 0 #2D3436 !important;
  cursor: pointer !important;
}

.vp-theater .time-label {
  font-family: var(--font-display) !important;
  font-weight: bold !important;
  color: #2D3436 !important;
  font-size: 14px !important;
}

/* VHS Tape Playlist Sidebar Styling */
.vp-theater-playlist-side {
  background: #FFFEEA !important;
  border: 4px solid #2D3436 !important;
  border-radius: 28px !important;
  box-shadow: 0 10px 0 #2D3436, 0 20px 30px rgba(0,0,0,0.1) !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}

.vp-theater-playlist-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}

.vp-playlist-header {
  border-bottom: 3px dashed #2D3436 !important;
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
}

.vp-playlist-title {
  font-family: var(--font-display) !important;
  font-weight: bold !important;
  font-size: 18px !important;
  color: #2D3436 !important;
}

.vp-playlist-count {
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  color: #7F8C8D !important;
  font-weight: bold !important;
}

.vp-playlist-list {
  flex: 1 !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}

/* Videotape (VHS Tape) layout */
.vp-playlist-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #2D3436 !important; /* dark tape shell */
  border: 3px solid #2D3436 !important;
  border-radius: 14px !important;
  height: 74px !important;
  padding: 4px 10px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.vp-playlist-row:hover {
  transform: translateX(-4px) !important;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2) !important;
}

/* Glowing active tape state */
.vp-playlist-row.vp-playlist-row-playing {
  border-color: #FFB703 !important;
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.5), 0 4px 0 #DDA101 !important;
  transform: translateX(-6px) !important;
}

.vp-playlist-thumb {
  width: 80px !important;
  height: 50px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  border: 2px solid #FFF !important; /* mimics spool window border */
}

/* Handwritten label sticker pasted onto the videotape */
.vp-playlist-row-meta {
  flex: 1 !important;
  min-width: 0 !important;
  background: #FFFEE6 !important; /* yellow-tint label sticker */
  border: 2px dashed #BDC3C7 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  height: 52px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.vp-playlist-row-title {
  font-family: var(--font-display) !important;
  font-weight: bold !important;
  font-size: 13px !important;
  color: #2D3436 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.vp-playlist-row-dur {
  font-family: monospace !important;
  font-size: 11px !important;
  color: #7F8C8D !important;
  font-weight: bold !important;
  margin-top: 2px !important;
}

/* ── Browse Mode (Netflix-style Shelves) ── */
.vp-browse-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.vp-browse-header {
  background: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.015);
  border: 1px solid rgba(0,0,0,0.02);
  flex-shrink: 0;
}
.vp-browse-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 6px 12px 6px;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #ff9f43 #f1f2f6; /* Firefox */
}
.vp-browse-tabs::-webkit-scrollbar {
  display: block;
  height: 6px;
}
.vp-browse-tabs::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
}
.vp-browse-tabs::-webkit-scrollbar-thumb {
  background: #ff9f43;
  border-radius: 3px;
}
.vp-browse-tab {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  padding: 10px 20px;
  border-radius: 24px;
  font-family: var(--font-display), sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #4a5568;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 0 #e2e8f0;
  transform: translateY(-2px);
}
.vp-browse-tab:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 0 #cbd5e1;
}
.vp-browse-tab:active {
  transform: translateY(2px);
  box-shadow: 0 0px 0 transparent;
}
.vp-browse-tab.active {
  background: linear-gradient(135deg, #ff9f43, #ff5252);
  border-color: #ff5252;
  color: #ffffff;
  box-shadow: 0 4px 0 #c23616, 0 8px 20px rgba(255, 82, 82, 0.3);
  transform: translateY(-2px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.vp-browse-tab.active:hover {
  background: linear-gradient(135deg, #ffa852, #ff6363);
  border-color: #ff6363;
  box-shadow: 0 4px 0 #c23616, 0 8px 20px rgba(255, 82, 82, 0.3);
}
.vp-browse-tab.active:active {
  transform: translateY(2px);
  box-shadow: 0 0px 0 transparent, 0 2px 5px rgba(255, 82, 82, 0.15);
}
.vp-browse-tab .tab-emoji {
  font-size: 18px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}
.vp-browse-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 4px;
}

/* Ensure the cards inside the browse grid have correct layout */
.vp-browse-grid .vp-shelf-card {
  flex: none;
  width: 100%;
}

/* ── Multi-Row Grid Carousel Viewport ── */
.vp-carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 12px;
}

.vp-carousel-wrapper {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.vp-carousel-page {
  width: 100%;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 16px;
  padding: 8px 60px 16px 60px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .vp-carousel-page {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 14px;
    padding: 8px 55px 16px 55px;
  }
}

@media (max-width: 768px), (max-width: 1024px) and (orientation: landscape) {
  .vp-carousel-page {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 12px;
    padding: 8px 50px 16px 50px;
  }
}

/* ── Carousel Big Overlay Arrows ── */
.vp-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #2d3436;
  color: #2d3436;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 #2d3436, 0 6px 12px rgba(0,0,0,0.1);
  transition: all 0.1s ease;
  user-select: none;
}

.vp-carousel-arrow:hover {
  background: #f8f9fa;
  transform: translateY(-50%) translateY(-2px);
  box-shadow: 0 6px 0 #2d3436, 0 8px 16px rgba(0,0,0,0.15);
}

.vp-carousel-arrow:active {
  transform: translateY(-50%) translateY(2px);
  box-shadow: 0 0px 0 transparent;
}

.vp-carousel-arrow.arrow-left {
  left: 8px;
}

.vp-carousel-arrow.arrow-right {
  right: 8px;
}

.vp-carousel-arrow.disabled {
  opacity: 0;
  pointer-events: none;
}

/* ── Page Indicators ── */
.vp-carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  height: 16px;
}

.vp-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 1.5px solid #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.vp-carousel-indicator.active {
  background: #ff5252;
  border-color: #c23616;
  transform: scale(1.2);
}

/* Card Builder Styles */
.vp-shelf-card {
  flex: 0 0 calc(25% - 9px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid #f1f3f5;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vp-shelf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  border-color: #e2e8f0;
}
.vp-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #ffffff;
  box-sizing: border-box;
}
.vp-shelf-card .vp-card-thumb {
  padding: 8px;
}
.vp-compact-card .vp-card-thumb {
  padding: 4px;
}
.vp-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.3s;
}
.vp-shelf-card:hover .vp-card-img {
  transform: scale(1.04);
}
.vp-card-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: monospace;
}
.vp-card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.vp-shelf-card:hover .vp-card-play-overlay {
  opacity: 1;
}
.vp-card-body {
  padding: 10px 12px;
}
.vp-card-title {
  font-size: 12px;
  font-weight: 800;
  color: #2d3436;
  margin: 0 0 4px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
}
.vp-card-channel-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.vp-card-channel {
  font-size: 10px;
  color: #636e72;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vp-card-verified {
  color: #10b981;
  font-size: 10px;
  font-weight: 800;
}
.vp-card-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #b2bec3;
  font-weight: 600;
}
.vp-card-stats .video-lang-badge {
  margin-left: auto;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 800;
}

/* ── Theater Bottom Split View ── */
.videos-page #media-container.vp-theater-bottom {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  flex: 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  height: 100% !important;
  padding: 0 !important;
}
.videos-page #media-container.vp-browse-container {
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1 !important;
  min-height: 0 !important;
  padding-right: 4px;
}
.vp-theater-bottom {
  display: flex;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.vp-theater-grid-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.03);
}
.vp-theater-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  flex-shrink: 0;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #ff9f43 #f8fafc; /* Firefox */
}
.vp-theater-tabs::-webkit-scrollbar {
  display: block;
  height: 6px;
}
.vp-theater-tabs::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
}
.vp-theater-tabs::-webkit-scrollbar-thumb {
  background: #ff9f43;
  border-radius: 3px;
}
.vp-theater-tab {
  background: #f1f3f5;
  border: none;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  color: #636e72;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.vp-theater-tab.active {
  background: #ff8c00;
  color: #fff;
}
.vp-theater-compact-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 4px;
}
.vp-compact-card {
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
}
.vp-compact-card:hover {
  border-color: #ddd;
}
.vp-compact-card.vp-card-playing {
  border-color: #4f46e5;
  box-shadow: 0 0 8px rgba(79,70,229,0.15);
  background: #f5f4ff;
}
.vp-compact-card .vp-card-thumb {
  aspect-ratio: 16/9;
}
.vp-compact-card .vp-card-title {
  font-size: 10px;
  font-weight: 700;
  height: 26px;
  -webkit-line-clamp: 2;
}
.vp-compact-card .vp-card-body {
  padding: 6px 8px;
}

/* Right side playlist */
.vp-theater-playlist {
  width: 35%;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.03);
}
.vp-playlist-header {
  padding: 10px 12px;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  flex-shrink: 0;
}
.vp-playlist-title {
  font-size: 11px;
  font-weight: 800;
  color: #2d3436;
}
.vp-playlist-count {
  font-size: 10px;
  color: #7f8c8d;
  font-weight: 600;
}
.vp-playlist-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vp-playlist-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.vp-playlist-row:hover {
  background: rgba(0,0,0,0.03);
}
.vp-playlist-row.vp-playlist-row-playing {
  background: #fff8f0;
  border-left: 3px solid #ff8c00;
  border-radius: 0 8px 8px 0;
}
.vp-playlist-thumb {
  width: 64px;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.vp-pl-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vp-playlist-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vp-playlist-row-title {
  font-size: 10px;
  font-weight: 700;
  color: #2d3436;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.vp-playlist-row-dur {
  font-size: 9px;
  color: #7f8c8d;
  font-family: monospace;
}

/* Disable main scrolling when theater is active */
.videos-page:has(.vp-theater[style*="display: block"]) .layout-main-workspace {
  overflow: hidden !important;
}
.videos-page:has(.vp-theater[style*="display:block"]) .layout-main-workspace {
  overflow: hidden !important;
}

/* Layout overrides */
.videos-page .layout-main-workspace {
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 16px 20px 24px !important;
  min-height: 0 !important;
  background: transparent !important;
  height: 100%;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  /* Disable layout main workspace scroll lock on mobile/stacked view */
  .videos-page:has(.vp-theater[style*="display: block"]) .layout-main-workspace,
  .videos-page:has(.vp-theater[style*="display:block"]) .layout-main-workspace {
    overflow-y: auto !important;
  }

  .vp-theater-main-content {
    flex-direction: column !important;
    padding: 0 10px 10px 10px !important;
  }
  .vp-theater-playlist-side {
    width: 100% !important;
    max-width: none !important;
    height: 320px !important;
  }

  .videos-page #media-container.vp-theater-bottom {
    flex-direction: column !important;
    overflow: visible !important;
    height: auto !important;
  }
  .vp-theater-bottom {
    flex-direction: column !important;
    overflow: visible !important;
    height: auto !important;
  }
  .vp-theater-grid-panel {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }
  .vp-theater-compact-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    height: auto !important;
    overflow: visible !important;
  }
  .vp-theater-playlist {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .vp-playlist-list {
    height: auto !important;
    overflow: visible !important;
  }
  .vp-shelf-card {
    flex: 0 0 calc(50% - 6px);
  }
}

/* ── Video Player Like Button Styles ── */
.like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 4px 12px !important;
  font-size: 11px !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: all 0.2s ease;
  cursor: pointer;
  height: 28px;
  box-sizing: border-box;
}
.like-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  transform: translateY(-1px);
}
.like-btn.liked {
  background: #ff4757 !important;
  border-color: #ff4757 !important;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}
.like-btn .like-heart {
  font-size: 13px;
  transition: transform 0.2s ease;
}
.like-btn.liked .like-heart {
  transform: scale(1.2);
}
.like-count {
  font-weight: 800;
  font-family: monospace;
}

/* ── Empty State ── */
.vp-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  border: 2px dashed #ffeaa7;
  color: #636e72;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  gap: 12px;
}

/* ── Category Tabs Pagination Arrows & Scroll Lock ── */
.vp-browse-tabs-wrapper,
.vp-theater-tabs-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Hide scrollbars for Category Tabs */
.vp-browse-tabs,
.vp-theater-tabs {
  scrollbar-width: none !important; /* Hide scrollbar for Firefox */
  scroll-behavior: smooth;
}
.vp-browse-tabs::-webkit-scrollbar,
.vp-theater-tabs::-webkit-scrollbar {
  display: none !important; /* Hide scrollbar for Chrome/Safari */
}

/* Tactile 3D arrow buttons */
.vp-tabs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  color: #2D3436 !important;
  font-size: 22px !important;
  font-family: monospace !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 3px 0 #2D3436 !important;
  transition: transform 0.1s, box-shadow 0.1s;
  padding: 0 !important;
  line-height: 1 !important;
}

.vp-tabs-arrow:hover {
  background: #F1F2F6 !important;
}

.vp-tabs-arrow:active {
  transform: translateY(-50%) translateY(2px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

.vp-tabs-arrow-left {
  left: 0px;
}

.vp-tabs-arrow-right {
  right: 0px;
}

/* Add padding on left/right of tabs container so tabs don't go under absolute buttons */
.vp-browse-tabs {
  padding: 6px 36px 12px 36px !important;
}
.vp-theater-tabs {
  padding: 0 36px 6px 36px !important;
}



/* --------------------------------------------------- */
/* OPTION A MOBILE LAYOUT (Browse-first) */
/* --------------------------------------------------- */
.mobile-only { display: none; }

@media (max-width: 1024px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
  
  .mobile-option-a-layout {
    background: linear-gradient(180deg, #ffffff, #f6f9ff);
    min-height: 100vh;
    padding-bottom: 80px; /* space for bottom nav */
  }
  .mobile-option-a-layout .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 12px 10px;
    background: #ffffff;
    border: none;
    box-shadow: none;
  }
  .mobile-option-a-layout .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 900;
  }
  .mobile-option-a-layout .brand-badge {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 2px solid #2d3436;
    box-shadow: 0 3px 0 #2d3436;
    background: linear-gradient(135deg, #ffb703, #ff5a5f);
    font-size: 20px;
  }
  .mobile-option-a-layout .lang-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .mobile-option-a-layout .lang-pill {
    border: 2px solid #2d3436;
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 2px 0 #2d3436;
    cursor: pointer;
  }
  .mobile-option-a-layout .lang-pill.active { background: #ffb703; }
  
  .mobile-option-a-layout .sound-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #2d3436;
    background: #fff;
    box-shadow: 0 3px 0 #2d3436;
    display: grid;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
  }
  .mobile-option-a-layout .title-pill {
    width: fit-content;
    border: 3px solid #2d3436;
    border-radius: 18px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 4px 0 #2d3436;
    margin: 10px 12px 16px;
    background: linear-gradient(135deg, #ff6b6b, #ff5a5f);
  }
  
  .mobile-option-a-layout.theme-videos .title-pill { background: linear-gradient(135deg, #ff6b6b, #ff5a5f); }
  .mobile-option-a-layout.theme-audio .title-pill { background: linear-gradient(135deg, #8338ec, #ff5a5f); }
  .mobile-option-a-layout.theme-books .title-pill { background: linear-gradient(135deg, #00c49f, #00a2ff); }
  .mobile-option-a-layout.theme-games .title-pill { background: linear-gradient(135deg, #ffb703, #fb8500); }
  .mobile-option-a-layout.theme-paint .title-pill { background: linear-gradient(135deg, #ff4b4b, #ffb703); }
  .mobile-option-a-layout.theme-quiz .title-pill { background: linear-gradient(135deg, #6c5ce7, #00a2ff); }
  
  .mobile-option-a-layout .chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 12px 16px;
    scrollbar-width: none;
  }
  .mobile-option-a-layout .chips::-webkit-scrollbar { display: none; }
  .mobile-option-a-layout .chip {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #dfe6e9;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 3px 0 #dfe6e9;
    cursor: pointer;
    color: #2d3436;
  }
  .mobile-option-a-layout .chip.active {
    background: #ffb703;
    border-color: #fb8500;
    box-shadow: 0 3px 0 #fb8500;
  }
  .mobile-option-a-layout .hero-banner {
    margin: 0 12px 16px;
    padding: 12px;
    border-radius: 22px;
    border: 3px solid #dfe6e9;
    background: linear-gradient(135deg, #fff7dc, #ffffff);
    box-shadow: 0 5px 0 #dfe6e9;
    display: grid;
    grid-template-columns: 85px 1fr auto;
    gap: 12px;
    align-items: center;
    cursor: pointer;
  }
  .mobile-option-a-layout .hero-thumb {
    width: 85px;
    height: 85px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff8a5b, #ffb703);
    border: 3px solid #2d3436;
    box-shadow: 0 4px 0 #2d3436;
    display: grid;
    place-items: center;
    font-size: 34px;
    overflow: hidden;
  }
  .mobile-option-a-layout .hero-thumb img {
    width: 100%; height: 100%; object-fit: cover;
  }
  .mobile-option-a-layout .hero-copy { min-width: 0; }
  .mobile-option-a-layout .hero-kicker {
    font-size: 11px;
    font-weight: 900;
    color: #6c5ce7;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
  }
  .mobile-option-a-layout .hero-title {
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 4px;
    line-height: 1.2;
    color: #2d3436;
  }
  .mobile-option-a-layout .hero-meta {
    font-size: 12px;
    color: #6f7b84;
    font-weight: 700;
  }
  .mobile-option-a-layout .hero-cta {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    background: #ffb703;
    border: 3px solid #fb8500;
    border-radius: 16px;
    box-shadow: 0 3px 0 #fb8500;
    font-size: 12px;
    font-weight: 900;
    color: #2d3436;
  }
  .mobile-option-a-layout .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 12px 10px;
    font-size: 18px;
    font-weight: 900;
    color: #2d3436;
  }
  .mobile-option-a-layout .section-link {
    color: #6c5ce7;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
  }
  .mobile-option-a-layout .card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 6px 12px 20px;
  }
  .mobile-option-a-layout .mock-card {
    background: #fff;
    border: 3px solid #dfe6e9;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 0 #dfe6e9;
    cursor: pointer;
    display: flex;
    flex-direction: column;
  }
  .mobile-option-a-layout .card-thumb {
    aspect-ratio: 16/9;
    display: grid;
    place-items: center;
    font-size: 30px;
    border-bottom: 3px solid #dfe6e9;
    overflow: hidden;
    background: #f4f7fb;
  }
  .mobile-option-a-layout .card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
  }
  .mobile-option-a-layout .card-body {
    padding: 10px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    color: #2d3436;
  }
  .mobile-option-a-layout .badge {
    display: inline-block;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eaf7fb;
    color: #006064;
    font-size: 11px;
  }
}


  .mobile-option-a-layout .topbar-right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .mobile-option-a-layout .profile-pill-btn-compact {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .mobile-option-a-layout .profile-pill-btn-compact .profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFB703;
    display: grid;
    place-items: center;
    font-size: 14px;
    border: 2px solid #2D3436;
    box-shadow: 0 2px 0 #2D3436;
  }

/* --- PLAYFUL IMMERSIVE FULL-SCREEN MODAL FOR KIDS ON MOBILE (OPTION 3) --- */
@media (max-width: 1024px) {
  .modal-overlay-new {
    background: rgba(45, 52, 54, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Shared standard header override */
  .modal-sheet.video-sheet .modal-sheet-header {
    display: none !important;
  }

  /* 1. Immersive Full-Screen Modal layout rules (Quiz/Paint) */
  .modal-immersive .modal-sheet.video-sheet {
    background: #f6f9ff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .modal-immersive .modal-video-wrap {
    position: relative;
    margin-top: 0;
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Immersive Pinned Top Bar */
  .modal-immersive .immersive-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    background: #ffffff;
    border-bottom: 3px solid #dfe6e9;
    padding: 0 12px;
    box-sizing: border-box;
    z-index: 10;
    flex-shrink: 0;
  }
  .modal-immersive .immersive-brand {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .modal-immersive .logo-text-mini {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
    font-family: 'Fredoka One', 'Nunito', sans-serif;
  }
  .modal-immersive .immersive-title {
    font-family: 'Fredoka One', 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #2D3436;
    text-align: center;
    flex: 1;
    margin: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .modal-immersive .immersive-close-btn {
    width: 32px;
    height: 32px;
    background: #FFB703;
    border: 3px solid #2D3436;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Fredoka One', cursive, sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #2D3436;
    cursor: pointer;
    box-shadow: 0 3px 0 #2D3436;
    box-sizing: border-box;
    transition: transform 0.1s;
  }
  .modal-immersive .immersive-close-btn:active {
    transform: translateY(3px);
    box-shadow: none;
  }
  
  .modal-immersive .immersive-listen-btn {
    background: #8338EC;
    color: #ffffff;
    border: 3px solid #2D3436;
    border-radius: 16px;
    padding: 5px 12px;
    font-family: 'Fredoka One', 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 3px 0 #2D3436;
    margin-right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    transition: transform 0.1s, background-color 0.2s;
  }
  .modal-immersive .immersive-listen-btn:active {
    transform: translateY(3px);
    box-shadow: none;
  }
  .modal-immersive .immersive-listen-btn.tts-active {
    background: #E71D36 !important;
  }

  /* Immersive Content Frame */
  .modal-immersive .immersive-content-frame {
    flex: 1;
    width: 100%;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .modal-immersive .immersive-content-frame iframe,
  .modal-immersive .immersive-content-frame video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }

  /* Immersive Floating Bottom Actions Bar */
  .modal-immersive .immersive-bottom-bar-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 20;
  }
  .modal-immersive .immersive-bottom-bar {
    pointer-events: auto;
    background: #ffffff;
    border: 3px solid #2D3436;
    border-radius: 30px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 0 #2D3436;
    max-width: 90%;
    box-sizing: border-box;
  }
  .modal-immersive .immersive-mascot {
    font-size: 28px;
    animation: tvMascotWave 2s infinite ease-in-out;
    transform-origin: bottom center;
  }

  /* 2. Retro TV Popup Modal Style (Videos/Audio/Books) */
  .modal-retro-tv .modal-sheet.video-sheet {
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #2D3436;
    border-radius: 32px;
    box-shadow: 0 16px 0 #2D3436, 0 25px 50px rgba(0,0,0,0.15);
    position: relative;
    padding: 10px 10px 15px 10px;
    overflow: visible;
    width: 90%;
    max-width: 440px;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }
  .modal-retro-tv .modal-video-wrap {
    position: relative;
    margin-top: 15px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
  }

  .modal-retro-tv .tv-frame-wrap {
    background: #ff5e57;
    border: 4px solid #2D3436;
    border-radius: 24px;
    padding: 10px 10px 24px 10px;
    position: relative;
    box-shadow: inset 0 -6px 0 rgba(0,0,0,0.15);
  }
  .modal-retro-tv .proposed-title {
    font-family: 'Fredoka One', 'Nunito', cursive, sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #2D3436;
    text-align: center;
    padding: 4px 10px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .modal-retro-tv #video-modal-desc {
    font-size: 12px !important;
    color: #666 !important;
    line-height: 1.3 !important;
    margin-top: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .modal-retro-tv .tv-screen-wrap {
    background: #000;
    border: 4px solid #2D3436;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .modal-retro-tv .tv-knobs-wrap {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  .modal-retro-tv .tv-knobs-wrap .knob {
    width: 12px;
    height: 12px;
    background: #FFB703;
    border: 2px solid #2D3436;
    border-radius: 50%;
  }
  .modal-retro-tv .tv-antenna-wrap {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
  }
  .modal-retro-tv .tv-antenna-wrap .antenna-rod {
    width: 4px;
    height: 16px;
    background: #2D3436;
    border-radius: 2px;
  }

  .modal-retro-tv .mascot-peeking-wrap {
    position: absolute;
    left: -10px;
    bottom: -10px;
    width: 60px;
    height: 60px;
    z-index: 12;
    animation: tvMascotWave 2s infinite ease-in-out;
    transform-origin: bottom center;
    font-size: 48px;
    text-shadow: 0 4px 0 #2D3436;
    pointer-events: none;
  }
  .modal-retro-tv .proposed-close-btn {
    position: absolute;
    top: -15px;
    right: -10px;
    width: 36px;
    height: 36px;
    background: #FFB703;
    border: 3px solid #2D3436;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Fredoka One', cursive, sans-serif;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 0 #2D3436;
    z-index: 20;
    color: #2D3436;
  }
  .modal-retro-tv .proposed-close-btn:active {
    transform: translateY(4px);
    box-shadow: none;
  }

  .modal-retro-tv .kids-tv-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-left: 60px; /* offset mascot */
    gap: 10px;
  }

  /* Control buttons styling shared inside modals */
  .btn-tv-action {
    background: #fff;
    border: 3px solid #2D3436;
    box-shadow: 0 3px 0 #2D3436;
    border-radius: 18px;
    padding: 6px 14px;
    font-family: 'Fredoka One', cursive, sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.1s;
    color: #2D3436;
    justify-content: center;
  }
  .btn-tv-action:active {
    transform: translateY(3px);
    box-shadow: none;
  }
  .btn-tv-like {
    color: #FF007F;
  }
  .btn-tv-star {
    color: #FFB703;
  }
  
  @keyframes tvMascotWave {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(8deg) translateY(-2px); }
  }
}

/* --- 3. Responsive Games Console layout rules (games.html) --- */
@media (max-width: 1024px) {
  .console-handheld-device {
    width: 96% !important;
    height: 94dvh !important;
    padding: 10px !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 0 #2D3436 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .console-bezel-outer {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .console-bezel-inner {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 6px !important;
  }
  .console-screen-area {
    flex: 1 !important;
    aspect-ratio: auto !important; /* Remove 4/3 constraint on mobile */
    height: 100% !important;
  }
  .console-dpad-buttons-row {
    margin-top: 10px !important;
    gap: 8px !important;
  }
  .console-arcade-btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
  }
}

/* Fallback branding font and colors before JS dynamic split runs */
.logo-balwadi {
  font-family: 'Fredoka One', 'Quicksand', 'Nunito', sans-serif !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #ff7da4 !important; /* Pink */
  text-shadow: 2px 2px 0 #ffffff, 3.5px 3.5px 0 #2d3436 !important;
  letter-spacing: 1px !important;
}

.logo-kids {
  font-family: 'Fredoka One', 'Quicksand', 'Nunito', sans-serif !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #ffc338 !important; /* Yellow */
  text-shadow: 1.5px 1.5px 0 #ffffff, 2.5px 2.5px 0 #2d3436 !important;
  letter-spacing: 0.5px !important;
}

@media (max-width: 1024px) {
  .logo-balwadi {
    font-size: 20px !important;
  }
  .logo-kids {
    font-size: 11px !important;
  }
}

/* Startup Mascot Intro Overlay Styles */
.intro-overlay-container {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle, rgba(30,136,229,0.95) 0%, rgba(26,35,126,0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.intro-overlay-container.fade-out {
  opacity: 0;
  transform: scale(1.15);
  pointer-events: none;
}

.intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  animation: introPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes introPopIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.intro-mascot {
  height: 180px;
  width: auto;
  animation: introFloat 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

@keyframes introFloat {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-15px) rotate(2deg); }
}

.intro-title {
  font-family: 'Fredoka One', 'Quicksand', 'Nunito', sans-serif;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(to right, #FF007F, #FFB703, #00C853, #00B0FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 0 #000000);
  margin-bottom: 10px;
}

.intro-enter-btn {
  background: linear-gradient(135deg, #FF007F, #7928CA);
  color: white;
  border: 4px solid #ffffff;
  font-family: 'Fredoka One', 'Quicksand', sans-serif;
  font-size: 22px;
  font-weight: 800;
  padding: 15px 35px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(0,0,0,0.3), 0 8px 0 #3c0975;
  transition: transform 0.1s, box-shadow 0.1s;
  animation: introPulse 1.5s infinite alternate;
}

.intro-enter-btn:active {
  transform: translateY(4px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2), 0 4px 0 #3c0975;
}

@keyframes introPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.intro-video-wrap {
  position: relative;
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16/9;
  border: 8px solid #ffffff;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  animation: introPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.intro-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: black;
}

.intro-skip-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 8px 18px;
  border-radius: 20px;
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}

.intro-skip-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
  .intro-title {
    font-size: 32px;
  }
  .intro-enter-btn {
    font-size: 18px;
    padding: 12px 25px;
  }
  .intro-mascot {
    height: 140px;
  }
}

/* Quick Sound Control Badge on all pages (Desktop & Mobile) */
#header-sound-toggle.header-badge {
  display: inline-flex !important;
  position: static !important; /* Inline flow next to flags */
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important; /* Perfect circle */
  border: 2px solid #2D3436 !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  background: #FFFFFF !important;
  color: #2D3436 !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 14px !important;
  margin-left: 6px !important;
  transition: transform 0.1s, box-shadow 0.1s !important;
  box-sizing: border-box !important;
}

#header-sound-toggle.header-badge:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3.5px 0 #2D3436 !important;
}

#header-sound-toggle.header-badge:active {
  transform: translateY(1.5px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

/* Display Active Page Pill on Desktop Sidebar (consistent with mobile site) */
.layout-sidebar .header-page-badge {
  display: inline-flex !important;
  position: static !important;
  margin: 10px auto 4px auto !important;
  background: #FFEAA7 !important; /* Tactile pastel yellow */
  color: #2D3436 !important;
  border: 2px solid #2D3436 !important;
  box-shadow: 0 3px 0 #2D3436 !important;
  border-radius: 12px !important;
  padding: 4px 14px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  align-self: center !important;
  width: auto !important;
  font-family: var(--font-display) !important;
}

/* Remove 3D lanyard clip line & keycard slot graphics on desktop sidebar profile card */
.layout-sidebar .topbar-profile::before,
.layout-sidebar .topbar-profile::after {
  display: none !important;
  content: none !important;
}

/* ==========================================================================
   IMMERSIVE MAP THEME OVERRIDES (body.theme-immersive)
   ========================================================================== */

/* Make the layout sidebar container transparent on desktop */
@media (min-width: 769px) {
  body.theme-immersive[data-page="home"] .layout-sidebar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 130px !important;
    min-width: 130px !important;
    padding: 10px 5px !important;
  }
}

  body.theme-immersive[data-page="home"] .home-brand-block {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 10px !important;
  }

  /* Style Logo row as a cozy cloud bubble */
  body.theme-immersive[data-page="home"] .layout-sidebar .topbar-logo {
    background: #FFFFFF !important;
    border: 3px solid #2D3436 !important;
    box-shadow: 0 4.5px 0 #2D3436 !important;
    border-radius: 40px !important;
    padding: 8px 12px !important;
    width: auto !important;
    display: inline-flex !important;
    align-self: center !important;
  }

  body.theme-immersive[data-page="home"] .layout-sidebar .topbar-logo .logo-img {
    height: 48px !important;
  }

  body.theme-immersive[data-page="home"] .layout-sidebar .topbar-logo .logo-letter {
    font-size: 20px !important;
  }

  /* Theme selection is row-wrapped nicely */
  body.theme-immersive[data-page="home"] .layout-sidebar .topbar-logo .topbar-lang {
    margin-top: 6px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  /* Hide elements that shouldn't clutter the map view */
  body.theme-immersive[data-page="home"] .layout-sidebar .sidebar-search-box,
  body.theme-immersive[data-page="home"] .layout-sidebar .vp-search-wrap,
  body.theme-immersive[data-page="home"] .layout-sidebar .sidebar-age-filter,
  body.theme-immersive[data-page="home"] .layout-sidebar .topbar-profile,
  body.theme-immersive[data-page="home"] .layout-sidebar .hero-stars-badge {
    display: none !important;
  }

  /* Transform Sidebar Navigation Cards into Circular Buttons with Labels below */
  body.theme-immersive[data-page="home"] .layout-sidebar .active-page-pill,
  body.theme-immersive[data-page="home"] .layout-sidebar .spin-wheel-card,
  body.theme-immersive[data-page="home"] .layout-sidebar .parents-corner-widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 22px auto !important;
    padding: 0 !important;
    width: 100% !important;
    position: relative !important;
  }

  /* Make clickable buttons inside them perfect 3D circles */
  body.theme-immersive[data-page="home"] .layout-sidebar .active-page-pill .pill-icon,
  body.theme-immersive[data-page="home"] .layout-sidebar .spin-wheel-trigger-btn,
  body.theme-immersive[data-page="home"] .layout-sidebar .parents-link-compact {
    width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    border-radius: 50% !important; /* Perfect circle */
    border: 3px solid #2D3436 !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    cursor: pointer !important;
    transition: transform 0.1s, box-shadow 0.1s !important;
    margin: 0 auto 6px auto !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
  }

  body.theme-immersive[data-page="home"] .layout-sidebar .active-page-pill .pill-icon:hover,
  body.theme-immersive[data-page="home"] .layout-sidebar .spin-wheel-trigger-btn:hover,
  body.theme-immersive[data-page="home"] .layout-sidebar .parents-link-compact:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 0 #2D3436 !important;
  }

  body.theme-immersive[data-page="home"] .layout-sidebar .active-page-pill .pill-icon:active,
  body.theme-immersive[data-page="home"] .layout-sidebar .spin-wheel-trigger-btn:active,
  body.theme-immersive[data-page="home"] .layout-sidebar .parents-link-compact:active {
    transform: translateY(2.5px) !important;
    box-shadow: 0 1.5px 0 #2D3436 !important;
  }

  /* Set background colors for the circles */
  body.theme-immersive[data-page="home"] .layout-sidebar .active-page-pill .pill-icon {
    background: #FF7675 !important; /* Soft Red */
    color: #FFFFFF !important;
  }
  body.theme-immersive[data-page="home"] .layout-sidebar .spin-wheel-trigger-btn {
    background: #FFEAA7 !important; /* Soft Yellow */
    color: #2D3436 !important;
  }
  body.theme-immersive[data-page="home"] .layout-sidebar .parents-link-compact {
    background: #74B9FF !important; /* Soft Blue */
    color: #FFFFFF !important;
  }

  /* Style text labels below circles */
  body.theme-immersive[data-page="home"] .layout-sidebar .active-page-pill .pill-text {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #2D3436 !important;
    text-shadow: 0 1px 0 #FFFFFF !important;
    margin: 0 !important;
    display: block !important;
    text-align: center !important;
  }

  /* Hide original button texts inside circles */
  body.theme-immersive[data-page="home"] .layout-sidebar .spin-wheel-trigger-btn {
    font-size: 0 !important;
  }
  body.theme-immersive[data-page="home"] .layout-sidebar .spin-wheel-trigger-btn .spin-btn-icon {
    font-size: 24px !important;
    display: inline !important;
  }
  body.theme-immersive[data-page="home"] .layout-sidebar .parents-link-compact {
    font-size: 0 !important;
  }
  body.theme-immersive[data-page="home"] .layout-sidebar .parents-link-compact::before {
    content: "👨‍👩‍👧" !important;
    font-size: 24px !important;
  }

  /* Add pseudo labels below buttons */
  body.theme-immersive[data-page="home"] .layout-sidebar .spin-wheel-card::after {
    content: "LUCKY SPIN" !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #2D3436 !important;
    text-shadow: 0 1px 0 #FFFFFF !important;
    display: block !important;
    text-align: center !important;
  }

  body.theme-immersive[data-page="home"] .layout-sidebar .parents-corner-widget::after {
    content: "PARENTS" !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #2D3436 !important;
    text-shadow: 0 1px 0 #FFFFFF !important;
    display: block !important;
    text-align: center !important;
  }

  /* Display Active Page Pill on Desktop Sidebar (consistent with mobile site) */
  body.theme-immersive[data-page="home"] .layout-sidebar .header-page-badge {
    display: none !important; /* Managed by Home circle badge now */
  }

  /* Layout Theme Switcher Pill */
  body.theme-immersive .layout-switcher-widget button {
    background: #E0F7FA !important;
    border-color: #00ACC1 !important;
    box-shadow: 0 3px 0 #00ACC1 !important;
    color: #006064 !important;
  }

  /* Interactive Map Node Elements */
  html.theme-immersive:has(body[data-page="home"]),
  body.theme-immersive[data-page="home"] {
    background-color: #A2D2FF !important; /* Sky Blue Page boundary fallback */
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100vh !important;
    width: 100vw !important;
  }
  
  body.theme-immersive #animated-bg-scene {
    display: none !important;
  }
  
  body.theme-immersive .adventure-map-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10 !important;
    overflow: hidden !important;
  }

  body.theme-immersive .adventure-map-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('images/immersive_map_bg.png') !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
  }
  
  body.theme-immersive .map-path-svg {
    display: none !important;
  }
  
  body.theme-immersive .map-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 25;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  body.theme-immersive .map-node:hover {
    transform: scale(1.15) translateY(-5px) !important;
  }
  
  body.theme-immersive .map-node-icon {
    width: 95px;
    height: 95px;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: visible !important;
    position: relative;
    z-index: 2;
  }
  
  /* Glowing background halo to isolate icons from colorful map details */
  body.theme-immersive .map-node-icon::before {
    content: "";
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: node-halo-pulse 2.5s infinite ease-in-out;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.6));
  }
  
  @keyframes node-halo-pulse {
    0%, 100% { transform: scale(0.96); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; }
  }
  
  body.theme-immersive .map-node-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 4px rgba(0,0,0,0.15));
  }
  
  body.theme-immersive .map-node-label {
    margin-top: 6px;
    background: #FFD166 !important; /* Highly readable golden pill */
    border: 3px solid #2D3436 !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    border-radius: 16px !important;
    padding: 5px 16px !important;
    font-size: 15px !important; /* Substantially larger font for visibility */
    font-weight: 900 !important;
    color: #2D3436 !important; /* High-contrast dark text */
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    font-family: var(--font-display) !important;
    text-shadow: none !important;
  }

  /* ═══ Top Organic Controls Styling (Signpost, Conch, Balloon, Logo, Switcher) ═══ */
  .map-organic-control {
    position: absolute !important;
    z-index: 35 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
  }

  /* 1. Language Signpost */
  .map-lang-signpost {
    display: flex !important;
    align-items: center !important;
  }
  .signpost-board {
    display: flex !important;
    gap: 4px !important;
    background: #FFFDF7 !important;
    border: 2.5px solid #2D3436 !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    border-radius: 16px !important;
    padding: 3px 6px !important;
  }
  .signpost-board .plaque-btn {
    border: none !important;
    background: transparent !important;
    font-family: var(--font-display) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
    padding: 4px 8px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
  }
  .signpost-board .plaque-btn.active,
  .signpost-board .plaque-btn:hover {
    background: #00B894 !important;
    color: #FFFFFF !important;
  }

  /* 2. Sound Conch Seashell */
  .map-sound-seashell {
    background: #FFFDF7 !important;
    border: 2.5px solid #2D3436 !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    border-radius: 20px !important;
    padding: 4px 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: transform 0.15s ease !important;
  }
  .map-sound-seashell:hover {
    transform: scale(1.08) !important;
  }
  .seashell-icon { font-size: 18px !important; }
  .seashell-status {
    font-family: var(--font-display) !important;
    font-size: 10.5px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
  }

  /* 3. Lucky Spin Balloon */
  .map-lucky-balloon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 35% 35%, #FF7675 0%, #D63031 100%) !important;
    border: 2.5px solid #2D3436 !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.15s ease !important;
  }
  .map-lucky-balloon:hover {
    transform: scale(1.12) translateY(-2px) !important;
  }
  .balloon-icon { font-size: 18px !important; }
  .balloon-label {
    font-family: var(--font-display) !important;
    font-size: 6px !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    text-transform: uppercase !important;
  }

  /* 4. Top Logo Plaque */
  .map-organic-logo {
    position: absolute !important;
    top: 4% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 35 !important;
    background: #FFFDF7 !important;
    border: 3px solid #2D3436 !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    border-radius: 18px !important;
    padding: 4px 22px !important;
  }
  .map-organic-logo .logo-text {
    font-family: var(--font-display) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
    letter-spacing: 1.5px !important;
  }

  /* 5. Layout Switcher Pill Button (Desktop & Tablet) */
  .map-layout-switcher {
    background: #FFEAA7 !important;
    border: 2.5px solid #2D3436 !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
  }
  .map-layout-switcher:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 0 #2D3436 !important;
    background: #FDCB6E !important;
  }
  .map-layout-switcher:active {
    transform: translateY(2px) scale(0.98) !important;
    box-shadow: 0 1px 0 #2D3436 !important;
  }
  .switcher-icon { font-size: 16px !important; }
  .switcher-label {
    font-family: var(--font-display) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
  }

  /* ── Mobile-Specific Immersive Map Rules (<= 1024px) ── */
  @media (max-width: 1024px) {
    body.theme-immersive .adventure-map-container {
      position: fixed !important;
      width: 100vw !important;
      height: 100vh !important;
      top: 0 !important;
      left: 0 !important;
      overflow: hidden !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    body.theme-immersive .adventure-map-wrapper {
      width: 100vw !important;
      height: 100vh !important;
      max-width: 100vw !important;
      max-height: 100vh !important;
      background-size: cover !important;
      background-position: center center !important;
    }

    /* Keep top 1-row header visible on mobile in immersive mode */
    body.theme-immersive[data-page="home"] .layout-sidebar {
      position: fixed !important;
      top: 6px !important;
      left: 8px !important;
      right: 8px !important;
      width: auto !important;
      max-width: calc(100vw - 16px) !important;
      z-index: 100 !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: space-between !important;
    }

    /* Hide active page pill on mobile home */
    body.theme-immersive[data-page="home"] .active-page-pill,
    body.theme-immersive[data-page="home"] .active-page-pill.theme-home,
    body.theme-immersive[data-page="home"] .layout-sidebar .active-page-pill {
      display: none !important;
    }

    /* Hide redundant absolute organic controls on mobile since top header handles them */
    body.theme-immersive .map-lang-signpost,
    body.theme-immersive .map-sound-seashell,
    body.theme-immersive .map-organic-logo,
    body.theme-immersive .map-lucky-balloon,
    body.theme-immersive .map-parents-bottle,
    body.theme-immersive .map-portal-switcher,
    body.theme-immersive .map-mascot-decor,
    body.theme-immersive .map-comics-compact,
    body.theme-immersive .toon-corner-section,
    body.theme-immersive .map-organic-control,
    body.theme-immersive .map-legend-popup,
    body.theme-immersive div.map-organic-control,
    body.theme-immersive button.map-organic-control,
    body.theme-immersive a.map-organic-control {
      display: none !important;
    }

    /* Scale map node icons and labels for mobile screens */
    body.theme-immersive .map-node-icon {
      width: 52px !important;
      height: 52px !important;
    }

    body.theme-immersive .map-node-icon::before {
      top: -6px !important;
      left: -6px !important;
      right: -6px !important;
      bottom: -6px !important;
    }

    body.theme-immersive .map-node-label {
      margin-top: 3px !important;
      border: 2px solid #2D3436 !important;
      box-shadow: 0 2px 0 #2D3436 !important;
      border-radius: 10px !important;
      padding: 2px 7px !important;
      font-size: 9.5px !important;
      letter-spacing: 0.2px !important;
    }

    /* Mobile node coordinates winding naturally through the portrait landscape */
    /* 1. Videos (Upper Left Tent) */
    body.theme-immersive .map-node[href="videos.html"] {
      top: 14% !important;
      left: 18% !important;
    }

    /* 2. Songs (Upper Right Ridge Tree) */
    body.theme-immersive .map-node[href="audio.html"] {
      top: 17% !important;
      left: 68% !important;
    }

    /* 3. Books (Mountain Cave) */
    body.theme-immersive .map-node[href="books.html"] {
      top: 29% !important;
      left: 72% !important;
    }

    /* 4. Draw (Art Lighthouse) */
    body.theme-immersive .map-node[href="paint.html"] {
      top: 42% !important;
      left: 75% !important;
    }

    /* 5. Games (Volcano) */
    body.theme-immersive .map-node[href="games.html"] {
      top: 55% !important;
      left: 70% !important;
    }

    /* 6. Quiz (Sphinx) */
    body.theme-immersive .map-node[href="quiz.html"] {
      top: 68% !important;
      left: 62% !important;
    }

    /* 7. Daily Fact (Mountain Peak) */
    body.theme-immersive #map-launcher-fact.map-node {
      top: 32% !important;
      left: 20% !important;
    }

    /* 8. Fun Zone (Village) */
    body.theme-immersive .map-node[href="jokes.html"] {
      top: 48% !important;
      left: 22% !important;
    }

    /* 9. Daily Thought (Checkpoint) */
    body.theme-immersive #map-launcher-thought.map-node {
      top: 64% !important;
      left: 20% !important;
    }

    /* Mobile SVG rail sizing to stretch full screen and scale loop accurately */
    body.theme-immersive .map-rail-svg {
      width: 100% !important;
      height: 100% !important;
    }

    /* Scale animated train carriages for mobile immersive loop */
    body.theme-immersive[data-page="home"] .toy-train-track .train-engine {
      width: 80px !important;
      height: 55px !important;
    }
    body.theme-immersive[data-page="home"] .toy-train-track .hub-card {
      width: 90px !important;
      height: 48px !important;
    }
    body.theme-immersive[data-page="home"] .toy-train-track .hub-card-title {
      font-size: 8px !important;
      display: none !important;
    }
    body.theme-immersive[data-page="home"] .toy-train-track .hub-card-desc {
      display: none !important;
    }
    body.theme-immersive[data-page="home"] .toy-train-track .hub-card-icon {
      font-size: 24px !important;
      width: 32px !important;
      height: 32px !important;
    }
    body.theme-immersive[data-page="home"] .toy-train-track .hub-card-icon .hub-card-img {
      width: 28px !important;
      height: 28px !important;
    }

    /* Compass Button (Bottom Left, above Quick Jump) */
    body.theme-immersive .map-compass-decor {
      bottom: 58px !important;
      left: 12px !important;
      width: 44px !important;
      height: 44px !important;
      pointer-events: auto !important;
      z-index: 50 !important;
      background: #FFFFFF !important;
      border: 2px solid #2D3436 !important;
      border-radius: 50% !important;
      box-shadow: 0 2.5px 0 #2D3436 !important;
      padding: 2px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    body.theme-immersive .map-compass-decor img {
      width: 34px !important;
      height: 34px !important;
    }
    body.theme-immersive .map-compass-label {
      display: none !important;
    }

    /* Compass Legend Popup on Mobile */
    body.theme-immersive .map-legend-popup {
      left: 12px !important;
      right: 12px !important;
      width: auto !important;
      bottom: 60px !important;
      z-index: 1000 !important;
    }
    body.theme-immersive .map-legend-grid {
      grid-template-columns: 1fr 1fr !important;
      max-height: 48vh !important;
      overflow-y: auto !important;
    }

    /* Layout Switcher FAB on Mobile */
    body.theme-immersive .layout-switcher-widget {
      display: block !important;
      position: fixed !important;
      bottom: 12px !important;
      right: 12px !important;
      z-index: 10000 !important;
    }
    body.theme-immersive .quick-jump-container {
      display: block !important;
      position: fixed !important;
      bottom: 12px !important;
      left: 12px !important;
      z-index: 10000 !important;
    }
  }
  
  /* Compass Decoration in bottom-left */
  body.theme-immersive .map-compass-decor {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 120px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 15;
    pointer-events: none;
  }
  
  body.theme-immersive .map-compass-decor img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
    animation: compass-sway 6s ease-in-out infinite alternate;
  }
  
  @keyframes compass-sway {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
  }
  
  body.theme-immersive .map-compass-label {
    margin-top: 4px;
    background: #1B2A4A !important;
    border: 2.5px solid #2D3436 !important;
    box-shadow: 0 3px 0 #2D3436 !important;
    border-radius: 12px !important;
    padding: 3px 10px !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    text-transform: uppercase !important;
    font-family: var(--font-display) !important;
  }

  .harbor-dock-carousel {
    position: absolute !important;
    bottom: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 86% !important;
    max-width: 660px !important;
    z-index: 30 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    pointer-events: auto !important;
    user-select: none !important;
  }

  .carousel-dock-header {
    margin-bottom: 3px !important;
  }

  .carousel-see-all-btn {
    background: #FF7675 !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 3px 0 #2D3436 !important;
    border-radius: 16px !important;
    padding: 3px 12px !important;
    font-family: var(--font-display) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
  }
  .carousel-see-all-btn:hover {
    transform: scale(1.06) translateY(-2px) !important;
    box-shadow: 0 4.5px 0 #2D3436 !important;
    background: #D63031 !important;
  }
  .carousel-see-all-btn:active {
    transform: translateY(1.5px) scale(0.98) !important;
    box-shadow: 0 1px 0 #2D3436 !important;
  }

  .carousel-slider-row {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .carousel-arrow-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #74B9FF !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 2.5px 0 #2D3436 !important;
    color: #FFFFFF !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
    flex-shrink: 0 !important;
  }
  .carousel-arrow-btn:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    background: #0984E3 !important;
  }
  .carousel-arrow-btn:active {
    transform: translateY(1.5px) scale(0.95) !important;
    box-shadow: 0 1px 0 #2D3436 !important;
  }

  .carousel-track-viewport {
    flex: 1 !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important; /* Hide scrollbar for clean UI */
    -ms-overflow-style: none !important;
    padding: 2px 2px 6px 2px !important;
  }
  .carousel-track-viewport::-webkit-scrollbar {
    display: none !important;
  }

  .carousel-vessels-track {
    display: flex !important;
    gap: 10px !important;
    align-items: stretch !important;
    width: max-content !important;
  }

  .dock-carousel-card {
    position: relative !important;
    width: 175px !important;
    background: #FFFDF7 !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 0 #2D3436, 0 8px 16px rgba(0,0,0,0.18) !important;
    padding: 6px 8px 8px 8px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 8px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease !important;
    flex-shrink: 0 !important;
  }
  .dock-carousel-card:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 7px 0 #2D3436, 0 12px 20px rgba(0,0,0,0.25) !important;
  }
  .dock-carousel-card:active {
    transform: translateY(2px) !important;
    box-shadow: 0 1px 0 #2D3436 !important;
  }

  .dock-card-badge {
    position: absolute !important;
    top: -6px !important;
    right: 8px !important;
    background: #FFEAA7 !important;
    border: 1.5px solid #2D3436 !important;
    border-radius: 6px !important;
    font-family: var(--font-display) !important;
    font-size: 7.5px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
    padding: 1px 4px !important;
  }

  .dock-card-img-wrap {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .dock-card-graphic {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2)) !important;
    animation: dockCardBob 2.8s ease-in-out infinite alternate !important;
  }

  .dock-card-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .dock-card-title {
    margin: 0 0 1px 0 !important;
    font-family: var(--font-display) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  .dock-card-sub {
    margin: 0 0 4px 0 !important;
    font-size: 9px !important;
    color: #636E72 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  .dock-card-cta {
    background: #00B894 !important;
    border: 1.5px solid #2D3436 !important;
    box-shadow: 0 2px 0 #2D3436 !important;
    border-radius: 10px !important;
    padding: 2px 6px !important;
    font-family: var(--font-display) !important;
    font-size: 8.5px !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  /* Responsive styles for Option C carousel */
  @media (max-width: 768px) {
    .harbor-dock-carousel {
      width: 96% !important;
      bottom: 8px !important;
    }
    .dock-carousel-card {
      width: 155px !important;
      padding: 6px 8px 8px 8px !important;
    }
    .dock-card-img-wrap {
      width: 55px !important;
      height: 46px !important;
    }
    .dock-card-title {
      font-size: 11px !important;
    }
    .dock-card-sub {
      font-size: 9px !important;
      margin-bottom: 4px !important;
    }
    .dock-card-cta {
      font-size: 8.5px !important;
      padding: 2px 7px !important;
    }
    .carousel-arrow-btn {
      width: 32px !important;
      height: 32px !important;
      font-size: 12px !important;
    }
    .carousel-see-all-btn {
      font-size: 9.5px !important;
      padding: 3px 10px !important;
    }
  }

  @media (max-width: 768px) {
    .docked-vessel-wrap {
      width: 65px;
      height: 50px;
    }
    .docked-boat-hull {
      width: 60px;
      height: 38px;
    }
    .docked-boat-cabin {
      font-size: 12px;
    }
    .docked-vessel-label {
      font-size: 8.5px !important;
      padding: 2px 6px !important;
      border-width: 1.5px !important;
    }
  }

  body.theme-immersive .homepage-activities-section,
  body.theme-immersive .daily-spark-badges-row,
  body.theme-immersive .home-footer-mobile {
    display: none !important;
  }
  
  body.theme-immersive .page-content.inner-page::before {
    display: none !important;
  }
  
  body.theme-immersive .page-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  body.theme-immersive .layout-center-col {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ── Hide classic train in Immersive theme (replaced by Safari Explorer Boat) ── */
  body.theme-immersive .toy-train-container,
  body.theme-immersive[data-page="home"] .toy-train-container,
  body[data-page="home"].theme-immersive .toy-train-container {
    display: none !important;
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     🚢 COASTAL SAFARI EXPLORER BOAT (Immersive Ocean Perimeter Vehicle)
     ═══════════════════════════════════════════════════════════════════════════ */
  .map-ocean-svg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 12 !important;
    overflow: visible !important;
  }

  .ocean-water-wake-trail {
    animation: oceanWaveFlow 12s linear infinite;
  }
  @keyframes oceanWaveFlow {
    to { stroke-dashoffset: -300; }
  }

  .safari-boat-vessel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 140px !important;
    height: 90px !important;
    z-index: 25 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transform-origin: 50% 50% !important;
    transition: filter 0.2s ease !important;
    will-change: transform;
    user-select: none !important;
  }
  .safari-boat-vessel:hover {
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35)) brightness(1.06);
  }

  .boat-hull {
    position: relative;
    width: 100%;
    height: 100%;
    animation: boatGentleRock 2.4s ease-in-out infinite alternate;
    transform-origin: 50% 80%;
  }
  @keyframes boatGentleRock {
    0% { transform: translateY(0) rotate(-2deg); }
    100% { transform: translateY(-4px) rotate(2deg); }
  }

  /* Boat Funnel & Animated Steam */
  .boat-funnel {
    position: absolute;
    top: 10px;
    left: 36px;
    width: 16px;
    height: 26px;
    background: linear-gradient(180deg, #E74C3C 0%, #C0392B 100%);
    border: 2px solid #2D3436;
    border-radius: 4px 4px 0 0;
    z-index: 2;
  }
  .boat-funnel-top {
    position: absolute;
    top: -4px;
    left: -3px;
    width: 20px;
    height: 6px;
    background: #2D3436;
    border-radius: 3px;
  }

  .boat-steam-cloud, .boat-steam-cloud-2 {
    position: absolute;
    top: -8px;
    left: 38px;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
    animation: steamPuffDrift 2.2s ease-out infinite;
  }
  .boat-steam-cloud-2 {
    animation-delay: 1.1s;
  }
  @keyframes steamPuffDrift {
    0% { transform: translate(0, 0) scale(0.6); opacity: 0.9; }
    50% { opacity: 0.7; }
    100% { transform: translate(-25px, -35px) scale(2.2); opacity: 0; }
  }

  /* Cabin & Animals */
  .boat-cabin {
    position: absolute;
    top: 26px;
    left: 48px;
    width: 65px;
    height: 38px;
    background: #FFEAA7;
    border: 2.5px solid #2D3436;
    border-radius: 8px 8px 0 0;
    box-shadow: inset 0 3px 0 rgba(255,255,255,0.6);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .boat-cabin-roof {
    position: absolute;
    top: -7px;
    left: -4px;
    width: 72px;
    height: 9px;
    background: #0984E3;
    border: 2px solid #2D3436;
    border-radius: 6px;
  }
  .boat-passengers {
    display: flex;
    gap: 2px;
    font-size: 16px;
    line-height: 1;
    animation: passengerWave 1.8s ease-in-out infinite alternate;
  }
  @keyframes passengerWave {
    0% { transform: translateY(1px); }
    100% { transform: translateY(-2px); }
  }

  /* Lower Hull Body */
  .boat-hull-body {
    position: absolute;
    bottom: 8px;
    left: 10px;
    width: 120px;
    height: 30px;
    background: linear-gradient(180deg, #0984E3 0%, #0652DD 60%, #E74C3C 60%, #C0392B 100%);
    border: 2.5px solid #2D3436;
    border-radius: 4px 18px 24px 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.4);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .boat-lifebuoy {
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    border: 2px solid #E74C3C;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px #2D3436;
  }
  .boat-name-tag {
    font-family: var(--font-display);
    font-size: 7.5px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px #2D3436;
  }

  /* Water Wake foam */
  .boat-wake-foam {
    position: absolute;
    bottom: 2px;
    left: 4px;
    width: 130px;
    height: 10px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
    animation: foamRipple 1.2s ease-in-out infinite alternate;
  }
  @keyframes foamRipple {
    0% { transform: scaleX(0.9); opacity: 0.5; }
    100% { transform: scaleX(1.15); opacity: 0.9; }
  }

  /* Speech Bubble */
  .boat-speech-bubble {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #FFFFFF;
    border: 2px solid #2D3436;
    border-radius: 12px;
    box-shadow: 0 3px 0 #2D3436;
    padding: 3px 8px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 900;
    color: #2D3436;
    white-space: nowrap;
    z-index: 50;
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
    pointer-events: none;
  }
  .boat-speech-bubble.visible {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }

  /* Honk Shake */
  .safari-boat-vessel.boat-honk {
    animation: boatHonkShake 0.4s ease-in-out 3;
  }
  @keyframes boatHonkShake {
    0%, 100% { transform: translate(var(--curr-x, 0), var(--curr-y, 0)) scale(1.08); }
    50% { transform: translate(var(--curr-x, 0), var(--curr-y, 0)) scale(1.18); }
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     ⛵ EXPEDITION DOCK MODAL (Special Hubs Popup)
     ═══════════════════════════════════════════════════════════════════════════ */
  .expedition-dock-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
  }
  .expedition-dock-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .expedition-dock-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 42, 74, 0.65);
    backdrop-filter: blur(8px);
  }
  .expedition-dock-content {
    position: relative;
    width: 92%;
    max-width: 660px;
    max-height: 88vh;
    background: #FFFDF7;
    border: 4px solid #2D3436;
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 6px 0 #2D3436;
    padding: 24px 20px 20px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
  }
  .expedition-dock-modal.open .expedition-dock-content {
    transform: translateY(0) scale(1);
  }
  .expedition-dock-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    background: #FF7675;
    border: 3px solid #2D3436;
    border-radius: 50%;
    box-shadow: 0 3px 0 #2D3436;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
    z-index: 10;
  }
  .expedition-dock-close:hover {
    transform: scale(1.15) rotate(90deg);
  }
  .expedition-dock-header {
    text-align: center;
    margin-bottom: 14px;
  }
  .expedition-dock-badge {
    background: #FFEAA7;
    border: 2px solid #2D3436;
    border-radius: 12px;
    box-shadow: 0 2px 0 #2D3436;
    padding: 3px 10px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 900;
    color: #2D3436;
    display: inline-block;
    margin-bottom: 4px;
  }
  .expedition-dock-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: #2D3436;
    margin: 2px 0;
  }
  .expedition-dock-subtitle {
    font-size: 12px;
    color: #636E72;
    margin: 0;
  }
  /* Controls: Search Bar & Category Filter Pills */
  .harbor-modal-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }
  .harbor-search-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
  }
  .harbor-search-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
  }
  .harbor-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px 10px 42px !important;
    background: #FFFFFF;
    border: 2.5px solid #2D3436;
    border-radius: 18px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: #2D3436;
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
  }
  .harbor-search-input:focus {
    border-color: #0984E3;
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.2);
  }
  .harbor-filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .harbor-filter-pills::-webkit-scrollbar {
    display: none;
  }
  .harbor-pill {
    border: 2px solid #2D3436;
    background: #F1F2F6;
    box-shadow: 0 2.5px 0 #2D3436;
    border-radius: 16px;
    padding: 5px 12px;
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 900;
    color: #2D3436;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
  }
  .harbor-pill:hover {
    background: #DFE4EA;
    transform: translateY(-1px);
  }
  .harbor-pill.active {
    background: #00B894;
    color: #FFFFFF;
    box-shadow: 0 2.5px 0 #006266;
  }

  .expedition-dock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    overflow-y: auto;
    max-height: 52vh;
    padding: 4px 4px 12px 4px;
  }

  /* Rich Visual Hub Cards */
  .harbor-modal-card {
    display: flex;
    align-items: center;
    text-align: left;
    background: #FFFFFF;
    border: 3px solid #2D3436;
    border-radius: 18px;
    box-shadow: 0 5px 0 #2D3436;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    gap: 12px;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease;
  }
  .harbor-modal-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 0 #2D3436, 0 12px 20px rgba(0,0,0,0.15);
  }
  .harbor-modal-card:active {
    transform: translateY(2px);
    box-shadow: 0 1.5px 0 #2D3436;
  }

  .harbor-card-icon-wrap {
    width: 60px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #F8FAFC;
    border: 2px solid #2D3436;
    border-radius: 14px;
    padding: 4px;
    box-sizing: border-box;
  }
  .hub-card-math .harbor-card-icon-wrap { background: #E0F2FE; }
  .hub-card-dinosaurs .harbor-card-icon-wrap { background: #D1FAE5; }
  .hub-card-space .harbor-card-icon-wrap { background: #EDE9FE; }
  .hub-card-animals .harbor-card-icon-wrap { background: #FEF3C7; }
  .hub-card-festivals .harbor-card-icon-wrap { background: #FFEDD5; }
  .hub-card-science .harbor-card-icon-wrap { background: #E0F7FA; }
  .hub-card-english .harbor-card-icon-wrap { background: #DCFCE7; }
  .hub-card-oceans .harbor-card-icon-wrap { background: #CFFAFE; }

  .harbor-card-graphic {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
  }

  .harbor-card-content {
    flex: 1;
    min-width: 0;
  }
  .harbor-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
  }
  .harbor-category-badge {
    font-family: var(--font-display);
    font-size: 8.5px;
    font-weight: 900;
    color: #2D3436;
    background: #FFEAA7;
    border: 1px solid #2D3436;
    border-radius: 6px;
    padding: 1px 5px;
    text-transform: uppercase;
  }
  .harbor-card-stars {
    font-size: 9px;
    letter-spacing: -1px;
  }

  .harbor-card-title {
    margin: 2px 0 2px 0;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 900;
    color: #2D3436;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .harbor-card-desc {
    margin: 0;
    font-size: 10.5px;
    color: #636E72;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .harbor-card-action {
    flex-shrink: 0;
  }
  .harbor-action-btn {
    font-family: var(--font-display);
    font-size: 9.5px;
    font-weight: 900;
    padding: 5px 9px;
    border-radius: 12px;
    border: 2px solid #2D3436;
    background: #FFD166;
    color: #2D3436;
    box-shadow: 0 2px 0 #2D3436;
    white-space: nowrap;
    display: inline-block;
  }

  @media (max-width: 650px) {
    .expedition-dock-content {
      width: 95%;
      padding: 18px 12px 14px 12px;
    }
    .expedition-dock-grid {
      grid-template-columns: 1fr;
      max-height: 48vh;
      gap: 10px;
    }
    .harbor-modal-card {
      padding: 8px 10px;
      gap: 10px;
    }
  }

  /* ── Comics: Styled as a horizontal billboard/hoarding (Desktop Only) ── */
@media (min-width: 1025px) {
  body.theme-immersive .toon-corner-section {
    display: block !important;
    position: absolute !important;
    left: 4% !important;
    top: 16% !important;
    width: 26% !important;
    height: auto !important;
    aspect-ratio: 1024 / 540 !important;
    z-index: 25 !important;
    background: #8B5A2B !important; /* Warm timber background */
    border: 12px solid #5C3A21 !important; /* Thick rustic wood frame */
    border-radius: 16px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.5), inset 0 0 25px rgba(0,0,0,0.45) !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }

  /* Stylized support stilts/legs standing on the map grass */
  body.theme-immersive .toon-corner-section::before,
  body.theme-immersive .toon-corner-section::after {
    content: "" !important;
    position: absolute !important;
    bottom: -150px !important;
    width: 14px !important;
    height: 150px !important;
    background: linear-gradient(to bottom, #5C3A21, #2E1D10) !important;
    border: 3px solid #1C110A !important;
    z-index: -1 !important;
  }
  body.theme-immersive .toon-corner-section::before {
    left: 35px !important;
  }
  body.theme-immersive .toon-corner-section::after {
    right: 35px !important;
  }
}

  /* Inward header frame title style */
  body.theme-immersive .homepage-comic-wrap {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  body.theme-immersive .homepage-comic-header {
    display: none !important;
  }

  body.theme-immersive .homepage-comic-strip-wrap {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  /* SVG rail overlay styling */
  body.theme-immersive .map-rail-svg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 12 !important;
  }

  /* ── Compass: now an interactive button ─────────────────────────────────── */
  body.theme-immersive .map-compass-decor {
    position: absolute !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    background: rgba(255,255,255,0.15) !important;
    border: 3px solid rgba(255,255,255,0.55) !important;
    border-radius: 50% !important;
    padding: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    z-index: 30 !important;
    backdrop-filter: blur(6px) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35) !important;
    width: 6% !important;
  }
  body.theme-immersive .map-compass-decor:hover {
    transform: scale(1.12) rotate(15deg) !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.5) !important;
  }
  body.theme-immersive .map-compass-decor img {
    width: 100% !important;
    border-radius: 50% !important;
  }
  body.theme-immersive .map-compass-label {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7) !important;
    text-align: center !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
  }

  /* ── Map Legend Popup ───────────────────────────────────────────────────── */
  body.theme-immersive .map-legend-popup {
    position: absolute !important;
    bottom: 13% !important;
    left: 1% !important;
    width: 42% !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 200 !important;
    transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease !important;
  }
  body.theme-immersive .map-legend-popup.open {
    max-height: 60vh !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  body.theme-immersive .map-legend-inner {
    background: linear-gradient(145deg, #FFF8E7, #F5E8C0) !important;
    border: 3px solid #8B5E1A !important;
    border-radius: 18px !important;
    padding: 14px 14px 12px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.6) !important;
    position: relative !important;
    /* Parchment texture feel */
    background-image: 
      linear-gradient(145deg, #FFF8E7, #F5E8C0),
      url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23C8A050' opacity='0.3'/%3E%3C/svg%3E") !important;
  }
  body.theme-immersive .map-legend-close {
    position: absolute !important;
    top: 8px !important;
    right: 10px !important;
    background: #8B5E1A !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s !important;
    z-index: 5 !important;
  }
  body.theme-immersive .map-legend-close:hover {
    background: #5C3D10 !important;
  }
  body.theme-immersive .map-legend-title {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #4A2506 !important;
    margin: 0 0 2px !important;
    text-align: center !important;
  }
  body.theme-immersive .map-legend-subtitle {
    font-size: 14px !important;
    color: #7B4F2A !important;
    text-align: center !important;
    margin: 0 0 8px !important;
  }
  body.theme-immersive .map-legend-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 6px !important;
  }
  body.theme-immersive .map-legend-item {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(255,255,255,0.55) !important;
    border: 1.5px solid rgba(139,94,26,0.3) !important;
    border-radius: 10px !important;
    padding: 5px 6px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: #4A2506 !important;
    font-size: 13px !important;
    transition: background 0.18s, transform 0.18s !important;
    text-align: left !important;
  }
  body.theme-immersive .map-legend-item:hover {
    background: rgba(255,220,120,0.7) !important;
    transform: translateY(-2px) !important;
  }
  body.theme-immersive .map-legend-item img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }
  body.theme-immersive .map-legend-item strong {
    font-size: 14px !important;
    display: block !important;
  }
  body.theme-immersive .map-legend-item small {
    font-size: 11px !important;
    opacity: 0.8 !important;
  }


/* ═══════════════════════════════════════════════════════════════════════════
   IMMERSIVE INNER PAGE BANNER — Zone-themed entrance banner
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  .immersive-page-banner {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    background: linear-gradient(90deg, var(--zone-color, #1E3A5F), color-mix(in srgb, var(--zone-color, #1E3A5F) 70%, transparent)) !important;
    border-bottom: 3px solid color-mix(in srgb, var(--zone-color, #1E3A5F) 50%, white) !important;
    padding: 10px 22px !important;
    border-radius: 0 0 16px 16px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25) !important;
    animation: bannerSlideIn 0.5s cubic-bezier(0.4,0,0.2,1) both !important;
    z-index: 100 !important;
    position: relative !important;
  }
  @keyframes bannerSlideIn {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .immersive-banner-back {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    text-decoration: none !important;
    border: 2px solid rgba(255,255,255,0.45) !important;
    border-radius: 30px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    transition: background 0.2s, transform 0.2s !important;
  }
  .immersive-banner-back:hover {
    background: rgba(255,255,255,0.32) !important;
    transform: translateX(-3px) !important;
  }
  .immersive-banner-zone {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
    justify-content: center !important;
  }
  .immersive-banner-emoji {
    font-size: 28px !important;
    animation: bannerBounce 2s ease-in-out infinite !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) !important;
  }
  @keyframes bannerBounce {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%       { transform: translateY(-5px) rotate(3deg); }
  }
  .immersive-banner-label {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: rgba(255,255,255,0.92) !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
    letter-spacing: 0.5px !important;
  }
  .immersive-banner-label strong {
    color: #fff !important;
    font-size: 18px !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
  }
  .immersive-banner-spacer {
    flex: 0 0 90px !important; /* Balance with back button */
  }

  /* Page tint for inner activity pages in immersive mode */
  body.immersive-inner-page .sunny-bg,
  body.immersive-inner-page #animated-bg-scene {
    filter: saturate(0.7) brightness(0.85) !important;
  }
  body.immersive-inner-page .page-content.inner-page {
    border-top: 4px solid var(--zone-color, #1E3A5F) !important;
  }
}

/* ==========================================================================
   OPTION 1: FULLSCREEN IMMERSIVE LAYOUT WITH ORGANIC CONTROLS
   ========================================================================== */
@media (min-width: 1025px) {
  /* Hide the sidebar completely in immersive mode */
  body.theme-immersive[data-page="home"] .layout-sidebar {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Force the layout center column to occupy full width */
  body.theme-immersive .home-layout {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  /* Hide the floating layout switcher widget on desktop (since portal switcher is present) */
  body.theme-immersive #layout-switcher-container {
    display: none !important;
  }

  /* ── Custom Organic Controls on Immersive Map (Desktop Only) ── */
  body.theme-immersive .map-organic-control {
    position: absolute !important;
    z-index: 30 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  }
  body.theme-immersive .map-organic-control:hover {
    transform: scale(1.1) !important;
  }
  /* 1. Language selector signpost (Compact Pill like Classic) */
  body.theme-immersive .map-lang-signpost {
    width: auto !important;
    pointer-events: auto !important;
  }
  body.theme-immersive .map-lang-signpost .signpost-pole {
    display: none !important;
  }
  body.theme-immersive .map-lang-signpost .signpost-board {
    background: #FFFFFF !important;
    border: 3.5px solid #DFE6E9 !important;
    border-radius: 20px !important;
    padding: 2px 6px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    box-shadow: 0 4px 0 #DFE6E9, 0 6px 10px rgba(0,0,0,0.08) !important;
    width: auto !important;
    box-sizing: border-box !important;
  }
  body.theme-immersive .map-lang-signpost .plaque-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 14px !important;
    color: #636E72 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    font-family: var(--font-display) !important;
    padding: 5px 12px !important;
    cursor: pointer !important;
    text-shadow: none !important;
    transition: all 0.2s !important;
    width: auto !important;
  }
  body.theme-immersive .map-lang-signpost .plaque-btn:hover {
    background: #F8F9FA !important;
  }
  body.theme-immersive .map-lang-signpost .plaque-btn.active {
    background: #00A8E8 !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 3px 0 #007EA7 !important;
    transform: translateY(-1.5px) !important;
  }

  /* 2. Sound toggle (Circular Pill like Classic) */
  body.theme-immersive .map-sound-seashell {
    background: #FFFFFF !important;
    border: 3.5px solid #DFE6E9 !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 0 #DFE6E9, 0 6px 10px rgba(0,0,0,0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    pointer-events: auto !important;
    transition: all 0.2s !important;
  }
  body.theme-immersive .map-sound-seashell.sound-active {
    background: #FFFFFF !important;
  }
  body.theme-immersive .map-sound-seashell:not(.sound-active) {
    background: #FFFFFF !important;
  }
  body.theme-immersive .map-sound-seashell:active {
    margin-top: 2px !important;
    box-shadow: 0 1.5px 0 #DFE6E9, 0 3px 6px rgba(0,0,0,0.08) !important;
  }
  body.theme-immersive .map-sound-seashell .seashell-icon {
    font-size: 18px !important;
    display: inline-block !important;
    animation: none !important;
  }
  body.theme-immersive .map-sound-seashell .seashell-status {
    display: none !important;
  }

  /* 7. Website Logo Plaque (Hanging Wooden Banner) */
  body.theme-immersive .map-organic-logo {
    position: absolute !important;
    top: 2% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, #8B5A2B, #5C3A21) !important;
    border: 3.5px solid #3E2723 !important;
    border-radius: 12px !important;
    padding: 3px 16px !important;
    box-shadow: 0 4px 0 #3E2723, 0 6px 12px rgba(0,0,0,0.4) !important;
    z-index: 15 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body.theme-immersive .map-organic-logo .logo-text {
    font-family: 'Fredoka One', 'Quicksand', 'Nunito', sans-serif !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #FFB703 !important;
    text-shadow: 2.5px 2.5px 0 #2D3436 !important;
    letter-spacing: 1.5px !important;
  }

  /* 3. Lucky Spin Hot Air Balloon */
  body.theme-immersive .map-lucky-balloon {
    background: linear-gradient(135deg, #FF9F43, #FF6B6B) !important;
    border: 3.5px solid #2D3436 !important;
    border-radius: 50% !important;
    width: 78px !important;
    height: 78px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 0 #2D3436, 0 10px 20px rgba(0,0,0,0.35) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    animation: bobbleBalloon 4s ease-in-out infinite !important;
  }
  body.theme-immersive .map-lucky-balloon:active {
    margin-top: 4px !important;
    box-shadow: 0 2px 0 #2D3436, 0 4px 8px rgba(0,0,0,0.3) !important;
  }
  body.theme-immersive .map-lucky-balloon .balloon-icon {
    font-size: 28px !important;
    margin-bottom: 2px !important;
  }
  body.theme-immersive .map-lucky-balloon .balloon-label {
    font-size: 8px !important;
    font-weight: 900 !important;
    color: #FFF !important;
    text-transform: uppercase !important;
    font-family: var(--font-display) !important;
    text-shadow: 1px 1px 0 #2D3436 !important;
    white-space: nowrap !important;
  }

  /* 4. Parents corner message in a bottle */
  body.theme-immersive .map-parents-bottle {
    background: linear-gradient(135deg, #48DBFB, #1DD1A1) !important;
    border: 3.5px solid #2D3436 !important;
    border-radius: 20px !important;
    padding: 8px 12px !important;
    box-shadow: 0 6px 0 #2D3436, 0 8px 16px rgba(0,0,0,0.3) !important;
    text-decoration: none !important;
    color: #2D3436 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    pointer-events: auto !important;
    animation: bottleFloat 3s ease-in-out infinite !important;
  }
  body.theme-immersive .map-parents-bottle:active {
    margin-top: 4px !important;
    box-shadow: 0 2px 0 #2D3436, 0 4px 8px rgba(0,0,0,0.3) !important;
  }
  body.theme-immersive .map-parents-bottle .bottle-icon {
    font-size: 24px !important;
  }
  body.theme-immersive .map-parents-bottle .bottle-label {
    font-size: 13px !important;
    font-weight: 900 !important;
    font-family: var(--font-display) !important;
    text-transform: uppercase !important;
    color: #2D3436 !important;
  }

  /* 5. Layout switcher magical portal */
  body.theme-immersive .map-portal-switcher {
    background: linear-gradient(135deg, #9C27B0, #E91E63) !important;
    border: 3.5px solid #2D3436 !important;
    border-radius: 20px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 0 #2D3436, 0 8px 16px rgba(0,0,0,0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    pointer-events: auto !important;
  }
  body.theme-immersive .map-portal-switcher:active {
    margin-top: 4px !important;
    box-shadow: 0 2px 0 #2D3436, 0 4px 8px rgba(0,0,0,0.3) !important;
  }
  body.theme-immersive .map-portal-switcher .portal-icon {
    font-size: 22px !important;
    display: inline-block !important;
    animation: rotatePortal 6s linear infinite !important;
  }
  body.theme-immersive .map-portal-switcher .portal-label {
    font-size: 13px !important;
    font-weight: 900 !important;
    font-family: var(--font-display) !important;
    text-transform: uppercase !important;
    color: #FFF !important;
    text-shadow: 1px 1px 0 #2D3436 !important;
  }

  /* 6. Mascot Decor */
  body.theme-immersive .map-mascot-decor {
    position: absolute !important;
    width: 140px !important;
    height: auto !important;
    z-index: 25 !important;
    pointer-events: none !important;
    animation: mascotBob 4s ease-in-out infinite !important;
  }
  body.theme-immersive .map-mascot-decor img {
    width: 100% !important;
    height: auto !important;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.35)) !important;
  }

  /* Animations */
  @keyframes floatingConch {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(8deg); }
  }
  @keyframes bobbleBalloon {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.02); }
  }
  @keyframes bottleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-4deg); }
  }
  @keyframes rotatePortal {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  @keyframes mascotBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
}

  /* ── Hoarding Comic Cycling & Overlay (Intuitive Upgrades) ── */
  body.theme-immersive .homepage-comic-strip-container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  body.theme-immersive .hoarding-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: linear-gradient(135deg, #8B5A2B, #5C3A21) !important;
    border: 3px solid #3E2723 !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    color: #FFF !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 15 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4) !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  body.theme-immersive .hoarding-arrow:hover {
    background: linear-gradient(135deg, #A06D3B, #704728) !important;
    transform: translateY(-50%) scale(1.1) !important;
  }
  body.theme-immersive .hoarding-arrow:active {
    transform: translateY(-50%) scale(0.95) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;
  }
  body.theme-immersive .hoarding-arrow-left {
    left: -22px !important;
  }
  body.theme-immersive .hoarding-arrow-right {
    right: -22px !important;
  }

  body.theme-immersive .homepage-comic-strip-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    border-radius: 8px !important;
  }

  body.theme-immersive .hoarding-click-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.45) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.25s ease !important;
    pointer-events: none !important;
    z-index: 10 !important;
  }
  body.theme-immersive .homepage-comic-strip-wrap:hover .hoarding-click-overlay {
    opacity: 1 !important;
  }
  body.theme-immersive .hoarding-click-overlay span {
    background: #FFB703 !important;
    border: 3.5px solid #2D3436 !important;
    border-radius: 20px !important;
    color: #2D3436 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    font-family: var(--font-display) !important;
    padding: 8px 18px !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    animation: pulseTap 1.5s ease-in-out infinite !important;
  }

  @keyframes pulseTap {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
  }

  /* Show complete comic strip inside the billboard frame */
  body.theme-immersive .homepage-comic-strip-img {
    object-fit: contain !important;
    background: #FFF !important;
  }

  /* Hide classic announcement bar in immersive mode to gain screen height space */
  body.theme-immersive #announcement-bar {
    display: none !important;
  }

  /* Toy Train Carriage (Hub Card) typography overrides for immersive scale visibility */
  body.theme-immersive[data-page="home"] .toy-train-track .hub-card-title {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
    line-height: 1.2 !important;
    font-family: var(--font-display) !important;
  }
  body.theme-immersive[data-page="home"] .toy-train-track .hub-card-desc {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #4B5563 !important;
    line-height: 1.2 !important;
  }
  body.theme-immersive[data-page="home"] .toy-train-track .hub-card-icon {
    font-size: 55px !important;
    width: 65px !important;
    height: 65px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body.theme-immersive[data-page="home"] .toy-train-track .hub-card-icon .hub-card-img {
    width: 65px !important;
    height: 65px !important;
    object-fit: contain !important;
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     IMMERSIVE MODE INNER PAGES — Playful, High-Contrast styling for subpages
     ═══════════════════════════════════════════════════════════════════════════ */

  /* Themed Page Background Tinting */
  body.immersive-inner-page {
    background: radial-gradient(circle at top, var(--zone-light, #E0F7FA) 0%, #FFFFFF 100%) !important;
  }

  /* Playful Layout Sidebar */
  body.immersive-inner-page .layout-sidebar {
    background: #FFFFFF !important;
    border: 3.5px solid var(--zone-color, #00ACC1) !important;
    border-radius: 24px !important;
    box-shadow: 0 6px 0 var(--zone-color, #00ACC1) !important;
    padding: 18px !important;
    box-sizing: border-box !important;
  }

  /* Search input bar on subpages */
  body.immersive-inner-page .vp-search-wrap {
    margin-bottom: 12px !important;
  }
  body.immersive-inner-page .vp-search-input {
    border: 3px solid #2D3436 !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: var(--font-display) !important;
    padding: 8px 12px 8px 36px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05) !important;
    transition: all 0.2s !important;
  }
  body.immersive-inner-page .vp-search-input:focus {
    border-color: var(--zone-color, #00ACC1) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 172, 193, 0.2) !important;
  }

  /* Playful Category Button Pills on Sidebar */
  body.immersive-inner-page .sidebar-cat-btn {
    border: 3px solid #2D3436 !important;
    border-radius: 16px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    background: #FFFFFF !important;
    transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  body.immersive-inner-page .sidebar-cat-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 0 #2D3436 !important;
    background: #F8F9FA !important;
  }
  body.immersive-inner-page .sidebar-cat-btn:active {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 #2D3436 !important;
  }
  body.immersive-inner-page .sidebar-cat-btn.active {
    background: var(--zone-color, #00ACC1) !important;
    border-color: #2D3436 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2) !important;
  }

  /* Playful Media Cards (Grids) for Videos, Games, Books, Audio */
  body.immersive-inner-page .media-card,
  body.immersive-inner-page .adv-card {
    border: 3.5px solid #2D3436 !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 0 #2D3436 !important;
    background: #FFFFFF !important;
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.22s !important;
    overflow: hidden !important;
  }
  body.immersive-inner-page .media-card:hover,
  body.immersive-inner-page .adv-card:hover {
    transform: translateY(-6px) rotate(1deg) !important;
    box-shadow: 0 10px 0 #2D3436 !important;
  }
  body.immersive-inner-page .media-card-body,
  body.immersive-inner-page .adv-card-body {
    padding: 14px !important;
  }
  body.immersive-inner-page .media-card-body h4,
  body.immersive-inner-page .adv-card-body h4 {
    font-size: 18px !important;
    font-weight: 900 !important;
    font-family: var(--font-display) !important;
    color: #2D3436 !important;
    margin-bottom: 4px !important;
  }
  body.immersive-inner-page .media-card-body p,
  body.immersive-inner-page .adv-card-body p {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #636E72 !important;
    margin: 0 !important;
  }

  /* Locked Overlays */
  body.immersive-inner-page .media-card.locked::before {
    background: rgba(0, 0, 0, 0.5) !important;
  }
  body.immersive-inner-page .media-card.locked::after {
    font-size: 32px !important;
    background: #FFD166 !important;
    border: 3px solid #2D3436 !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Themed Page Headers & Labels */
  body.immersive-inner-page .layout-main-workspace {
    padding: 18px !important;
    background: transparent !important;
  }
  body.immersive-inner-page .layout-main-workspace h2,
  body.immersive-inner-page .layout-main-workspace .shelf-title {
    font-family: var(--font-display) !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    color: var(--zone-color, #1E3A5F) !important;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.8) !important;
  }
  body.immersive-inner-page .category-row {
    margin-bottom: 24px !important;
  }
  
  /* Paint Page Palette Override */
  body.immersive-inner-page .canvas-container {
    border: 4px solid #2D3436 !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 0 #2D3436 !important;
  }
  body.immersive-inner-page .tool-btn {
    border: 3px solid #2D3436 !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    border-radius: 14px !important;
  }
  body.immersive-inner-page .tool-btn:active {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 #2D3436 !important;
  }
  body.immersive-inner-page .tool-btn.active {
    background: var(--zone-color, #1E3A5F) !important;
    color: #FFFFFF !important;
  }

/* ═══════════════════════════════════════════════════════════════════════
   🎬  CINEMA ZONE — Classic Theater Immersive Experience (videos page)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. THEATER BACKGROUND LAYER (fixed, behind everything) ── */
.theater-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, #3a0a0a 0%, #1a0404 35%, #0e0202 100%);
  overflow: hidden;
}

/* Velvet curtains left & right */
.theater-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(80px, 12vw, 160px);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 2px,
      transparent 2px, transparent 18px
    ),
    linear-gradient(to bottom, #8B0000 0%, #5C0000 60%, #3a0000 100%);
  border-radius: 0 8px 8px 0;
}
.theater-curtain-left  { left: 0; border-radius: 0 12px 12px 0; }
.theater-curtain-right { right: 0; border-radius: 12px 0 0 12px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 2px,
      transparent 2px, transparent 18px
    ),
    linear-gradient(to bottom, #8B0000 0%, #5C0000 60%, #3a0000 100%);
}
/* Curtain gold trim */
.theater-curtain::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, #FFD700, #B8860B, #FFD700);
}
.theater-curtain-left::after  { right: 0; }
.theater-curtain-right::after { left: 0; }

/* Gold ceiling accent lights row */
.theater-ceiling-lights {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 24px;
  background: linear-gradient(to right, #3a0000, #1a0000, #3a0000);
  border-bottom: 2px solid #8B6914;
}
.theater-light {
  position: absolute;
  top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFD700 0%, #FF8C00 60%, transparent 100%);
  box-shadow: 0 0 8px 3px rgba(255, 165, 0, 0.6);
  animation: theaterLightPulse 3s ease-in-out infinite;
}
@keyframes theaterLightPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.85); }
}

/* Theater floor */
.theater-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30px;
  background: linear-gradient(to top, #1a0808, transparent);
}

/* ── 2. BODY & PAGE CONTENT — dark cinema atmosphere ── */
html.immersive-inner-page,
body.immersive-inner-page.zone-videos {
  background: #0e0202 !important;
  position: relative;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100vh !important;
}
body.immersive-inner-page.zone-videos .page-content,
body.immersive-inner-page.zone-videos .two-col-layout {
  position: relative;
  z-index: 1;
  overflow: visible !important;
  height: auto !important;
}
body.immersive-inner-page.zone-videos .sunny-bg,
body.immersive-inner-page.zone-videos #animated-bg-scene {
  display: none !important;
}

/* ── 3. IMMERSIVE BANNER — cinema marquee style ── */
body.immersive-inner-page.zone-videos .immersive-page-banner {
  background: linear-gradient(90deg, #5C0000, #8B0000, #5C0000) !important;
  border-bottom: 3px solid #FFD700 !important;
  border-radius: 0 !important;
  font-family: 'Georgia', serif !important;
  letter-spacing: 1px !important;
}
body.immersive-inner-page.zone-videos .immersive-banner-label {
  font-size: 17px !important;
  color: #FFD700 !important;
  text-shadow: 0 0 12px rgba(255,215,0,0.5) !important;
}
body.immersive-inner-page.zone-videos .immersive-banner-label strong {
  color: #FFFFFF !important;
  font-size: 20px !important;
}
body.immersive-inner-page.zone-videos .immersive-banner-emoji {
  font-size: 32px !important;
}

/* ── 4. SIDEBAR — Concession Stand ── */
body.immersive-inner-page.zone-videos .layout-sidebar {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(139,69,19,0.08) 0px, rgba(139,69,19,0.08) 2px,
      transparent 2px, transparent 16px
    ),
    linear-gradient(to bottom, #2a1400, #1a0c00) !important;
  border: 3px solid #8B6914 !important;
  border-radius: 16px !important;
  box-shadow: 0 0 20px rgba(139,105,20,0.4), inset 0 0 40px rgba(0,0,0,0.4) !important;
}
/* Concession stand header */
body.immersive-inner-page.zone-videos .home-brand-block {
  background: linear-gradient(135deg, #8B0000, #5C0000) !important;
  border: 2px solid #FFD700 !important;
  border-radius: 12px !important;
  padding: 10px !important;
  text-align: center !important;
  margin-bottom: 12px !important;
}
body.immersive-inner-page.zone-videos .home-brand-block::before {
  content: '🎬 CONCESSION' !important;
  display: block !important;
  color: #FFD700 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
  margin-bottom: 6px !important;
  font-family: var(--font-display) !important;
}
/* Search bar in concession style */
body.immersive-inner-page.zone-videos .vp-search-input {
  background: rgba(0,0,0,0.6) !important;
  color: #FFD700 !important;
  border: 2px solid #8B6914 !important;
  border-radius: 8px !important;
}
body.immersive-inner-page.zone-videos .vp-search-input::placeholder {
  color: rgba(255,215,0,0.45) !important;
}

/* ── 5. FILM TICKET CATEGORY BUTTONS ── */
body.immersive-inner-page.zone-videos .sidebar-cat-btn {
  background: linear-gradient(135deg, #1a0808, #2a1000) !important;
  border: 2px solid #8B6914 !important;
  border-radius: 8px !important;
  color: #FFD700 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 0 #5C4500, 2px 0 0 #5C0000, -2px 0 0 #5C0000 !important;
  position: relative !important;
  overflow: hidden !important;
}
/* Ticket perforated edge */
body.immersive-inner-page.zone-videos .sidebar-cat-btn::before {
  content: '' !important;
  position: absolute !important;
  left: 0; right: 0; top: 50% !important;
  height: 1px !important;
  background: repeating-linear-gradient(to right, transparent, transparent 3px, rgba(255,215,0,0.2) 3px, rgba(255,215,0,0.2) 6px) !important;
  transform: translateY(-50%) !important;
  opacity: 0.5 !important;
}
body.immersive-inner-page.zone-videos .sidebar-cat-btn.active {
  background: linear-gradient(135deg, #8B0000, #C00000) !important;
  border-color: #FFD700 !important;
  color: #FFD700 !important;
  box-shadow: 0 3px 0 #5C0000, 0 0 12px rgba(255,215,0,0.3) !important;
}
body.immersive-inner-page.zone-videos .sidebar-cat-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 0 #5C4500, 0 0 10px rgba(255,165,0,0.25) !important;
}

/* ── 6. MARQUEE STRIP (NOW SHOWING scrolling ticker) ── */
.theater-marquee-strip {
  background: linear-gradient(90deg, #5C0000, #8B0000, #5C0000);
  border-top: 2px solid #FFD700;
  border-bottom: 2px solid #FFD700;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  margin-bottom: 4px;
}
.theater-marquee-inner {
  display: inline-block;
  animation: theaterMarquee 20s linear infinite;
  padding-left: 100%;
}
.theater-marquee-inner span {
  color: #FFD700;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  font-family: var(--font-display);
  text-shadow: 0 0 8px rgba(255,215,0,0.6);
}
@keyframes theaterMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── 7. CINEMA STAGE SCREEN FRAME ── */
.theater-stage-frame {
  position: relative;
  width: min(920px, 94%);
  margin: 10px auto 4px auto;
  background: #0d0000;
  border: 4px solid #8B6914;
  border-radius: 12px;
  box-shadow:
    0 0 0 3px #2a0808,
    0 0 25px rgba(255,215,0,0.3),
    inset 0 0 30px rgba(0,0,0,0.9);
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}
.theater-stage-slot {
  position: relative;
  z-index: 2;
}
.stage-idle-message {
  padding: 4px 0;
  text-align: center;
}
.theater-screen-curtain-left,
.theater-screen-curtain-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 50px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, #8B0000, #5C0000);
  border-right: 2px solid #FFD700;
}
.theater-screen-curtain-left { left: 0; border-radius: 0 0 24px 0; }
.theater-screen-curtain-right { right: 0; border-radius: 0 0 0 24px; border-right: none; border-left: 2px solid #FFD700; }

.screen-proscenium {
  background: linear-gradient(to bottom, #1a0000, #0d0000);
  padding: 8px;
  text-align: center;
  color: #8B6914;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 4px;
  font-family: var(--font-display);
  text-transform: uppercase;
}

/* ── 8. SEAT ROWS ── */
.theater-seat-row {
  background: linear-gradient(to bottom, #0d0000, #150505);
  border-top: 2px solid #3a0000;
  padding: 0 0 8px 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.theater-seats-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  padding: 4px 8px;
  flex-wrap: nowrap;
}
.theater-seats-back  { padding-bottom: 0; }
.theater-seats-front { padding-bottom: 4px; }

/* CSS-drawn cinema seat */
.t-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: seatAppear 0.5s ease-out both;
}
.t-seat-big .t-seat-back  { width: 28px; height: 20px; }
.t-seat-big .t-seat-cushion { width: 30px; height: 10px; }

.t-seat-back {
  width: 22px;
  height: 16px;
  background: linear-gradient(to bottom, #7a0000, #5C0000);
  border-radius: 4px 4px 0 0;
  border: 1px solid #3a0000;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.08);
}
.t-seat-cushion {
  width: 24px;
  height: 8px;
  background: linear-gradient(to bottom, #8B0000, #6B0000);
  border-radius: 0 0 4px 4px;
  border: 1px solid #3a0000;
  border-top: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
@keyframes seatAppear {
  from { opacity: 0; transform: scaleY(0.4) translateY(10px); }
  to   { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* Aisle glow between seat rows */
.theater-aisle {
  height: 4px;
  background: transparent;
  display: flex;
  justify-content: center;
}
.aisle-glow {
  width: 60%;
  height: 2px;
  background: radial-gradient(ellipse, rgba(255,165,0,0.25) 0%, transparent 70%);
  margin: 0 auto;
}
.layout-sidebar .topbar-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 4px 0 2px 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.layout-sidebar .topbar-logo .logo-img {
  height: 62px !important;
  width: auto !important;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15)) !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.layout-sidebar .topbar-logo:hover .logo-img {
  transform: scale(1.08) rotate(-4deg) !important;
}

@keyframes logoTapWobble {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.18) rotate(-8deg); }
  50% { transform: scale(1.15) rotate(6deg); }
  75% { transform: scale(1.08) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.logo-wobble-active .logo-img {
  animation: logoTapWobble 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.layout-sidebar .topbar-logo .logo-text {
  display: flex !important;
  align-items: center !important;
  gap: 1px !important;
}

.layout-sidebar .topbar-logo .logo-letter {
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  letter-spacing: -0.5px !important;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.12)) !important;
}

/* ── 9. VIDEO PLAYER — Big Cinema Screen ── */
/* ── 9. VIDEO PLAYER — Seamless Stage Screen Integration ── */
body.immersive-inner-page.zone-videos .theater-stage-slot .vp-theater {
  background: #000000 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  width: 100% !important;
  animation: stagePushDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
}
body.immersive-inner-page.zone-videos .theater-stage-slot .vp-theater::before {
  display: none !important;
}
body.immersive-inner-page.zone-videos .vp-theater-titlebar {
  background: linear-gradient(90deg, #3a0000, #5C0000, #3a0000) !important;
  border-bottom: 2px solid #8B6914 !important;
  color: #FFD700 !important;
  padding: 8px 16px !important;
}
body.immersive-inner-page.zone-videos .vp-theater-now-badge {
  background: #FFD700 !important;
  color: #1a0000 !important;
  font-weight: 900 !important;
}
body.immersive-inner-page.zone-videos .vp-theater-screen-wrap {
  background: #000 !important;
}
body.immersive-inner-page.zone-videos .vp-theater-close {
  background: #8B0000 !important;
  color: #FFD700 !important;
  border: 2px solid #FFD700 !important;
  border-radius: 20px !important;
  padding: 4px 14px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}
/* Slide side curtains outwards smoothly when video is playing */
body.immersive-inner-page.zone-videos.cinema-playing .theater-screen-curtain-left {
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}
body.immersive-inner-page.zone-videos.cinema-playing .theater-screen-curtain-right {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}
body.immersive-inner-page.zone-videos .theater-screen-curtain-left,
body.immersive-inner-page.zone-videos .theater-screen-curtain-right {
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

/* Compact video screen height (21:9 ultrawide cinema aspect ratio) */
body.immersive-inner-page.zone-videos .tv-screen-bezel {
  aspect-ratio: 21 / 9 !important;
  max-height: 280px !important;
  border-radius: 0 !important;
  border-bottom: none !important;
}
body.immersive-inner-page.zone-videos .tv-cabinet-bottom {
  background: linear-gradient(to bottom, #1a0000, #0d0000) !important;
  border-top: 2px solid #8B6914 !important;
  padding: 6px 12px !important;
  position: relative !important;
  z-index: 10 !important;
}
body.immersive-inner-page.zone-videos .custom-player-controls {
  gap: 6px !important;
}
body.immersive-inner-page.zone-videos .player-ctrl-btn {
  width: 32px !important;
  height: 32px !important;
  font-size: 14px !important;
}
body.immersive-inner-page.zone-videos .vp-theater-main-content {
  display: block !important;
  padding: 0 !important;
  background: #000000 !important;
  width: 100% !important;
}

/* ══════════════════════════════════════════════════════════
   OPTION 3: MODERN PLAYFUL CONTROL DOCK (SIDEBAR)
   ══════════════════════════════════════════════════════════ */
@media (min-width: 1025px) {
  .layout-sidebar .sidebar-brand-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Active Page Subtitle Tag / Ribbon */
  .layout-sidebar .sidebar-page-ribbon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 2px 10px !important;
    background: linear-gradient(135deg, #FFEAA7 0%, #FDCB6E 100%) !important;
    border: 1.5px dashed #E17055 !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 0 #D63031, inset 0 1px 0 rgba(255,255,255,0.8) !important;
    box-sizing: border-box !important;
    margin-top: -2px !important;
  }

  .layout-sidebar .sidebar-page-ribbon .ribbon-icon {
    font-size: 11px !important;
    line-height: 1 !important;
  }

  .layout-sidebar .sidebar-page-ribbon .ribbon-text {
    font-family: 'Baloo 2', var(--font-display) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
  }

  .layout-sidebar .sidebar-controls-card,
  .layout-sidebar .home-controls-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* Segmented Language Strip */
  .layout-sidebar .topbar-lang {
    display: inline-flex !important;
    background: #EDF2F7 !important;
    border-radius: 999px !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 2.5px 0 #2D3436 !important;
    padding: 3px !important;
    height: 36px !important;
    gap: 2px !important;
    flex: 1 !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .layout-sidebar .topbar-lang .lang-pill {
    border: none !important;
    background: transparent !important;
    padding: 3px 10px !important;
    font-family: 'Baloo 2', var(--font-display) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    border-radius: 999px !important;
    color: #636E72 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    flex: 1 !important;
    text-align: center !important;
  }

  .layout-sidebar .topbar-lang .lang-pill.active {
    background: #FFFFFF !important;
    color: #2D3436 !important;
    box-shadow: 0 1.5px 3px rgba(0,0,0,0.15) !important;
  }

  .layout-sidebar .sound-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00CEC9, #00B894) !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 2.5px 0 #2D3436 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: transform 0.15s ease !important;
  }

  .layout-sidebar .sound-toggle-btn:hover {
    transform: scale(1.08) !important;
  }

  /* 3. Compact Search Pill */
  .layout-sidebar .sidebar-search-box {
    width: 100% !important;
    margin: 0 !important;
  }

  .layout-sidebar .search-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background: #F8F9FA !important;
    border: 2px solid #DFE6E9 !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1.5px 3px rgba(0,0,0,0.04) !important;
    padding: 0 12px !important;
    height: 36px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
  }

  .layout-sidebar .search-input-wrapper:focus-within {
    background: #FFFFFF !important;
    border-color: #0984E3 !important;
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.15) !important;
  }

  .layout-sidebar .search-input-wrapper input {
    border: none !important;
    outline: none !important;
    font-family: var(--font-body) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #2D3436 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    padding: 0 25px 0 0 !important;
    box-sizing: border-box !important;
  }

  .layout-sidebar #sidebar-voice-search-btn {
    position: absolute !important;
    right: 10px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 14px !important;
    cursor: pointer !important;
    padding: 0 !important;
    color: #636E72 !important;
  }

  /* 4. Color-Coded Segmented Age Switcher */
  .layout-sidebar .sidebar-age-filter {
    width: 100% !important;
    margin: 0 !important;
  }

  .layout-sidebar .age-filter-title {
    display: none !important;
  }

  /* 4. Micro Age Group Selector (Ultra-Compact) */
  .layout-sidebar .sidebar-age-filter {
    width: 100% !important;
    margin: 0 !important;
  }

  .layout-sidebar .age-filter-options {
    display: flex !important;
    gap: 3px !important;
    justify-content: space-between !important;
    width: 100% !important;
    background: #EDF2F7 !important;
    padding: 2px !important;
    border-radius: 999px !important;
    border: 1.5px solid #CBD5E0 !important;
    box-sizing: border-box !important;
  }

  .layout-sidebar .age-btn {
    flex: 1 !important;
    height: 22px !important;
    border-radius: 999px !important;
    border: none !important;
    background: transparent !important;
    font-family: 'Baloo 2', var(--font-display) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #718096 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    display: grid !important;
    place-items: center !important;
    transition: all 0.15s ease !important;
    padding: 0 !important;
  }

  .layout-sidebar .age-btn.active {
    background: #0984E3 !important;
    color: #FFFFFF !important;
    box-shadow: 0 1.5px 3px rgba(9, 132, 227, 0.3) !important;
    font-weight: 900 !important;
  }

  /* 5. Rich Kid Explorer Passport Card (Hero Prominence) */
  .layout-sidebar .sidebar-profile-card {
    width: 100% !important;
    margin: 0 !important;
  }

  .layout-sidebar .kid-passport-card {
    width: 100% !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%) !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 0 #2D3436, 0 6px 14px rgba(0, 0, 0, 0.06) !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }

  .layout-sidebar .kid-passport-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 0 #2D3436, 0 8px 18px rgba(0, 0, 0, 0.08) !important;
  }

  .layout-sidebar .passport-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .layout-sidebar .passport-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .layout-sidebar .passport-badge-icon {
    font-size: 11px !important;
  }

  .layout-sidebar .passport-title {
    font-family: 'Baloo 2', var(--font-display) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    color: #4A5568 !important;
    letter-spacing: 0.3px !important;
  }

  .layout-sidebar .profile-badge.guest {
    font-family: var(--font-display) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #FF4757, #FF6B81) !important;
    color: #FFFFFF !important;
    border: 1.5px solid #2D3436 !important;
    border-radius: 999px !important;
    padding: 1.5px 7px !important;
    box-shadow: 0 1.5px 0 #2D3436 !important;
  }

  .layout-sidebar .passport-body {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .layout-sidebar .profile-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 18px !important;
    background: #FFEAA7 !important;
    border: 2px solid #2D3436 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 0 #2D3436 !important;
  }

  .layout-sidebar .passport-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
  }

  .layout-sidebar .passport-name {
    font-family: 'Baloo 2', var(--font-display) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.1 !important;
  }

  .layout-sidebar .passport-rank-bar {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
  }

  .layout-sidebar .passport-xp-track {
    flex: 1 !important;
    height: 6px !important;
    background: #E2E8F0 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    border: 1px solid #CBD5E0 !important;
  }

  .layout-sidebar .passport-xp-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #FDCB6E, #E17055) !important;
    border-radius: 999px !important;
  }

  .layout-sidebar .passport-xp-text {
    font-family: var(--font-display) !important;
    font-size: 8.5px !important;
    font-weight: 800 !important;
    color: #718096 !important;
    white-space: nowrap !important;
  }

  /* 6. Bottom Action Dock: Parents Portal + Compact Lucky Spin Button */
  .layout-sidebar .sidebar-bottom-action-dock {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  .layout-sidebar .parents-portal-btn {
    flex: 1 !important;
    height: 38px !important;
    background: linear-gradient(180deg, #6C5CE7 0%, #4834D4 100%) !important;
    color: #FFFFFF !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 3px 0 #2D3436, inset 0 1.5px 0 rgba(255,255,255,0.4) !important;
    border-radius: 999px !important;
    padding: 0 10px !important;
    font-family: 'Baloo 2', var(--font-display) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
    transition: transform 0.15s ease !important;
    white-space: nowrap !important;
  }

  .layout-sidebar .parents-portal-btn:hover {
    transform: translateY(-2px) !important;
  }

  .layout-sidebar .dock-btn-icon {
    font-size: 14px !important;
  }

  .layout-sidebar .mini-spin-dock {
    flex: 0 0 auto !important;
    width: 44px !important;
    height: 38px !important;
    background: linear-gradient(180deg, #FFEAA7 0%, #FD9644 100%) !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 3px 0 #2D3436, inset 0 1.5px 0 rgba(255,255,255,0.6) !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    gap: 0 !important;
    transition: transform 0.15s ease !important;
  }

  .layout-sidebar .mini-spin-dock:hover {
    transform: translateY(-2px) scale(1.06) !important;
  }

  .layout-sidebar .dock-spin-wheel-icon {
    font-size: 16px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)) !important;
  }

  .layout-sidebar .dock-spin-label {
    font-family: var(--font-display) !important;
    font-size: 7.5px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
    letter-spacing: 0.2px !important;
    line-height: 1 !important;
  }to !important;
  height: auto !important;
  box-shadow: none !important;
}

.comic-thumb-pill.active {
  background: #FFEAA7 !important;
  border-color: #FD9644 !important;
  box-shadow: 0 2px 0 #FD9644 !important;
  transform: translateY(-1px) scale(1.04) !important;
}

.comic-thumb-img {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid #2D3436 !important;
  flex-shrink: 0 !important;
}

.comic-thumb-label {
  font-family: 'Baloo 2', var(--font-display) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #2D3436 !important;
  white-space: nowrap !important;
  max-width: 85px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (min-width: 1025px) {
  .mobile-only-cta {
    display: none !important;
  }
}

/* 2. Top Controls (Language Pills & Sound Button) */
@media (min-width: 1025px) {
  .layout-sidebar .sidebar-controls-card,
  .layout-sidebar .home-controls-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .layout-sidebar .topbar-lang {
    display: inline-flex !important;
    background: #FFFFFF !important;
    border-radius: 9999px !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 2.5px 0 #2D3436 !important;
    padding: 2px 4px !important;
    height: 32px !important;
    gap: 2px !important;
    flex: 1 !important;
    justify-content: space-around !important;
    align-items: center !important;
  }

  .layout-sidebar .topbar-lang {
    background: #FFFFFF !important;
    border-radius: 999px !important;
    border: 3px solid #2D3436 !important;
    box-shadow: 0 3px 0 #2D3436 !important;
    padding: 2px 6px !important;
    height: 38px !important;
    gap: 4px !important;
    flex: 1 !important;
    justify-content: space-around !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .layout-sidebar .topbar-lang .lang-pill {
    border: none !important;
    background: transparent !important;
    padding: 3px 8px !important;
    font-family: var(--font-display) !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    border-radius: 999px !important;
    color: #2D3436 !important;
    cursor: pointer !important;
  }

  .layout-sidebar .topbar-lang .lang-pill.active {
    background: #0984E3 !important;
    color: #FFFFFF !important;
  }

  .layout-sidebar .sound-toggle-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    border: 3px solid #2D3436 !important;
    box-shadow: 0 3px 0 #2D3436 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* 3. Search & Voice Search Box */
  .layout-sidebar .sidebar-search-box {
    width: 100% !important;
    margin: 0 !important;
  }

  .layout-sidebar .search-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background: #FFFFFF !important;
    border: 3px solid #2D3436 !important;
    border-radius: 999px !important;
    box-shadow: 0 3px 0 #2D3436 !important;
    padding: 0 10px !important;
    height: 38px !important;
    box-sizing: border-box !important;
  }

  .layout-sidebar .search-input-wrapper input {
    border: none !important;
    outline: none !important;
    font-family: var(--font-body) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #2D3436 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    padding: 0 25px 0 0 !important;
    box-sizing: border-box !important;
  }

  .layout-sidebar #sidebar-voice-search-btn {
    position: absolute !important;
    right: 8px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 14px !important;
    cursor: pointer !important;
    padding: 0 !important;
  }

}

/* Hide legacy elements that cluttered inner pages */
.layout-sidebar .vp-search-wrap,
.layout-sidebar .sidebar-search-wrap,
.layout-sidebar .hero-stars-badge,
.layout-sidebar .mascot-side {
  display: none !important;
}

/* Zero Global Scrollbars & Natural Vertical Scroll */
html, body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ─────────────────────────────────────────────────────────────
   GLOBAL FRIENDS & HEROES BIBLE MODAL
   ───────────────────────────────────────────────────────────── */
.friends-modal-sheet {
  width: 92vw !important;
  max-width: 980px !important;
  max-height: 88vh !important;
  background: #fdfbf7 !important;
  border: 4px solid #2d3436 !important;
  border-radius: 28px !important;
  box-shadow: 0 16px 0 #2d3436, 0 20px 40px rgba(0,0,0,0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.friends-modal-sheet .modal-sheet-header {
  background: linear-gradient(135deg, #ffb703, #fb8500);
  border-bottom: 3px solid #2d3436;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.friends-modal-sheet .modal-sheet-title {
  margin: 0;
  font-family: 'Fredoka One', 'Nunito', cursive, sans-serif;
  font-size: 20px;
  color: #2d3436;
  text-shadow: 1px 1px 0 #fff;
}

.friends-modal-sheet .modal-close-x {
  width: 34px;
  height: 34px;
  background: #fff;
  border: 2px solid #2d3436;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 #2d3436;
  transition: transform 0.15s;
}
.friends-modal-sheet .modal-close-x:hover {
  transform: scale(1.1);
}

.friends-modal-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.friends-banner-container {
  display: none; /* Hide single banner to prioritize direct character discovery cards */
}

.friends-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 6px;
}

.friend-filter-btn {
  background: #ffffff;
  border: 2.5px solid #2d3436;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Fredoka One', 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: #2d3436;
  box-shadow: 0 3px 0 #2d3436;
  cursor: pointer;
  transition: all 0.15s;
}

.friend-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #2d3436;
}

.friend-filter-btn.active {
  background: #ffb703;
  border-color: #2d3436;
  box-shadow: 0 3px 0 #2d3436;
  transform: translateY(1px);
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.friend-card {
  background: #ffffff;
  border: 3px solid #2d3436;
  border-radius: 20px;
  box-shadow: 0 6px 0 #2d3436;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.friend-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 9px 0 #2d3436;
}

.friend-card:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2d3436;
}

.friend-card-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2.5px solid #2d3436;
  background: #f8f9fc;
}

.friend-card.region-africa .friend-card-header { background: #fff3e0; }
.friend-card.region-europe .friend-card-header { background: #e8f5e9; }
.friend-card.region-americas .friend-card-header { background: #e1f5fe; }
.friend-card.region-asia .friend-card-header { background: #fce4ec; }

.friend-card-avatar {
  font-size: 34px;
  width: 52px;
  height: 52px;
  background: #ffffff;
  border: 2.5px solid #2d3436;
  border-radius: 16px;
  box-shadow: 0 3px 0 #2d3436;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.friend-card-avatar.img-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-card-meta {
  flex: 1;
  min-width: 0;
}

.friend-card-name {
  margin: 0 0 2px 0;
  font-family: 'Fredoka One', 'Nunito', sans-serif;
  font-size: 16px;
  color: #2d3436;
}

.friend-card-subtitle {
  font-size: 11px;
  font-weight: 800;
  color: #636e72;
  margin-bottom: 2px;
}

.friend-card-flag {
  font-size: 11px;
  font-weight: 900;
  color: #0984e3;
}

.friend-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.friend-personality {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #2d3436;
}

.friend-section-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #b2bec3;
  margin-top: 4px;
}

.friend-traits-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.friend-trait-badge {
  background: #eef2f7;
  border: 1.5px solid #2d3436;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 800;
  color: #2d3436;
}

.friend-visual-desc {
  margin: 0;
  font-size: 11.5px;
  color: #636e72;
  line-height: 1.3;
}

.friend-dialogue {
  background: #fff8e7;
  border: 2px dashed #f39c12;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #d35400;
  line-height: 1.35;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   📱 COMPACT MOBILE PHONE LAYOUT (<= 600px)
   Does not disturb desktop/laptop/tablet layout (> 600px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* 1. Page Content */
  html, body {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hide top announcement banner and floating switcher on mobile to free full viewport */
  #announcement-bar,
  .layout-switcher-widget {
    display: none !important;
  }

  body[data-page="home"]:not(.theme-immersive) .page-content,
  .page-content.inner-page {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 6px 8px 16px 8px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    gap: 4px !important;
    position: relative !important;
  }

  body[data-page="home"]:not(.theme-immersive) .home-layout,
  body:not(.theme-immersive) .home-layout,
  .home-layout {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    gap: 4px !important;
  }

  /* 2. Top Header Row for Mobile (Bigger Mascot & Balwadi Logo) */
  .layout-sidebar {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 0 6px !important;
    margin: 0 !important;
    flex: 0 0 56px !important;
    height: 56px !important;
    box-sizing: border-box !important;
  }

  .layout-sidebar .sidebar-brand-card {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .layout-sidebar .topbar-logo {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  .layout-sidebar .topbar-logo .logo-img {
    height: 48px !important;
    width: auto !important;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.22)) !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  }

  .layout-sidebar .topbar-logo .logo-text {
    display: flex !important;
    align-items: center !important;
    gap: 0.5px !important;
  }

  .layout-sidebar .topbar-logo .logo-letter {
    font-size: 25px !important;
    font-weight: 900 !important;
    letter-spacing: -0.6px !important;
    filter: drop-shadow(0 2px 0 rgba(0,0,0,0.15)) !important;
  }

  /* Controls row in mobile (Language pills & Sound toggle & Profile) */
  .layout-sidebar .sidebar-controls-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    width: auto !important;
    margin: 0 !important;
  }

  .layout-sidebar .topbar-lang {
    display: flex !important;
    height: 32px !important;
    background: #FFFFFF !important;
    border-radius: 999px !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 2.5px 0 #2D3436, inset 0 1px 1px rgba(255,255,255,0.8) !important;
    padding: 2px 3px !important;
    gap: 2px !important;
    align-items: center !important;
  }

  .layout-sidebar .topbar-lang .lang-pill {
    padding: 2px 5px !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    border-radius: 999px !important;
  }

  .layout-sidebar .topbar-lang .lang-pill.active {
    background: #FFD200 !important;
    color: #2D3436 !important;
    box-shadow: 0 1.5px 0 #D63031 !important;
  }

  .layout-sidebar .sound-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F2F6 100%) !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 2.5px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    cursor: pointer !important;
  }

  /* Profile / Login Circular Avatar Button on Mobile Header */
  .layout-sidebar .sidebar-profile-card {
    display: flex !important;
    margin: 0 !important;
    width: auto !important;
  }

  .layout-sidebar .profile-pill-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(180deg, #FFFDF9 0%, #FFF3D6 100%) !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 2.5px 0 #2D3436, inset 0 1.5px 0 rgba(255,255,255,0.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }

  .layout-sidebar .profile-avatar {
    font-size: 19px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)) !important;
  }

  /* Parents Portal Circular Shield Button on Mobile Header */
  .layout-sidebar .sidebar-parents-card {
    display: flex !important;
    margin: 0 !important;
    width: auto !important;
  }

  .layout-sidebar .parents-portal-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(180deg, #A29BFE 0%, #6C5CE7 100%) !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 2.5px 0 #2D3436, inset 0 1.5px 0 rgba(255,255,255,0.7) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-size: 16px !important;
  }

  .layout-sidebar .parents-portal-btn span:last-child {
    display: none !important;
  }

  /* Hide sidebar secondary search/filters on mobile to fit 100vh */
  .layout-sidebar .sidebar-search-box,
  .layout-sidebar .sidebar-age-filter,
  .layout-sidebar .active-page-pill,
  .layout-sidebar .spin-wheel-card {
    display: none !important;
  }

  /* 3. Center Workspace Container & Top Row */
  .layout-center-col {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-top-row {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  /* 4. Central Hero Console (Ultra-Rich High-Res Card) */
  body[data-page="home"]:not(.theme-immersive) .toon-corner-section {
    width: 58% !important;
    flex: 1 1 58% !important;
    height: auto !important;
    min-height: 220px !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-wrap,
  body[data-page="home"]:not(.theme-immersive) .hero-console-wrap {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 4px 6px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 2px !important;
    margin: 0 auto !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%) !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 18px !important;
    box-shadow: 0 4.5px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.9), 0 8px 18px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
  }

  body[data-page="home"]:not(.theme-immersive) .hero-mode-tabs-bar {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding-bottom: 3px !important;
    flex-shrink: 0 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .hero-tab-pill {
    height: 27px !important;
    padding: 0 14px !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border-radius: 999px !important;
    background: #F1F2F6 !important;
    border: 2px solid #2D3436 !important;
    color: #2D3436 !important;
    box-shadow: 0 2.5px 0 #2D3436 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
  }

  body[data-page="home"]:not(.theme-immersive) .hero-tab-pill.active {
    background: linear-gradient(180deg, #FFEAA7 0%, #FFD166 100%) !important;
    border: 2px solid #2D3436 !important;
    color: #2D3436 !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 3.5px 0 #2D3436 !important;
  }

  /* Matching Floating Candy Action Pills for Comic */
  body[data-page="home"]:not(.theme-immersive) .comic-tts-read-btn,
  body[data-page="home"]:not(.theme-immersive) .homepage-comic-btn {
    height: 26px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 3px 0 #2D3436, inset 0 1.5px 0 rgba(255,255,255,0.6) !important;
    font-family: 'Fredoka', 'Baloo 2', cursive !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }

  body[data-page="home"]:not(.theme-immersive) .comic-tts-read-btn {
    background: linear-gradient(135deg, #00CEC9, #0984E3) !important;
    color: #FFFFFF !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-btn {
    background: linear-gradient(135deg, #FFB703, #FB8500) !important;
    color: #FFFFFF !important;
  }

  body[data-page="home"]:not(.theme-immersive) .comic-tts-read-btn:hover,
  body[data-page="home"]:not(.theme-immersive) .homepage-comic-btn:hover {
    transform: translateY(-1.5px) scale(1.03) !important;
    box-shadow: 0 4px 0 #2D3436 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .comic-tts-read-btn:active,
  body[data-page="home"]:not(.theme-immersive) .homepage-comic-btn:active {
    transform: translateY(2px) !important;
    box-shadow: 0 1px 0 #2D3436 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .hero-stage-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    width: 100% !important;
    gap: 4px !important;
    overflow: hidden !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-header {
    margin-bottom: 4px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 6px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-title {
    font-size: 13.5px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-badge {
    font-size: 9px !important;
    font-weight: 900 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    border: 1.5px solid #2D3436 !important;
    background: #FFEAA7 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-strip-container {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
  }

  body[data-page="home"]:not(.theme-immersive) .comic-floating-actions-bar {
    position: absolute !important;
    top: 6px !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 10 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-strip-wrap {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-strip-img {
    height: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    border: 2.5px solid #2D3436 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
  }

  /* Hide story pills selector tray on 30% compact mobile mode */
  body[data-page="home"]:not(.theme-immersive) .comic-story-selector-tray {
    display: none !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-bottom-cta {
    display: none !important;
  }

  /* 5. External Activities Console Below Hero (Ultra-Rich 3D Glossy Candy Cards) */
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section {
    display: flex !important;
    flex-direction: column !important;
    width: 40% !important;
    flex: 0 0 40% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    justify-content: flex-start !important;
  }

  body[data-page="home"]:not(.theme-immersive) .activities-absolute-wrapper {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(4, 1fr) !important;
    gap: 6px 6px !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    border-radius: 14px !important;
    padding: 2px 4px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    border: 2.5px solid #2D3436 !important;
    box-shadow: 0 3.5px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.45) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    text-decoration: none !important;
    position: relative !important;
  }

  /* Vibrant Candy Specular Gradients on Mobile */
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-videos {
    background: linear-gradient(180deg, #FF6B6B 0%, #EE5253 60%, #D63031 100%) !important;
    box-shadow: 0 4px 0 #B71540, inset 0 2px 0 rgba(255,255,255,0.5) !important;
  }
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-songs {
    background: linear-gradient(180deg, #FF9FF3 0%, #FD79A8 60%, #E84393 100%) !important;
    box-shadow: 0 4px 0 #88104E, inset 0 2px 0 rgba(255,255,255,0.5) !important;
  }
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-books {
    background: linear-gradient(180deg, #54A0FF 0%, #2E86DE 60%, #0984E3 100%) !important;
    box-shadow: 0 4px 0 #074B83, inset 0 2px 0 rgba(255,255,255,0.5) !important;
  }
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-games {
    background: linear-gradient(180deg, #FECA57 0%, #FF9F43 60%, #EE5A24 100%) !important;
    box-shadow: 0 4px 0 #BA3A0A, inset 0 2px 0 rgba(255,255,255,0.5) !important;
  }
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-draw {
    background: linear-gradient(180deg, #1DD1A1 0%, #10AC84 60%, #009432 100%) !important;
    box-shadow: 0 4px 0 #006020, inset 0 2px 0 rgba(255,255,255,0.5) !important;
  }
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-quiz {
    background: linear-gradient(180deg, #A29BFE 0%, #6C5CE7 60%, #574B90 100%) !important;
    box-shadow: 0 4px 0 #302663, inset 0 2px 0 rgba(255,255,255,0.5) !important;
  }
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-jokes {
    background: linear-gradient(180deg, #FFB8B8 0%, #FAB1A0 60%, #FF7675 100%) !important;
    box-shadow: 0 4px 0 #C43B39, inset 0 2px 0 rgba(255,255,255,0.5) !important;
  }
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-learn {
    background: linear-gradient(180deg, #74B9FF 0%, #0984E3 60%, #0056B3 100%) !important;
    box-shadow: 0 4px 0 #003B7B, inset 0 2px 0 rgba(255,255,255,0.7) !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-learn .card-title {
    color: #FFFFFF !important;
    text-shadow: 0 1.5px 0 #003B7B !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card:active {
    transform: translateY(3px) !important;
    box-shadow: 0 1px 0 #2D3436 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card-img {
    height: 32px !important;
    max-height: 32px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2.5px 3px rgba(0,0,0,0.25)) !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-title {
    font-size: 10.5px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    color: #FFFFFF !important;
    letter-spacing: 0.2px !important;
    text-shadow: 0 1.5px 2px rgba(0,0,0,0.4) !important;
  }

  /* Daily Sparks Badges Row (Ultra-Rich 3D Spherical Jelly Medals) */
  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 18px !important;
    margin: 4px auto 0 auto !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-row .spark-badge-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    border: 2.5px solid #2D3436 !important;
    box-shadow: 0 4px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.6) !important;
    cursor: pointer !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-row .spark-badge-btn:active {
    transform: translateY(3px) !important;
    box-shadow: 0 1px 0 #2D3436 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-row .badge-icon {
    font-size: 18px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 1.5px 2px rgba(0,0,0,0.25)) !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-row .badge-label {
    font-size: 9px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
  }

  
/* Hero Train Track Clean Spacing (Zero overlap with Shells) */
body[data-page="home"] .toy-train-container.train-pos-hero,
body[data-page="home"]:not(.theme-immersive) .toy-train-container.train-pos-hero {
    margin-top: 10px !important;
    margin-bottom: 16px !important;
}

body[data-page="home"] .toy-train-container.train-pos-dock,
body[data-page="home"]:not(.theme-immersive) .toy-train-container.train-pos-dock {
    margin-top: 18px !important;
    margin-bottom: 0 !important;
}

body[data-page="home"]:not(.theme-immersive) .toy-train-container,
  body[data-page="home"]:not(.theme-immersive) .toy-train-container.full-screen-track {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 110px !important;
    min-height: 110px !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    display: flex !important;
    align-items: flex-end !important;
    z-index: 10 !important;
    pointer-events: auto !important;
  }

  body[data-page="home"]:not(.theme-immersive) .toy-train-viewport,
  body[data-page="home"]:not(.theme-immersive) .toy-train-container.full-screen-track .toy-train-viewport {
    width: 100% !important;
    max-width: 100% !important;
    height: 110px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 0 0 10px 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    background-image: none !important;
  }


  body[data-page="home"]:not(.theme-immersive) .toy-train-track {
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

/* Hide redundant bottom nav on mobile homepage since train is interactive */
  body[data-page="home"]:not(.theme-immersive) .bottom-nav,
  body[data-page="home"]:not(.theme-immersive) + .bottom-nav {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   HIGH-SPECIFICITY DISTINCT THEMED WAGON SVG & VECTOR STYLES
   ══════════════════════════════════════════════════════════════ */
.toy-train-track .hub-toy-wagon {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 175px !important;
  min-width: 175px !important;
  height: 110px !important;
  padding: 0 !important;
  margin: 0 12px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.wagon-svg-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 8px !important;
  width: 100% !important;
  height: calc(100% - 8px) !important;
  pointer-events: none !important;
  overflow: visible !important;
  filter: drop-shadow(0 4px 0 #2D3436) !important;
}

.wagon-svg-wrapper svg {
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

.wagon-inner-content {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-bottom: 18px !important;
  box-sizing: border-box !important;
  z-index: 5 !important;
}

/* ═══════════════════════════════════════════════════════════════
   CANDY GUMBALL & SURPRISE PRIZE CAPSULE MACHINE (CONCEPT C)
   ═══════════════════════════════════════════════════════════════ */
.modal-sheet.gumball-modal-sheet {
  background: transparent !important;
  padding: 0 !important;
  max-width: 440px !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.gumball-machine-card {
  position: relative !important;
  width: 100% !important;
  max-width: 420px !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF5F5 100%) !important;
  border: 4px solid #2D3436 !important;
  border-radius: 36px !important;
  box-shadow: 0 12px 0 #2D3436, 0 24px 45px rgba(0, 0, 0, 0.3) !important;
  padding: 22px 24px 26px 24px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  overflow: hidden !important;
}

.gumball-close-btn {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  background: #F1F2F6 !important;
  border: 2px solid #2D3436 !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 0 #2D3436 !important;
  z-index: 10 !important;
}

.gumball-header-marquee {
  background: linear-gradient(135deg, #FF4757, #FF6B81) !important;
  border: 3px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 6px 18px !important;
  box-shadow: 0 4px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.7) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

.marquee-title {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 2px 0 rgba(0,0,0,0.2) !important;
}

.gumball-subtitle {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #747D8C !important;
  margin: 6px 0 12px 0 !important;
}

/* Glass Globe */
.gumball-dome-wrapper {
  position: relative !important;
  width: 210px !important;
  height: 190px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: -12px !important;
  z-index: 2 !important;
}

.gumball-glass-globe {
  position: relative !important;
  width: 190px !important;
  height: 190px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(224, 247, 250, 0.6) 40%, rgba(129, 212, 250, 0.3) 80%) !important;
  border: 4px solid #2D3436 !important;
  box-shadow: inset -8px -8px 20px rgba(0,0,0,0.1), inset 8px 8px 16px rgba(255,255,255,0.8), 0 8px 16px rgba(0,0,0,0.1) !important;
  overflow: hidden !important;
}

.gumball-glass-reflection {
  position: absolute !important;
  top: 14px !important;
  left: 20px !important;
  width: 50px !important;
  height: 25px !important;
  border-radius: 50% / 40% !important;
  background: rgba(255, 255, 255, 0.85) !important;
  transform: rotate(-35deg) !important;
  pointer-events: none !important;
}

.gumball-ball {
  position: absolute !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  border: 2px solid #2D3436 !important;
  box-shadow: inset -3px -3px 6px rgba(0,0,0,0.25), inset 3px 3px 6px rgba(255,255,255,0.7), 0 3px 6px rgba(0,0,0,0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.gumball-ball.b1 { bottom: 20px; left: 35px; transform: rotate(-10deg); }
.gumball-ball.b2 { bottom: 22px; right: 35px; transform: rotate(15deg); }
.gumball-ball.b3 { bottom: 48px; left: 20px; transform: rotate(8deg); }
.gumball-ball.b4 { bottom: 52px; right: 22px; transform: rotate(-12deg); }
.gumball-ball.b5 { bottom: 42px; left: 76px; transform: rotate(5deg); }
.gumball-ball.b6 { bottom: 82px; left: 45px; transform: rotate(-20deg); }
.gumball-ball.b7 { bottom: 85px; right: 48px; transform: rotate(18deg); }
.gumball-ball.b8 { bottom: 105px; left: 78px; transform: rotate(0deg); }

/* Swirling Ball Shake Animation */
@keyframes gumballSwirl {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(6px, -12px) rotate(45deg); }
  50% { transform: translate(-8px, -18px) rotate(-35deg); }
  75% { transform: translate(10px, -8px) rotate(60deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.gumball-machine-card.swirling .gumball-ball {
  animation: gumballSwirl 0.35s infinite ease-in-out !important;
}

/* Red Dispenser Base Chassis */
.gumball-base-chassis {
  position: relative !important;
  width: 250px !important;
  background: linear-gradient(180deg, #FF4757 0%, #D63031 100%) !important;
  border: 4px solid #2D3436 !important;
  border-radius: 28px !important;
  box-shadow: 0 8px 0 #2D3436, inset 0 3px 0 rgba(255,255,255,0.5) !important;
  padding: 18px 16px 16px 16px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  z-index: 3 !important;
}

/* Chrome Crank Pod */
.gumball-crank-pod {
  position: relative !important;
  width: 80px !important;
  height: 80px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 8px !important;
}

.gumball-crank-rim {
  width: 60px !important;
  height: 60px !important;
  background: linear-gradient(135deg, #DFE6E9, #B2BEC3) !important;
  border: 3px solid #2D3436 !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.9) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.gumball-crank-handle {
  position: absolute !important;
  width: 44px !important;
  height: 12px !important;
  background: linear-gradient(180deg, #FFFFFF, #B2BEC3) !important;
  border: 2px solid #2D3436 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 0 #2D3436 !important;
  cursor: pointer !important;
  transform-origin: center center !important;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.crank-knob {
  position: absolute !important;
  right: -6px !important;
  top: -4px !important;
  width: 18px !important;
  height: 18px !important;
  background: #FF4757 !important;
  border: 2px solid #2D3436 !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 0 #2D3436 !important;
}

.crank-turn-hint {
  font-size: 8.5px !important;
  font-weight: 900 !important;
  color: #FFEAA7 !important;
  letter-spacing: 0.5px !important;
  margin-top: 4px !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3) !important;
}

/* Prize Chute */
.gumball-prize-chute {
  position: relative !important;
  width: 90px !important;
  height: 52px !important;
  background: #2D3436 !important;
  border-radius: 16px 16px 8px 8px !important;
  border: 3px solid #2D3436 !important;
  box-shadow: inset 0 6px 10px rgba(0,0,0,0.6) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
}

/* Surprise Golden Capsule EGG */
.surprise-capsule-egg {
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 30%, #FFEAA7 0%, #FDCB6E 50%, #E17055 100%) !important;
  border: 2.5px solid #2D3436 !important;
  box-shadow: 0 4px 10px rgba(253, 203, 110, 0.8), inset 0 2px 0 rgba(255,255,255,0.8) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  transform: translateY(60px) scale(0.6);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.surprise-capsule-egg.dispensed {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
  animation: eggPopGlow 1.2s infinite alternate !important;
}

@keyframes eggPopGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 10px #FDCB6E; }
  100% { transform: scale(1.08); box-shadow: 0 0 22px #FFEAA7; }
}

/* Turn Button */
.gumball-turn-btn {
  position: relative !important;
  width: 100% !important;
  height: 44px !important;
  background: linear-gradient(180deg, #FDCB6E 0%, #E67E22 100%) !important;
  border: 3px solid #2D3436 !important;
  border-radius: 999px !important;
  box-shadow: 0 4.5px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.8) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  letter-spacing: 0.3px !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
}

.gumball-turn-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6.5px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.8) !important;
}

.gumball-turn-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1.5px 0 #2D3436, inset 0 1px 0 rgba(255,255,255,0.8) !important;
}

/* Success Revealed Card */
.gumball-success-card {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%) !important;
  border-radius: 32px !important;
  padding: 30px 24px !important;
  box-sizing: border-box !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 20 !important;
  animation: modalScaleIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.prize-icon-glow {
  font-size: 72px !important;
  filter: drop-shadow(0 8px 16px rgba(253, 203, 110, 0.8)) !important;
  animation: heroBounce 1.8s infinite ease-in-out !important;
  margin-bottom: 12px !important;
}

.prize-win-title {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #D35400 !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: 0.5px !important;
}

.prize-win-desc {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #2D3436 !important;
  margin: 0 0 20px 0 !important;
  line-height: 1.4 !important;
}

.gumball-collect-btn {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  border: 3px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 10px 28px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.6) !important;
  cursor: pointer !important;
  transition: transform 0.1s ease !important;
}

.gumball-collect-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

/* ═══════════════════════════════════════════════════════════════
   HERO CONSOLE: COMIC TTS READ-ALOUD & MODES (FLASHCARD & PLAYER)
   ═══════════════════════════════════════════════════════════════ */
.comic-tts-read-btn {
  background: linear-gradient(135deg, #FF6B81, #FF4757) !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  color: #FFFFFF !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  box-shadow: 0 3px 0 #2D3436 !important;
  transition: transform 0.15s ease !important;
}

.comic-tts-read-btn:hover {
  transform: scale(1.05) translateY(-1px) !important;
}

.comic-tts-read-btn:active,
.comic-tts-read-btn.speaking {
  transform: translateY(2px) scale(0.98) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
  animation: speakPop 0.4s infinite alternate !important;
}

/* Flashcard Challenge Mode */
.flashcard-spark-view {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

.flashcard-card-box {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFBEB 100%) !important;
  border: 3.5px solid #2D3436 !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 0 #2D3436 !important;
  padding: 20px 24px !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 480px !important;
  box-sizing: border-box !important;
}

.flashcard-badge {
  display: inline-block !important;
  background: #FFD166 !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  padding: 3px 12px !important;
  margin-bottom: 12px !important;
}

.fairy-sparkle {
  position: absolute !important;
  pointer-events: none !important;
  user-select: none !important;
  filter: drop-shadow(0 0 8px rgba(255, 234, 167, 1)) !important;
  animation: fairyDustSprinkle 1.8s ease-in-out infinite alternate !important;
  z-index: 12 !important;
  font-size: 14px !important;
}

.fairy-sparkle.sp-1 { top: 12px; left: 16px; animation-delay: 0s; }
.fairy-sparkle.sp-2 { top: 8px; right: 18px; animation-delay: 0.4s; }
.fairy-sparkle.sp-3 { top: 38px; left: 10px; animation-delay: 0.9s; }
.fairy-sparkle.sp-4 { bottom: 16px; right: 14px; animation-delay: 1.3s; }

@keyframes fairyDustSprinkle {
  0% {
    transform: scale(0.4) translateY(0) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.3) translateY(-4px) rotate(25deg);
    opacity: 1;
  }
  100% {
    transform: scale(0.5) translateY(2px) rotate(-15deg);
    opacity: 0.3;
  }
}

.flashcard-question-text {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  margin: 0 0 16px 0 !important;
}

.flashcard-options-grid {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.flashcard-opt-btn {
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  border-radius: 16px !important;
  padding: 10px 20px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  cursor: pointer !important;
  transition: transform 0.1s ease !important;
}

.flashcard-opt-btn:hover {
  transform: translateY(-2px) !important;
}

.flashcard-feedback-msg {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  margin-top: 14px !important;
}

/* ═══════════════════════════════════════════════════════════════
   HERO CONSOLE: DAILY SURPRISE STAGE
   ═══════════════════════════════════════════════════════════════ */
.daily-surprise-hero-stage {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  box-sizing: border-box !important;
}

.surprise-card-box {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF0 100%) !important;
  border: 2.5px solid #2D3436 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  padding: 10px 16px !important;
  width: 100% !important;
  max-width: 520px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.surprise-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.surprise-tag-badge {
  background: #FFD166 !important;
  border: 1.5px solid #2D3436 !important;
  border-radius: 999px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  padding: 2px 10px !important;
}

.surprise-shuffle-btn {
  background: #F1F2F6 !important;
  border: 1.5px solid #2D3436 !important;
  border-radius: 999px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  padding: 2px 10px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 0 #2D3436 !important;
  transition: transform 0.1s ease !important;
}

.surprise-shuffle-btn:active {
  transform: translateY(2px) !important;
  box-shadow: none !important;
}

.surprise-main-content {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 14px !important;
  padding: 8px 12px !important;
}

.surprise-avatar-icon {
  font-size: 38px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)) !important;
  animation: heroBounce 2s infinite ease-in-out !important;
}

.surprise-text-wrap {
  flex: 1 !important;
  text-align: left !important;
}

.surprise-item-title {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  margin: 0 0 2px 0 !important;
}

.surprise-item-desc {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #636E72 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.surprise-action-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.surprise-audio-trigger-btn {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 5px 16px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 0 #2D3436 !important;
  cursor: pointer !important;
  transition: transform 0.15s ease !important;
}

.surprise-audio-trigger-btn:hover {
  transform: translateY(-1.5px) scale(1.02) !important;
}

.surprise-audio-trigger-btn:active,
.surprise-audio-trigger-btn.active-speaking {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
  animation: speakPop 0.4s infinite alternate !important;
}

.surprise-sfx-cluster {
  display: flex !important;
  gap: 6px !important;
}

.surprise-mini-sfx {
  background: #FFFFFF !important;
  border: 1.5px solid #2D3436 !important;
  border-radius: 10px !important;
  padding: 4px 8px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 0 #2D3436 !important;
  transition: transform 0.1s ease !important;
}

.surprise-mini-sfx:hover {
  transform: translateY(-1.5px) !important;
}

.surprise-mini-sfx:active,
.surprise-mini-sfx.bouncing {
  transform: translateY(2px) !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   STEP 1: INTERACTIVE MASCOT COMPANION (CHULBULI & PIKU)
   ═══════════════════════════════════════════════════════════════ */
.mascot-companion-widget {
  position: fixed !important;
  bottom: 18px !important;
  right: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  z-index: 1000 !important;
  pointer-events: none !important;
  user-select: none !important;
}



.mascot-speech-bubble {
  background: #FFFFFF !important;
  border: 2.5px solid #2D3436 !important;
  border-radius: 20px !important;
  border-bottom-right-radius: 4px !important;
  padding: 8px 14px !important;
  box-shadow: 0 5px 0 #2D3436, 0 8px 18px rgba(0,0,0,0.12) !important;
  margin-bottom: 8px !important;
  max-width: 220px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #2D3436 !important;
  line-height: 1.25 !important;
  pointer-events: auto !important;
  display: none;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative !important;
}

.mascot-speech-bubble.visible {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.mascot-speech-bubble::after {
  content: '' !important;
  position: absolute !important;
  bottom: -9px !important;
  right: 24px !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 8px solid transparent !important;
  border-right: 8px solid transparent !important;
  border-top: 9px solid #FFFFFF !important;
  filter: drop-shadow(0 2px 0 #2D3436) !important;
}

.mascot-avatar-btn {
  width: 76px !important;
  height: 76px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative !important;
  overflow: visible !important;
  animation: pariGentleFloat 3.5s ease-in-out infinite alternate !important;
}



@keyframes pariGentleFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.mascot-avatar-btn:hover {
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: none !important;
}

.mascot-avatar-btn:active,
.mascot-avatar-btn.cheering {
  transform: translateY(3px) scale(0.96) !important;
  box-shadow: none !important;
  animation: mascotCheerJump 0.6s ease-in-out !important;
}

.mascot-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 10px rgba(156, 39, 176, 0.3)) !important;
  transition: transform 0.2s ease !important;
}

.mascot-sparkle-dot {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  width: 14px !important;
  height: 14px !important;
  background: #FF007F !important;
  border: 2px solid #FFFFFF !important;
  border-radius: 50% !important;
  animation: sparklePulse 1.5s infinite !important;
}

@keyframes mascotCheerJump {
  0%, 100% { transform: scale(1) translateY(0); }
  35% { transform: scale(1.18) translateY(-14px) rotate(-8deg); }
  65% { transform: scale(1.12) translateY(-6px) rotate(8deg); }
}

@keyframes sparklePulse {
  0%, 100% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   STEP 3: DAILY LEARNING STREAK & 3-QUEST TRACKER
   ═══════════════════════════════════════════════════════════════ */
.streak-flame-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: linear-gradient(135deg, #FF6B35, #F7C52D) !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 3px 10px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 0 #2D3436, 0 4px 10px rgba(255, 107, 53, 0.3) !important;
  cursor: pointer !important;
  transition: transform 0.15s ease !important;
}

.streak-flame-badge:hover {
  transform: translateY(-2px) scale(1.05) !important;
}

.streak-flame-icon {
  font-size: 15px !important;
  line-height: 1 !important;
  animation: flameFlicker 1.2s infinite alternate !important;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-3deg); }
  100% { transform: scale(1.15) rotate(4deg); }
}

/* Daily Quests Mini-Card Widget */
.daily-quests-widget {
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  border-radius: 20px !important;
  box-shadow: 0 5px 0 #2D3436 !important;
  padding: 12px 14px !important;
  margin-top: 10px !important;
  box-sizing: border-box !important;
}

.daily-quests-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
}

.daily-quests-title {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.quest-item-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 8px !important;
  border-radius: 12px !important;
  background: #F8FAFC !important;
  border: 1.5px solid #E2E8F0 !important;
}

/* Clean Clear Mascot Avatar (No Circle Pill Background) */
body:not(.theme-immersive) .layout-sidebar .brand-mascot-badge {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: visible !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  flex-shrink: 0 !important;
}

body:not(.theme-immersive) .layout-sidebar .brand-mascot-badge:hover {
  transform: translateY(-2px) scale(1.08) !important;
  box-shadow: none !important;
}

body:not(.theme-immersive) .layout-sidebar .brand-mascot-badge:active {
  transform: translateY(2px) scale(0.96) !important;
  box-shadow: none !important;
}

body:not(.theme-immersive) .layout-sidebar .brand-mascot-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.15)) !important;
}

  body:not(.theme-immersive) {
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  body:not(.theme-immersive) .page-content,
  body:not(.theme-immersive) #page-content {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 4px 12px 6px 12px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
  }

  body[data-page="home"]:not(.theme-immersive) .home-layout,
  body:not(.theme-immersive) .two-col-layout {
    display: grid !important;
    grid-template-columns: 220px 1fr !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
  }

  body:not(.theme-immersive) .layout-sidebar {
    width: 220px !important;
    max-width: 220px !important;
    min-width: 220px !important;
    flex: 0 0 220px !important;
    height: auto !important;
    max-height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }




@media (min-width: 769px) {
  /* Activity Console & Spark Badges (Identical Height & Perfectly Aligned Bottom Edge) */
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: stretch !important;
  }

  body[data-page="home"]:not(.theme-immersive) .activity-console-card {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%) !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 18px !important;
    box-shadow: 0 4.5px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.9), 0 8px 18px rgba(0, 0, 0, 0.08) !important;
    padding: 5px 6px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 5px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(4, 1fr) !important;
    gap: 5px 5px !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card {
    height: auto !important;
    min-height: 64px !important;
    flex: 1 1 auto !important;
    border-radius: 16px !important;
    border: 2px solid #2D3436 !important;
    padding: 6px 4px 5px 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    box-shadow: 0 3px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.6) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease !important;
    box-sizing: border-box !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card:hover {
    transform: translateY(-2.5px) scale(1.03) !important;
    box-shadow: 0 4.5px 0 #2D3436 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card:active {
    transform: translateY(2px) !important;
    box-shadow: 0 1px 0 #2D3436 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card-img {
    width: 42px !important;
    height: 42px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.25)) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .card-title {
    font-family: 'Fredoka', cursive !important;
    font-size: 13.5px !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    text-shadow: 0 1.5px 0 rgba(0,0,0,0.35) !important;
    letter-spacing: 0.6px !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    margin: 0 !important;
  }

  /* Integrated Centered Sparks Shelf */
  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-shelf {
    background: linear-gradient(180deg, #F8FAFC 0%, #EDF2F7 100%) !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 14px !important;
    padding: 5px 8px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-shelf .spark-badge-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 50% !important;
    border: 2px solid #2D3436 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.6) !important;
    cursor: pointer !important;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease !important;
    padding: 0 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-shelf .spark-badge-btn:hover {
    transform: translateY(-2px) scale(1.08) !important;
    box-shadow: 0 4.5px 0 #2D3436 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-shelf .spark-badge-btn:active {
    transform: translateY(2px) scale(0.96) !important;
    box-shadow: 0 1px 0 #2D3436 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-shelf .spark-badge-btn .badge-icon {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-shelf .spark-badge-btn .badge-label {
    font-family: 'Fredoka', 'Nunito', sans-serif !important;
    font-size: 8.5px !important;
    font-weight: 900 !important;
    letter-spacing: 0.2px !important;
    margin-top: 1px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-shelf .badge-quiz {
    background: linear-gradient(180deg, #9C88FF 0%, #8C7AE6 100%) !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-shelf .badge-fact {
    background: linear-gradient(180deg, #FDCB6E 0%, #E17055 100%) !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-shelf .badge-thought {
    background: linear-gradient(180deg, #FF7675 0%, #D63031 100%) !important;
  }
}

/* 1. Large 3D Pop-Out Mascot & Candy Brand Card */
body:not(.theme-immersive) .layout-sidebar .brand-peek-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF2 100%) !important;
  border: 2.5px solid #2D3436 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.9), 0 8px 16px rgba(0,0,0,0.06) !important;
  padding: 6px 8px !important;
  margin: 0 !important;
  position: relative !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
}

body:not(.theme-immersive) .layout-sidebar .brand-main-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
}

/* Clear Mascot Avatar (No Circle Pill Background) */
body:not(.theme-immersive) .layout-sidebar .brand-mascot-badge {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: visible !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  flex-shrink: 0 !important;
}

body:not(.theme-immersive) .layout-sidebar .brand-mascot-badge:hover {
  transform: translateY(-2px) scale(1.08) !important;
  box-shadow: none !important;
}

body:not(.theme-immersive) .layout-sidebar .brand-mascot-badge:active {
  transform: translateY(2px) scale(0.96) !important;
  box-shadow: none !important;
}

body:not(.theme-immersive) .layout-sidebar .brand-mascot-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.15)) !important;
  transform: none !important;
  pointer-events: none !important;
}

/* Brand Text Column (Big 28px Candy Name + Home Ribbon) */
body:not(.theme-immersive) .layout-sidebar .brand-text-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  flex: 1 !important;
}

/* Big Vibrant Inflated Candy 3D Letters */
body:not(.theme-immersive) .layout-sidebar .logo-name-candy {
  display: inline-flex !important;
  align-items: center !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
  text-shadow: 0 2px 0 #2D3436 !important;
}

body:not(.theme-immersive) .layout-sidebar .candy-letter {
  display: inline-block !important;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

body:not(.theme-immersive) .layout-sidebar .candy-letter:hover {
  transform: translateY(-3px) scale(1.15) !important;
}

/* Candy Rainbow Spectrum Colors */
body:not(.theme-immersive) .layout-sidebar .c-b  { color: #FF4757 !important; }
body:not(.theme-immersive) .layout-sidebar .c-a1 { color: #FFA502 !important; }
body:not(.theme-immersive) .layout-sidebar .c-l  { color: #2ED573 !important; }
body:not(.theme-immersive) .layout-sidebar .c-w  { color: #1E90FF !important; }
body:not(.theme-immersive) .layout-sidebar .c-a2 { color: #FF6B81 !important; }
body:not(.theme-immersive) .layout-sidebar .c-d  { color: #9C88FF !important; }
body:not(.theme-immersive) .layout-sidebar .c-i  { color: #FFD32A !important; }

body:not(.theme-immersive) .layout-sidebar .sidebar-page-ribbon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  background: #FFEAA7 !important;
  border: 1.5px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 1px 7px !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  margin-top: 1px !important;
}

/* 2. Language & Sound Card */
body:not(.theme-immersive) .layout-sidebar .sidebar-controls-card {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

/* 3. Search Bar */
body:not(.theme-immersive) .layout-sidebar .sidebar-search-box {
  padding: 0 !important;
  height: 28px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}

body:not(.theme-immersive) .layout-sidebar .search-input-wrapper {
  background: #FFFFFF !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  height: 100% !important;
  padding: 0 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* 4. Age Selector Pill */
body:not(.theme-immersive) .layout-sidebar .sidebar-age-filter {
  padding: 0 !important;
  height: 25px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}

body:not(.theme-immersive) .layout-sidebar .age-filter-options {
  background: #FFFFFF !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  height: 100% !important;
  padding: 1px 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

body:not(.theme-immersive) .layout-sidebar .age-pill-btn {
  font-size: 9.5px !important;
  padding: 1px 5px !important;
}

/* 5. Explorer Passport Card (Option 2: Adventure ID Badge) */
body:not(.theme-immersive) .layout-sidebar .sidebar-profile-card {
  margin: 0 !important;
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

body:not(.theme-immersive) .layout-sidebar .kid-passport-card,
body:not(.theme-immersive) .layout-sidebar .passport-card {
  padding: 6px 8px !important;
  margin: 0 !important;
  height: auto !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  background: linear-gradient(180deg, #F0FDF4 0%, #DCFCE7 100%) !important;
  border: 2px dashed #16A34A !important;
  border-radius: 16px !important;
  box-shadow: 0 3px 0 #15803D, inset 0 1px 0 rgba(255,255,255,0.8) !important;
  position: relative !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease !important;
}

/* 1. Header Gold Badge & Star Pill */
body:not(.theme-immersive) .layout-sidebar .passport-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding-bottom: 2px !important;
  border-bottom: 1.5px dashed rgba(22, 163, 74, 0.4) !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-header-badge {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 8.5px !important;
  font-weight: 900 !important;
  color: #B45309 !important;
  background: #FEF3C7 !important;
  border: 1px solid #F59E0B !important;
  border-radius: 999px !important;
  padding: 1px 6px !important;
  letter-spacing: 0.3px !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-stars-pill {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  color: #854D0E !important;
  background: #FEF9C3 !important;
  border: 1px solid #EAB308 !important;
  border-radius: 999px !important;
  padding: 1px 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
}

/* 2. Main Identity & Avatar Row */
body:not(.theme-immersive) .layout-sidebar .passport-main-row {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-avatar-wrap {
  position: relative !important;
  flex-shrink: 0 !important;
}

body:not(.theme-immersive) .layout-sidebar .profile-avatar {
  width: 32px !important;
  height: 32px !important;
  font-size: 18px !important;
  border: 2px solid #2D3436 !important;
  border-radius: 50% !important;
  background: #FEF08A !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 0 #2D3436 !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-avatar-badge {
  position: absolute !important;
  bottom: -2px !important;
  right: -2px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)) !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-identity-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-name {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  color: #14532D !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1 !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-level-text {
  font-size: 9px !important;
  font-weight: 800 !important;
  color: #15803D !important;
  line-height: 1 !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-xp-track {
  width: 100% !important;
  height: 4.5px !important;
  background: #BBF7D0 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  border: 1px solid #86EFAC !important;
  margin-top: 1px !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-xp-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #F59E0B, #EAB308) !important;
  border-radius: 999px !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-xp-numbers {
  font-size: 7.5px !important;
  font-weight: 800 !important;
  color: #166534 !important;
  text-align: right !important;
  line-height: 1 !important;
}

/* 3. Middle Adventure Progress Chips */
body:not(.theme-immersive) .layout-sidebar .passport-chips-row {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-mini-chip {
  flex: 1 !important;
  background: #FFFFFF !important;
  border: 1.5px solid #2D3436 !important;
  border-radius: 8px !important;
  box-shadow: 0 1.5px 0 #2D3436 !important;
  padding: 2px 4px !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  box-sizing: border-box !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-mini-chip .chip-icon {
  font-size: 11px !important;
  line-height: 1 !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-mini-chip .chip-label {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 8px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body:not(.theme-immersive) .layout-sidebar .chip-streak {
  background: #FFFBEB !important;
  border-color: #F59E0B !important;
}

body:not(.theme-immersive) .layout-sidebar .chip-quests {
  background: #EFF6FF !important;
  border-color: #3B82F6 !important;
}

/* 4. Mini Collectible Badges Row */
body:not(.theme-immersive) .layout-sidebar .passport-badges-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px dashed rgba(22, 163, 74, 0.4) !important;
  border-radius: 8px !important;
  padding: 2px 4px !important;
  box-sizing: border-box !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-badge-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-badge-item .mini-badge-icon {
  font-size: 13px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15)) !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-badge-item .mini-badge-name {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 7.5px !important;
  font-weight: 800 !important;
  color: #15803D !important;
  line-height: 1 !important;
}

/* 5. Action Button */
body:not(.theme-immersive) .layout-sidebar .passport-action-row {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-join-btn {
  width: 100% !important;
  background: linear-gradient(180deg, #0D9488 0%, #0F766E 100%) !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  box-shadow: 0 2.5px 0 #2D3436, inset 0 1px 0 rgba(255,255,255,0.4) !important;
  padding: 3.5px 6px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-join-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3.5px 0 #2D3436 !important;
  background: linear-gradient(180deg, #14B8A6 0%, #0D9488 100%) !important;
}

body:not(.theme-immersive) .layout-sidebar .passport-join-btn:active {
  transform: translateY(2px) !important;
  box-shadow: 0 0.5px 0 #2D3436 !important;
}

/* Explicitly disable all pseudo elements on home sidebar passport */
body:not(.theme-immersive) .layout-sidebar .sidebar-profile-card::before,
body:not(.theme-immersive) .layout-sidebar .sidebar-profile-card::after,
body:not(.theme-immersive) .layout-sidebar .kid-passport-card::before,
body:not(.theme-immersive) .layout-sidebar .kid-passport-card::after {
  display: none !important;
  content: none !important;
}

body:not(.theme-immersive) .layout-sidebar .kid-passport-card:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 5px 0 #15803D, 0 8px 16px rgba(22, 163, 74, 0.15) !important;
  cursor: pointer !important;
}

body:not(.theme-immersive) .layout-sidebar .kid-passport-card:active {
  transform: translateY(1.5px) scale(0.99) !important;
  box-shadow: 0 1.5px 0 #15803D !important;
}

/* 6. Bottom Action Dock */
body:not(.theme-immersive) .layout-sidebar .sidebar-bottom-action-dock {
  margin: 0 !important;
  flex-shrink: 0 !important;
}

@media (min-width: 900px) and (min-height: 500px) {
  body[data-page="home"]:not(.theme-immersive) .layout-center-col {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-top-row {
    display: grid !important;
    grid-template-columns: 1fr 360px !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }

  /* Big, Prominent Central Comic Hero Console */
  body[data-page="home"]:not(.theme-immersive) .toon-corner-section {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-wrap,
  body[data-page="home"]:not(.theme-immersive) .hero-console-wrap {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 5px 6px !important;
    box-sizing: border-box !important;
    gap: 4px !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%) !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 18px !important;
    box-shadow: 0 4.5px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.9), 0 8px 18px rgba(0, 0, 0, 0.08) !important;
  }

  body[data-page="home"]:not(.theme-immersive) .hero-mode-tabs-bar {
    margin-bottom: 0 !important;
    padding-bottom: 1px !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .hero-stage-content {
    gap: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  body[data-page="home"]:not(.theme-immersive) .comic-floating-actions-bar {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10 !important;
    width: 100% !important;
    flex-shrink: 0 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-strip-container {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-strip-wrap {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-strip-img {
    max-height: 270px !important;
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    display: block !important;
  }
}

@media (min-width: 900px) and (min-height: 500px) {
  /* Big, Prominent Central Comic Hero Console */
  body[data-page="home"]:not(.theme-immersive) .toon-corner-section {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-comic-wrap,
  body[data-page="home"]:not(.theme-immersive) .hero-console-wrap {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 5px 6px !important;
    box-sizing: border-box !important;
    gap: 4px !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%) !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 18px !important;
    box-shadow: 0 4.5px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.9), 0 8px 18px rgba(0, 0, 0, 0.08) !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: stretch !important;
  }

  body[data-page="home"]:not(.theme-immersive) .activity-console-card {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%) !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 18px !important;
    box-shadow: 0 4.5px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.9), 0 8px 18px rgba(0, 0, 0, 0.08) !important;
    padding: 5px 6px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 5px !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(4, 1fr) !important;
    gap: 5px 5px !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section .activity-card {
    height: auto !important;
    min-height: 64px !important;
    flex: 1 1 auto !important;
    border-radius: 16px !important;
    border: 2px solid #2D3436 !important;
    padding: 6px 4px 5px 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    box-shadow: 0 3px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.6) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease !important;
    box-sizing: border-box !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-shelf {
    background: linear-gradient(180deg, #F8FAFC 0%, #EDF2F7 100%) !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 14px !important;
    padding: 5px 8px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }

  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-shelf .spark-badge-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 50% !important;
    border: 2px solid #2D3436 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.6) !important;
    cursor: pointer !important;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease !important;
    padding: 0 !important;
  }
}

@media (min-width: 900px) and (min-height: 500px) {
  body[data-page="home"]:not(.theme-immersive) .toy-train-container,
  body[data-page="home"]:not(.theme-immersive) .toy-train-container.full-screen-track {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 125px !important;
    min-height: 125px !important;
    margin-top: 42px !important;
    margin-bottom: 0 !important;
    z-index: 10 !important;
    clear: both !important;
    display: flex !important;
    align-items: flex-end !important;
    overflow: visible !important;
  }

  body[data-page="home"]:not(.theme-immersive) .toy-train-viewport,
  body[data-page="home"]:not(.theme-immersive) .toy-train-container.full-screen-track .toy-train-viewport {
    width: 100% !important;
    max-width: 100% !important;
    height: 125px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    display: flex !important;
    align-items: flex-end !important;
    padding-top: 10px !important;
    padding-bottom: 2px !important;
    box-sizing: border-box !important;
  }

  body[data-page="home"]:not(.theme-immersive) .toy-train-track {
    transform: none !important;
    overflow: visible !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 0 !important;
  }
}

/* Legal Links immediately below the train track */
.app-legal-footer {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  clear: both !important;
  padding: 2px 10px 4px 10px !important;
  margin-top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  background: transparent !important;
}

.legal-footer-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1.5px solid var(--shell-border) !important;
  border-radius: 999px !important;
  padding: 3px 16px !important;
  box-shadow: var(--shell-shadow) !important;
}

body[data-page="home"] .app-legal-footer .legal-footer-links,
body[data-page="audio"] .app-legal-footer .legal-footer-links,
body[data-page="books"] .app-legal-footer .legal-footer-links,
body[data-page="videos"] .app-legal-footer .legal-footer-links,
body[data-page="games"] .app-legal-footer .legal-footer-links,
body[data-page="parents"] .app-legal-footer .legal-footer-links,
body[data-page="about"] .app-legal-footer .legal-footer-links,
body[data-page="legal"] .app-legal-footer .legal-footer-links,
body[data-page="contact"] .app-legal-footer .legal-footer-links,
body[data-page="terms"] .app-legal-footer .legal-footer-links,
body[data-page="privacy"] .app-legal-footer .legal-footer-links {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,247,255,0.9)) !important;
  border-color: var(--shell-border) !important;
}

.legal-link-item {
  color: #475569 !important;
  font-family: 'Fredoka', 'Baloo 2', 'Nunito', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  letter-spacing: 0.2px !important;
  transition: all 0.15s ease !important;
}

.legal-link-item:hover {
  color: #0984E3 !important;
  transform: translateY(-1px) !important;
}

.legal-link-item.legal-privacy-highlight {
  color: #059669 !important;
}

.legal-link-item.legal-privacy-highlight:hover {
  color: #047857 !important;
}

.legal-link-sep {
  color: #CBD5E1 !important;
  font-size: 11px !important;
  user-select: none !important;
}

.legal-footer-copy {
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #94A3B8 !important;
  letter-spacing: 0.2px !important;
  text-align: center !important;
}

body.standalone-content-page .doc-footer-links,
body.standalone-content-page .doc-footer-links > * {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.standalone-content-page .doc-footer-links {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,247,255,0.9)) !important;
  border: 1.5px solid var(--shell-border) !important;
  border-radius: 999px !important;
  padding: 4px 16px !important;
  box-shadow: var(--shell-shadow) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 8px !important;
}

body.standalone-content-page .doc-footer-links a {
  color: #475569 !important;
  text-decoration: none !important;
  font-family: 'Fredoka', 'Baloo 2', 'Nunito', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
}

body.standalone-content-page .doc-footer-links a:hover {
  color: #0984E3 !important;
}

body.standalone-content-page .doc-footer-links .doc-sep,
body.standalone-content-page .doc-footer-links > span {
  color: #CBD5E1 !important;
  font-size: 11px !important;
  user-select: none !important;
}

body.standalone-content-page .doc-footer-links .legal-privacy-highlight {
  color: #059669 !important;
}

body.standalone-content-page .doc-footer-links .legal-privacy-highlight:hover {
  color: #047857 !important;
}

/* ═══════════════════════════════════════════════════════════════
   ZERO-SCROLL 100vh TRUST & POLICY STANDALONE PAGES
   ═══════════════════════════════════════════════════════════════ */
body.standalone-content-page {
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #F8FAFC !important;
}

body.standalone-content-page .app-header {
  flex-shrink: 0 !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246,249,255,0.92)) !important;
  border-radius: 26px !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 7px 16px rgba(59, 130, 246, 0.04), 0 2px 7px rgba(15, 23, 42, 0.025) !important;
  padding: 7px 16px 9px !important;
  height: auto !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  overflow: visible !important;
}

body.standalone-content-page main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: calc(100vh - 48px) !important;
  width: 100% !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 8px 16px 12px 16px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

body.standalone-content-page .policy-card-wrap,
body.standalone-content-page main > div {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 16px 22px !important;
  border-radius: 20px !important;
  box-sizing: border-box !important;
}

body.standalone-content-page .lang-content-block {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: none;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

body.standalone-content-page .lang-content-block.active {
  display: flex !important;
}

body.standalone-content-page .doc-hero-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 6px !important;
  border-bottom: 1.5px solid #F1F5F9 !important;
  padding-bottom: 6px !important;
}

body.standalone-content-page .doc-hero-icon {
  font-size: 32px !important;
  line-height: 1 !important;
}

body.standalone-content-page .doc-hero-title {
  margin: 0 !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 20px !important;
  color: #1E293B !important;
  line-height: 1.15 !important;
}

body.standalone-content-page .doc-hero-sub {
  margin: 2px 0 0 !important;
  color: #64748B !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
}

body.standalone-content-page .doc-highlight-box {
  border-radius: 12px !important;
  padding: 8px 12px !important;
  margin-bottom: 6px !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
}

body.standalone-content-page .doc-section-title {
  font-family: 'Fredoka', cursive !important;
  font-size: 14.5px !important;
  color: #1E293B !important;
  margin: 0 0 3px 0 !important;
}

body.standalone-content-page .doc-section-text,
body.standalone-content-page .doc-section-list {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  color: #475569 !important;
  margin: 0 !important;
}

body.standalone-content-page .doc-footer-links {
  border-top: 1.5px solid #F1F5F9 !important;
  padding-top: 8px !important;
  margin-top: 4px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 11px !important;
}

/* ═══════════════════════════════════════════════════════════════
   COMPACT & SCROLL-SAFE AUTH MODAL (FIX SSO BUTTONS FIT)
   ═══════════════════════════════════════════════════════════════ */
#auth-modal .modal-sheet {
  max-width: 420px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 16px 20px !important;
  border-radius: 24px !important;
  border: 3.5px solid #2D3436 !important;
  box-shadow: 0 10px 0 #2D3436, 0 16px 30px rgba(0,0,0,0.2) !important;
  box-sizing: border-box !important;
}

#auth-modal .modal-sheet-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 10px !important;
}

#auth-modal .modal-sheet-title {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  margin: 0 !important;
}

#auth-modal .modal-close-x {
  font-size: 18px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #F1F2F6 !important;
  border: 2px solid #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-weight: 900 !important;
  box-shadow: 0 2px 0 #2D3436 !important;
}

#auth-modal .auth-tabs-new {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}

#auth-modal .auth-tab-new {
  flex: 1 !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  border: 2px solid #2D3436 !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  background: #F1F2F6 !important;
  color: #636E72 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

#auth-modal .auth-tab-new.active {
  background: #FFD166 !important;
  color: #2D3436 !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
}

#auth-modal .auth-form-new {
  display: none !important;
  flex-direction: column !important;
  gap: 8px !important;
}

#auth-modal .auth-form-new.active {
  display: flex !important;
}

#auth-modal .auth-desc {
  font-size: 11.5px !important;
  color: #636E72 !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

#auth-modal .auth-input-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  text-align: left !important;
}

#auth-modal .auth-label {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
}

#auth-modal .auth-input {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 6px 12px !important;
  border: 2px solid #2D3436 !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-family: 'Nunito', sans-serif !important;
  background: #F8FAFC !important;
  outline: none !important;
}

#auth-modal .auth-input:focus {
  background: #FFFFFF !important;
  border-color: #6C5CE7 !important;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15) !important;
}

#auth-modal .auth-checkbox-group {
  margin: 2px 0 4px 0 !important;
  text-align: left !important;
}

#auth-modal .auth-checkbox-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  line-height: 1.35 !important;
  cursor: pointer !important;
}

#auth-modal .auth-checkbox-label input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: #6C5CE7 !important;
  margin-top: 1px !important;
  cursor: pointer !important;
}

#auth-modal .btn-primary-new {
  width: 100% !important;
  background: linear-gradient(135deg, #6C5CE7, #A29BFE) !important;
  border: 2.5px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3.5px 0 #2D3436 !important;
  cursor: pointer !important;
  margin-top: 4px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

#auth-modal .btn-primary-new:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 5px 0 #2D3436 !important;
}

#auth-modal .btn-primary-new:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

#auth-modal .sso-divider {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 10px 0 8px 0 !important;
  position: relative !important;
}

#auth-modal .sso-divider::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: #E2E8F0 !important;
  z-index: 1 !important;
}

#auth-modal .sso-divider span {
  position: relative !important;
  z-index: 2 !important;
  background: #FFFFFF !important;
  padding: 0 10px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #94A3B8 !important;
  text-transform: uppercase !important;
}

#auth-modal .sso-buttons {
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
  width: 100% !important;
}

#auth-modal .sso-btn {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 6px 8px !important;
  border-radius: 12px !important;
  border: 2px solid #2D3436 !important;
  background: #FFFFFF !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

#auth-modal .sso-btn:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  background: #FFFDF5 !important;
}

#auth-modal .sso-btn:active {
  transform: translateY(2px) !important;
  box-shadow: 0 0.5px 0 #2D3436 !important;
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING BOTTOM WIDGETS: ROCKET LAUNCHER & CHULBULI PILL
   ═══════════════════════════════════════════════════════════════ */
.floating-rocket-launcher {
  position: fixed !important;
  bottom: 18px !important;
  left: 20px !important;
  z-index: 10000 !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe) !important;
  border: 2.5px solid #2D3436 !important;
  box-shadow: 0 4px 0 #2D3436, 0 6px 14px rgba(108, 92, 231, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s !important;
}

.floating-rocket-launcher:hover {
  transform: translateY(-3px) scale(1.1) !important;
  box-shadow: 0 6px 0 #2D3436, 0 8px 18px rgba(108, 92, 231, 0.5) !important;
}

.floating-rocket-launcher:active {
  transform: translateY(2px) scale(0.95) !important;
  box-shadow: 0 1.5px 0 #2D3436 !important;
}

/* Bottom Right: Mascot Companion Pill (Piku / Chulbuli) */
.mascot-companion-pill {
  position: fixed !important;
  bottom: 16px !important;
  right: 20px !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  pointer-events: auto !important;
}

.mascot-companion-pill .mascot-speech-bubble {
  background: #FFFFFF !important;
  border: 2px solid #2D3436 !important;
  border-radius: 16px !important;
  padding: 6px 12px !important;
  box-shadow: 0 3px 0 #2D3436, 0 4px 10px rgba(0,0,0,0.08) !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #2D3436 !important;
  max-width: 240px !important;
  position: relative !important;
  animation: floatBubble 3s ease-in-out infinite alternate !important;
}

.mascot-companion-pill .mascot-speech-bubble::after {
  content: '' !important;
  position: absolute !important;
  right: -8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 6px solid transparent !important;
  border-bottom: 6px solid transparent !important;
  border-left: 8px solid #2D3436 !important;
}

.mascot-companion-pill .mascot-avatar-circle {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, #FFF9DB 0%, #FFEAA7 70%, #FDCB6E 100%) !important;
  border: 2.5px solid #2D3436 !important;
  box-shadow: 0 3.5px 0 #2D3436, 0 6px 12px rgba(0,0,0,0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.mascot-companion-pill .mascot-avatar-circle:hover {
  transform: scale(1.12) rotate(6deg) !important;
}

.mascot-companion-pill .mascot-companion-img {
  width: 125% !important;
  height: 125% !important;
  object-fit: contain !important;
  pointer-events: none !important;
  transform: translateY(-2px) !important;
}

@keyframes floatBubble {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  .floating-rocket-launcher,
  .mascot-companion-pill {
    bottom: 70px !important; /* Above mobile bottom nav */
  }
}

/* ═══════════════════════════════════════════════════════════════
   🏛️ SSOT UNIFIED STATION BANNERS & CAROUSEL SHELF STYLING
   ═══════════════════════════════════════════════════════════════ */
.station-banner-card {
  border: 3px solid #2D3436 !important;
  border-radius: 18px !important;
  padding: 10px 18px !important;
  color: #FFFFFF !important;
  box-shadow: 0 4.5px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.station-banner-card h1 {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  margin: 0 0 2px 0 !important;
  line-height: 1.1 !important;
}

.station-banner-card p {
  font-size: 12px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  opacity: 0.95 !important;
}

.station-banner-badge {
  font-size: 38px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
}

/* Gradients for each specific Station */
.banner-videos {
  background: linear-gradient(135deg, #FF7675 0%, #D63031 100%) !important;
}
.banner-videos h1 { text-shadow: 0 2px 0 #A81B1B !important; }

.banner-audio {
  background: linear-gradient(135deg, #A29BFE 0%, #6C5CE7 100%) !important;
}
.banner-audio h1 { text-shadow: 0 2px 0 #4432A7 !important; }

.banner-books {
  background: linear-gradient(135deg, #55E6C1 0%, #00B894 100%) !important;
}
.banner-books h1 { text-shadow: 0 2px 0 #00755C !important; }

.banner-games {
  background: linear-gradient(135deg, #FDCB6E 0%, #E17055 100%) !important;
}
.banner-games h1 { text-shadow: 0 2px 0 #9E371C !important; }

.banner-paint {
  background: linear-gradient(135deg, #FF9FF3 0%, #F368E0 100%) !important;
}
.banner-paint h1 { text-shadow: 0 2px 0 #A61D94 !important; }

.banner-quiz {
  background: linear-gradient(135deg, #74B9FF 0%, #0984E3 100%) !important;
}
.banner-quiz h1 { text-shadow: 0 2px 0 #004D99 !important; }

.banner-jokes {
  background: linear-gradient(135deg, #FFEAA7 0%, #FDCB6E 100%) !important;
  color: #2D3436 !important;
}
.banner-jokes h1 { text-shadow: none !important; color: #2D3436 !important; }
.banner-jokes p { color: #57606F !important; }

/* ── Category Pill Bar (SSOT with ❮ ❯ Candy Scroll Arrows) ── */
.station-cat-bar-wrapper,
.learn-cat-bar-wrapper {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  margin-bottom: 6px !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.station-cat-bar,
.learn-cat-bar {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 4px 6px 8px 6px !important;
  scrollbar-width: none !important;
  align-items: center !important;
  width: 100% !important;
}

.station-cat-bar::-webkit-scrollbar,
.learn-cat-bar::-webkit-scrollbar {
  display: none !important;
}

.station-cat-arrow,
.learn-cat-arrow {
  background: #FFD166 !important;
  border: 2px solid #2D3436 !important;
  border-radius: 50% !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  user-select: none !important;
  z-index: 10 !important;
  flex-shrink: 0 !important;
  margin: 0 4px !important;
}

.station-cat-arrow:hover,
.learn-cat-arrow:hover {
  background: #FFEAA7 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 3.5px 0 #2D3436 !important;
}

.station-cat-arrow:active,
.learn-cat-arrow:active {
  transform: scale(0.92) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

.station-cat-pill,
.learn-cat-pill {
  background: #FFFFFF !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 5px 14px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.station-cat-pill:hover,
.learn-cat-pill:hover {
  background: #FFFEEA !important;
  box-shadow: 0 3.5px 0 #2D3436 !important;
}

.station-cat-pill.active,
.learn-cat-pill.active {
  background: #FFD166 !important;
  box-shadow: 0 3.5px 0 #2D3436 !important;
}

/* ── Zero-Scroll 2-Row Carousel Shelf ── */
.station-carousel-wrapper,
.learn-carousel-wrapper {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  margin-top: 4px !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.station-carousel-track,
.learn-carousel-track {
  display: grid !important;
  grid-template-rows: repeat(2, minmax(130px, 145px)) !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(185px, 205px) !important;
  gap: 12px 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 6px 4px 14px 4px !important;
  scrollbar-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  height: 100% !important;
}

.station-carousel-track::-webkit-scrollbar,
.learn-carousel-track::-webkit-scrollbar {
  display: none !important;
}

.station-nav-arrow,
.learn-nav-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #FFD166 !important;
  border: 3px solid #2D3436 !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 20 !important;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  user-select: none !important;
}

.station-nav-arrow:hover,
.learn-nav-arrow:hover {
  background: #FFEAA7 !important;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 6px 0 #2D3436 !important;
}

.station-nav-arrow:active,
.learn-nav-arrow:active {
  transform: translateY(-50%) scale(0.95) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

.station-arrow-prev,
.learn-arrow-prev { left: -6px !important; }

.station-arrow-next,
.learn-arrow-next { right: -6px !important; }

/* ── Dedicated Interactive Activity Modal Styling ── */
.station-activity-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  z-index: 99999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.station-activity-modal.active {
  display: flex !important;
}

.station-modal-sheet {
  background: #FFFFFF !important;
  border: 3.5px solid #2D3436 !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 0 #2D3436, 0 24px 40px rgba(0,0,0,0.3) !important;
  width: 95% !important;
  max-width: 980px !important;
  height: 90vh !important;
  max-height: 680px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
}

.station-modal-header {
  padding: 10px 16px !important;
  background: #FFFDF2 !important;
  border-bottom: 2.5px solid #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
}

.station-modal-title {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.station-modal-close-btn {
  background: #FF7675 !important;
  border: 2px solid #2D3436 !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  cursor: pointer !important;
  box-shadow: 0 2px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.1s ease !important;
}

.station-modal-close-btn:hover {
  transform: scale(1.1) !important;
}

.station-modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  display: flex !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  background: #F8FAFC !important;
}

/* ═══════════════════════════════════════════════════════════════
   🏛️ SSOT STATION BENTO CARD TILES (Exact Learn Page Sizing)
   ═══════════════════════════════════════════════════════════════ */
.station-bento-card {
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  border-radius: 22px !important;
  padding: 8px 10px 10px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  cursor: pointer !important;
  position: relative !important;
  box-shadow: 0 5px 0 #2D3436 !important;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  height: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
}

.station-bento-card:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 0 #2D3436 !important;
}

.station-bento-card:active {
  transform: translateY(2px) scale(0.98) !important;
  box-shadow: 0 2px 0 #2D3436 !important;
}

.station-card-thumb-stage {
  position: relative !important;
  width: 100% !important;
  height: clamp(84px, 11vh, 108px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 6px !important;
  border-radius: 14px !important;
  background: #F1F5F9 !important;
  overflow: hidden !important;
  border: 1.5px solid #E2E8F0 !important;
}

.station-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  transition: transform 0.3s ease !important;
}

.station-bento-card:hover .station-card-img {
  transform: scale(1.06) !important;
}

.station-card-emoji-badge {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-radius: 8px !important;
  padding: 3px 6px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}

.station-card-duration-badge {
  position: absolute !important;
  bottom: 6px !important;
  right: 6px !important;
  background: rgba(0, 0, 0, 0.78) !important;
  color: #FFFFFF !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 2px 6px !important;
  border-radius: 5px !important;
  font-family: monospace !important;
}

.station-card-title {
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 14.5px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  margin: 4px 0 6px 0 !important;
  line-height: 1.25 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

.station-card-action-pill {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  border: 1.5px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 4px 16px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 0 #2D3436 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.12s ease !important;
  white-space: nowrap !important;
}

.station-card-action-pill:hover {
  transform: scale(1.06) !important;
}

/* ═══════════════════════════════════════════════════════════════
   🎬 UNIVERSAL KID THEATER VIDEO PLAYER MODAL STYLING
   ═══════════════════════════════════════════════════════════════ */
#universal-video-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#universal-video-modal.open,
#universal-video-modal.active {
  display: flex !important;
}

.kid-theater-sheet {
  background: #0F172A !important;
  border: 2px solid #334155 !important;
  border-radius: 22px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  width: 95% !important;
  max-width: 820px !important;
  max-height: calc(100vh - 40px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Fullscreen mode: Exact video modal fills 100% screen with NO white gaps or wasted borders */
.kid-theater-sheet:fullscreen,
.kid-theater-sheet:-webkit-full-screen {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #000000 !important;
}

.kid-theater-header {
  background: #1E293B !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #334155 !important;
  color: #FFFFFF !important;
  flex-shrink: 0 !important;
}

.kid-theater-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.kid-theater-category-badge {
  background: rgba(239, 68, 68, 0.2) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #F87171 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  flex-shrink: 0 !important;
  letter-spacing: 0.5px !important;
}

.kid-theater-title {
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.kid-theater-tts-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  color: #FFD166 !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: transform 0.15s, background 0.15s !important;
}

.kid-theater-tts-btn:hover {
  background: #FFD166 !important;
  color: #1E293B !important;
  transform: scale(1.1) !important;
}

.kid-theater-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.kid-theater-star-badge {
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-family: 'Baloo 2', cursive !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #FBBF24 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.kid-theater-close-btn {
  background: #334155 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  color: #CBD5E1 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s, background 0.15s !important;
}

.kid-theater-close-btn:hover {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  transform: rotate(90deg) !important;
}

.kid-theater-screen-stage {
  width: 100% !important;
  background: #000000 !important;
  position: relative !important;
  aspect-ratio: 16/9 !important;
  max-height: calc(100vh - 170px) !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.kid-theater-sheet:fullscreen .kid-theater-screen-stage,
.kid-theater-sheet:-webkit-full-screen .kid-theater-screen-stage {
  max-height: calc(100vh - 120px) !important;
  flex: 1 !important;
}

.kid-theater-screen-stage iframe,
.kid-theater-screen-stage video {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

.kid-theater-controls-dock {
  background: #FFFDF7 !important;
  border-top: 3.5px solid #2D3436 !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.kid-theater-dock-left,
.kid-theater-dock-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.kid-theater-ctrl-btn {
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  border-radius: 16px !important;
  height: 42px !important;
  padding: 0 16px !important;
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
  user-select: none !important;
}

.kid-theater-ctrl-btn:hover {
  background: #FFFEEA !important;
}

.kid-theater-ctrl-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

.kid-theater-ctrl-btn.btn-prev {
  background: #54A0FF !important;
  color: #FFFFFF !important;
}

.kid-theater-ctrl-btn.btn-next {
  background: #FF9F43 !important;
  color: #FFFFFF !important;
}

.kid-theater-ctrl-btn.btn-play-center {
  background: #1DD1A1 !important;
  color: #FFFFFF !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  font-size: 20px !important;
}

.kid-theater-ctrl-btn.btn-cc {
  background: #5F27CD !important;
  color: #FFFFFF !important;
}

.kid-theater-ctrl-btn.btn-cc.active {
  background: #FFD166 !important;
  color: #2D3436 !important;
}

.kid-theater-ctrl-btn.btn-mute {
  background: #FECA57 !important;
  color: #2D3436 !important;
  width: 42px !important;
  padding: 0 !important;
  font-size: 16px !important;
}

.kid-theater-ctrl-btn.btn-fullscreen {
  background: #FF6B81 !important;
  color: #FFFFFF !important;
  width: 42px !important;
  padding: 0 !important;
  font-size: 16px !important;
}

/* ═══════════════════════════════════════════════════════════════
   📚 UNIVERSAL STORYBOOK READER MODAL STYLING
   ═══════════════════════════════════════════════════════════════ */
#universal-book-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#universal-book-modal.open,
#universal-book-modal.active {
  display: flex !important;
}

.kid-book-sheet {
  background: #FFFFFF !important;
  border: 4px solid #2D3436 !important;
  border-radius: 28px !important;
  box-shadow: 0 14px 0 #2D3436, 0 25px 40px rgba(0,0,0,0.35) !important;
  width: 95% !important;
  max-width: 960px !important;
  height: 92vh !important;
  max-height: 780px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-book-header {
  background: linear-gradient(135deg, #0984E3 0%, #74B9FF 100%) !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 3.5px solid #2D3436 !important;
  color: #FFFFFF !important;
  flex-shrink: 0 !important;
}

.kid-book-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.kid-book-icon {
  font-size: 26px !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
}

.kid-book-title {
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25) !important;
}

.kid-book-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.kid-book-star-badge {
  background: #FFD166 !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-family: 'Baloo 2', cursive !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.kid-book-close-btn {
  background: #FF7675 !important;
  border: 3px solid #FFFFFF !important;
  outline: 2.5px solid #2D3436 !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-book-close-btn:hover {
  transform: scale(1.12) rotate(90deg) !important;
}

.kid-book-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  background: #FFFDF0 !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.kid-book-stage iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

.kid-book-controls-dock {
  background: #FFFDF7;
  border-top: 3.5px solid #2D3436;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.kid-book-controls-dock.hidden,
#kid-book-controls-dock.hidden,
#universal-book-modal .kid-book-controls-dock.hidden {
  display: none !important;
}

.kid-book-dock-left,
.kid-book-dock-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.kid-book-ctrl-btn {
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  border-radius: 16px !important;
  height: 42px !important;
  padding: 0 16px !important;
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
  user-select: none !important;
}

.kid-book-ctrl-btn:hover {
  background: #FFFEEA !important;
}

.kid-book-ctrl-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

.kid-book-ctrl-btn.btn-prev-page {
  background: #54A0FF !important;
  color: #FFFFFF !important;
}

.kid-book-ctrl-btn.btn-read-aloud {
  background: #1DD1A1 !important;
  color: #FFFFFF !important;
  padding: 0 20px !important;
  font-size: 15px !important;
}

.kid-book-ctrl-btn.btn-next-page {
  background: #FF9F43 !important;
  color: #FFFFFF !important;
}

.kid-book-page-badge {
  background: #FFFFFF !important;
  border: 2.5px solid #2D3436 !important;
  border-radius: 12px !important;
  padding: 6px 12px !important;
  font-family: 'Baloo 2', cursive !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
}

.kid-book-ctrl-btn.btn-book-fullscreen {
  background: #A29BFE !important;
  color: #FFFFFF !important;
  width: 42px !important;
  padding: 0 !important;
  font-size: 16px !important;
}

@media (max-width: 600px) {
  .kid-book-sheet {
    width: 98% !important;
    height: 94vh !important;
    border-radius: 18px !important;
  }
  .kid-book-header {
    padding: 8px 12px !important;
  }
  .kid-book-title {
    font-size: 15px !important;
    max-width: 140px !important;
  }
  .kid-book-controls-dock {
    padding: 8px 10px !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .kid-book-dock-left,
  .kid-book-dock-right {
    gap: 6px !important;
    justify-content: center !important;
  }
  .kid-book-ctrl-btn {
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
  }
  .kid-book-ctrl-btn.btn-read-aloud {
    padding: 0 12px !important;
    font-size: 12px !important;
  }
  .kid-book-page-badge {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  .kid-book-ctrl-btn.btn-book-fullscreen {
    width: 36px !important;
    font-size: 14px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   🎵 UNIVERSAL AUDIO JUKEBOX MODAL STYLING
   ═══════════════════════════════════════════════════════════════ */
#universal-audio-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#universal-audio-modal.open,
#universal-audio-modal.active {
  display: flex !important;
}

.kid-audio-sheet {
  background: #1E1B4B !important;
  border: 4px solid #2D3436 !important;
  border-radius: 28px !important;
  box-shadow: 0 14px 0 #2D3436, 0 25px 40px rgba(0,0,0,0.35) !important;
  width: 95% !important;
  max-width: 780px !important;
  max-height: calc(100vh - 40px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Audio Fullscreen: Perfectly fills viewport with rich jukebox background, NO white bars or weird stretch */
.kid-audio-sheet:fullscreen,
.kid-audio-sheet:-webkit-full-screen {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #0B0A26 !important;
}

.kid-audio-sheet:fullscreen .kid-audio-stage,
.kid-audio-sheet:-webkit-full-screen .kid-audio-stage {
  flex: 1 !important;
  padding: 60px 20px !important;
}

.kid-audio-sheet:fullscreen .kid-audio-vinyl-wrap,
.kid-audio-sheet:-webkit-full-screen .kid-audio-vinyl-wrap {
  width: 260px !important;
  height: 260px !important;
}

.kid-audio-sheet:fullscreen .kid-audio-vinyl-center,
.kid-audio-sheet:-webkit-full-screen .kid-audio-vinyl-center {
  width: 100px !important;
  height: 100px !important;
}

.kid-audio-sheet:fullscreen .kid-audio-center-play-badge,
.kid-audio-sheet:-webkit-full-screen .kid-audio-center-play-badge {
  width: 72px !important;
  height: 72px !important;
  font-size: 32px !important;
}

.kid-audio-header {
  background: linear-gradient(135deg, #8E44AD 0%, #BE2EDD 100%) !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 3.5px solid #2D3436 !important;
  color: #FFFFFF !important;
}

.kid-audio-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.kid-audio-icon {
  font-size: 26px !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
}

.kid-audio-title {
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25) !important;
}

.kid-audio-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.kid-audio-star-badge {
  background: #FFD166 !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-family: 'Baloo 2', cursive !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.kid-audio-close-btn {
  background: #FF7675 !important;
  border: 3px solid #FFFFFF !important;
  outline: 2.5px solid #2D3436 !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-audio-close-btn:hover {
  transform: scale(1.12) rotate(90deg) !important;
}

.kid-audio-stage {
  padding: 30px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at center, #2E1065 0%, #0F172A 100%) !important;
  position: relative !important;
}

.kid-audio-vinyl-wrap {
  position: relative !important;
  width: 170px !important;
  height: 170px !important;
  margin-bottom: 20px !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-audio-vinyl-wrap:hover {
  transform: scale(1.05) !important;
}

.kid-audio-vinyl {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  background: conic-gradient(#111 0deg, #333 45deg, #111 90deg, #333 135deg, #111 180deg, #333 225deg, #111 270deg, #333 315deg, #111 360deg) !important;
  border: 6px solid #FFD166 !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 20px rgba(190, 46, 221, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  animation: spin 8s linear infinite !important;
}

.kid-audio-vinyl.paused {
  animation-play-state: paused !important;
  filter: brightness(0.88) !important;
}

.kid-audio-vinyl-center {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: #FF4757 !important;
  border: 3px solid #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  overflow: hidden !important;
}

/* Big Interactive Center Play/Pause Badge over Vinyl */
.kid-audio-vinyl-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.kid-audio-center-play-badge {
  pointer-events: auto !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: rgba(16, 185, 129, 0.92) !important;
  border: 3.5px solid #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 12px rgba(16, 185, 129, 0.6) !important;
  color: #FFFFFF !important;
  font-size: 22px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  opacity: 0.85 !important;
}

.kid-audio-vinyl-wrap:hover .kid-audio-center-play-badge,
.kid-audio-vinyl-overlay.is-paused .kid-audio-center-play-badge {
  opacity: 1 !important;
  transform: scale(1.15) !important;
}

.kid-audio-vinyl-overlay.is-paused .kid-audio-center-play-badge {
  background: #FF4757 !important;
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6) !important;
  animation: heroPulse 1.5s infinite alternate !important;
}

.kid-audio-center-play-badge:hover {
  transform: scale(1.22) !important;
}

.kid-audio-center-play-badge:active {
  transform: scale(0.95) !important;
}

.kid-audio-progress-bar-wrap {
  width: 85% !important;
  max-width: 440px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #FFFFFF !important;
  font-family: 'Baloo 2', monospace !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

.kid-audio-slider {
  flex: 1 !important;
  accent-color: #FFD166 !important;
  cursor: pointer !important;
}

.kid-audio-controls-dock {
  background: #FFFDF7 !important;
  border-top: 3.5px solid #2D3436 !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.kid-audio-dock-left,
.kid-audio-dock-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.kid-audio-ctrl-btn {
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  border-radius: 16px !important;
  height: 42px !important;
  padding: 0 16px !important;
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
  user-select: none !important;
}

.kid-audio-ctrl-btn:hover {
  background: #FFFEEA !important;
}

.kid-audio-ctrl-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

.kid-audio-ctrl-btn.btn-prev-song {
  background: #54A0FF !important;
  color: #FFFFFF !important;
}

/* Primary Dock Play Button: Prominent pill with icon and clear text */
.kid-audio-ctrl-btn.btn-play-center {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  height: 44px !important;
  padding: 0 20px !important;
  border-radius: 22px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 0 #047857, 0 6px 14px rgba(16, 185, 129, 0.4) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.kid-audio-ctrl-btn.btn-play-center:hover {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 0 #047857, 0 10px 18px rgba(16, 185, 129, 0.5) !important;
}

.kid-audio-ctrl-btn.btn-play-center:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #047857 !important;
}

.kid-audio-ctrl-btn.btn-play-center.is-paused {
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5253 100%) !important;
  box-shadow: 0 4px 0 #C23616, 0 6px 14px rgba(238, 82, 83, 0.4) !important;
}

.kid-audio-ctrl-btn.btn-play-center.is-paused:hover {
  background: linear-gradient(135deg, #FF7675 0%, #FF6B6B 100%) !important;
  box-shadow: 0 6px 0 #C23616, 0 10px 18px rgba(238, 82, 83, 0.5) !important;
}

.kid-audio-play-icon {
  font-size: 18px !important;
}

.kid-audio-play-label {
  font-family: 'Baloo 2', cursive !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
}

.kid-audio-ctrl-btn.btn-next-song {
  background: #FF9F43 !important;
  color: #FFFFFF !important;
}

.kid-audio-ctrl-btn.btn-lyrics {
  background: #FECA57 !important;
  color: #2D3436 !important;
}

.kid-audio-ctrl-btn.btn-audio-mute {
  background: #FF6B81 !important;
  color: #FFFFFF !important;
  width: 42px !important;
  padding: 0 !important;
  font-size: 16px !important;
}

.kid-audio-ctrl-btn.btn-audio-fullscreen {
  background: #A29BFE !important;
  color: #FFFFFF !important;
  width: 42px !important;
  padding: 0 !important;
  font-size: 16px !important;
}

@media (max-width: 600px) {
  .kid-audio-header {
    padding: 8px 12px !important;
  }
  .kid-audio-title {
    font-size: 15px !important;
    max-width: 140px !important;
  }
  .kid-audio-header-right {
    gap: 6px !important;
  }
  .kid-audio-star-badge {
    padding: 3px 8px !important;
    font-size: 11px !important;
  }
  .kid-audio-close-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
  .kid-audio-stage {
    padding: 18px 12px !important;
  }
  .kid-audio-vinyl-wrap {
    width: 130px !important;
    height: 130px !important;
    margin-bottom: 14px !important;
  }
  .kid-audio-vinyl-center {
    width: 48px !important;
    height: 48px !important;
    font-size: 18px !important;
  }
  .kid-audio-center-play-badge {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
  }
  .kid-audio-controls-dock {
    padding: 8px 10px !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .kid-audio-dock-left,
  .kid-audio-dock-right {
    gap: 6px !important;
    justify-content: center !important;
  }
  .kid-audio-ctrl-btn {
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
  }
  .kid-audio-ctrl-btn.btn-play-center {
    height: 38px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
  }
  .kid-audio-ctrl-btn.btn-audio-mute,
  .kid-audio-ctrl-btn.btn-audio-fullscreen {
    width: 36px !important;
    font-size: 14px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   🎮 UNIVERSAL GAME ARCADE MODAL STYLING
   ═══════════════════════════════════════════════════════════════ */
#universal-game-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#universal-game-modal.open,
#universal-game-modal.active {
  display: flex !important;
}

.kid-game-sheet {
  background: #FFEAA7 !important;
  border: 4px solid #2D3436 !important;
  border-radius: 28px !important;
  box-shadow: 0 14px 0 #2D3436, 0 25px 40px rgba(0,0,0,0.35) !important;
  width: 95% !important;
  max-width: 860px !important;
  height: 85vh !important;
  max-height: 640px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-game-header {
  background: linear-gradient(135deg, #F1C40F 0%, #F39C12 100%) !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 3.5px solid #2D3436 !important;
  color: #2D3436 !important;
  flex-shrink: 0 !important;
}

.kid-game-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.kid-game-icon {
  font-size: 26px !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
}

.kid-game-title {
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.kid-game-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.kid-game-star-badge {
  background: #FFFFFF !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-family: 'Baloo 2', cursive !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.kid-game-close-btn {
  background: #FF7675 !important;
  border: 3px solid #FFFFFF !important;
  outline: 2.5px solid #2D3436 !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-game-close-btn:hover {
  transform: scale(1.12) rotate(90deg) !important;
}

.kid-game-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  background: #2D3436 !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.kid-game-stage iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

.kid-game-controls-dock {
  background: #FFFDF7 !important;
  border-top: 3.5px solid #2D3436 !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.kid-game-dock-left,
.kid-game-dock-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.kid-game-ctrl-btn {
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  border-radius: 16px !important;
  height: 42px !important;
  padding: 0 16px !important;
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
  user-select: none !important;
}

.kid-game-ctrl-btn:hover {
  background: #FFFEEA !important;
}

.kid-game-ctrl-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

.kid-game-ctrl-btn.btn-restart {
  background: #54A0FF !important;
  color: #FFFFFF !important;
}

.kid-game-ctrl-btn.btn-sfx {
  background: #FF9F43 !important;
  color: #FFFFFF !important;
}

.kid-game-ctrl-btn.btn-game-fullscreen {
  background: #FF6B81 !important;
  color: #FFFFFF !important;
  width: 42px !important;
  padding: 0 !important;
  font-size: 16px !important;
}

/* ═══════════════════════════════════════════════════════════════
   🎨 UNIVERSAL PAINT & COLORING STUDIO MODAL STYLING
   ═══════════════════════════════════════════════════════════════ */
#universal-paint-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#universal-paint-modal.open,
#universal-paint-modal.active {
  display: flex !important;
}

.kid-paint-sheet {
  background: #E8F8F5 !important;
  border: 4px solid #2D3436 !important;
  border-radius: 28px !important;
  box-shadow: 0 14px 0 #2D3436, 0 25px 40px rgba(0,0,0,0.35) !important;
  width: 95% !important;
  max-width: 920px !important;
  height: 88vh !important;
  max-height: 680px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-paint-header {
  background: linear-gradient(135deg, #00B894 0%, #55EFC4 100%) !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 3.5px solid #2D3436 !important;
  color: #2D3436 !important;
  flex-shrink: 0 !important;
}

.kid-paint-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.kid-paint-icon {
  font-size: 26px !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
}

.kid-paint-title {
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.kid-paint-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.kid-paint-star-badge {
  background: #FFFFFF !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-family: 'Baloo 2', cursive !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.kid-paint-close-btn {
  background: #FF7675 !important;
  border: 3px solid #FFFFFF !important;
  outline: 2.5px solid #2D3436 !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-paint-close-btn:hover {
  transform: scale(1.12) rotate(90deg) !important;
}

.kid-paint-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  background: #FFFFFF !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.kid-paint-stage iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

.kid-paint-controls-dock {
  background: #FFFDF7 !important;
  border-top: 3.5px solid #2D3436 !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.kid-paint-dock-left,
.kid-paint-dock-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.kid-paint-ctrl-btn {
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  border-radius: 16px !important;
  height: 42px !important;
  padding: 0 16px !important;
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
  user-select: none !important;
}

.kid-paint-ctrl-btn:hover {
  background: #FFFEEA !important;
}

.kid-paint-ctrl-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

.kid-paint-ctrl-btn.btn-clear {
  background: #54A0FF !important;
  color: #FFFFFF !important;
}

.kid-paint-ctrl-btn.btn-save {
  background: #FF9F43 !important;
  color: #FFFFFF !important;
}

.kid-paint-ctrl-btn.btn-paint-fullscreen {
  background: #FF6B81 !important;
  color: #FFFFFF !important;
  width: 42px !important;
  padding: 0 !important;
  font-size: 16px !important;
}

/* ═══════════════════════════════════════════════════════════════
   ❓ UNIVERSAL QUIZ STUDIO MODAL STYLING
   ═══════════════════════════════════════════════════════════════ */
#universal-quiz-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#universal-quiz-modal.open,
#universal-quiz-modal.active {
  display: flex !important;
}

.kid-quiz-sheet {
  background: #FFFFFF !important;
  border: 4px solid #2D3436 !important;
  border-radius: 28px !important;
  box-shadow: 0 14px 0 #2D3436, 0 25px 40px rgba(0,0,0,0.35) !important;
  width: 95% !important;
  max-width: 860px !important;
  height: 85vh !important;
  max-height: 640px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-quiz-header {
  background: linear-gradient(135deg, #0984E3 0%, #6C5CE7 100%) !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 3.5px solid #2D3436 !important;
  color: #FFFFFF !important;
  flex-shrink: 0 !important;
}

.kid-quiz-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.kid-quiz-icon {
  font-size: 26px !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
}

.kid-quiz-title {
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25) !important;
}

.kid-quiz-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.kid-quiz-star-badge {
  background: #FFD166 !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-family: 'Baloo 2', cursive !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.kid-quiz-close-btn {
  background: #FF7675 !important;
  border: 3px solid #FFFFFF !important;
  outline: 2.5px solid #2D3436 !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-quiz-close-btn:hover {
  transform: scale(1.12) rotate(90deg) !important;
}

.kid-quiz-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  background: #F8FAFC !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.kid-quiz-stage iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

.kid-quiz-controls-dock {
  background: #FFFDF7 !important;
  border-top: 3.5px solid #2D3436 !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.kid-quiz-dock-left,
.kid-quiz-dock-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.kid-quiz-score-badge {
  background: #FFD166 !important;
  border: 2.5px solid #2D3436 !important;
  border-radius: 14px !important;
  padding: 6px 14px !important;
  font-family: 'Baloo 2', cursive !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 3px 0 #2D3436 !important;
}

.kid-quiz-ctrl-btn {
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  border-radius: 16px !important;
  height: 42px !important;
  padding: 0 16px !important;
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
  user-select: none !important;
}

.kid-quiz-ctrl-btn:hover {
  background: #FFFEEA !important;
}

.kid-quiz-ctrl-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

.kid-quiz-ctrl-btn.btn-quiz-fullscreen {
  background: #FF6B81 !important;
  color: #FFFFFF !important;
  width: 42px !important;
  padding: 0 !important;
  font-size: 16px !important;
}

/* ═══════════════════════════════════════════════════════════════
   🎓 UNIVERSAL LEARN & FLASHCARDS MODAL STYLING
   ═══════════════════════════════════════════════════════════════ */
#universal-learn-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#universal-learn-modal.open,
#universal-learn-modal.active {
  display: flex !important;
}

.kid-learn-sheet {
  background: #FFFFFF !important;
  border: 4px solid #2D3436 !important;
  border-radius: 28px !important;
  box-shadow: 0 14px 0 #2D3436, 0 25px 40px rgba(0,0,0,0.35) !important;
  width: 95% !important;
  max-width: 860px !important;
  height: 85vh !important;
  max-height: 640px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-learn-header {
  background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%) !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 3.5px solid #2D3436 !important;
  color: #FFFFFF !important;
  flex-shrink: 0 !important;
}

.kid-learn-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.kid-learn-icon {
  font-size: 26px !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
}

.kid-learn-title {
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25) !important;
}

.kid-learn-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.kid-learn-star-badge {
  background: #FFD166 !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-family: 'Baloo 2', cursive !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.kid-learn-close-btn {
  background: #FF7675 !important;
  border: 3px solid #FFFFFF !important;
  outline: 2.5px solid #2D3436 !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-learn-close-btn:hover {
  transform: scale(1.12) rotate(90deg) !important;
}

.kid-learn-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  background: #FFFDF7 !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.kid-learn-card-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  height: 100% !important;
  cursor: pointer !important;
  user-select: none !important;
}

.kid-learn-card-letter {
  font-family: 'Baloo 2', cursive !important;
  font-size: 48px !important;
  font-weight: 900 !important;
  color: #E67E22 !important;
  margin-bottom: 8px !important;
}

.kid-learn-card-img {
  width: 220px !important;
  height: 220px !important;
  object-fit: contain !important;
  border-radius: 24px !important;
  margin-bottom: 12px !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-learn-card-img:hover {
  transform: scale(1.06) rotate(2deg) !important;
}

.kid-learn-card-caption {
  font-family: 'Baloo 2', cursive !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
}

.kid-learn-controls-dock {
  background: #FFFDF7 !important;
  border-top: 3.5px solid #2D3436 !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.kid-learn-dock-left,
.kid-learn-dock-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.kid-learn-ctrl-btn {
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  border-radius: 16px !important;
  height: 42px !important;
  padding: 0 16px !important;
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
  user-select: none !important;
}

.kid-learn-ctrl-btn:hover {
  background: #FFFEEA !important;
}

.kid-learn-ctrl-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

.kid-learn-ctrl-btn.btn-speak {
  background: #54A0FF !important;
  color: #FFFFFF !important;
}

.kid-learn-ctrl-btn.btn-flip {
  background: #FF9F43 !important;
  color: #FFFFFF !important;
}

.kid-learn-ctrl-btn.btn-learn-fullscreen {
  background: #FF6B81 !important;
  color: #FFFFFF !important;
  width: 42px !important;
  padding: 0 !important;
  font-size: 16px !important;
}

/* ═══════════════════════════════════════════════════════════════
   🤪 UNIVERSAL JOKES & FUN ZONE MODAL STYLING
   ═══════════════════════════════════════════════════════════════ */
#universal-joke-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#universal-joke-modal.open,
#universal-joke-modal.active {
  display: flex !important;
}

.kid-joke-sheet {
  background: #FFFDF7 !important;
  border: 4px solid #2D3436 !important;
  border-radius: 28px !important;
  box-shadow: 0 14px 0 #2D3436, 0 25px 40px rgba(0,0,0,0.35) !important;
  width: 95% !important;
  max-width: 780px !important;
  height: 80vh !important;
  max-height: 560px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-joke-header {
  background: linear-gradient(135deg, #FF6B81 0%, #FF4757 100%) !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 3.5px solid #2D3436 !important;
  color: #FFFFFF !important;
  flex-shrink: 0 !important;
}

.kid-joke-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.kid-joke-icon {
  font-size: 26px !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
}

.kid-joke-title {
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.kid-joke-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.kid-joke-star-badge {
  background: #FFD166 !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-family: 'Baloo 2', cursive !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.kid-joke-close-btn {
  background: #FFFFFF !important;
  border: 2.5px solid #2D3436 !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  color: #2D3436 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-joke-close-btn:hover {
  transform: scale(1.12) rotate(90deg) !important;
}

.kid-joke-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 30px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  background: radial-gradient(circle at center, #FFF9E6 0%, #FFF2CC 100%) !important;
}

.kid-joke-setup {
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  margin-bottom: 20px !important;
  line-height: 1.4 !important;
}

.kid-joke-punchline-box {
  background: #FFFFFF !important;
  border: 3.5px solid #2D3436 !important;
  border-radius: 20px !important;
  padding: 16px 24px !important;
  font-family: 'Baloo 2', cursive !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #FF4757 !important;
  box-shadow: 0 6px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.kid-joke-controls-dock {
  background: #FFFDF7 !important;
  border-top: 3.5px solid #2D3436 !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.kid-joke-dock-left,
.kid-joke-dock-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.kid-joke-ctrl-btn {
  background: #FFFFFF !important;
  border: 3px solid #2D3436 !important;
  border-radius: 16px !important;
  height: 42px !important;
  padding: 0 16px !important;
  font-family: 'Baloo 2', 'Fredoka', cursive !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
  user-select: none !important;
}

.kid-joke-ctrl-btn:hover {
  background: #FFFEEA !important;
}

.kid-joke-ctrl-btn:active {
  transform: translateY(3px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

.kid-joke-ctrl-btn.btn-joke-next {
  background: #1DD1A1 !important;
  color: #FFFFFF !important;
}

.kid-joke-ctrl-btn.btn-joke-laugh {
  background: #FECA57 !important;
  color: #2D3436 !important;
}

.kid-joke-ctrl-btn.btn-joke-fullscreen {
  background: #FF6B81 !important;
  color: #FFFFFF !important;
  width: 42px !important;
  padding: 0 !important;
  font-size: 16px !important;
}

/* End of Stylesheet */

/* ═══════════════════════════════════════════════════════════════
   FINAL CANONICAL SKY BAR CONTRACT
   Identical shell geometry on every production page.
   ═══════════════════════════════════════════════════════════════ */
.app-header.opt2-sky-bar {
  width: 100% !important;
  min-height: 56px !important;
  height: auto !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 7px 16px 9px !important;
  margin: 0 0 12px !important;
  border-radius: 26px !important;
  position: relative !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246,249,255,0.92)) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 7px 16px rgba(59, 130, 246, 0.04), 0 2px 7px rgba(15, 23, 42, 0.025) !important;
}

.app-header.opt2-sky-bar .opt2-island-identity,
.app-header.opt2-sky-bar .opt2-island-discovery,
.app-header.opt2-sky-bar .opt2-island-utility {
  box-sizing: border-box !important;
}

.app-header.opt2-sky-bar .opt2-island-identity {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
}

.app-header.opt2-sky-bar .opt2-island-discovery {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
  max-width: 520px !important;
}

.app-header.opt2-sky-bar .opt2-island-utility {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

.app-header.opt2-sky-bar .brand-dev-title {
  font-family: 'Baloo 2', 'Fredoka', cursive, sans-serif !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
}

@media (max-width: 899px) {
  .app-header.opt2-sky-bar {
    min-height: 48px !important;
    padding: 6px 10px !important;
    border-radius: 18px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  .app-header.opt2-sky-bar .brand-dev-title {
    font-size: 20px !important;
  }
}
/* ══════════════════════════════════════════════════════════
   OPTION 1: BALANCED COMMITTED REDESIGN PRODUCTION CSS
   Proportions: Sidebar 230px | Comic Hero 1fr | Activities 340px
   ══════════════════════════════════════════════════════════ */

@media (min-width: 900px) {
  /* 1. Main 3-Column Grid Proportions */
  body[data-page="home"]:not(.theme-immersive) .home-layout {
    display: grid !important;
    grid-template-columns: 230px 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  body[data-page="home"]:not(.theme-immersive) .homepage-top-row {
    display: grid !important;
    grid-template-columns: 1fr 340px !important;
    gap: 12px !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    align-items: stretch !important;
  }

  /* 2. Unified Sidebar Shell (Option 1) */
  body:not(.theme-immersive) .layout-sidebar {
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  body:not(.theme-immersive) .unified-sidebar-shell {
    background: #FFFFFF !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 22px !important;
    box-shadow: 0 4.5px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.9), 0 8px 18px rgba(0,0,0,0.06) !important;
    padding: 12px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    justify-content: space-between !important;
  }

  /* Sidebar Brand Header */
  body:not(.theme-immersive) .sidebar-brand-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    padding-bottom: 6px !important;
    border-bottom: none !important;
    width: 100% !important;
  }

  body:not(.theme-immersive) .sidebar-brand-header .brand-mascot-badge {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
  }

  body:not(.theme-immersive) .sidebar-brand-header .brand-mascot-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.2)) !important;
  }

  body:not(.theme-immersive) .sidebar-brand-header .brand-text-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-width: 0 !important;
  }

  body:not(.theme-immersive) .sidebar-brand-header .brand-dev-title {
    font-family: 'Baloo 2', cursive !important;
    font-size: 38px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 1px !important;
  }

  body:not(.theme-immersive) .sidebar-brand-header .brand-dev-title .dev-char {
    display: inline-block !important;
    text-shadow: 0 2.5px 0 #2D3436 !important;
  }

  /* Vibrant Colorful Devanagari Characters */
  body:not(.theme-immersive) .sidebar-brand-header .brand-dev-title .dev-ba  { color: #FF4757 !important; }
  body:not(.theme-immersive) .sidebar-brand-header .brand-dev-title .dev-la  { color: #FFA502 !important; }
  body:not(.theme-immersive) .sidebar-brand-header .brand-dev-title .dev-vaa { color: #2ED573 !important; }
  body:not(.theme-immersive) .sidebar-brand-header .brand-dev-title .dev-dee { color: #1E90FF !important; }

  /* Utility Tray: Language & Audio */
  body:not(.theme-immersive) .sidebar-utility-tray {
    background: #F8FAFC !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 12px !important;
    padding: 3px 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 1.5px 0 #CBD5E1 !important;
  }

  body:not(.theme-immersive) .sidebar-utility-tray .topbar-lang {
    display: flex !important;
    gap: 3px !important;
    margin: 0 !important;
  }

  body:not(.theme-immersive) .sidebar-utility-tray .lang-pill {
    padding: 2px 7px !important;
    font-size: 11px !important;
    font-family: 'Baloo 2', cursive !important;
    font-weight: 900 !important;
    border-radius: 6px !important;
    border: none !important;
    background: transparent !important;
    color: #64748B !important;
    cursor: pointer !important;
  }

  body:not(.theme-immersive) .sidebar-utility-tray .lang-pill.active {
    background: #FF7675 !important;
    color: #FFFFFF !important;
  }

  body:not(.theme-immersive) .sidebar-utility-tray .sound-toggle-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 1.5px solid #CBD5E1 !important;
    background: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 13px !important;
  }

  /* Search Box */
  body:not(.theme-immersive) .unified-sidebar-shell .sidebar-search-box {
    margin: 0 !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .search-input-wrapper {
    height: 32px !important;
    background: #F8FAFC !important;
    border: 1.5px solid #2D3436 !important;
    border-radius: 999px !important;
    box-shadow: 0 1.5px 0 #2D3436 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 8px !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .search-input-wrapper input {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    border: none !important;
    background: transparent !important;
    flex: 1 !important;
    outline: none !important;
  }

  /* Segmented Age Filter */
  body:not(.theme-immersive) .unified-sidebar-shell .sidebar-age-filter {
    margin: 0 !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .age-filter-options {
    display: flex !important;
    background: #F1F5F9 !important;
    border: 1.5px solid #2D3436 !important;
    border-radius: 10px !important;
    padding: 2px !important;
    justify-content: space-between !important;
    box-shadow: 0 1.5px 0 #2D3436 !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .age-btn {
    flex: 1 !important;
    text-align: center !important;
    font-family: 'Baloo 2', cursive !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    padding: 2px 0 !important;
    border-radius: 6px !important;
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    cursor: pointer !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .age-btn.active {
    background: #FFEAA7 !important;
    color: #2D3436 !important;
    box-shadow: 0 1px 0 #2D3436 !important;
  }

  /* Streamlined Passport Card */
  body:not(.theme-immersive) .unified-sidebar-shell .sidebar-profile-card {
    margin: 0 !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .kid-passport-card {
    background: linear-gradient(180deg, #F0FDF4 0%, #DCFCE7 100%) !important;
    border: 2px solid #2D3436 !important;
    border-radius: 14px !important;
    box-shadow: 0 2.5px 0 #2D3436 !important;
    padding: 6px 8px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    cursor: pointer !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .b1-avatar-medallion,
  body:not(.theme-immersive) .unified-sidebar-shell .passport-avatar-wrap {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(180deg, #FEF08A 0%, #FDE047 100%) !important;
    border: 1.5px solid #2D3436 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    box-shadow: 0 1.5px 0 #2D3436 !important;
    flex-shrink: 0 !important;
    position: relative !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .b1-star-badge {
    position: absolute !important;
    bottom: -3px !important;
    right: -3px !important;
    font-size: 8px !important;
    background: #FFD700 !important;
    border: 1px solid #2D3436 !important;
    border-radius: 50% !important;
    width: 12px !important;
    height: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .b1-identity-col {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: left !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .passport-name {
    font-family: 'Fredoka', cursive !important;
    font-size: 10.5px !important;
    font-weight: 900 !important;
    color: #1E293B !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    margin: 0 !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .b1-xp-track,
  body:not(.theme-immersive) .unified-sidebar-shell .passport-xp-track {
    height: 5px !important;
    background: #BBF7D0 !important;
    border: 1px solid #16A34A !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    margin: 3px 0 2px 0 !important;
    width: 100% !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .passport-xp-fill {
    height: 100% !important;
    background: #16A34A !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .b1-level-xp {
    font-family: 'Nunito', sans-serif !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    color: #16A34A !important;
    line-height: 1 !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .b1-join-btn,
  body:not(.theme-immersive) .unified-sidebar-shell .passport-join-btn {
    background: linear-gradient(180deg, #10B981 0%, #059669 100%) !important;
    border: 1.5px solid #2D3436 !important;
    border-radius: 999px !important;
    color: #FFFFFF !important;
    font-family: 'Fredoka', cursive !important;
    font-size: 9.5px !important;
    font-weight: 900 !important;
    padding: 3px 8px !important;
    width: auto !important;
    box-shadow: 0 1.5px 0 #2D3436 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    flex-shrink: 0 !important;
    transition: transform 0.12s ease !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .passport-join-btn:hover {
    transform: translateY(-1.5px) scale(1.05) !important;
  }

  /* Bottom Action Row */
  body:not(.theme-immersive) .unified-sidebar-shell .sidebar-bottom-action-dock {
    display: flex !important;
    gap: 6px !important;
    margin: 0 !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .parents-portal-btn {
    flex: 1 !important;
    background: #4F46E5 !important;
    color: #FFFFFF !important;
    border: 1.5px solid #2D3436 !important;
    border-radius: 10px !important;
    padding: 5px 6px !important;
    font-family: 'Fredoka', cursive !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    text-decoration: none !important;
    box-shadow: 0 1.5px 0 #2D3436 !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell .mini-spin-dock {
    width: 34px !important;
    background: #F59E0B !important;
    color: #FFFFFF !important;
    border: 1.5px solid #2D3436 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 1.5px 0 #2D3436 !important;
  }

  /* 3. Central Hero Console: Clean, Bordered Comic Stage */
  body[data-page="home"]:not(.theme-immersive) .toon-corner-section {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }
  body[data-page="home"]:not(.theme-immersive) .hero-console-wrap {
    background: #FFFFFF !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 22px !important;
    box-shadow: 0 4.5px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.9), 0 8px 18px rgba(0,0,0,0.06) !important;
    padding: 10px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }
  body[data-page="home"]:not(.theme-immersive) .hero-mode-tabs-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
  }
  body[data-page="home"]:not(.theme-immersive) .hero-tab-pill {
    background: #F1F5F9 !important;
    border: 1.5px solid #2D3436 !important;
    border-radius: 999px !important;
    padding: 5px 14px !important;
    font-family: 'Fredoka', cursive !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    cursor: pointer !important;
  }
  body[data-page="home"]:not(.theme-immersive) .hero-tab-pill.active {
    background: #FF9F43 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 0 #2D3436 !important;
  }
  body[data-page="home"]:not(.theme-immersive) .homepage-comic-strip-container {
    flex: 1 1 auto !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body[data-page="home"]:not(.theme-immersive) .homepage-comic-strip-wrap {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 0 #2D3436 !important;
    background: #F8FAFC !important;
  }
  body[data-page="home"]:not(.theme-immersive) .homepage-comic-strip-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 340px !important;
    object-fit: fill !important;
    display: block !important;
  }
  body[data-page="home"]:not(.theme-immersive) .hoarding-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #FFB703 !important;
    border: 2px solid #2D3436 !important;
    box-shadow: 0 2.5px 0 #2D3436 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    cursor: pointer !important;
  }
  body[data-page="home"]:not(.theme-immersive) .hoarding-arrow-left { left: 10px !important; }
  body[data-page="home"]:not(.theme-immersive) .hoarding-arrow-right { right: 10px !important; }

  /* 4. Activities Console: Restored to 340px Wide Tactile Grid */
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section {
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
    height: 100% !important;
    margin: 0 !important;
  }
  body[data-page="home"]:not(.theme-immersive) .activity-console-card {
    background: #FFFFFF !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 22px !important;
    box-shadow: 0 4.5px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.9), 0 8px 18px rgba(0,0,0,0.06) !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    justify-content: space-between !important;
  }
  body[data-page="home"]:not(.theme-immersive) .activity-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: repeat(4, 1fr) !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    width: 100% !important;
  }
  /* Idea 1: 3D Chunky App Tiles (Vertical Stack: Huge 42px Icon + Bold Title) */
  body[data-page="home"]:not(.theme-immersive) .activity-card {
    border: 2px solid #2D3436 !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 4px 5px 4px !important;
    gap: 3px !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.6) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease !important;
    box-sizing: border-box !important;
    height: 100% !important;
  }
  body[data-page="home"]:not(.theme-immersive) .activity-card:hover {
    transform: translateY(-2.5px) scale(1.03) !important;
    box-shadow: 0 4.5px 0 #2D3436 !important;
  }
  body[data-page="home"]:not(.theme-immersive) .activity-card:active {
    transform: translateY(2px) !important;
    box-shadow: 0 1px 0 #2D3436 !important;
  }
  body[data-page="home"]:not(.theme-immersive) .activity-card-img {
    width: 42px !important;
    height: 42px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.25)) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }
  body[data-page="home"]:not(.theme-immersive) .card-title {
    font-family: 'Fredoka', cursive !important;
    font-size: 13.5px !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    letter-spacing: 0.6px !important;
    text-shadow: 0 1.5px 0 rgba(0,0,0,0.35) !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    margin: 0 !important;
  }
  body[data-page="home"]:not(.theme-immersive) .card-learn .activity-card-emoji {
    font-size: 36px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.25)) !important;
  }

  /* Distinct Candy Gradients for Activities */
  body[data-page="home"]:not(.theme-immersive) .card-videos { background: linear-gradient(180deg, #FF6B81, #EE5253) !important; }
  body[data-page="home"]:not(.theme-immersive) .card-songs  { background: linear-gradient(180deg, #48DBFB, #0ABDE3) !important; }
  body[data-page="home"]:not(.theme-immersive) .card-books  { background: linear-gradient(180deg, #1DD1A1, #10AC84) !important; }
  body[data-page="home"]:not(.theme-immersive) .card-games  { background: linear-gradient(180deg, #FF9F43, #EE5A24) !important; }
  body[data-page="home"]:not(.theme-immersive) .card-draw   { background: linear-gradient(180deg, #FD79A8, #E84393) !important; }
  body[data-page="home"]:not(.theme-immersive) .card-quiz   { background: linear-gradient(180deg, #A29BFE, #6C5CE7) !important; }
  body[data-page="home"]:not(.theme-immersive) .card-jokes  { background: linear-gradient(180deg, #FDCB6E, #E17055) !important; }
  body[data-page="home"]:not(.theme-immersive) .card-learn  { background: linear-gradient(180deg, #74B9FF, #0984E3) !important; }

  /* Daily Spark Badges Shelf (3 Badges at Bottom of Activities) */
  body[data-page="home"]:not(.theme-immersive) .daily-spark-badges-shelf {
    display: flex !important;
    gap: 6px !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body[data-page="home"]:not(.theme-immersive) .spark-badge-btn {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border: 1.5px solid #2D3436 !important;
    border-radius: 10px !important;
    padding: 4px 2px !important;
    font-family: 'Fredoka', cursive !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    box-shadow: 0 1.5px 0 #2D3436 !important;
    cursor: pointer !important;
  }
  body[data-page="home"]:not(.theme-immersive) .badge-quiz    { background: #FAF5FF !important; border-color: #8C7AE6 !important; color: #6C5CE7 !important; }
  body[data-page="home"]:not(.theme-immersive) .badge-fact    { background: #FEFCE8 !important; border-color: #E17055 !important; color: #D35400 !important; }
  body[data-page="home"]:not(.theme-immersive) .badge-thought { background: #FFF1F2 !important; border-color: #EA2027 !important; color: #C0392B !important; }
}

/* Ensure layout sidebar acts cleanly as shell wrapper without duplicate outer borders */
body:not(.theme-immersive) .layout-sidebar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}



/* ══════════════════════════════════════════════════════════
   OPTION B1: TACTILE GOLD MEDALLION PASSPORT CARD & 395px EXACT HEIGHT
   ══════════════════════════════════════════════════════════ */
body:not(.theme-immersive) .layout-sidebar {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  height: 100% !important;
}

body:not(.theme-immersive) .unified-sidebar-shell {
  height: 100% !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 10px 10px !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}

body:not(.theme-immersive) .b1-passport-card {
  background: linear-gradient(180deg, #F0FDF4 0%, #DCFCE7 100%) !important;
  border: 2px solid #2D3436 !important;
  border-radius: 14px !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  padding: 6px 8px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

body:not(.theme-immersive) .b1-avatar-medallion {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  background: linear-gradient(180deg, #FEF08A 0%, #FDE047 100%) !important;
  border: 1.5px solid #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  box-shadow: 0 1.5px 0 #2D3436 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

body:not(.theme-immersive) .b1-star-badge {
  position: absolute !important;
  bottom: -3px !important;
  right: -3px !important;
  font-size: 9px !important;
  background: #FFD700 !important;
  border: 1px solid #2D3436 !important;
  border-radius: 50% !important;
  width: 13px !important;
  height: 13px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

body:not(.theme-immersive) .b1-identity-col {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: left !important;
}

body:not(.theme-immersive) .b1-identity-col .passport-name {
  font-family: 'Fredoka', cursive !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #1E293B !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body:not(.theme-immersive) .b1-xp-track {
  height: 5px !important;
  background: #BBF7D0 !important;
  border: 1px solid #16A34A !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  margin: 3px 0 2px 0 !important;
  width: 100% !important;
}

body:not(.theme-immersive) .b1-xp-track .passport-xp-fill {
  height: 100% !important;
  background: #16A34A !important;
}

body:not(.theme-immersive) .b1-level-xp {
  font-family: 'Nunito', sans-serif !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  color: #16A34A !important;
  line-height: 1 !important;
}

body:not(.theme-immersive) .b1-join-btn {
  background: linear-gradient(180deg, #10B981 0%, #059669 100%) !important;
  border: 1.5px solid #2D3436 !important;
  border-radius: 999px !important;
  color: #FFFFFF !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  padding: 4px 10px !important;
  box-shadow: 0 1.5px 0 #2D3436 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  transition: transform 0.12s ease !important;
}

body:not(.theme-immersive) .b1-join-btn:hover {
  transform: translateY(-1.5px) scale(1.05) !important;
}

body:not(.theme-immersive) .b1-join-btn:active {
  transform: translateY(1.5px) !important;
}

/* ══════════════════════════════════════════════════════════
   UNIVERSAL DESKTOP SHELL HEIGHT LOCK (Flush Across All Viewports)
   ══════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
  body[data-page="home"]:not(.theme-immersive) .home-layout {
    align-items: start !important;
  }
  body[data-page="home"]:not(.theme-immersive) .homepage-top-row {
    height: 395px !important;
    max-height: 395px !important;
    min-height: 395px !important;
  }
  body:not(.theme-immersive) .layout-sidebar {
    height: 395px !important;
    max-height: 395px !important;
    min-height: 395px !important;
  }
  body:not(.theme-immersive) .unified-sidebar-shell {
    height: 395px !important;
    max-height: 395px !important;
    min-height: 395px !important;
  }
  body[data-page="home"]:not(.theme-immersive) .hero-console-wrap {
    height: 395px !important;
    max-height: 395px !important;
    min-height: 395px !important;
  }
  body[data-page="home"]:not(.theme-immersive) .activity-console-card {
    height: 395px !important;
    max-height: 395px !important;
    min-height: 395px !important;
  }
  body[data-page="home"]:not(.theme-immersive) .homepage-activities-section {
    height: 395px !important;
    max-height: 395px !important;
    min-height: 395px !important;
  }
}

/* ══════════════════════════════════════════════════════════
   HERO CONSOLE: FESTIVE & GREETING CARD STAGE STYLING
   ══════════════════════════════════════════════════════════ */
body[data-page="home"]:not(.theme-immersive) .hero-greeting-card-stage {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 4px 0 !important;
  box-sizing: border-box !important;
}

body[data-page="home"]:not(.theme-immersive) .greeting-badge-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

body[data-page="home"]:not(.theme-immersive) .greeting-badge-pill {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
  border: 1.5px solid #D97706 !important;
  color: #92400E !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 2px 10px !important;
  border-radius: 999px !important;
}

body[data-page="home"]:not(.theme-immersive) .greeting-audio-btn {
  background: #EFF6FF !important;
  border: 1.5px solid #3B82F6 !important;
  border-radius: 999px !important;
  color: #1D4ED8 !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 2px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  box-shadow: 0 1.5px 0 #3B82F6 !important;
}

body[data-page="home"]:not(.theme-immersive) .greeting-card-visual-wrap {
  flex: 1 1 auto !important;
  width: 100% !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding: 0 !important;
}

body[data-page="home"]:not(.theme-immersive) .greeting-card-frame {
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 50%, #FEF3C7 100%) !important;
  border: 2.5px solid #2D3436 !important;
  border-radius: 18px !important;
  box-shadow: 0 3px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.8) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
  position: relative !important;
  text-align: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* When a festival image is present, fit naturally without distortion preserving true 16:9 HD ratio */
body[data-page="home"]:not(.theme-immersive) .greeting-card-frame.has-custom-bg {
  background-image: var(--fest-img) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #1E293B !important;
  image-rendering: -webkit-optimize-contrast !important;
}

body[data-page="home"]:not(.theme-immersive) .greeting-sparkle-decor {
  position: absolute !important;
  font-size: 24px !important;
  animation: sparkleBounce 1.8s infinite ease-in-out !important;
}
.decor-top-left { top: 8px; left: 12px; }
.decor-top-right { top: 8px; right: 12px; }

@keyframes sparkleBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.2) translateY(-4px); }
}

body[data-page="home"]:not(.theme-immersive) .greeting-center-headline {
  font-family: 'Baloo 2', cursive !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #C2410C !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8) !important;
  line-height: 1.25 !important;
  margin-bottom: 8px !important;
  max-width: 90% !important;
}

/* When festival image fills the card — pin caption to the bottom */
body[data-page="home"]:not(.theme-immersive) .greeting-card-frame.has-custom-bg .greeting-center-headline {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  padding: 10px 16px 12px !important;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 60%, transparent 100%) !important;
  color: #FFFFFF !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9) !important;
  font-size: 17px !important;
  text-align: center !important;
  max-width: 100% !important;
  border-radius: 0 0 16px 16px !important;
}

body[data-page="home"]:not(.theme-immersive) .greeting-mascots-cheer {
  font-size: 36px !important;
  display: flex !important;
  gap: 16px !important;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.15)) !important;
}

body[data-page="home"]:not(.theme-immersive) .greeting-card-footer {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

body[data-page="home"]:not(.theme-immersive) .greeting-celebrate-btn {
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%) !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  color: #FFFFFF !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  padding: 6px 24px !important;
  box-shadow: 0 2.5px 0 #2D3436 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: transform 0.15s ease !important;
}
body[data-page="home"]:not(.theme-immersive) .greeting-celebrate-btn:hover {
  transform: translateY(-2px) scale(1.04) !important;
}
body[data-page="home"]:not(.theme-immersive) .greeting-celebrate-btn:active {
  transform: translateY(2px) !important;
}
body[data-page="home"]:not(.theme-immersive) .greeting-celebrate-btn.bouncing {
  animation: celebrateBounce 0.5s ease-in-out !important;
}
@keyframes celebrateBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(3deg); }
}

/* ══════════════════════════════════════════════════════════
   FESTIVAL MULTI-ACTIVE CAROUSEL CONTROLS
   ══════════════════════════════════════════════════════════ */
.greeting-carousel-nav-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 2px solid #2D3436 !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25) !important;
  color: #2D3436 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.greeting-carousel-nav-btn:hover {
  background: #FFEAA7 !important;
  transform: translateY(-50%) scale(1.12) !important;
}
.greeting-carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95) !important;
}
.greeting-nav-prev { left: 8px !important; }
.greeting-nav-next { right: 8px !important; }

.greeting-carousel-dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-left: 8px !important;
}
.greeting-carousel-dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1.5px solid #2D3436 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  padding: 0 !important;
}
.greeting-carousel-dot.active {
  width: 22px !important;
  border-radius: 6px !important;
  background: #FF9F43 !important;
}


/* ══════════════════════════════════════════════════════════
   DELUXE FULL-WIDTH & FULL-HEIGHT DAILY SURPRISE THEATER
   ══════════════════════════════════════════════════════════ */
body[data-page="home"]:not(.theme-immersive) .daily-surprise-hero-stage.deluxe-stage {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: stretch !important;
  padding: 4px 6px !important;
  box-sizing: border-box !important;
}

body[data-page="home"]:not(.theme-immersive) .surprise-card-box.deluxe-box {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFBEB 100%) !important;
  border: 2.5px solid #2D3436 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 0 #2D3436, inset 0 2px 0 rgba(255,255,255,0.9) !important;
  padding: 12px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  gap: 8px !important;
}

body[data-page="home"]:not(.theme-immersive) .surprise-header-row.deluxe-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

body[data-page="home"]:not(.theme-immersive) .surprise-tag-badge.deluxe-badge {
  background: linear-gradient(135deg, #FEF08A 0%, #FDE047 100%) !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #854D0E !important;
  padding: 4px 14px !important;
  box-shadow: 0 2px 0 #2D3436 !important;
}

body[data-page="home"]:not(.theme-immersive) .surprise-shuffle-btn.deluxe-shuffle {
  background: #FFFFFF !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #1E293B !important;
  padding: 4px 14px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 0 #2D3436 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: transform 0.15s ease !important;
}
body[data-page="home"]:not(.theme-immersive) .surprise-shuffle-btn.deluxe-shuffle:hover {
  transform: translateY(-2px) scale(1.03) !important;
  background: #F8FAFC !important;
}

body[data-page="home"]:not(.theme-immersive) .surprise-main-content.deluxe-content {
  flex: 1 1 auto !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  background: #FFFFFF !important;
  border: 2px solid #2D3436 !important;
  border-radius: 16px !important;
  padding: 12px 20px !important;
  box-shadow: 0 3px 0 #E2E8F0, inset 0 2px 4px rgba(0,0,0,0.02) !important;
  box-sizing: border-box !important;
}

body[data-page="home"]:not(.theme-immersive) .surprise-avatar-icon.deluxe-avatar {
  font-size: 64px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18)) !important;
  animation: heroBounce 2.2s infinite ease-in-out !important;
  flex-shrink: 0 !important;
}

body[data-page="home"]:not(.theme-immersive) .surprise-text-wrap.deluxe-text {
  flex: 1 1 auto !important;
  text-align: left !important;
}

body[data-page="home"]:not(.theme-immersive) .surprise-item-title.deluxe-title {
  font-family: 'Baloo 2', cursive !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #1E293B !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.25 !important;
}

body[data-page="home"]:not(.theme-immersive) .surprise-item-desc.deluxe-desc {
  font-family: 'Fredoka', cursive !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

body[data-page="home"]:not(.theme-immersive) .surprise-action-footer.deluxe-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 12px !important;
}

body[data-page="home"]:not(.theme-immersive) .surprise-audio-trigger-btn.deluxe-audio-btn {
  background: linear-gradient(180deg, #10B981 0%, #059669 100%) !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 8px 24px !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 0 #2D3436 !important;
  cursor: pointer !important;
  transition: transform 0.15s ease !important;
}
body[data-page="home"]:not(.theme-immersive) .surprise-audio-trigger-btn.deluxe-audio-btn:hover {
  transform: translateY(-2px) scale(1.03) !important;
}
body[data-page="home"]:not(.theme-immersive) .surprise-audio-trigger-btn.deluxe-audio-btn:active {
  transform: translateY(2px) !important;
}

body[data-page="home"]:not(.theme-immersive) .surprise-sfx-cluster.deluxe-sfx {
  display: flex !important;
  gap: 8px !important;
}

body[data-page="home"]:not(.theme-immersive) .surprise-sfx-cluster.deluxe-sfx .surprise-mini-sfx {
  background: #FFFFFF !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 5px 12px !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #334155 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 0 #2D3436 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: transform 0.1s ease !important;
}
body[data-page="home"]:not(.theme-immersive) .surprise-sfx-cluster.deluxe-sfx .surprise-mini-sfx:hover {
  transform: translateY(-2px) !important;
  background: #F1F5F9 !important;
}

/* ══════════════════════════════════════════════════════════
   HERO CONSOLE: COMPLETE EMBEDDED VIDEO PLAYER STAGE
   ══════════════════════════════════════════════════════════ */
body[data-page="home"]:not(.theme-immersive) .hero-full-video-stage {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: stretch !important;
  padding: 4px 6px !important;
  box-sizing: border-box !important;
  gap: 6px !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-video-top-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-video-title-pill {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
  border: 1.5px solid #2563EB !important;
  color: #1D4ED8 !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  padding: 3px 12px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 75% !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-video-more-link {
  background: #F8FAFC !important;
  border: 1.5px solid #2D3436 !important;
  color: #1E293B !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 1.5px 0 #2D3436 !important;
  transition: transform 0.1s ease !important;
}
body[data-page="home"]:not(.theme-immersive) .hero-video-more-link:hover {
  transform: translateY(-1.5px) !important;
  background: #FFFFFF !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-video-player-container {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: calc(100% - 34px) !important;
  background: #000000 !important;
  border: 2.5px solid #2D3436 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  overflow: hidden !important;
  position: relative !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-embedded-video-iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
}

/* ══════════════════════════════════════════════════════════
   UNIVERSAL KID THEATER: MASCOT OVERLAYS & BALWADI JOYPAD DOCK
   ══════════════════════════════════════════════════════════ */
.theater-mascot-watermark {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 2px solid #2D3436 !important;
  border-radius: 999px !important;
  padding: 4px 12px 4px 6px !important;
  box-shadow: 0 3px 0 #2D3436, 0 4px 12px rgba(0,0,0,0.15) !important;
  z-index: 10 !important;
  backdrop-filter: blur(4px) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.watermark-mascot-img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
}

.watermark-mascot-text {
  font-family: 'Fredoka', cursive !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #2D3436 !important;
}

.theater-mascot-cheer {
  position: absolute !important;
  bottom: 12px !important;
  left: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2.5px solid #2D3436 !important;
  border-radius: 18px !important;
  padding: 6px 12px !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  z-index: 10 !important;
  animation: gentleFloat 3s infinite ease-in-out !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.cheer-mascot-img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain !important;
}

.cheer-mascot-text {
  font-family: 'Fredoka', cursive !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #1E293B !important;
}

/* ══════════════════════════════════════════════════════════
   BALWADI KID-FRIENDLY CUSTOM SUBTITLES (CC) OVERLAY
   ══════════════════════════════════════════════════════════ */
.theater-custom-subtitles-overlay {
  position: absolute !important;
  bottom: 22px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 25 !important;
  pointer-events: none !important;
  max-width: 86% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

.theater-custom-subtitles-overlay.cc-hidden {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(8px) !important;
  pointer-events: none !important;
}

.theater-subtitle-pill {
  background: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  padding: 8px 22px !important;
  text-align: center !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 209, 102, 0.25) !important;
  line-height: 1.35 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  animation: subtitlePulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes subtitlePulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.theater-subtitle-icon {
  font-size: 16px !important;
  flex-shrink: 0 !important;
}

.theater-subtitle-text {
  font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  letter-spacing: 0.3px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.theater-subtitle-text mark {
  background: transparent !important;
  color: #FCD34D !important;
  font-weight: 800 !important;
}

/* Joypad Dock Layout - Modern Cinema Dark */
.kid-theater-controls-dock.unified-joypad-dock {
  background: #111827 !important;
  border-top: 1px solid #1F2937 !important;
  padding: 10px 18px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.joypad-scrubber-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.joypad-time {
  font-family: 'Fredoka', cursive !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #94A3B8 !important;
  font-variant-numeric: tabular-nums !important;
}

.joypad-scrubber-track {
  flex: 1 !important;
  height: 6px !important;
  background: #374151 !important;
  border: 1px solid #4B5563 !important;
  border-radius: 999px !important;
  position: relative !important;
  cursor: pointer !important;
}

.joypad-scrubber-fill {
  width: 0% !important;
  height: 100% !important;
  background: linear-gradient(90deg, #3B82F6, #60A5FA) !important;
  border-radius: 999px !important;
}

.joypad-scrubber-thumb {
  position: absolute !important;
  left: 0% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 14px !important;
  height: 14px !important;
  background: #FFFFFF !important;
  border: 2px solid #3B82F6 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.7) !important;
}

.joypad-buttons-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.joypad-btn-cluster {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.joypad-btn-pill {
  background: #1F2937 !important;
  border: 1px solid #374151 !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #E2E8F0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: transform 0.1s ease, background 0.15s !important;
}
.joypad-btn-pill:hover {
  transform: translateY(-2px) !important;
  background: #374151 !important;
}
.joypad-btn-pill:active {
  transform: translateY(2px) !important;
}

.joypad-btn-pill.btn-next-green {
  background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
  color: #FFFFFF !important;
  border-color: #2563EB !important;
}
.joypad-btn-pill.btn-next-green:hover {
  background: #1D4ED8 !important;
}

.joypad-btn-pill.btn-fav-gold {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #FBBF24 !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

.joypad-btn-circle {
  background: #1F2937 !important;
  border: 1px solid #374151 !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  font-size: 14px !important;
  color: #E2E8F0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.1s ease, background 0.15s !important;
}
.joypad-btn-circle:hover {
  transform: translateY(-2px) !important;
  background: #374151 !important;
  color: #60A5FA !important;
}
.joypad-btn-circle:active {
  transform: translateY(2px) !important;
}

.joypad-btn-circle.active-cc {
  background: #F59E0B !important;
  border-color: #D97706 !important;
  color: #000000 !important;
  font-weight: 900 !important;
  font-size: 11.5px !important;
}

.joypad-btn-circle.active-loop {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10B981 !important;
  color: #34D399 !important;
}

.joypad-btn-circle.btn-fs-indigo {
  background: #1F2937 !important;
  color: #E2E8F0 !important;
  border-color: #374151 !important;
}
.joypad-btn-circle.btn-fs-indigo:hover {
  background: #4F46E5 !important;
  border-color: #4338CA !important;
  color: #FFFFFF !important;
}

.joypad-btn-play-big {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 42px !important;
  height: 42px !important;
  color: #FFFFFF !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s ease, box-shadow 0.15s !important;
}
.joypad-btn-play-big:hover {
  transform: translateY(-2px) scale(1.08) !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5) !important;
}
.joypad-btn-play-big:active {
  transform: translateY(2px) !important;
}

@media (max-width: 600px) {
  .joypad-buttons-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  .joypad-btn-cluster {
    gap: 5px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .joypad-btn-pill {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  .joypad-btn-circle {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
  }
  .joypad-btn-play-big {
    width: 36px !important;
    height: 36px !important;
    font-size: 15px !important;
  }
  .kid-theater-controls-dock {
    padding: 8px 10px !important;
  }
}

/* Ensure Hero Video Player Container correctly scales with Mascot overlays & dock */
body[data-page="home"]:not(.theme-immersive) .hero-video-player-container {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: calc(100% - 88px) !important;
  background: #000000 !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 16px !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05) !important;
  overflow: hidden !important;
  position: relative !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-full-video-stage .kid-theater-controls-dock.unified-joypad-dock {
  border-radius: 14px !important;
  border: 1.5px solid #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  background: #FFFDF7 !important;
}

/* Refined Girl Mascot Watermark on Top Right ONLY */
.theater-mascot-watermark {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.85) !important;
  border: 2px solid #2D3436 !important;
  border-radius: 50% !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  box-shadow: 0 3px 0 #2D3436, 0 4px 10px rgba(0,0,0,0.18) !important;
  z-index: 15 !important;
  backdrop-filter: blur(4px) !important;
  pointer-events: none !important;
}

.watermark-mascot-img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
}

/* ══════════════════════════════════════════════════════════
   PRECISION 16:9 THEATER CROP: HIDES YOUTUBE BRANDING & MORE VIDEOS
   ══════════════════════════════════════════════════════════ */
.hero-video-player-container,
.kid-theater-screen-stage {
  position: relative !important;
  overflow: hidden !important;
  background: #000000 !important;
}

/* Scale iframe slightly and shift up so YouTube's bottom overlay bar is safely hidden behind the container boundary */
.hero-video-player-container iframe {
  width: 100% !important;
  height: 124% !important;
  top: -12% !important;
  position: absolute !important;
  left: 0 !important;
  border: none !important;
  pointer-events: auto !important;
}

/* Invisible shield at the very bottom corner to prevent accidental clicks on YouTube logo/links */
.yt-click-shield-bottom {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 48px !important;
  z-index: 8 !important;
  background: transparent !important;
  cursor: default !important;
}

/* Ensure bottom YouTube overlay and title overlay are cropped clean behind frame boundary for hero */
body[data-page="home"]:not(.theme-immersive) .hero-video-player-container iframe {
  width: 100% !important;
  height: 138% !important;
  top: -19% !important;
  position: absolute !important;
  left: 0 !important;
  border: none !important;
}

/* Modal video stage displays clean full-frame video so subtitles and subtitles in video are completely visible */
#universal-video-modal .kid-theater-screen-stage iframe {
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  position: relative !important;
  left: 0 !important;
  border: none !important;
}

/* Ensure Hero Tab Pills bar supports clean horizontal scroll for all modes */
.hero-tabs-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  padding: 4px 6px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #CBD5E1 transparent !important;
}

.hero-tabs-header::-webkit-scrollbar {
  height: 4px !important;
}
.hero-tabs-header::-webkit-scrollbar-thumb {
  background: #CBD5E1 !important;
  border-radius: 999px !important;
}

.hero-tab-pill {
  flex-shrink: 0 !important;
}

.hero-custom-mode-stage {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Ensure Hero Mode Tabs Bar smoothly scrolls horizontally when many pills are present */
body[data-page="home"]:not(.theme-immersive) .hero-mode-tabs-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  padding-bottom: 4px !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-mode-tabs-bar::-webkit-scrollbar {
  display: none !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-tab-pill {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* ══════════════════════════════════════════════════════════
   HERO CONSOLE CUSTOM MODES (Word, Riddle, Draw, Fest, Math, Habit)
   ══════════════════════════════════════════════════════════ */
.hero-custom-mode-stage {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 12px !important;
  box-sizing: border-box !important;
}

.hero-custom-mode-stage .deluxe-box {
  width: 100% !important;
  height: 100% !important;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--sec2-card-radius, 20px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 20px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.hero-custom-mode-stage .deluxe-avatar {
  font-size: 52px !important;
  line-height: 1 !important;
  margin-bottom: 6px !important;
}

.hero-custom-mode-stage .deluxe-title {
  font-family: 'Baloo 2', cursive !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  margin: 0 0 6px 0 !important;
}

.hero-custom-mode-stage .deluxe-desc {
  font-family: 'Fredoka', cursive !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  margin: 0 0 10px 0 !important;
  max-width: 480px !important;
}

.hero-custom-mode-stage .deluxe-sfx-btn {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 999px !important;
  padding: 6px 16px !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #1E293B !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: transform 0.15s ease !important;
}

.hero-custom-mode-stage .deluxe-sfx-btn:hover {
  transform: translateY(-2px) !important;
}

.hero-custom-mode-stage .deluxe-sfx-btn:active {
  transform: translateY(2px) !important;
}

/* Ensure Hero Stage Content Mount stretches 100% height and width */
body[data-page="home"]:not(.theme-immersive) .hero-stage-content {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: calc(100% - 44px) !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-custom-mode-stage {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 10px !important;
  box-sizing: border-box !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-custom-mode-stage .deluxe-box {
  width: 100% !important;
  height: 100% !important;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--sec2-card-radius, 20px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 18px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* Ensure all elements inside hero-stage-content-mount fill nicely and render with background */
#hero-stage-content-mount {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#hero-stage-content-mount .hero-custom-mode-stage {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 10px !important;
  box-sizing: border-box !important;
}

#hero-stage-content-mount .hero-custom-mode-stage .deluxe-box {
  width: 100% !important;
  height: 100% !important;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--sec2-card-radius, 18px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 18px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* Ensure Hero Custom Mode Stage uses the exact festive card frame styling */
body[data-page="home"]:not(.theme-immersive) .hero-custom-mode-stage {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 0 !important;
  box-sizing: border-box !important;
}

/* ══════════════════════════════════════════════════════════
   HERO TABS CAROUSEL WITH SMOOTH SCROLL & ARROWS
   ══════════════════════════════════════════════════════════ */
body[data-page="home"]:not(.theme-immersive) .hero-tabs-carousel-wrapper {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  gap: 6px !important;
  position: relative !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-tabs-nav-arrow {
  background: #FFFFFF !important;
  border: 2px solid #2D3436 !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #1E293B !important;
  box-shadow: 0 2px 0 #2D3436 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-tabs-nav-arrow:hover {
  transform: scale(1.1) !important;
  background: #FEF3C7 !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-tabs-nav-arrow:active {
  transform: translateY(1px) !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-mode-tabs-bar {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-mode-tabs-bar::-webkit-scrollbar {
  display: none !important;
}

body[data-page="home"]:not(.theme-immersive) .hero-tab-pill {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  font-family: 'Fredoka', cursive !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* ═══════════════════════════════════════════════════════════════
   UNIFIED SHELL ALIGNMENT & 20PX TRAIN GAP
   ═══════════════════════════════════════════════════════════════ */
body[data-page="home"]:not(.theme-immersive) .home-layout {
    height: 395px !important;
    max-height: 395px !important;
    min-height: 395px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 1400px !important;
    box-sizing: border-box !important;
}

body[data-page="home"]:not(.theme-immersive) .layout-center-col {
    height: 395px !important;
    max-height: 395px !important;
    min-height: 395px !important;
}

body[data-page="home"]:not(.theme-immersive) .toy-train-container,
body[data-page="home"]:not(.theme-immersive) .toy-train-container.full-screen-track {
    width: 100% !important;
    max-width: 1400px !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}


/* ═══════════════════════════════════════════════════════════════
   RAIL SHELL, STATION & SINGLE-TRACK PERMANENT FIX
   ═══════════════════════════════════════════════════════════════ */
/* 1. Remove duplicate second track background from viewport & bring train into foreground */
body[data-page="home"]:not(.theme-immersive) .toy-train-viewport,
body[data-page="home"]:not(.theme-immersive) .toy-train-container.full-screen-track .toy-train-viewport {
    background: transparent !important;
    background-image: none !important;
    height: 152px !important;
    min-height: 152px !important;
    z-index: 15 !important;
}

/* 2. Rail Shell dimensions so station, LED screen, and master fit completely inside */
body[data-page="home"]:not(.theme-immersive) .toy-train-container,
body[data-page="home"]:not(.theme-immersive) .toy-train-container.full-screen-track {
    height: clamp(130px, 19.5vh, 165px) !important;
    min-height: 130px !important;
    max-height: 165px !important;
    overflow: hidden !important;
}

/* 3. Station background layer & cluster alignment (strictly behind the train at z-index: 3) */
.station-background-layer {
    height: 100% !important;
    align-items: flex-end !important;
    z-index: 3 !important;
}

.station-cluster {
    height: 100% !important;
    width: 320px !important;
    z-index: 3 !important;
}

/* 4. Digital Board Mounted Centrally Above Station Roof with Zero Platform Overlap */
.station-roof-flap-strip.digital-station-board,
.station-roof-flap-strip {
    top: 4px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 35 !important;
}

/* 5. Station Master speech bubble stays neatly above station master on Most Right */
.master-speech-bubble {
    bottom: 112px !important;
    top: auto !important;
    right: 36px !important;
    left: auto !important;
    transform: none !important;
    z-index: 25 !important;
}

/* ═══════════════════════════════════════════════════════════════
   OPTION 2: TOP SKY BAR + WIDE PLAYGROUND ARCHITECTURE
   ═══════════════════════════════════════════════════════════════ */

/* 1. TOP SKY BAR */
.opt2-sky-bar {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246,249,255,0.92));
    border-radius: 26px;
    padding: 7px 16px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 7px 16px rgba(59, 130, 246, 0.04), 0 2px 7px rgba(15, 23, 42, 0.025) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    margin-bottom: 12px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.app-header,
body[data-page="home"] .opt2-sky-bar {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246,249,255,0.92)) !important;
    border-radius: 26px !important;
    padding: 7px 16px 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    box-shadow: 0 7px 16px rgba(59, 130, 246, 0.04), 0 2px 7px rgba(15, 23, 42, 0.025) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    margin-bottom: 12px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: visible !important;
}

.sky-bar-shell {
    min-height: 56px;
    padding: 7px 16px 9px;
}

.app-header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.app-header-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
}

.app-header-brand-text {
    font-family: 'Fredoka', cursive;
    font-size: 20px;
    font-weight: 900;
    color: #FF6B6B;
    letter-spacing: 0.3px;
}

.app-header-controls,
.app-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.app-header-actions a,
.app-header-actions button {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-header-actions a:hover,
.app-header-actions button:hover {
    transform: translateY(-1px);
}

/* Shared shell baseline for the major app families */
body[data-page="home"] .page-content,
body[data-page="audio"] .page-content,
body[data-page="books"] .page-content,
body[data-page="videos"] .page-content,
body[data-page="games"] .page-content,
body[data-page="parents"] .page-content,
body[data-page="about"] .page-content,
body[data-page="legal"] .page-content,
body[data-page="contact"] .page-content,
body[data-page="terms"] .page-content,
body[data-page="privacy"] .page-content {
  max-width: var(--page-max-width);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

body[data-page="home"] .opt2-stage-card,
body[data-page="home"] .opt2-activities-card,
body[data-page="audio"] .station-bento-arena,
body[data-page="books"] .station-bento-arena,
body[data-page="videos"] .station-bento-arena,
body[data-page="games"] .station-bento-arena,
body[data-page="parents"] .layout-main-workspace,
body[data-page="about"] .layout-main-workspace,
body[data-page="legal"] .layout-main-workspace,
body[data-page="contact"] .layout-main-workspace,
body[data-page="terms"] .layout-main-workspace,
body[data-page="privacy"] .layout-main-workspace {
  background: var(--shell-surface);
  border: 1.5px solid var(--shell-border);
  border-radius: var(--shell-radius);
  box-shadow: var(--shell-shadow);
}

body[data-page="parents"] .parents-tabs,
body[data-page="parents"] .ptab-content,
body[data-page="about"] .content-body,
body[data-page="legal"] .content-body,
body[data-page="contact"] .content-body,
body[data-page="terms"] .content-body,
body[data-page="privacy"] .content-body {
  background: var(--shell-surface);
  border: 1.5px solid var(--shell-border);
  border-radius: var(--shell-radius);
  box-shadow: var(--shell-shadow);
}

body[data-page="parents"] .inner-page-header,
body[data-page="about"] .inner-page-header,
body[data-page="legal"] .inner-page-header,
body[data-page="contact"] .inner-page-header,
body[data-page="terms"] .inner-page-header,
body[data-page="privacy"] .inner-page-header {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,247,255,0.9));
  border: 1.5px solid var(--shell-border);
  border-radius: 999px;
  box-shadow: var(--shell-shadow);
}

body[data-page="parents"] .layout-main-workspace,
body[data-page="about"] .layout-main-workspace,
body[data-page="legal"] .layout-main-workspace,
body[data-page="contact"] .layout-main-workspace,
body[data-page="terms"] .layout-main-workspace,
body[data-page="privacy"] .layout-main-workspace {
  padding: var(--shell-padding);
}

/* Shared page rhythm: all major families keep the same breathing room */
body {
  background: var(--bg-page);
}

body[data-page="home"] .page-content,
body[data-page="audio"] .page-content,
body[data-page="books"] .page-content,
body[data-page="videos"] .page-content,
body[data-page="games"] .page-content,
body[data-page="parents"] .page-content,
body[data-page="about"] .page-content,
body[data-page="legal"] .page-content,
body[data-page="contact"] .page-content,
body[data-page="terms"] .page-content,
body[data-page="privacy"] .page-content {
  padding-top: 18px !important;
  padding-bottom: 22px !important;
}

body[data-page="home"] .page-content {
  padding-top: 20px !important;
}

body[data-page="parents"] .page-content,
body[data-page="about"] .page-content,
body[data-page="legal"] .page-content,
body[data-page="contact"] .page-content,
body[data-page="terms"] .page-content,
body[data-page="privacy"] .page-content {
  padding-top: 28px !important;
}

.opt2-island-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding-right: 8px;
}
.opt2-mascot-chip {
    width: auto;
    height: clamp(44px, 5.8vh, 52px);
    border-radius: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
    text-decoration: none;
    flex-shrink: 0;
    padding: 0;
}
.opt2-mascot-chip:hover { transform: scale(1.15) rotate(5deg); }
.opt2-mascot-img {
    width: auto;
    height: clamp(44px, 5.8vh, 52px);
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.18));
}
.opt2-brand-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 2px 10px 2px 2px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 211, 92, 0.15), rgba(155, 239, 203, 0.1));
}

/* Page Indicator Pill - In-flow Identity Badge */
.opt2-page-indicator-pill {
    position: static;
    background: linear-gradient(135deg, #0284C7, #0369A1);
    border: 1.5px solid #FFFFFF;
    color: #FFFFFF;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.opt2-page-pill-icon {
    font-size: 12px;
    line-height: 1;
}
.opt2-page-pill-text {
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.8px;
    line-height: 1;
}
.opt2-brand-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.opt2-logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
}
.opt2-sky-bar .brand-dev-title {
    font-family: 'Baloo 2', 'Fredoka', cursive, sans-serif !important;
    font-size: clamp(25px, 3.6vh, 32px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    letter-spacing: 0.3px !important;
    user-select: none !important;
    color: #7c3aed !important;
    text-shadow: 0 2px 0 rgba(255,255,255,0.94), 0 5px 12px rgba(124,58,237,0.14) !important;
}
.opt2-sky-bar .brand-dev-title .dev-char {
    display: inline-block !important;
    background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.08)) !important;
    transition: transform 0.15s ease !important;
}
.opt2-sky-bar .brand-dev-title .dev-char:hover {
    transform: translateY(-2px) scale(1.08) !important;
}

/* Canonical logo treatment for every shared sky bar. */
.app-header.opt2-sky-bar .brand-dev-title .dev-char {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
}
.app-header.opt2-sky-bar .brand-dev-title .dev-ba { color: #FF4757 !important; }
.app-header.opt2-sky-bar .brand-dev-title .dev-la { color: #FFA502 !important; }
.app-header.opt2-sky-bar .brand-dev-title .dev-vaa { color: #2ED573 !important; }
.app-header.opt2-sky-bar .brand-dev-title .dev-dee { color: #1E90FF !important; }
.opt2-passport-badge {
    background: linear-gradient(135deg, #fff8db, #fef3c7);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 5px 11px 5px 8px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #92400E;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(245, 158, 11, 0.1), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}
.opt2-passport-badge:hover {
    background: linear-gradient(135deg, #fef3c7, #facc15);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.16);
}
.opt2-passport-avatar { font-size: 14px; }
.opt2-passport-info {
    display: flex;
    gap: 4px;
    align-items: baseline;
}
.opt2-passport-name { font-weight: 800; }
.opt2-passport-level { color: #059669; font-weight: 900; }
.opt2-join-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 9.5px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.15s;
}
.opt2-join-btn:hover { transform: scale(1.05); }

/* Island 2: Discovery */
.opt2-island-discovery {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 520px;
    justify-content: center;
}
.opt2-age-pills {
    display: flex;
    gap: 3px;
    background: #F1F5F9;
    padding: 3px;
    border-radius: 999px;
    border: 1.5px solid #CBD5E1;
}
.opt2-age-pill {
    border: none;
    background: transparent;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #64748B;
    cursor: pointer;
    white-space: nowrap !important;
    transition: all 0.2s;
}
.opt2-age-pill.active {
    background: linear-gradient(135deg, #FFD166, #FBBF24);
    color: #2D3436;
    font-weight: 900;
    box-shadow: 0 2px 5px rgba(251, 191, 36, 0.24);
}
.opt2-search-input-wrap {
    flex: 1;
    max-width: 220px;
    position: relative;
}
.opt2-search-input {
    width: 100%;
    background: #F8FAFC;
    border: 1.5px solid #CBD5E1;
    border-radius: 999px;
    padding: 5px 28px 5px 12px;
    font-size: 11px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.opt2-search-input:focus { border-color: #3B82F6; background: #FFFFFF; }
.opt2-voice-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 13px;
    cursor: pointer;
    padding: 2px;
}

/* Island 3: Utility */
.opt2-island-utility {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.opt2-lang-group {
    display: flex;
    gap: 2px;
    background: #F1F5F9;
    padding: 2px;
    border-radius: 999px;
    border: 1.5px solid #CBD5E1;
}
.opt2-lang-pill {
    border: none;
    background: transparent;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    color: #64748B;
    cursor: pointer;
}
.opt2-lang-pill.active {
    background: linear-gradient(135deg, #FFD166, #FBBF24);
    color: #2D3436;
    font-weight: 900;
    box-shadow: 0 2px 5px rgba(251, 191, 36, 0.24);
}
.opt2-sound-btn {
    border: 1.5px solid #86EFAC;
    background: #DCFCE7;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, background 0.2s ease;
}
.opt2-sound-btn:hover {
    transform: scale(1.1);
}
.opt2-parents-pill {
    background: #EDE9FE;
    border: 1.5px solid #DDD6FE;
    color: #5B21B6;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.opt2-spin-pill {
    background: #FEE2E2;
    border: 1.5px solid #FECACA;
    color: #B91C1C;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    animation: spinWiggle 3s infinite ease-in-out;
}

/* 2. PLAYGROUND GRID */
.opt2-playground-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
    box-sizing: border-box;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   OPTION 2 CLEANUP & POLISH (DECLUTTERING & DE-CAGED HERO)
   ═══════════════════════════════════════════════════════════════ */

/* 1. Hide intrusive floating elements on homepage */
body[data-page="home"]:not(.theme-immersive) .quick-jump-container,
body[data-page="home"]:not(.theme-immersive) #mascot-companion-widget,
body[data-page="home"]:not(.theme-immersive) .mascot-companion-widget {
    display: none !important;
}

/* 2. Railway ground signal tooltip: show ONLY on hover */
.signal-tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
    pointer-events: none !important;
}
.ground-up-signal:hover .signal-tooltip,
.ground-up-signal:focus-within .signal-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 3. Logo Candy Colors across all bars */
.brand-dev-title .dev-ba  { color: #FF4757 !important; }
.brand-dev-title .dev-la  { color: #FFA502 !important; }
.brand-dev-title .dev-vaa { color: #2ED573 !important; }
.brand-dev-title .dev-dee { color: #1E90FF !important; }

/* 4. Slim Announcement Ribbon */
#announcement-bar {
    padding: 0 36px 0 16px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}
#announcement-bar.is-active {
    display: flex !important;
}
#announcement-bar a {
    color: #FEF08A !important;
    text-decoration: underline !important;
    font-weight: 900 !important;
    margin-left: 8px !important;
}
#announcement-bar button {
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 9px !important;
    background: rgba(0,0,0,0.2) !important;
    border-radius: 50% !important;
    border: none !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
}

/* 5. Left: Living Hero Stage Card (Clean, Open, De-caged) */
.opt2-stage-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border-radius: 18px;
    padding: 10px;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04) !important;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .toon-corner-section,
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .homepage-comic-wrap,
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .homepage-comic-strip-container,
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .homepage-comic-strip-wrap,
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hero-console-wrap {
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .homepage-comic-strip-img {
    max-height: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: 14px !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hoarding-arrow {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
    background: #FFFFFF !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    color: #475569 !important;
    backdrop-filter: none !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 15 !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hoarding-arrow:hover {
    background: #FFD166 !important;
    border-color: #E2B93B !important;
    color: #2D3436 !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 3px 8px rgba(255, 209, 102, 0.4) !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hoarding-arrow-left { left: 8px !important; }
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hoarding-arrow-right { right: 8px !important; }
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hero-stage-content,
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card #hero-stage-content-mount {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: calc(100% - 38px) !important;
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .deluxe-box {
    border: 2px solid #CBD5E1;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
    border-radius: var(--sec2-card-radius, 18px) !important;
    background: #FAFCFF;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card[data-shell-theme="clean_white"] .deluxe-box {
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card[data-shell-theme="warm_cream"] .deluxe-box {
    background: linear-gradient(180deg, #FFFDF9 0%, #FEF3C7 100%) !important;
    border: 2px solid #FDE68A !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .greeting-card-frame {
    border: 2px solid #FCD34D !important;
    border-radius: var(--sec2-card-radius, 18px) !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.18) !important;
    background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 50%, #FFEDD5 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 12px !important;
    position: relative !important;
    overflow: hidden !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .greeting-card-frame.has-custom-bg {
    background-image: var(--fest-img) !important;
    background-size: var(--greeting-img-fit, cover) !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #1E293B !important;
}
/* Prevent emoji garland, sparkles, and diyas from cluttering custom festival artwork unless explicitly enabled in Section 2.1 */
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .greeting-card-frame.has-custom-bg:not(.show-garland-on-img) .greeting-toran-garland {
    display: none !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .greeting-card-frame.has-custom-bg:not(.show-diyas-on-img) .festive-diya-row {
    display: none !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .greeting-card-frame.has-custom-bg:not(.show-sparkles-on-img) .greeting-sparkle-decor {
    display: none !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .greeting-card-frame.has-custom-bg.caption-style-hidden .greeting-center-headline {
    display: none !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .greeting-card-frame.has-custom-bg.caption-style-warm_pill .greeting-center-headline {
    bottom: 10px !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    background: rgba(255, 251, 235, 0.94) !important;
    border: 2px solid #F59E0B !important;
    color: #92400E !important;
    text-shadow: none !important;
    border-radius: 14px !important;
    padding: 8px 14px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25) !important;
}

.greeting-toran-garland {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    font-size: 15px;
    padding: 2px 0 6px;
    border-bottom: 1.5px dashed #FDE68A;
    user-select: none;
}

.greeting-festive-scene {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
    width: 100%;
    flex-wrap: wrap;
}

.festive-mascot-pod {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #FDE68A;
    border-radius: 14px;
    padding: 5px 8px;
    box-shadow: 0 3px 8px rgba(180, 83, 9, 0.12);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}
.festive-mascot-pod:hover {
    transform: translateY(-4px) scale(1.08);
    background: #FFFFFF;
    border-color: #F59E0B;
}
.festive-mascot-pod .fmp-avatar {
    font-size: 26px;
    line-height: 1.1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}
.festive-mascot-pod .fmp-tag {
    font-family: 'Baloo 2', 'Fredoka', sans-serif;
    font-size: 9.5px;
    font-weight: 800;
    color: #92400E;
    margin-top: 2px;
    white-space: nowrap;
}

.festive-diya-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
    width: 100%;
}
.festive-diya-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 18px;
    position: relative;
}
.festive-diya-item .diya-flame {
    font-size: 11px;
    position: absolute;
    top: -7px;
    animation: diyaFlicker 1.2s infinite ease-in-out alternate;
}
@keyframes diyaFlicker {
    0% { transform: scale(0.9) translateY(0); opacity: 0.8; }
    100% { transform: scale(1.25) translateY(-2px); opacity: 1; }
}
.festive-rangoli-center {
    font-family: 'Baloo 2', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #B45309;
    letter-spacing: 2px;
    background: rgba(254, 243, 199, 0.85);
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid #FCD34D;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .greeting-celebrate-btn {
    border: none !important;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3) !important;
    background: linear-gradient(135deg, #F97316, #EA580C) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    padding: 6px 20px !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .greeting-badge-pill {
    border: 1.5px solid #FED7AA !important;
    background: #FFF7ED !important;
    color: #C2410C !important;
    box-shadow: none !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .greeting-audio-btn {
    border: 1.5px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hero-tabs-carousel-wrapper {
    margin-bottom: 6px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hero-tabs-nav-arrow {
    background: #FFFFFF !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: #475569 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hero-tabs-nav-arrow:hover {
    background: #FFD166 !important;
    color: #2D3436 !important;
    border-color: #E2B93B !important;
    transform: scale(1.1) !important;
    box-shadow: 0 3px 8px rgba(255, 209, 102, 0.4) !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hero-tabs-header,
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hero-mode-tabs-bar {
    gap: 6px !important;
    padding: 1px 0 3px 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hero-tab-pill {
    height: var(--sec2-pill-height, 30px) !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1.5px solid #CBD5E1 !important;
    background: #FFFFFF !important;
    color: #475569 !important;
    font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transform: none !important;
    transition: all 0.15s ease !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hero-tab-pill:hover {
    background: #FFFEEA !important;
    color: #1E293B !important;
    border-color: #94A3B8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hero-tab-pill.active {
    background: #FFD166 !important;
    color: #2D3436 !important;
    border-color: #E2B93B !important;
    box-shadow: 0 2px 6px rgba(255, 209, 102, 0.35) !important;
    transform: none !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hero-tab-pill .tab-badge-count {
    background: rgba(0,0,0,0.15) !important;
    color: inherit !important;
}

/* 6. Right: Activity Arena Card */
.opt2-activities-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border-radius: 18px;
    padding: 10px;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04) !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.opt2-act-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 0 4px;
}
.opt2-act-title {
    font-size: 13px;
    font-weight: 900;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}
.opt2-act-spark-shelf {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Sleek inline spark shelf pills (Ergonomic child touch targets) */
body[data-page="home"]:not(.theme-immersive) .opt2-act-spark-shelf .spark-badge-btn {
    width: auto !important;
    height: 28px !important;
    max-height: 28px !important;
    min-height: 28px !important;
    border-radius: 999px !important;
    padding: 3px 12px !important;
    border: 1.5px solid #CBD5E1 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: #FFFFFF !important;
    color: #475569 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transform: none !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-act-spark-shelf .spark-badge-btn .badge-icon {
    font-size: 13px !important;
    line-height: 1 !important;
    filter: none !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-act-spark-shelf .spark-badge-btn .badge-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: inherit !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-act-spark-shelf .spark-badge-btn.badge-quiz {
    background: #FAF5FF !important;
    border-color: #E9D5FF !important;
    color: #7E22CE !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-act-spark-shelf .spark-badge-btn.badge-fact {
    background: #FEFCE8 !important;
    border-color: #FEF08A !important;
    color: #A16207 !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-act-spark-shelf .spark-badge-btn.badge-thought {
    background: #FFF1F2 !important;
    border-color: #FECDD3 !important;
    color: #BE123C !important;
}
body[data-page="home"]:not(.theme-immersive) .opt2-act-spark-shelf .spark-badge-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    background: #FFFEEA !important;
}

/* FORMAT A: 4x2 TOY APP TILES */
.opt2-app-grid-4x2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    box-sizing: border-box;
}
.opt2-app-tile {
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04), inset 0 1px 1px rgba(255,255,255,0.8);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-sizing: border-box;
    min-height: 0;
}
.opt2-app-tile:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.opt2-app-tile .tile-icon-img {
    height: clamp(32px, 6vh, 52px);
    width: clamp(32px, 6vh, 52px);
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.opt2-app-tile .tile-emoji {
    font-size: clamp(28px, 5.5vh, 44px);
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.opt2-app-tile .tile-title {
    font-size: clamp(9.5px, 1.3vh, 12px);
    font-weight: 900;
    margin-top: 3px;
    letter-spacing: 0.5px;
    text-align: center;
}
.tile-vid { background: linear-gradient(180deg, #FEE2E2, #FECACA); color: #B91C1C; border: 1.5px solid #FCA5A5; }
.tile-son { background: linear-gradient(180deg, #E0F2FE, #BAE6FD); color: #0284C7; border: 1.5px solid #7DD3FC; }
.tile-bok { background: linear-gradient(180deg, #DCFCE7, #BBF7D0); color: #16A34A; border: 1.5px solid #86EFAC; }
.tile-gam { background: linear-gradient(180deg, #FFEDD5, #FED7AA); color: #EA580C; border: 1.5px solid #FDBA74; }
.tile-drw { background: linear-gradient(180deg, #FCE7F3, #FBCFE8); color: #DB2777; border: 1.5px solid #F472B6; }
.tile-qiz { background: linear-gradient(180deg, #F3E8FF, #E9D5FF); color: #9333EA; border: 1.5px solid #C084FC; }
.tile-fun { background: linear-gradient(180deg, #FEF3C7, #FDE68A); color: #D97706; border: 1.5px solid #FCD34D; }
.tile-lrn { background: linear-gradient(180deg, #EDE9FE, #DDD6FE); color: #7C3AED; border: 1.5px solid #A78BFA; }

/* ═══════════════════════════════════════════════════════════════
   DYNAMIC MULTI-THEME ACTIVITY SHELL (5 OUT-OF-THE-BOX THEMES)
   1. Festive Sky Kites (पतंग महोत्सव)
   2. Toddler Craft & Sticker Board (कला बोर्ड)
   3. Floating Hot Air Balloons (उड़ते गुब्बारे)
   4. Musical Rainbow Xylophone (संगीतमय सुर)
   5. Balwadi Mela Carnival Stalls (बालवाड़ी मेला)
   ═══════════════════════════════════════════════════════════════ */

/* Dynamic Stage Container */
.opt2-theme-stage {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Shuffle Button */
.spark-badge-btn.badge-shuffle {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%) !important;
    border: 1.2px solid #C7D2FE !important;
    color: #4338CA !important;
    box-shadow: 0 1px 3px rgba(67, 56, 202, 0.12) !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}
.spark-badge-btn.badge-shuffle:hover {
    background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%) !important;
    color: #3730A3 !important;
    transform: translateY(-1px) scale(1.05) !important;
}
.spark-badge-btn.badge-shuffle.is-shuffling .badge-icon {
    display: inline-block;
    animation: diceSpin 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes diceSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ─────────────────────────────────────────────────────────────
   THEME 0: BALWADI PLAY CARDS (CLEAN TACTILE STALLS - FLAGSHIP)
   Adaptive grid: 1-4 items => 2x2, 5-6 items => 3x2, 7-9 items => 3x3
   ───────────────────────────────────────────────────────────── */
.act-theme-tiles {
    background: linear-gradient(180deg, #F8FBFF 0%, #EEF6FF 100%);
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    position: relative;
}
.tiles-play-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    align-items: stretch;
}
.tiles-play-grid[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
}
.tiles-play-grid[data-count="5"],
.tiles-play-grid[data-count="6"],
.tiles-play-grid[data-count="7"],
.tiles-play-grid[data-count="8"],
.tiles-play-grid[data-count="9"],
.tiles-play-grid[data-count="10"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.tile-stall-link {
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    min-height: 0;
    position: relative;
    border-radius: 20px;
    outline: none;
    container: stallcard / inline-size;
}
.tile-stall-link:focus-visible .play-stall-card {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
}
.play-stall-card {
    --act-color: #3B82F6;
    --act-shadow: #2563EB;
    height: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    background: linear-gradient(180deg, #FFFFFF 0%, color-mix(in srgb, var(--act-color) 10%, #FFFFFF) 100%);
    border: 2.5px solid color-mix(in srgb, var(--act-color) 32%, #E2E8F0);
    border-radius: 20px;
    box-shadow: 0 5px 0 color-mix(in srgb, var(--act-color) 35%, #CBD5E1), 0 8px 18px rgba(15, 23, 42, 0.06);
    padding: 12px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: clip;
}
.play-stall-card::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    block-size: 6px;
    background: linear-gradient(90deg, var(--act-color), var(--act-shadow));
}
.tile-stall-link:not(.is-disabled-activity):hover .play-stall-card {
    transform: translateY(-4px);
    border-color: var(--act-color);
    box-shadow: 0 9px 0 color-mix(in srgb, var(--act-color) 42%, #CBD5E1), 0 14px 24px rgba(15, 23, 42, 0.12);
}
.tile-stall-link:not(.is-disabled-activity):active .play-stall-card {
    transform: translateY(2px);
    box-shadow: 0 2px 0 color-mix(in srgb, var(--act-color) 35%, #CBD5E1);
}
.play-stall-medallion {
    inline-size: clamp(54px, 30cqi, 80px);
    block-size: clamp(54px, 30cqi, 80px);
    aspect-ratio: 1;
    border-radius: 20px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--act-color) 18%, #FFFFFF), color-mix(in srgb, var(--act-color) 30%, #FFFFFF));
    border: 2px solid color-mix(in srgb, var(--act-color) 30%, #FFFFFF);
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.85), 0 4px 10px color-mix(in srgb, var(--act-color) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 7px;
    box-sizing: border-box;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tile-stall-link:not(.is-disabled-activity):hover .play-stall-medallion {
    transform: scale(1.07) rotate(-2deg);
}
.play-stall-medallion img {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    max-inline-size: 100%;
    max-block-size: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.18));
}
.play-stall-emoji {
    font-size: clamp(30px, 18cqi, 44px);
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.16));
}
.play-stall-title {
    margin: 0;
    padding-block-end: 1px;
    font-family: 'Baloo 2', 'Fredoka', sans-serif;
    font-size: clamp(14px, 8.2cqi, 19px);
    font-weight: 900;
    line-height: 1.25;
    color: #1E293B;
    text-align: center;
    letter-spacing: 0.2px;
    max-inline-size: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.play-stall-sub {
    margin: 0;
    padding-block-end: 2px;
    font-size: clamp(10.5px, 5.2cqi, 12.5px);
    font-weight: 700;
    color: #64748B;
    text-align: center;
    line-height: 1.35;
    max-inline-size: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@container stallcard (inline-size < 145px) {
    .play-stall-card {
        padding: 8px 6px 7px;
        gap: 5px;
        border-radius: 16px;
    }
    .play-stall-medallion {
        inline-size: 52px;
        border-radius: 15px;
        padding: 5px;
    }
    .play-stall-sub {
        display: none;
    }
}
/* Sleek unified corner pill for Coming Soon across all themes */
.act-coming-soon-pill {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-end: 10px;
    z-index: 15;
    background: linear-gradient(135deg, #F59E0B, #EA580C);
    color: #FFFFFF;
    border: 1.5px solid #FEF08A;
    border-radius: 999px;
    padding: 2px 9px;
    font-family: 'Baloo 2', 'Fredoka', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.3px;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(234, 88, 12, 0.32);
    pointer-events: none;
}
.mela-stall-item .act-coming-soon-pill {
    inset-block-start: 22px;
    inset-inline-end: 6px;
    font-size: 9px;
    padding: 1px 7px;
}
.tile-stall-link.is-disabled-activity .play-stall-card {
    background: linear-gradient(180deg, #FFFDF7 0%, #FEF3C7 100%);
    border-style: dashed;
    border-color: #F59E0B;
    box-shadow: 0 4px 0 rgba(245, 158, 11, 0.28);
}
.tile-stall-link.is-disabled-activity .play-stall-medallion {
    filter: saturate(0.85);
}

/* Adaptive grid columns for legacy playful themes when <= 4 or <= 6 stations are active */
.kites-sky-grid[data-count="1"],
.craft-board-grid[data-count="1"],
.balloons-sky-grid[data-count="1"],
.mela-stalls-grid[data-count="1"] {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}
.kites-sky-grid[data-count="2"],
.kites-sky-grid[data-count="3"],
.kites-sky-grid[data-count="4"],
.craft-board-grid[data-count="2"],
.craft-board-grid[data-count="3"],
.craft-board-grid[data-count="4"],
.balloons-sky-grid[data-count="2"],
.balloons-sky-grid[data-count="3"],
.balloons-sky-grid[data-count="4"],
.mela-stalls-grid[data-count="2"],
.mela-stalls-grid[data-count="3"],
.mela-stalls-grid[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.kites-sky-grid[data-count="5"],
.kites-sky-grid[data-count="6"],
.craft-board-grid[data-count="5"],
.craft-board-grid[data-count="6"],
.balloons-sky-grid[data-count="5"],
.balloons-sky-grid[data-count="6"],
.mela-stalls-grid[data-count="5"],
.mela-stalls-grid[data-count="6"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* ─────────────────────────────────────────────────────────────
   THEME 1: FESTIVE SKY KITES (पतंग महोत्सव)
   ───────────────────────────────────────────────────────────── */
.act-theme-kites {
    background: linear-gradient(180deg, #7DD3FC 0%, #BAE6FD 45%, #E0F2FE 75%, #FEF3C7 100%);
    position: relative;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border-radius: 16px;
}
.act-theme-kites .sky-cloud-drift {
    position: absolute;
    background: rgba(255, 255, 255, 0.68);
    border-radius: 50px;
    filter: blur(0.5px);
    z-index: 1;
    pointer-events: none;
    animation: driftCloud 18s infinite linear alternate;
}
.act-theme-kites .sky-cloud-drift::before {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.68);
    width: 44px;
    height: 44px;
    top: -20px;
    left: 18px;
    border-radius: 50%;
}
.act-theme-kites .sky-cloud-drift::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.68);
    width: 32px;
    height: 32px;
    top: -12px;
    right: 14px;
    border-radius: 50%;
}
@keyframes driftCloud {
    0% { transform: translateX(-15px); }
    100% { transform: translateX(15px); }
}
.kites-sky-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px 10px;
    position: relative;
    z-index: 5;
    min-height: 0;
    align-items: center;
    justify-items: center;
}
.patang-kite-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}
.patang-kite-item:hover {
    transform: translateY(-4px) scale(1.05) !important;
    z-index: 10;
}
.patang-kite-item:active {
    transform: translateY(2px) scale(0.97) !important;
}
.patang-gem {
    width: clamp(66px, 7.6vh, 80px);
    height: clamp(66px, 7.6vh, 80px);
    transform: rotate(45deg);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 4px 0 #2D3436, 0 6px 14px rgba(0,0,0,0.14);
    overflow: hidden;
    border: 3px solid #2D3436;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.patang-kite-item:hover .patang-gem {
    width: clamp(66px, 7.6vh, 80px);
    height: clamp(66px, 7.6vh, 80px);
    transform: rotate(45deg);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 4px 0 #2D3436, 0 6px 14px rgba(0,0,0,0.14);
    overflow: hidden;
    border: 3px solid #2D3436;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.patang-kite-item:active .patang-gem {
    width: clamp(66px, 7.6vh, 80px);
    height: clamp(66px, 7.6vh, 80px);
    transform: rotate(45deg);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 4px 0 #2D3436, 0 6px 14px rgba(0,0,0,0.14);
    overflow: hidden;
    border: 3px solid #2D3436;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.patang-spine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2.5px;
    background: rgba(255,255,255,0.9);
    transform: translateX(-50%);
    z-index: 4;
}
.patang-bow {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    height: 80%;
    border: 2.5px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
    z-index: 4;
}
.patang-core {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-45deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.patang-core .pk-icon {
    font-size: clamp(28px, 3.4vh, 36px);
    line-height: 1;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}
.patang-core .pk-img {
    height: clamp(32px, 3.8vh, 42px) !important;
    width: clamp(32px, 3.8vh, 42px) !important;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.patang-core .pk-label {
    font-size: clamp(10px, 1.25vh, 11.5px);
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-shadow: 0 1.5px 0 #2D3436, 0 -1px 0 #2D3436, 1px 0 0 #2D3436, -1px 0 0 #2D3436;
    margin-top: 1px;
    white-space: nowrap !important;
    text-align: center;
    width: 140%;
    margin-left: -20%;
    overflow: visible !important;
}
.patang-tail-line {
    width: 2px;
    height: 10px;
    background: #2D3436;
    margin-top: 2px;
}
.patang-ribbon-bow {
    font-size: 13px;
    line-height: 1;
    margin-top: -4px;
    filter: drop-shadow(0 1px 0 #2D3436);
}

/* ─────────────────────────────────────────────────────────────
   THEME 2: TODDLER CRAFT & STICKER BOARD (कला बोर्ड)
   ───────────────────────────────────────────────────────────── */
.act-theme-craft {
    background: #FFFDF9;
    background-image: 
        radial-gradient(#CBD5E1 14%, transparent 15%),
        radial-gradient(#CBD5E1 14%, transparent 15%);
    background-size: 18px 18px;
    background-position: 0 0, 9px 9px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border-radius: 16px;
}
.craft-board-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 6px 10px;
    align-items: center;
    justify-items: center;
    min-height: 0;
}
.craft-board-grid[data-count="2"],
.craft-board-grid[data-count="3"],
.craft-board-grid[data-count="4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    gap: 18px 20px !important;
    padding: 16px 24px !important;
}
.craft-board-grid[data-count="2"] .craft-badge-item,
.craft-board-grid[data-count="3"] .craft-badge-item,
.craft-board-grid[data-count="4"] .craft-badge-item {
    transform: scale(1.18);
}
.craft-board-grid .act-coming-soon-pill,
.craft-badge-item .act-coming-soon-pill {
    inset-block-start: -8px !important;
    inset-inline-end: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 8.5px !important;
    padding: 2px 7px !important;
    max-width: 112px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
/* Prevent Railway Signal from overlapping Station Resting card on Phase 0 homepage */
.station-resting-track-scene .resting-platform-card {
    margin-left: 78px !important;
    max-width: 440px !important;
    padding: 8px 14px !important;
}
/* Keep PF 1 board above the caboose NEXT STOP badge cleanly */
.toy-train-container .caboose-next-stop-btn,
.toy-train-container .next-stop-pill {
    margin-top: 16px !important;
}
/* Phase 0 Pre-Launch Clean Gating (Site-Wide): hide Quests, Search, Sign In, Daily Star, Worksheets link */
body.balwadi-phase0-prelaunch #daily-growth-quest-btn,
body.balwadi-phase0-prelaunch .opt2-island-discovery,
body.balwadi-phase0-prelaunch #profile-btn,
body.balwadi-phase0-prelaunch #panel-launcher-fact,
body.balwadi-phase0-prelaunch .opt2-act-spark-shelf,
body.balwadi-phase0-prelaunch .bottom-nav,
body.balwadi-phase0-prelaunch .legal-worksheets-link,
body.balwadi-phase0-prelaunch .legal-worksheets-sep {
    display: none !important;
}
/* Mobile Responsive Fix for Phase 0 Pre-Launch Homepage (Zero Clipping, Zero Overlap) */
@media (max-width: 768px) {
    html:has(body.balwadi-phase0-prelaunch),
    body.balwadi-phase0-prelaunch,
    body.balwadi-phase0-prelaunch .inner-page,
    body.balwadi-phase0-prelaunch .page-content {
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    body.balwadi-phase0-prelaunch .opt2-playground-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        height: auto !important;
        min-height: 0 !important;
        flex: none !important;
    }
    body.balwadi-phase0-prelaunch .opt2-stage-card,
    body.balwadi-phase0-prelaunch .opt2-activities-card,
    body.balwadi-phase0-prelaunch .homepage-comic-wrap,
    body.balwadi-phase0-prelaunch .hero-custom-mode-stage,
    body.balwadi-phase0-prelaunch .opt2-theme-stage {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        flex: none !important;
    }
    body.balwadi-phase0-prelaunch .phase0-welcome-card {
        padding: 18px 16px !important;
        gap: 10px !important;
    }
    body.balwadi-phase0-prelaunch .phase0-welcome-card img {
        width: 92px !important;
        height: 92px !important;
    }
    body.balwadi-phase0-prelaunch .phase0-welcome-card .deluxe-title {
        font-size: 21px !important;
    }
    body.balwadi-phase0-prelaunch .phase0-welcome-card .deluxe-desc {
        font-size: 13.5px !important;
    }
    body.balwadi-phase0-prelaunch #balwadi-teaser-video-slot {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: 185px !important;
    }
    body.balwadi-phase0-prelaunch .opt2-parents-pill .dock-btn-text {
        display: inline !important;
    }
    body.balwadi-station-resting .toy-train-container {
        height: 124px !important;
        min-height: 124px !important;
        margin-bottom: 14px !important;
    }
    body.balwadi-station-resting .station-resting-track-scene .resting-platform-card {
        margin-left: 52px !important;
        margin-right: 52px !important;
        max-width: calc(100% - 104px) !important;
        padding: 6px 10px !important;
        gap: 8px !important;
    }
    body.balwadi-station-resting .resting-train-svg-wrap {
        width: 64px !important;
        min-width: 64px !important;
    }
    body.balwadi-station-resting .resting-title {
        font-size: 12.5px !important;
    }
    body.balwadi-station-resting .resting-desc {
        font-size: 10.5px !important;
        line-height: 1.25 !important;
    }
    body.balwadi-station-resting .resting-speech-pill,
    body.balwadi-station-resting .mobile-train-horn-btn,
    body.balwadi-station-resting .mobile-train-fs-btn,
    body.balwadi-station-resting #mobileTrainHornBtn,
    body.balwadi-station-resting #mobileTrainFsBtn {
        display: none !important;
    }
}
.craft-badge-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.craft-badge-item:hover {
    transform: translateY(-6px) scale(1.08) !important;
    z-index: 10;
}
.washi-strip {
    position: absolute;
    top: -6px;
    width: 32px;
    height: 9px;
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    z-index: 5;
    opacity: 0.85;
}
/* 1. Polaroid snap for Videos */
.craft-polaroid {
    width: 88%;
    max-width: 130px;
    background: #FFFFFF;
    padding: 4px 4px 6px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}
.craft-polaroid .photo-screen {
    background: #FFE4E6;
    width: 100%;
    height: clamp(50px, 6.2vh, 66px);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.craft-polaroid .photo-cap {
    font-size: clamp(12px, 1.5vh, 14px);
    font-weight: 900;
    color: #E11D48;
    margin-top: 4px;
}
/* 2. Pin badge for Songs */
.craft-round-badge {
    width: clamp(74px, 8.8vh, 94px);
    height: clamp(74px, 8.8vh, 94px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #60A5FA 0%, #2563EB 70%, #1D4ED8 100%);
    box-shadow: 0 6px 16px rgba(37,99,235,0.28), inset -2px -2px 6px rgba(0,0,0,0.3), inset 2px 2px 6px rgba(255,255,255,0.8);
    border: 3px solid #EFF6FF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFF;
}
.craft-round-badge .rb-label {
    font-size: clamp(12px, 1.5vh, 14px);
    font-weight: 900;
    margin-top: 2px;
    letter-spacing: 0.5px;
}
/* 3. Bookmark ribbon for Books */
.craft-bookmark {
    background: #10B981;
    width: clamp(72px, 8.5vh, 92px);
    height: clamp(74px, 8.8vh, 96px);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 6px 16px rgba(16,185,129,0.25);
    border: 2px solid #ECFDF5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #FFF;
}
.craft-bookmark::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 36px solid #10B981;
    border-right: 36px solid #10B981;
    border-bottom: 10px solid transparent;
}
/* 4. Arcade Gold Token for Games */
.craft-token {
    width: clamp(74px, 8.8vh, 94px);
    height: clamp(74px, 8.8vh, 94px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FDE047 0%, #F59E0B 70%, #D97706 100%);
    border: 3px dashed #FFF;
    box-shadow: 0 6px 16px rgba(217,119,6,0.28), inset 0 0 8px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #78350F;
}
/* 5. Artist Palette Cutout for Draw */
.craft-cutout-draw {
    background: #FDF2F8;
    border: 2px solid #F472B6;
    border-radius: 16px;
    width: clamp(74px, 8.8vh, 94px);
    height: clamp(72px, 8.5vh, 92px);
    box-shadow: 0 6px 14px rgba(244,114,182,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* 6. Puzzle Piece for Quiz */
.craft-puzzle {
    background: #F3E8FF;
    border: 2px solid #A855F7;
    border-radius: 16px;
    width: clamp(74px, 8.8vh, 94px);
    height: clamp(72px, 8.5vh, 92px);
    box-shadow: 0 6px 14px rgba(168,85,247,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* 7. Star Badge for Fun */
.craft-star {
    background: radial-gradient(circle at 35% 30%, #FEF08A 0%, #EAB308 100%);
    border-radius: 18px;
    width: clamp(74px, 8.8vh, 94px);
    height: clamp(72px, 8.5vh, 92px);
    box-shadow: 0 6px 16px rgba(234,179,8,0.3);
    border: 2px solid #FEF9C3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #713F12;
}
/* 8. Achievement Tag for Learn */
.craft-tag {
    background: #CCFBF1;
    border: 2px solid #14B8A6;
    border-radius: 14px;
    width: clamp(74px, 8.8vh, 94px);
    height: clamp(72px, 8.5vh, 92px);
    box-shadow: 0 6px 14px rgba(20,184,166,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.craft-badge-item img {
    height: clamp(38px, 4.8vh, 52px) !important;
    width: clamp(38px, 4.8vh, 52px) !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)) !important;
}
.craft-badge-item div {
    font-size: clamp(12px, 1.5vh, 14px) !important;
    font-weight: 900 !important;
}

/* ─────────────────────────────────────────────────────────────
   THEME 3: FLOATING HOT AIR BALLOONS (उड़ते गुब्बारे)
   ───────────────────────────────────────────────────────────── */
.act-theme-balloons {
    background: linear-gradient(180deg, #BAE6FD 0%, #E0F2FE 55%, #F0FDFA 100%);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    position: relative;
}
.balloons-sky-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px 10px;
    position: relative;
    z-index: 5;
    min-height: 0;
    align-items: center;
    justify-items: center;
}
.balloon-ride-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    animation: floatBalloon 3s ease-in-out infinite alternate;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.balloon-ride-item:hover {
    transform: translateY(-8px) scale(1.08) !important;
    z-index: 10;
}
.balloon-globe {
    width: clamp(52px, 6.2vh, 66px);
    height: clamp(56px, 6.6vh, 70px);
    border-radius: 50% 50% 46% 46%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15), inset -2px -2px 5px rgba(0,0,0,0.12), inset 2px 2px 6px rgba(255,255,255,0.7);
    transition: box-shadow 0.2s;
}
.balloon-globe img {
    height: clamp(34px, 4vh, 42px) !important;
    width: clamp(34px, 4vh, 42px) !important;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.balloon-ride-item:hover .balloon-globe {
    width: clamp(52px, 6.2vh, 66px);
    height: clamp(56px, 6.6vh, 70px);
    border-radius: 50% 50% 46% 46%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15), inset -2px -2px 5px rgba(0,0,0,0.12), inset 2px 2px 6px rgba(255,255,255,0.7);
    transition: box-shadow 0.2s;
}
.balloon-globe::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 4px;
    border-radius: 2px;
    background: inherit;
    filter: brightness(0.88);
}
.balloon-string {
    width: 1.5px;
    height: 10px;
    background: #94A3B8;
    margin-top: 2px;
}
.balloon-basket {
    background: #78350F;
    color: #FFF;
    font-size: clamp(11.5px, 1.4vh, 13px);
    font-weight: 900;
    padding: 3px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    border: 1px solid #92400E;
    margin-top: -2px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap !important;
    overflow: visible !important;
    max-width: 140px !important;
    text-align: center;
    box-sizing: border-box;
}
@keyframes floatBalloon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* ─────────────────────────────────────────────────────────────
   THEME 4: MUSICAL RAINBOW XYLOPHONE (संगीतमय सुर)
   ───────────────────────────────────────────────────────────── */
.act-theme-xylophone {
    background: linear-gradient(180deg, #FFFDF8 0%, #FFF5EB 100%);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    position: relative;
}
.xylo-bed {
    flex: 1 1 auto;
    background: #EEDCC6;
    border-radius: 14px;
    border: 2px solid #D7BA97;
    box-shadow: inset 0 3px 8px rgba(100,50,0,0.15);
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    min-height: 0;
    box-sizing: border-box;
}
.xylo-key {
    flex: 1 1 0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px 2px;
    box-sizing: border-box;
    color: #FFF;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 0 rgba(0,0,0,0.16), 0 6px 12px rgba(0,0,0,0.12);
    transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.12s;
    min-width: 0;
}
.xylo-key:hover, .xylo-key:active {
    transform: translateY(-4px) scale(1.04) !important;
    filter: brightness(1.1);
    box-shadow: 0 8px 0 rgba(0,0,0,0.14), 0 10px 18px rgba(0,0,0,0.18);
    z-index: 5;
}
.xylo-key.is-playing {
    transform: scale(0.96) translateY(2px) !important;
    filter: brightness(1.25);
}
.xylo-pin {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFFFFF 30%, #94A3B8 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    flex-shrink: 0;
}
.xylo-key .xk-icon {
    font-size: clamp(26px, 3.8vh, 38px);
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.xylo-key .xk-label {
    font-size: clamp(9.5px, 1.15vh, 11px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    writing-mode: vertical-rl !important;
    text-orientation: mixed;
    transform: rotate(180deg) !important;
    margin: 4px auto;
    text-align: center;
    white-space: nowrap;
    max-height: 75px;
}

/* ─────────────────────────────────────────────────────────────
   THEME 5: BALWADI MELA CARNIVAL STALLS (बालवाड़ी मेला)
   ───────────────────────────────────────────────────────────── */
.act-theme-mela {
    background: linear-gradient(180deg, #FEF3C7 0%, #FFFBEB 45%, #F0FDF4 100%);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    position: relative;
}
.mela-bunting-row {
    display: flex;
    justify-content: space-around;
    padding: 0 10px;
    font-size: 14px;
    letter-spacing: 4px;
    line-height: 1;
    margin-bottom: 4px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.mela-stalls-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 6px 10px;
    align-items: stretch;
    min-height: 0;
}
.mela-stall-item {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    cursor: pointer;
    background: #FFFFFF;
    border-radius: 14px;
    border: 1.5px solid #FDE68A;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
    padding-bottom: 4px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mela-stall-item:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    border-color: #F59E0B;
}
.mela-awning {
    width: 100%;
    height: clamp(16px, 2.2vh, 22px);
    background-size: 14px 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}
.mela-awning::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: radial-gradient(circle, #FFFFFF 60%, transparent 62%);
    background-size: 10px 8px;
    background-repeat: repeat-x;
}
.mela-stall-body {
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
}
.mela-stall-body img {
    height: clamp(38px, 4.8vh, 52px) !important;
    width: clamp(38px, 4.8vh, 52px) !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)) !important;
}
.mela-stall-body .ms-icon {
    font-size: clamp(28px, 4vh, 38px);
    line-height: 1;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}
.mela-stall-body .ms-label {
    width: 100%;
    max-width: 100% !important;
    text-align: center;
    font-size: clamp(11.5px, 1.4vh, 13px);
    font-weight: 900;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCTION FLUID CANVAS ARCHITECTURE (ALL PLATFORMS & VIEWPORTS)
   - Zero Dead Space
   - Zero Overflows
   - Strict Rectilinear Alignment (Train Left = Edge Left, Train Right = Edge Right)
   - 100% Equal Height Across Living Playground
   - Self-Contained Station, Master, Engine, Wagons & Single Track
   - Cleanly Grounded Child-Safe Legal Bar
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 900px) {
    html {
        overflow: hidden !important;
        height: 100% !important;
    }
    body, body[data-page="home"]:not(.theme-immersive) {
        height: 100vh !important;
        max-height: 100vh !important;
        min-height: 100vh !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #announcement-bar {
        flex-shrink: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    body[data-page="home"]:not(.theme-immersive) #page-content {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: clamp(3px, 0.8vh, 8px) 14px clamp(3px, 0.8vh, 8px) 14px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       OPTION 2 FORMAT A: 100vh FLUID LAYOUT
       ═══════════════════════════════════════════════════════════════ */
    
    /* Top Sky Bar */
    body[data-page="home"]:not(.theme-immersive) .opt2-sky-bar {
        flex: 0 0 auto !important;
        height: clamp(48px, 7.5vh, 58px) !important;
        padding: clamp(3px, 0.7vh, 6px) clamp(10px, 1.2vw, 18px) !important;
        margin-bottom: clamp(6px, 1vh, 10px) !important;
        box-sizing: border-box !important;
    }

      /* Canonical desktop sky bar dimensions for every production page. */
      .app-header.opt2-sky-bar {
        flex: 0 0 auto !important;
        height: clamp(48px, 7.5vh, 58px) !important;
        min-height: 48px !important;
        padding: clamp(3px, 0.7vh, 6px) clamp(10px, 1.2vw, 18px) !important;
        margin-bottom: clamp(6px, 1vh, 10px) !important;
        box-sizing: border-box !important;
      }

      .app-header.opt2-sky-bar .brand-dev-title {
        font-family: 'Baloo 2', 'Fredoka', cursive, sans-serif !important;
        font-size: clamp(25px, 3.6vh, 32px) !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        letter-spacing: 0.3px !important;
      }
    
    /* Central 2-Column Playground (Hero 55% + Activities 45%) */
    body[data-page="home"]:not(.theme-immersive) .opt2-playground-grid {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: clamp(8px, 1.2vw, 14px) !important;
        align-items: stretch !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Hero Stage Card */
    body[data-page="home"]:not(.theme-immersive) .opt2-stage-card {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        padding: clamp(6px, 1vh, 12px) !important;
    }
    body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .toon-corner-section,
    body[data-page="home"]:not(.theme-immersive) .opt2-stage-card .hero-console-wrap {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        flex: 1 1 auto !important;
    }
    
    /* Activity Arena Card */
    body[data-page="home"]:not(.theme-immersive) .opt2-activities-card {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: clamp(6px, 1vh, 12px) !important;
        overflow: hidden !important;
    }
    body[data-page="home"]:not(.theme-immersive) .opt2-act-header {
        flex: 0 0 auto !important;
        height: clamp(22px, 3.2vh, 30px) !important;
    }
    body[data-page="home"]:not(.theme-immersive) .opt2-app-grid-4x2 {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: clamp(4px, 0.8vh, 8px) !important;
        align-content: stretch !important;
    }
    body[data-page="home"]:not(.theme-immersive) .opt2-app-tile {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: clamp(3px, 0.6vh, 6px) !important;
        border-radius: clamp(8px, 1.4vh, 14px) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        gap: clamp(2px, 0.5vh, 4px) !important;
    }
    body[data-page="home"]:not(.theme-immersive) .opt2-app-tile .tile-icon-img {
        height: clamp(30px, 6.5vh, 52px) !important;
        width: clamp(30px, 6.5vh, 52px) !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)) !important;
        margin: 0 !important;
    }
    body[data-page="home"]:not(.theme-immersive) .opt2-app-tile .tile-emoji {
        font-size: clamp(26px, 5.5vh, 44px) !important;
        line-height: 1 !important;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)) !important;
    }
    body[data-page="home"]:not(.theme-immersive) .opt2-app-tile .tile-title {
        font-size: clamp(9.5px, 1.4vh, 12px) !important;
        font-weight: 900 !important;
        letter-spacing: 0.5px !important;
        line-height: 1.15 !important;
        text-transform: uppercase !important;
    }
    
    /* Train Section: Clamped Proportional Height & Perfect Left/Right Alignment */
    body[data-page="home"]:not(.theme-immersive) .toy-train-container,
    body[data-page="home"]:not(.theme-immersive) .toy-train-container.full-screen-track {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: clamp(6px, 1.2vh, 12px) !important;
        margin-bottom: 0 !important;
        height: clamp(130px, 19.5vh, 165px) !important;
        min-height: 130px !important;
        max-height: 165px !important;
        position: relative !important;
        overflow: hidden !important;
        border: 1.5px solid #CBD5E1 !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    }
    body[data-page="home"]:not(.theme-immersive) .toy-train-viewport,
    body[data-page="home"]:not(.theme-immersive) .toy-train-container.full-screen-track .toy-train-viewport {
        height: 100% !important;
        min-height: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
    }
    body[data-page="home"]:not(.theme-immersive) .toy-train-viewport::-webkit-scrollbar {
        display: none !important;
    }
    .station-cluster { height: 100% !important; }
    .station-roof-flap-strip { top: 4px !important; left: 50% !important; right: auto !important; transform: translateX(-50%) !important; z-index: 35 !important; }
    .master-speech-bubble { bottom: 112px !important; top: auto !important; right: 36px !important; left: auto !important; font-size: clamp(9px, 1.2vh, 11px) !important; z-index: 25 !important; }
    body[data-page="home"]:not(.theme-immersive) .toy-train-viewport .toy-train-track {
        transform: none !important;
        padding-bottom: 0px !important;
    }
    .silver-track-bed {
        bottom: 0 !important;
        height: 16px !important;
        z-index: 5 !important;
    }
    
    /* Legal Footer: Cleanly Anchored Above Bottom with Zero Dead Space */
    .app-legal-footer {
        flex: 0 0 auto !important;
        margin-top: clamp(2px, 0.6vh, 6px) !important;
        margin-bottom: clamp(2px, 0.6vh, 6px) !important;
        padding: 2px 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .legal-footer-links {
        padding: 2px 12px !important;
        gap: clamp(6px, 1vw, 12px) !important;
    }
    .legal-link-item { font-size: clamp(9px, 1.2vh, 11px) !important; }
    .legal-footer-copy { font-size: clamp(7.5px, 1vh, 9.5px) !important; }
}

/* Fallback for very small height screens (<= 420px): Allow smooth vertical scroll */
@media (max-height: 420px) {
    html, body, body[data-page="home"]:not(.theme-immersive) {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100% !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   UNIVERSAL SSOT TOP SKY BAR & RETIREMENT OF LEFT SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.two-col-layout:has(.layout-sidebar:empty),
.two-col-layout:not(:has(.layout-sidebar)) {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 0 !important;
}

body:not([data-page="home"]) .layout-sidebar:empty {
    display: none !important;
}

body:not([data-page="home"]) .layout-main-workspace {
    width: 100% !important;
    max-width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════════
   HUB CONCEPT B: DISCOVERY ISLAND (STRICT 100VH ZERO-SCROLL)
   ═══════════════════════════════════════════════════════════════ */
body[data-page="hub"] {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

body[data-page="hub"] .page-content.inner-page {
    height: 100vh !important;
    max-height: 100vh !important;
    padding: 10px 18px 12px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Row 2: Fast-Hop World Explorer Bar */
.hub-fasthop-pill-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: 2.5px solid #2D3436 !important;
    border-radius: 999px;
    padding: 4px 12px;
    box-shadow: 0 3px 0 #2D3436 !important;
    flex-shrink: 0;
}

.hub-fasthop-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display, 'Fredoka', cursive);
    font-size: 11px;
    font-weight: 900;
    color: #2D3436;
    letter-spacing: 0.5px;
    padding-left: 4px;
    white-space: nowrap;
}

.hub-fasthop-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.hub-fasthop-scroll::-webkit-scrollbar {
    display: none;
}

.hub-world-pill {
    text-decoration: none;
    padding: 4px 14px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 2px solid #2D3436 !important;
    color: #2D3436;
    font-family: var(--font-display, 'Fredoka', cursive);
    font-weight: 900;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 0 #2D3436;
    transition: all 0.15s ease;
}
.hub-world-pill:hover {
    background: #FFFEEA;
    border-color: #2D3436;
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #2D3436;
}
.hub-world-pill.active {
    background: #FFD166;
    border: 2px solid #2D3436 !important;
    color: #2D3436;
    font-weight: 900;
    box-shadow: 0 2.5px 0 #2D3436;
}

/* Row 3: Panoramic 2-Column Discovery Arena */
.hub-discovery-arena {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Left Column: Theme Tower */
.hub-theme-tower {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    min-height: 0;
    justify-content: flex-start;
}

.hub-tower-hero {
    border: 2.5px solid #2D3436;
    border-radius: 18px;
    box-shadow: 0 4px 0 #2D3436;
    padding: 10px 14px;
    color: #FFFFFF;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.hub-tower-mascot {
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    margin-bottom: 4px;
}

.hub-tower-title {
    font-family: var(--font-display, 'Fredoka', cursive);
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 2px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hub-tower-desc {
    font-family: var(--font-body, 'Nunito', sans-serif);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    opacity: 0.95;
    margin: 0;
}

/* Mini Quest Pass */
.hub-mini-quest-card {
    flex: 1 1 auto;
    min-height: 0;
    background: #FFFFFF;
    border: 2.5px solid #2D3436;
    border-radius: 18px;
    box-shadow: 0 4px 0 #2D3436;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
}

.hub-mini-quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hub-mini-quest-title {
    font-family: var(--font-display, 'Fredoka', cursive);
    font-size: 11.5px;
    font-weight: 900;
    color: #2D3436;
}
.hub-mini-quest-badge {
    font-size: 10px;
    font-weight: 800;
    background: #FEF3C7;
    color: #B45309;
    border: 1.5px solid #F59E0B;
    padding: 1px 7px;
    border-radius: 999px;
}

.hub-mini-quest-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hub-quest-row {
    border-radius: 8px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.1s;
}
.hub-quest-row:hover {
    transform: translateX(2px);
}
.hub-quest-row.step-done {
    background: #ECFDF5;
    border: 1.5px solid #10B981;
    color: #065F46;
}
.hub-quest-row.step-active {
    background: #EFF6FF;
    border: 1.5px solid #3B82F6;
    color: #1E40AF;
}
.hub-quest-row.step-locked {
    background: #F8FAFC;
    border: 1.5px solid #CBD5E1;
    color: #64748B;
}

/* Right Column: 2-Row Bento Arena */
.hub-bento-arena {
    background: #FFFFFF;
    border: 2.5px solid #2D3436;
    border-radius: 20px;
    box-shadow: 0 4px 0 #2D3436;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    box-sizing: border-box;
}

.hub-bento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.hub-bento-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.hub-bento-tabs::-webkit-scrollbar {
    display: none;
}

.hub-bento-tab-btn {
    border: 2px solid #2D3436 !important;
    border-radius: 999px;
    background: #FFFFFF;
    font-family: var(--font-display, 'Fredoka', cursive);
    font-weight: 900;
    font-size: 12px;
    padding: 4px 14px;
    color: #2D3436;
    box-shadow: 0 2px 0 #2D3436;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.hub-bento-tab-btn:hover {
    background: #FFFEEA;
    box-shadow: 0 3px 0 #2D3436;
    transform: translateY(-1px);
}
.hub-bento-tab-btn.active {
    border: 2px solid #2D3436 !important;
    background: #FFD166;
    color: #2D3436;
    font-weight: 900;
    box-shadow: 0 2.5px 0 #2D3436;
}

.hub-bento-arrows {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.hub-bento-arrow-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #2D3436;
    background: #FFD166;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 0 #2D3436;
    transition: transform 0.1s;
}
.hub-bento-arrow-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}
.hub-bento-arrow-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

/* 2-Row 4-Column Bento Shelf (8 Cards simultaneously with zero scroll) */
.hub-bento-grid-2row {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    overflow: hidden;
}

.hub-bento-card {
    background: #F8FAFC;
    border: 2px solid #2D3436;
    border-radius: 14px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2.5px 0 #2D3436;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.hub-bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4.5px 0 #2D3436;
}

.hub-bento-thumb-wrap {
    height: 60%;
    border-radius: 8px;
    overflow: hidden;
    background: #E2E8F0;
    position: relative;
}
.hub-bento-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hub-bento-type-badge {
    position: absolute;
    top: 3px;
    left: 3px;
    background: rgba(255,255,255,0.92);
    border-radius: 4px;
    font-size: 10px;
    padding: 1px 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hub-bento-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hub-bento-title {
    font-family: var(--font-display, 'Fredoka', cursive);
    font-size: 11.5px;
    font-weight: 900;
    color: #2D3436;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.hub-bento-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}
.hub-bento-lang {
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
}
.hub-bento-play-btn {
    border: 1px solid #047857;
    background: #10B981;
    color: #FFF;
    font-family: var(--font-display, 'Fredoka', cursive);
    font-weight: 900;
    font-size: 10px;
    padding: 1px 8px;
    border-radius: 999px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM ACTIVITY PAGES REDESIGN (ZERO-SCROLL & HARMONIZED BENTO)
   ═══════════════════════════════════════════════════════════════ */
body.videos-page {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

body.videos-page .page-content.inner-page {
    height: 100vh !important;
    max-height: 100vh !important;
    padding: 10px 18px 8px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

body.videos-page .layout-main-workspace {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    gap: 6px !important;
}

/* 1. Ergonomic Station Banner Card (Compact & Vibrantly Framed) */
.station-banner-card {
    padding: 6px 18px !important;
    min-height: 52px !important;
    margin-bottom: 4px !important;
    border-radius: 16px !important;
}
.station-banner-card h1 {
    font-size: 18px !important;
    margin-bottom: 2px !important;
}
.station-banner-card p {
    font-size: 11px !important;
}
.station-banner-badge {
    font-size: 32px !important;
}

/* 2. Category Pill Bar (Unified Padding & Snappy Touch) */
.learn-cat-bar-wrapper {
    margin-bottom: 4px !important;
}
.learn-cat-pill {
    padding: 4px 14px !important;
    font-size: 11.5px !important;
}

/* 3. Carousel Track (Perfect 2-Row 5-Column Display) */
.learn-carousel-wrapper {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin-top: 2px !important;
}

.learn-carousel-track {
    grid-template-rows: repeat(2, minmax(130px, 150px)) !important;
    grid-auto-columns: minmax(190px, 215px) !important;
    gap: 10px 12px !important;
    padding: 4px 2px 8px 2px !important;
    height: 100% !important;
}

/* 4. Modern High-Density Video Bento Card (16:9 Full Bleed + Snug Footer) */
.station-bento-card {
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    text-align: left !important;
}

.station-card-thumb-stage {
    position: relative !important;
    width: 100% !important;
    flex: 1 1 66% !important;
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    background: #000000 !important;
    overflow: hidden !important;
    border: none !important;
    display: block !important;
}

.station-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.station-bento-card:hover .station-card-img {
    transform: scale(1.06) !important;
}

.station-card-top-badges {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    right: 6px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.station-card-emoji-badge {
    position: static !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    font-family: 'Fredoka', 'Baloo 2', sans-serif !important;
    line-height: 1.2 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #1E293B !important;
    border-radius: 6px !important;
    padding: 2px 7px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.station-card-duration-badge {
    position: static !important;
    background: rgba(15, 23, 42, 0.85) !important;
    color: #FFFFFF !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    font-family: 'Fredoka', monospace !important;
}

.station-card-play-overlay {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(15, 23, 42, 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease !important;
    z-index: 1 !important;
}

.station-bento-card:hover .station-card-play-overlay {
    opacity: 1 !important;
    background: rgba(15, 23, 42, 0.28) !important;
}

.station-card-play-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0284C7 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    padding-left: 3px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), 0 0 0 1.5px rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transform: scale(0.85) !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.station-bento-card:hover .station-card-play-icon {
    transform: scale(1.1) !important;
    background: #0284C7 !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45) !important;
}

.station-card-footer-stage {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 10px 8px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 0 0 72px !important;
    height: 72px !important;
    min-height: 72px !important;
    background: #FFFFFF !important;
}

.station-card-title {
    font-family: 'Fredoka', 'Baloo 2', cursive !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #1E293B !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    text-align: left !important;
}

.station-card-meta-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 3px !important;
    font-size: 10.5px !important;
    color: #64748B !important;
}

.station-card-channel-label {
    font-weight: 700 !important;
    color: #64748B !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 110px !important;
}

.station-card-tts-btn {
    border: none !important;
    background: #F1F5F9 !important;
    color: #059669 !important;
    border-radius: 999px !important;
    padding: 2px 7px !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    font-family: 'Fredoka', sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    cursor: pointer !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.station-card-tts-btn:hover {
    background: #10B981 !important;
    color: #FFFFFF !important;
}

/* ── Audio Card Specific Styles (Unified Sound-Wave Equalizer Pill) ── */
.station-audio-stage {
    background: #000000 !important;
    position: relative !important;
    overflow: hidden !important;
}

.station-audio-fallback-stage {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, #064E3B, #047857) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1 !important;
}

.station-fallback-equalizer {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 5px !important;
    height: 48px !important;
}

.eq-b {
    width: 5px !important;
    background: #34D399 !important;
    border-radius: 999px !important;
    transition: height 0.25s ease !important;
}
.fb1 { height: 16px !important; }
.fb2 { height: 32px !important; }
.fb3 { height: 46px !important; background: #FFFFFF !important; }
.fb4 { height: 28px !important; }
.fb5 { height: 38px !important; }
.fb6 { height: 20px !important; }

.station-bento-card:hover .fb1 { height: 34px !important; }
.station-bento-card:hover .fb2 { height: 46px !important; }
.station-bento-card:hover .fb4 { height: 42px !important; }
.station-bento-card:hover .fb6 { height: 36px !important; }

.station-audio-scrim {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 40%, rgba(15,23,42,0.72) 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 8px 10px !important;
    z-index: 3 !important;
    pointer-events: none !important;
}

.station-soundwave-pill {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 999px !important;
    padding: 4px 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.85) !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    pointer-events: auto !important;
}

.station-bento-card:hover .station-soundwave-pill {
    background: #10B981 !important;
    transform: scale(1.03) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
}

.soundwave-label {
    font-family: 'Fredoka', 'Baloo 2', sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    color: #047857 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: color 0.2s ease !important;
}

.station-bento-card:hover .soundwave-label {
    color: #FFFFFF !important;
}

.soundwave-bars {
    display: flex !important;
    align-items: flex-end !important;
    gap: 3px !important;
    height: 14px !important;
}

.sw-bar {
    width: 3px !important;
    background: #059669 !important;
    border-radius: 999px !important;
    transition: height 0.2s ease, background 0.2s ease !important;
}

.station-bento-card:hover .sw-bar {
    background: #FFFFFF !important;
}

.sw1 { height: 5px !important; }
.sw2 { height: 13px !important; }
.sw3 { height: 8px !important; }
.sw4 { height: 14px !important; }
.sw5 { height: 6px !important; }

.station-bento-card:hover .sw1 { height: 13px !important; }
.station-bento-card:hover .sw3 { height: 14px !important; }
.station-bento-card:hover .sw5 { height: 12px !important; }

/* 5. Jokes Page Card Grid in Zero-Scroll Bento Track */
body[data-page="jokes"] #screens,
body[data-page="jokes"] .screen-section.active {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

body[data-page="jokes"] .cards-view.active {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

body[data-page="jokes"] .cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(2, minmax(130px, 150px)) !important;
    gap: 12px 14px !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 6px 2px 10px 2px !important;
    overflow: hidden !important;
}

body[data-page="jokes"] .flip-card-container {
    height: 100% !important;
    max-height: 160px !important;
}

body[data-page="jokes"] .flip-card-front,
body[data-page="jokes"] .flip-card-back {
    padding: 10px 14px !important;
    gap: 6px !important;
    border-radius: 18px !important;
    border-width: 2.5px !important;
}

body[data-page="jokes"] .flip-card-front h4,
body[data-page="jokes"] .flip-card-back h4 {
    margin: 0 !important;
    font-size: 14px !important;
    font-family: var(--font-display, 'Fredoka', cursive) !important;
}

body[data-page="jokes"] .flip-card-front p,
body[data-page="jokes"] .flip-card-back p {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    margin: 4px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

body[data-page="jokes"] .punchline-hint {
    font-size: 11px !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.7) !important;
}

/* 6. Paint & Art Page Creative Corner Polish */
body[data-page="paint"] .art-dashboard-wrap,
body[data-page="art"] .art-dashboard-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 14px !important;
}

body[data-page="paint"] .art-dashboard-wrap[style*="display: none"],
body[data-page="art"] .art-dashboard-wrap[style*="display: none"],
body[data-page="paint"] #creative-dashboard[style*="display: none"],
body[data-page="art"] #creative-dashboard[style*="display: none"] {
    display: none !important;
}

body[data-page="paint"] .art-dashboard-grid,
body[data-page="art"] .art-dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
}

body[data-page="paint"] .art-card,
body[data-page="art"] .art-card {
    background: #FFFFFF !important;
    border: 3px solid #2D3436 !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 0 #2D3436 !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

body[data-page="paint"] .art-card:hover,
body[data-page="art"] .art-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 0 #2D3436 !important;
}

body[data-page="paint"] .art-card-emoji,
body[data-page="art"] .art-card-emoji {
    font-size: 42px !important;
    line-height: 1 !important;
}
body[data-page="paint"] .art-card-title,
body[data-page="art"] .art-card-title {
    font-family: var(--font-display, 'Fredoka', cursive) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
    margin: 0 0 4px 0 !important;
}
body[data-page="paint"] .art-card-desc,
body[data-page="art"] .art-card-desc {
    font-size: 11.5px !important;
    color: #64748B !important;
    margin: 0 !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}
body[data-page="paint"] .art-card-arrow,
body[data-page="art"] .art-card-arrow {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #0284C7 !important;
}

/* ═══════════════════════════════════════════════════════════════
   🏛️ CONCEPT 1: ACTIVITY STATIONS DISCOVERY ARENA (HUB TWIN)
   ═══════════════════════════════════════════════════════════════ */
.station-discovery-arena {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 270px 1fr !important;
    gap: 14px !important;
    box-sizing: border-box !important;
    height: 100% !important;
    overflow: hidden !important;
}

/* Left Column: Station Character & Quest Tower */
.station-tower {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    height: 100% !important;
    min-height: 0 !important;
}

.station-tower-hero {
    border: 2.5px solid #2D3436 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    padding: 14px 16px !important;
    color: #FFFFFF !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    min-height: 110px !important;
}

.station-hero-videos { background: linear-gradient(135deg, #FF6B6B 0%, #EE5253 100%) !important; }
.station-hero-audio  { background: linear-gradient(135deg, #48DBFB 0%, #0984E3 100%) !important; }
.station-hero-books  { background: linear-gradient(135deg, #1DD1A1 0%, #10AC84 100%) !important; }
.station-hero-games  { background: linear-gradient(135deg, #FF9F43 0%, #EE5A24 100%) !important; }
.station-hero-paint  { background: linear-gradient(135deg, #FD79A8 0%, #E84393 100%) !important; }
.station-hero-quiz   { background: linear-gradient(135deg, #A29BFE 0%, #6C5CE7 100%) !important; }
.station-hero-jokes  { background: linear-gradient(135deg, #FDCB6E 0%, #E17055 100%) !important; }

.station-tower-mascot-float {
    position: absolute !important;
    right: 8px !important;
    bottom: 6px !important;
    font-size: 52px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25)) !important;
    user-select: none !important;
    pointer-events: none !important;
}

.station-tower-title {
    font-family: var(--font-display, 'Fredoka', cursive) !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    margin: 0 0 4px 0 !important;
    text-shadow: 0 1.5px 0 rgba(0,0,0,0.3) !important;
    line-height: 1.15 !important;
}

.station-tower-desc {
    font-family: var(--font-body, 'Nunito', sans-serif) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 !important;
    max-width: 190px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   📺 BALWADI TV & 📻 BALWADI RADIO STATION LIVE CHANNEL PILLS
   Positioned in the left tower between Hero host card and Daily Quest card
   ═══════════════════════════════════════════════════════════════════════════ */
.station-live-pill {
    width: 100% !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 18px !important;
    padding: 8px 12px !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.16s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: left !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.station-live-pill:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 0 #2D3436 !important;
}

.station-live-pill:active {
    transform: translateY(2px) scale(0.98) !important;
    box-shadow: 0 2px 0 #2D3436 !important;
}

.station-live-tv {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5253 45%, #FF7675 100%) !important;
    color: #FFFFFF !important;
}

.station-live-radio {
    background: linear-gradient(135deg, #0984E3 0%, #00CEC9 60%, #55E6C1 100%) !important;
    color: #FFFFFF !important;
}

.live-pill-content {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.live-pill-icon {
    font-size: 26px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
    animation: liveIconWiggle 2.8s ease-in-out infinite !important;
}

@keyframes liveIconWiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    15% { transform: rotate(-8deg) scale(1.1); }
    30% { transform: rotate(8deg) scale(1.1); }
    45% { transform: rotate(0deg) scale(1); }
}

.live-pill-text {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.live-pill-title {
    font-family: var(--font-display, 'Fredoka', cursive) !important;
    font-size: 14.5px !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
    line-height: 1.15 !important;
    color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.live-pill-sub {
    font-family: var(--font-body, 'Nunito', sans-serif) !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.live-pill-badge {
    background: #FFFFFF !important;
    color: #2D3436 !important;
    border: 2px solid #2D3436 !important;
    border-radius: 999px !important;
    padding: 3px 8px !important;
    font-family: var(--font-display, 'Fredoka', cursive) !important;
    font-size: 9.5px !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 2px 0 rgba(0,0,0,0.15) !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.4px !important;
}

.live-dot-pulse {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background-color: #E74C3C !important;
    display: inline-block !important;
    box-shadow: 0 0 0 rgba(231, 76, 60, 0.7) !important;
    animation: livePulseGlow 1.4s infinite !important;
}

@keyframes livePulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Daily Station Activity Quest Card */
.station-tower-quest {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    background: #FFFFFF !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

.station-quest-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 6px !important;
}

.station-quest-title {
    font-family: var(--font-display, 'Fredoka', cursive) !important;
    font-size: 12.5px !important;
    font-weight: 900 !important;
    color: #2D3436 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.station-quest-badge {
    background: #FEF3C7 !important;
    border: 1.5px solid #D97706 !important;
    color: #B45309 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
}

.station-quest-steps {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
}

.station-quest-item {
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #334155 !important;
    cursor: default !important;
    user-select: none !important;
    transition: all 0.2s ease !important;
}

.station-quest-item:hover {
    border-color: #CBD5E1 !important;
}

.station-quest-item.done {
    background: #ECFDF5 !important;
    border-color: #10B981 !important;
    color: #065F46 !important;
}

.station-quest-footer {
    text-align: center !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    color: #10B981 !important;
    margin-top: 4px !important;
}

/* Right Column: Station Bento Arena */
.station-bento-arena {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 100% !important;
    background: #FFFFFF !important;
    border: 2.5px solid #2D3436 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 0 #2D3436 !important;
    padding: 10px 14px 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Bento Arena Shelves override inside Station Arena */
.station-bento-arena .learn-carousel-wrapper {
    padding: 0 10px !important;
    margin-top: 2px !important;
    flex: 1 1 auto !important;
}

.station-bento-arena .learn-carousel-track {
    grid-template-rows: repeat(2, 1fr) !important;
    grid-auto-columns: calc((100% - 36px) / 4) !important;
    gap: 12px !important;
    padding: 4px 4px 10px 4px !important;
}

.station-bento-arena .learn-arrow-prev { left: -8px !important; }
.station-bento-arena .learn-arrow-next { right: -8px !important; }

/* ═══════════════════════════════════════════════════════════════
   🎯 UNIFIED GLOBAL DESIGN GRAMMAR (SSOT) - OPTION 3 PASTEL CLEAN
   Airy, uncluttered, soft neutral shells + cheerful pastel card borders
   across Home, Hubs, and Activity Stations (Videos, Audio, Books, etc.)
   ═══════════════════════════════════════════════════════════════ */

/* 1. All Pills / Tab Selectors */
.hero-tab-pill,
.learn-cat-pill,
.station-cat-pill,
.hub-world-pill,
.hub-bento-tab-btn,
.spark-badge-btn {
    font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif !important;
    font-weight: 800 !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 999px !important;
    background: #FFFFFF !important;
    color: #475569 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.15s ease !important;
}

/* Hover State */
.hero-tab-pill:hover,
.learn-cat-pill:hover,
.station-cat-pill:hover,
.hub-world-pill:hover,
.hub-bento-tab-btn:hover,
.spark-badge-btn:hover {
    background: #FFFEEA !important;
    color: #1E293B !important;
    border-color: #94A3B8 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-1px) !important;
}

/* Active / Selected State: Warm Sunshine Gold */
.hero-tab-pill.active,
.learn-cat-pill.active,
.station-cat-pill.active,
.hub-world-pill.active,
.hub-bento-tab-btn.active {
    background: #FFD166 !important;
    color: #2D3436 !important;
    border: 1.5px solid #E2B93B !important;
    box-shadow: 0 2px 6px rgba(255, 209, 102, 0.35) !important;
    transform: none !important;
}

/* 2. Scroller & Carousel Circular Nav Arrows */
.hero-tabs-nav-arrow,
.hoarding-arrow,
.learn-cat-arrow,
.station-cat-arrow,
.hub-bento-arrow-btn,
.learn-arrow-btn,
.learn-nav-arrow,
.station-carousel-arrow {
    background: #FFFFFF !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    color: #475569 !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.hero-tabs-nav-arrow:hover,
.hoarding-arrow:hover,
.learn-cat-arrow:hover,
.station-cat-arrow:hover,
.hub-bento-arrow-btn:hover,
.learn-arrow-btn:hover,
.learn-nav-arrow:hover,
.station-carousel-arrow:hover {
    background: #FFD166 !important;
    border-color: #E2B93B !important;
    color: #2D3436 !important;
    box-shadow: 0 3px 8px rgba(255, 209, 102, 0.4) !important;
    transform: scale(1.08) !important;
}

/* 3. Outer Shells / Arena Boxes: Soft, Airy & Uncluttered */
.opt2-sky-bar,
.opt2-stage-card,
.opt2-activities-card,
.hub-fasthop-pill-track,
.hub-theme-tower,
.hub-tower-hero,
.hub-mini-quest-card,
.hub-bento-arena,
.station-tower-hero,
.station-tower-quest,
.station-bento-arena {
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
}

/* 4. Cheerful Pastel Multi-Colored Card Borders (No Dark Ink!) */
.station-bento-card,
.hub-bento-card {
    border-width: 1.5px !important;
    border-style: solid !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.station-bento-card:hover,
.hub-bento-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

/* 8-Color Pastel Palette Cycle */
.station-bento-card:nth-child(8n+1), .hub-bento-card:nth-child(8n+1) { border-color: #FECACA !important; } /* Soft Coral Rose */
.station-bento-card:nth-child(8n+2), .hub-bento-card:nth-child(8n+2) { border-color: #FDE68A !important; } /* Soft Sunshine Gold */
.station-bento-card:nth-child(8n+3), .hub-bento-card:nth-child(8n+3) { border-color: #BFDBFE !important; } /* Soft Sky Blue */
.station-bento-card:nth-child(8n+4), .hub-bento-card:nth-child(8n+4) { border-color: #A7F3D0 !important; } /* Soft Mint Green */
.station-bento-card:nth-child(8n+5), .hub-bento-card:nth-child(8n+5) { border-color: #BAE6FD !important; } /* Soft Cyan */
.station-bento-card:nth-child(8n+6), .hub-bento-card:nth-child(8n+6) { border-color: #FEF08A !important; } /* Soft Lemon */
.station-bento-card:nth-child(8n+7), .hub-bento-card:nth-child(8n+7) { border-color: #FBCFE8 !important; } /* Soft Petal Pink */
.station-bento-card:nth-child(8n+8), .hub-bento-card:nth-child(8n+8) { border-color: #DDD6FE !important; } /* Soft Lavender */

/* 5. Hero Shell Modes: Clean, Soft & Decluttered Sub-Elements */
/* Comic Mode Strip */
body[data-page="home"]:not(.theme-immersive) .homepage-comic-strip-img {
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

/* Quests Mode Cards & Progress */
body[data-page="home"]:not(.theme-immersive) .quest-mini-card {
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}
body[data-page="home"]:not(.theme-immersive) .quest-mini-card:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07) !important;
}
body[data-page="home"]:not(.theme-immersive) .quest-mini-card.completed {
    border-color: #86EFAC !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.12) !important;
}
body[data-page="home"]:not(.theme-immersive) .quest-card-thumb-holder {
    border: 1.5px solid #E2E8F0 !important;
}
body[data-page="home"]:not(.theme-immersive) .quest-card-cat-badge,
body[data-page="home"]:not(.theme-immersive) .quest-card-reward-badge {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}
body[data-page="home"]:not(.theme-immersive) .quest-action-btn {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 6px rgba(9, 132, 227, 0.2) !important;
}
body[data-page="home"]:not(.theme-immersive) .quest-progress-track {
    border: 1.5px solid #CBD5E1 !important;
}
body[data-page="home"]:not(.theme-immersive) .quest-reward-badge {
    border: 1.5px solid #FDE68A !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
body[data-page="home"]:not(.theme-immersive) .quest-claim-stars-btn {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 3px 10px rgba(255, 118, 117, 0.3) !important;
}

/* Surprise Mode & Deluxe Stage Boxes */
body[data-page="home"]:not(.theme-immersive) .surprise-card-box.deluxe-box,
body[data-page="home"]:not(.theme-immersive) .hero-custom-mode-stage .deluxe-box {
    border: 2px solid #CBD5E1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
}
body[data-page="home"]:not(.theme-immersive) .surprise-tag-badge.deluxe-badge {
    border: 1.5px solid #FDE68A !important;
    box-shadow: none !important;
}
body[data-page="home"]:not(.theme-immersive) .surprise-shuffle-btn.deluxe-shuffle {
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
body[data-page="home"]:not(.theme-immersive) .surprise-main-content.deluxe-content {
    border: 1.5px solid #E2E8F0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}
body[data-page="home"]:not(.theme-immersive) .surprise-audio-trigger-btn.deluxe-audio-btn {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
}
body[data-page="home"]:not(.theme-immersive) .surprise-sfx-cluster.deluxe-sfx .surprise-mini-sfx,
body[data-page="home"]:not(.theme-immersive) .deluxe-sfx-btn {
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Video Stage & Kid Joypad Controls Dock */
body[data-page="home"]:not(.theme-immersive) .hero-video-player-container {
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05) !important;
}
body[data-page="home"]:not(.theme-immersive) .hero-video-more-link {
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
body[data-page="home"]:not(.theme-immersive) .kid-theater-controls-dock.unified-joypad-dock {
    border-top: 1.5px solid #E2E8F0 !important;
}
body[data-page="home"]:not(.theme-immersive) .joypad-btn-pill,
body[data-page="home"]:not(.theme-immersive) .joypad-btn-circle {
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}
body[data-page="home"]:not(.theme-immersive) .joypad-btn-play-big {
    border: 1.5px solid #059669 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}
body[data-page="home"]:not(.theme-immersive) .theater-mascot-watermark,
body[data-page="home"]:not(.theme-immersive) .theater-mascot-cheer {
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06) !important;
}

/* Final shared sky-bar geometry override. */
.app-header.opt2-sky-bar {
  height: auto !important;
  min-height: 56px !important;
  padding: 7px 16px 9px !important;
  margin: 0 0 12px !important;
  box-sizing: border-box !important;
}
.app-header.opt2-sky-bar .brand-dev-title {
  font-family: 'Baloo 2', 'Fredoka', cursive, sans-serif !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
@media (max-width: 899px) {
  .app-header.opt2-sky-bar {
    min-height: 48px !important;
    padding: 6px 10px !important;
    margin-bottom: 8px !important;
  }
  .app-header.opt2-sky-bar .brand-dev-title { font-size: 20px !important; }
  .bottom-nav { display: none !important; }
}

/* ─────────────────────────────────────────────────────────────
   ACTIVITIES SUITABILITY PILLS & REACTIVE AGE HIGHLIGHT
   ───────────────────────────────────────────────────────────── */
.act-age-suitability-pill {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #CBD5E1;
  border-radius: 999px;
  font-family: 'Baloo 2', 'Fredoka', cursive, sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  color: #334155;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 12;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.act-age-suitability-pill.age-2-5 {
  border-color: #F59E0B;
  color: #B45309;
  background: #FFFBEB;
}

.act-age-suitability-pill.age-6-8 {
  border-color: #3B82F6;
  color: #1D4ED8;
  background: #EFF6FF;
}

.act-age-suitability-pill.age-9-12 {
  border-color: #10B981;
  color: #047857;
  background: #ECFDF5;
}

.act-age-suitability-pill.age-all {
  border-color: #A855F7;
  color: #7E22CE;
  background: #FAF5FF;
}

.act-age-highlight {
  animation: actAgePulse 2.4s ease-in-out infinite alternate !important;
}

@keyframes actAgePulse {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-3px) scale(1.03);
  }
}

/* ─────────────────────────────────────────────────────────────
   HERO COMIC STRIP THEATRE STAGE (Universal Flex & Image Fix)
   ───────────────────────────────────────────────────────────── */
.hero-stage-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 220px !important;
  height: 100% !important;
  width: 100% !important;
  position: relative !important;
}

.homepage-comic-strip-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 220px !important;
  position: relative !important;
  padding: 8px 12px !important;
  box-sizing: border-box !important;
}

.homepage-comic-strip-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 680px !important;
  max-height: 330px !important;
  text-decoration: none !important;
  overflow: hidden !important;
  position: relative !important;
}

.homepage-comic-strip-img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 315px !important;
  min-height: 140px !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  border: 2.5px solid #2D3436 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  background-color: #FFFFFF !important;
  transition: transform 0.2s ease !important;
}

.homepage-comic-strip-img:hover {
  transform: scale(1.015) !important;
}

.hoarding-arrow {
  background: #FFEAA7 !important;
  border: 2px solid #2D3436 !important;
  border-radius: 50% !important;
  color: #2D3436 !important;
  width: 36px !important;
  height: 36px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 3px 0 #2D3436 !important;
  z-index: 10 !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
}

.hoarding-arrow:hover {
  background: #FFD166 !important;
  transform: scale(1.1) !important;
}

.hoarding-arrow:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #2D3436 !important;
}

/* ══════════════════════════════════════════════════════════════════
   PRESCHOOL UX ENHANCEMENTS: ANIMATIONS, SOUND & TACTILE FEEDBACK
   ══════════════════════════════════════════════════════════════════ */

/* 1. Peek-a-boo Passenger Gentle Bobbing */
@keyframes peekPassengerBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px) scale(1.08);
  }
}

.peek-passenger-anim {
  animation: peekPassengerBob 2.5s ease-in-out infinite;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
}

/* 2. Interactive Steam Puffs on Locomotive */
@keyframes risingSteamPuff {
  0% {
    opacity: 0.9;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-70px) scale(1.8) rotate(20deg);
  }
}

.interactive-steam-puff {
  position: absolute;
  top: 6px;
  font-size: 26px;
  pointer-events: none;
  animation: risingSteamPuff 1.4s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  z-index: 999;
}

/* 3. Streamlined Top Bar Polish for Young Children */
.opt2-sky-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 8px 20px !important;
}

.opt2-island-identity {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.opt2-island-discovery {
  flex: 1 !important;
  max-width: 480px !important;
  display: flex !important;
  justify-content: center !important;
}

.opt2-search-input-wrap {
  width: 100% !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.opt2-search-input {
  width: 100% !important;
  padding: 9px 44px 9px 18px !important;
  border-radius: 999px !important;
  border: 2.5px solid #2D3436 !important;
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: #FFFDF5 !important;
  box-shadow: 0 4px 0 #2D3436 !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.opt2-search-input:focus {
  background: #FFFFFF !important;
  box-shadow: 0 5px 0 #2D3436, 0 0 0 3px rgba(254, 202, 87, 0.4) !important;
}

/* Legacy 32px voice button replaced by 30px tactile system */

.opt2-island-utility {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

/* Legacy cartoon rules neutralized for modern claymorphic skybar */
.opt2-sky-bar .opt2-lang-pill {
  border: none !important;
  box-shadow: none !important;
}

/* 4. Interactive Station Wall Clock */
@keyframes clockHandSpin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(720deg) scale(1.15); }
  100% { transform: rotate(1080deg) scale(1); }
}

.clock-spin-anim svg {
  animation: clockHandSpin 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: 14px 18px;
}

.station-clock-bracket {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.station-clock-bracket:hover {
  transform: scale(1.25) translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   PILLAR 2: PRONUNCIATION BUDDY & PHONICS MIRROR STYLING
   ═══════════════════════════════════════════════════════════ */
.buddy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: buddyFadeIn 0.25s ease-out;
}

@keyframes buddyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.buddy-modal-sheet {
  background: linear-gradient(180deg, #FFFDF0 0%, #FFF5D6 100%);
  border: 4px solid #2D3436;
  border-radius: 32px;
  box-shadow: 0 16px 0 #2D3436, 0 24px 48px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: buddySheetPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes buddySheetPop {
  0% { transform: scale(0.85) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.buddy-modal-header {
  background: #FFD166;
  border-bottom: 3.5px solid #2D3436;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.buddy-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.buddy-header-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.15));
}

.buddy-header-title h3 {
  margin: 0;
  font-family: 'Fredoka', 'Baloo 2', cursive;
  font-size: 19px;
  font-weight: 900;
  color: #2D3436;
  line-height: 1.2;
}

.buddy-subtitle {
  font-size: 12px;
  font-weight: 800;
  color: #78350F;
  letter-spacing: 0.3px;
}

.buddy-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buddy-stars-badge {
  background: #FFF;
  border: 2.5px solid #2D3436;
  box-shadow: 0 3px 0 #2D3436;
  border-radius: 999px;
  padding: 4px 12px;
  font-family: 'Fredoka', 'Baloo 2', cursive;
  font-size: 14px;
  font-weight: 900;
  color: #D97706;
}

.buddy-close-btn {
  background: #EF4444;
  border: 2.5px solid #2D3436;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 16px;
  font-weight: 900;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 0 #2D3436;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.buddy-close-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 0 #2D3436;
}

.buddy-close-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #2D3436;
}

.buddy-stage-viewport {
  padding: 18px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Magic Mirror Oval Frame */
.buddy-mirror-frame {
  position: relative;
  width: 260px;
  background: linear-gradient(135deg, #FFEAA7 0%, #FDCB6E 50%, #E17055 100%);
  border: 4.5px solid #2D3436;
  border-radius: 130px;
  padding: 10px;
  box-shadow: 0 8px 0 #2D3436, inset 0 3px 0 rgba(255,255,255,0.6);
  margin-bottom: 14px;
}

.buddy-sparkle-halo {
  position: absolute;
  inset: -8px;
  border-radius: 140px;
  background: radial-gradient(circle, rgba(255, 234, 167, 0.6) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: 0;
  animation: buddyHaloPulse 2.5s infinite alternate ease-in-out;
}

@keyframes buddyHaloPulse {
  0% { transform: scale(0.98); opacity: 0.5; }
  100% { transform: scale(1.05); opacity: 0.9; }
}

.buddy-mirror-glass {
  position: relative;
  z-index: 1;
  background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #F0FDF4 80%, #DCFCE7 100%);
  border: 3px solid #2D3436;
  border-radius: 120px;
  padding: 22px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 6px 12px rgba(0,0,0,0.06);
}

.buddy-mascot-peek {
  position: absolute;
  top: -16px;
  right: 18px;
  font-size: 32px;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.15));
  animation: mascotWiggle 3s infinite ease-in-out;
}

@keyframes mascotWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.buddy-emoji-display {
  font-size: 72px;
  line-height: 1.1;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.buddy-bloom-anim {
  animation: buddyBloomReward 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes buddyBloomReward {
  0% { transform: scale(1); }
  30% { transform: scale(1.4) rotate(-10deg); }
  60% { transform: scale(1.25) rotate(8deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.buddy-word-display {
  font-family: 'Fredoka', 'Baloo 2', cursive;
  font-size: 36px;
  font-weight: 900;
  color: #1E293B;
  line-height: 1.1;
  text-shadow: 0 2px 0 rgba(0,0,0,0.08);
}

.buddy-phonetic-pill {
  background: #FEF08A;
  border: 2px solid #2D3436;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #854D0E;
  margin-top: 4px;
  box-shadow: 0 2px 0 #2D3436;
}

.buddy-meaning-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  margin-top: 3px;
}

/* Mascot Encouragement Speech Bubble */
.buddy-speech-bubble {
  background: #FFF;
  border: 3px solid #2D3436;
  border-radius: 20px;
  padding: 8px 14px;
  box-shadow: 0 4px 0 #2D3436;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 90%;
  box-sizing: border-box;
  margin-bottom: 16px;
  justify-content: space-between;
}

.buddy-speech-bubble span {
  font-family: 'Fredoka', 'Baloo 2', cursive;
  font-size: 15px;
  font-weight: 900;
  color: #2D3436;
}

.buddy-hear-btn {
  background: #3B82F6;
  border: 2px solid #2D3436;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #FFF;
  box-shadow: 0 2px 0 #2D3436;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.buddy-hear-btn:hover {
  transform: scale(1.1);
}

.buddy-hear-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 #2D3436;
}

/* Big Microphone Interaction Ring */
.buddy-controls-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.buddy-mic-btn {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 4px solid #2D3436;
  box-shadow: 0 6px 0 #2D3436;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease;
}

.buddy-mic-icon {
  font-size: 34px;
  z-index: 2;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.2));
}

.buddy-mic-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 0 #2D3436;
}

.buddy-mic-btn:active {
  transform: translateY(3px) scale(0.96);
  box-shadow: 0 2px 0 #2D3436;
}

.buddy-mic-btn.is-listening {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  animation: micPulsing 1s infinite alternate;
}

@keyframes micPulsing {
  0% { transform: scale(1); box-shadow: 0 6px 0 #2D3436, 0 0 0 0 rgba(239, 68, 68, 0.6); }
  100% { transform: scale(1.08); box-shadow: 0 8px 0 #2D3436, 0 0 0 16px rgba(239, 68, 68, 0); }
}

.buddy-mic-caption {
  font-family: 'Fredoka', 'Baloo 2', cursive;
  font-size: 14px;
  font-weight: 900;
  color: #334155;
}

/* Footer Navigation Dock */
.buddy-footer-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.buddy-nav-btn {
  background: #FFF;
  border: 2.5px solid #2D3436;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: 'Fredoka', 'Baloo 2', cursive;
  font-size: 13px;
  font-weight: 900;
  color: #2D3436;
  box-shadow: 0 3px 0 #2D3436;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.buddy-nav-btn:hover {
  background: #F1F5F9;
  transform: translateY(-2px);
}

.buddy-nav-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #2D3436;
}

.buddy-listen-fallback-btn {
  background: #6366F1;
  border: 2.5px solid #2D3436;
  border-radius: 999px;
  padding: 6px 16px;
  font-family: 'Fredoka', 'Baloo 2', cursive;
  font-size: 13px;
  font-weight: 900;
  color: #FFF;
  box-shadow: 0 3px 0 #2D3436;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.buddy-listen-fallback-btn:hover {
  background: #4F46E5;
  transform: scale(1.05);
}

.buddy-listen-fallback-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #2D3436;
}

/* Pronunciation Banner in Learn Page */
.learn-buddy-callout {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 50%, #F59E0B 100%);
  border: 3.5px solid #2D3436;
  border-radius: 24px;
  padding: 12px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 0 #2D3436;
  gap: 14px;
}

.learn-buddy-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.learn-buddy-emoji {
  font-size: 38px;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.12));
}

.learn-buddy-title {
  font-family: 'Fredoka', 'Baloo 2', cursive;
  font-size: 17px;
  font-weight: 900;
  color: #78350F;
  line-height: 1.2;
}

.learn-buddy-desc {
  font-size: 12.5px;
  font-weight: 700;
  color: #92400E;
  margin-top: 2px;
}

.learn-buddy-btn {
  background: #10B981;
  border: 2.5px solid #2D3436;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: 'Fredoka', 'Baloo 2', cursive;
  font-size: 14px;
  font-weight: 900;
  color: #FFF;
  cursor: pointer;
  box-shadow: 0 3px 0 #2D3436;
  white-space: nowrap;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.learn-buddy-btn:hover {
  background: #059669;
  transform: scale(1.06);
  box-shadow: 0 5px 0 #2D3436;
}

.learn-buddy-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #2D3436;
}











/* ========================================================
   WORLD-CLASS KIDS ARCADE GAME CARDS & ARENA (SSOT)
   ======================================================== */
body[data-page="games"] .station-tower-hero.station-hero-games {
  background: linear-gradient(135deg, #FF9F43 0%, #EE5253 100%) !important;
  border: 2.5px solid #2D3436 !important;
  box-shadow: 0 6px 0 #2D3436 !important;
  border-radius: 24px !important;
  position: relative !important;
  overflow: hidden !important;
}

body[data-page="games"] .station-tower-hero.station-hero-games::after {
  content: '' !important;
  position: absolute !important;
  right: -10px !important;
  bottom: -15px !important;
  width: 90px !important;
  height: 90px !important;
  background-image: url('images/piku_panda_gaming.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  opacity: 0.9 !important;
  pointer-events: none !important;
}

/* Dedicated Game Cards */

/* ═══════════════════════════════════════════════════════════════ */
/* ❓ STYLE 3 PRO KIDS QUIZ CARDS (4-PER-ROW TACTILE 3D + CORNER RIBBONS) */
/* ═══════════════════════════════════════════════════════════════ */
.station-bento-card.station-quiz-card {
  border-radius: 14px !important;
  border: 1.5px solid #E2E8F0 !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 0 #CBD5E1, 0 6px 14px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  height: 100% !important;
  box-sizing: border-box !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
  cursor: pointer !important;
}

.station-bento-card.station-quiz-card:hover {
  transform: translateY(-3px) !important;
  border-color: #94A3B8 !important;
  box-shadow: 0 6px 0 #CBD5E1, 0 10px 18px rgba(15, 23, 42, 0.08) !important;
}

.station-bento-card.station-quiz-card:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1.5px 0 #CBD5E1 !important;
}

/* 🎗️ DIAGONAL CORNER RIBBON SYSTEM */
.card-ribbon-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 95px !important;
  height: 95px !important;
  overflow: hidden !important;
  z-index: 15 !important;
  pointer-events: none !important;
}

.corner-ribbon {
  position: absolute !important;
  top: 16px !important;
  left: -28px !important;
  width: 115px !important;
  transform: rotate(-45deg) !important;
  text-align: center !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 3px 0 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) !important;
}

.ribbon-coming-soon {
  background: linear-gradient(135deg, #F59E0B, #EA580C) !important;
  color: #FFFFFF !important;
}

.ribbon-draft {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9) !important;
  color: #FFFFFF !important;
}

.ribbon-new {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  color: #FFFFFF !important;
}

.ribbon-mastered {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8) !important;
  color: #FFFFFF !important;
}

/* Hero Thumbnail Stage */
.station-quiz-thumb-stage {
  position: relative !important;
  width: 100% !important;
  height: 84px !important;
  flex: 0 0 84px !important;
  overflow: hidden !important;
  background: #0F172A !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.station-quiz-thumb-stage .quiz-visual-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

.station-bento-card.station-quiz-card:hover .quiz-visual-thumb {
  transform: scale(1.05) !important;
}

/* Floating Badges on Hero */
.quiz-flag-badge {
  position: absolute !important;
  bottom: 4px !important;
  left: 5px !important;
  font-family: var(--font-kids, 'Fredoka', cursive) !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 1.5px 5px !important;
  border-radius: 4px !important;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.3) !important;
  z-index: 5 !important;
}

.quiz-xp-badge {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  background: #10B981 !important;
  color: #FFFFFF !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  padding: 1.5px 6px !important;
  border-radius: 4px !important;
  box-shadow: 0 1.5px 0 #059669 !important;
  z-index: 5 !important;
}

/* Scrim for Coming Soon / Unpublished Draft */
.quiz-coming-soon-scrim {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(1.5px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 6 !important;
}

.quiz-scrim-pill {
  background: rgba(15, 23, 42, 0.9) !important;
  color: #FCD34D !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

/* Card Body & Footer */
.station-quiz-footer-stage {
  padding: 4px 7px 6px 7px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 2px !important;
  background: #FFFFFF !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

.quiz-card-title {
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  line-height: 1.15 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
  min-height: 24px !important;
  max-height: 26px !important;
}

.quiz-meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: auto !important;
}

.station-quiz-tts-btn {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 6px !important;
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 1px 0 #94A3B8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  cursor: pointer !important;
  transition: all 0.1s ease !important;
  padding: 0 !important;
}

.station-quiz-tts-btn:hover {
  background: #E2E8F0 !important;
}

.station-quiz-direct-btn {
  flex-grow: 1 !important;
  height: 24px !important;
  background: #22C55E !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: 0 1.5px 0 #15803D !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.station-quiz-direct-btn:hover {
  background: #16A34A !important;
}

.station-quiz-direct-btn.btn-coming-soon {
  background: #F59E0B !important;
  box-shadow: 0 1.5px 0 #B45309 !important;
}

.station-quiz-direct-btn.btn-draft {
  background: #8B5CF6 !important;
  box-shadow: 0 1.5px 0 #6D28D9 !important;
}

.station-bento-card.station-game-card {
  border-radius: 22px !important;
  border: 2.5px solid #FCD34D !important;
  background: #FFFFFF !important;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.16), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.22s, border-color 0.22s !important;
  cursor: pointer !important;
}

.station-bento-card.station-game-card:hover {
  transform: translateY(-6px) scale(1.025) !important;
  border-color: #F59E0B !important;
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.3), 0 0 0 3px #FBBF24 !important;
}

.station-game-thumb-stage {
  position: relative !important;
  width: 100% !important;
  height: 145px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
  border-top-left-radius: 19px !important;
  border-top-right-radius: 19px !important;
}

.station-game-thumb-stage .game-visual-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}

.station-bento-card.station-game-card:hover .game-visual-thumb {
  transform: scale(1.08) !important;
}

.station-game-rating-badge {
  background: linear-gradient(135deg, #FF4757 0%, #EE5253 100%) !important;
  color: #FFFFFF !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-weight: 800 !important;
  font-size: 10.5px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 6px rgba(238, 82, 83, 0.35) !important;
  letter-spacing: 0.5px !important;
}

.station-game-hover-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(30, 27, 75, 0.38) !important;
  backdrop-filter: blur(2px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  z-index: 5 !important;
}

.station-bento-card.station-game-card:hover .station-game-hover-overlay {
  opacity: 1 !important;
}

.station-game-hover-pill {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  padding: 9px 20px !important;
  border-radius: 999px !important;
  border: 3px solid #FFFFFF !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transform: scale(0.9) !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.station-bento-card.station-game-card:hover .station-game-hover-pill {
  transform: scale(1.06) !important;
}

.station-game-footer-stage {
  padding: 9px 12px 10px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  background: #FFFFFF !important;
  flex: 1 1 auto !important;
  justify-content: space-between !important;
}

.game-card-title {
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #1E293B !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

.game-meta-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 2px !important;
}

.station-game-tag {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #64748B !important;
  background: #F1F5F9 !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
}

.station-game-direct-btn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border: 1.5px solid #047857 !important;
  border-radius: 999px !important;
  padding: 3px 12px !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-weight: 900 !important;
  font-size: 11.5px !important;
  box-shadow: 0 2px 0 #047857 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: transform 0.1s, box-shadow 0.1s !important;
}

.station-game-direct-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 0 #047857 !important;
  background: linear-gradient(135deg, #34D399 0%, #059669 100%) !important;
}

.station-game-direct-btn:active {
  transform: translateY(2px) !important;
  box-shadow: none !important;
}

/* Polish pass for Arcade Games Grid & Badges */
body[data-page="games"] .station-bento-arena .learn-carousel-track {
  grid-template-rows: repeat(2, minmax(215px, 1fr)) !important;
  grid-auto-columns: calc((100% - 36px) / 3.4) !important;
  gap: 14px !important;
  padding: 6px 6px 12px 6px !important;
}

body[data-page="games"] .station-card-top-badges {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: 8px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 6px !important;
  z-index: 4 !important;
  width: auto !important;
}

body[data-page="games"] .station-card-emoji-badge {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(4px) !important;
  color: #1E293B !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 55% !important;
}

body[data-page="games"] .game-card-title {
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #1E293B !important;
  line-height: 1.25 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  height: 35px !important;
  margin: 0 !important;
}

/* ==========================================================================
   🎮 CHEERFUL BALWADI ARCADE LOBBY (VIBRANT, PLAYFUL & DELIGHTFUL)
   ========================================================================== */

/* Main Lobby Container inside #media-container */
body[data-page="games"] .station-bento-arena {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 8px 12px 24px 8px !important;
  scrollbar-gutter: stable !important;
  overscroll-behavior: contain !important;
}

/* Custom scrollbar for games lobby */
body[data-page="games"] .station-bento-arena::-webkit-scrollbar {
  width: 8px;
}
body[data-page="games"] .station-bento-arena::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}
body[data-page="games"] .station-bento-arena::-webkit-scrollbar-thumb {
  background: #FFB703;
  border-radius: 8px;
  border: 2px solid #FFF;
}

.arcade-lobby-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* --- Hero Spotlight Feature Marquee --- */
.arcade-hero-spotlight {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 45%, #FFA07A 100%);
  border: 3.5px solid #2D3436;
  border-radius: 28px;
  box-shadow: 0 8px 0 #2D3436, 0 16px 28px rgba(255, 107, 107, 0.25);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: clip;
  animation: heroGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
  0% { box-shadow: 0 8px 0 #2D3436, 0 16px 28px rgba(255, 107, 107, 0.25); }
  100% { box-shadow: 0 8px 0 #2D3436, 0 22px 38px rgba(255, 107, 107, 0.45); }
}

.arcade-hero-spotlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.arcade-hero-poster-wrap {
  position: relative;
  border-radius: 20px;
  overflow: clip;
  border: 3px solid #FFFFFF;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  aspect-ratio: 16 / 10;
  background: #1E293B;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.arcade-hero-poster-wrap:hover {
  transform: scale(1.03) rotate(-1deg);
}

.arcade-hero-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.arcade-hero-badge-float {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #FFD166 0%, #FFB703 100%);
  border: 2px solid #2D3436;
  color: #2D3436;
  font-family: var(--font-display, cursive);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 3px 0 #2D3436;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.arcade-hero-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #FFFFFF;
  z-index: 1;
}

.arcade-hero-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.arcade-hero-tag {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.arcade-hero-title {
  font-family: var(--font-display, cursive);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.arcade-hero-desc {
  font-family: var(--font-body, sans-serif);
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  max-width: 620px;
}

.arcade-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.arcade-hero-play-btn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 3px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 6px 0 #2D3436, 0 10px 18px rgba(5, 150, 105, 0.4);
  color: #FFFFFF;
  font-family: var(--font-display, cursive);
  font-size: 18px;
  font-weight: 900;
  padding: 12px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.arcade-hero-play-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 0 #2D3436, 0 14px 22px rgba(5, 150, 105, 0.5);
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
}

.arcade-hero-play-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #2D3436;
}

.arcade-hero-spin-link {
  background: #FFD166;
  border: 2.5px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 4px 0 #2D3436;
  color: #2D3436;
  font-family: var(--font-display, cursive);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease;
}

.arcade-hero-spin-link:hover {
  transform: translateY(-2px) rotate(1deg);
  background: #FFE082;
}

/* --- Category Filter Pills --- */
.arcade-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: none;
}
.arcade-filter-bar::-webkit-scrollbar {
  display: none;
}

.arcade-filter-pill {
  background: #FFFFFF;
  border: 2.5px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 4px 0 #2D3436;
  color: #2D3436;
  font-family: var(--font-display, cursive);
  font-size: 14px;
  font-weight: 800;
  padding: 7px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.arcade-filter-pill:hover {
  transform: translateY(-2px);
  background: #FFF9DB;
}

.arcade-filter-pill.active {
  background: #8338EC;
  color: #FFFFFF;
  border-color: #2D3436;
  box-shadow: 0 4px 0 #2D3436;
}

/* --- Section Headings --- */
.arcade-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: -6px;
}

.arcade-section-title {
  font-family: var(--font-display, cursive);
  font-size: 20px;
  font-weight: 900;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.arcade-section-badge {
  background: #E0E7FF;
  color: #4F46E5;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid #C7D2FE;
}

/* --- Responsive Cards Grid --- */
.arcade-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  width: 100%;
}

/* Cheerful Playable Game Card */
.arcade-card {
  background: #FFFFFF;
  border: 3px solid #2D3436;
  border-radius: 24px;
  box-shadow: 0 6px 0 #2D3436, 0 10px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: clip;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  position: relative;
  cursor: pointer;
}

.arcade-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 12px 0 #2D3436, 0 18px 28px rgba(0, 0, 0, 0.14);
}

.arcade-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #1E293B;
  overflow: clip;
  border-bottom: 2.5px solid #2D3436;
}

.arcade-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.arcade-card:hover .arcade-card-thumb-wrap img {
  transform: scale(1.06);
}

.arcade-card-ribbon {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  font-family: var(--font-display, cursive);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.arcade-card-lang-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #2D3436;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.arcade-card-body {
  padding: 14px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.arcade-card-title {
  font-family: var(--font-display, cursive);
  font-size: 18px;
  font-weight: 900;
  color: #1E293B;
  margin: 0;
  line-height: 1.25;
}

.arcade-card-desc {
  font-family: var(--font-body, sans-serif);
  font-size: 13px;
  line-height: 1.4;
  color: #475569;
  margin: 0;
  flex: 1;
}

.arcade-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1.5px dashed #E2E8F0;
}

.arcade-card-stars {
  font-size: 12px;
  font-weight: 800;
  color: #F59E0B;
  display: flex;
  align-items: center;
  gap: 3px;
}

.arcade-card-play-btn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 2px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 3px 0 #2D3436;
  color: #FFFFFF;
  font-family: var(--font-display, cursive);
  font-size: 14px;
  font-weight: 900;
  padding: 6px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.arcade-card:hover .arcade-card-play-btn {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  transform: scale(1.04);
}

/* Coming Soon / Sneak Peek Card */
.arcade-card-preview {
  opacity: 0.95;
  background: #FAFAFA;
}

.arcade-card-preview .arcade-card-ribbon {
  background: linear-gradient(135deg, #8338EC 0%, #6366F1 100%);
}

.arcade-card-preview-btn {
  background: #F1F5F9;
  border: 2px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 3px 0 #2D3436;
  color: #475569;
  font-family: var(--font-display, cursive);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease;
}

.arcade-card-preview:hover .arcade-card-preview-btn {
  background: #FFD166;
  color: #2D3436;
  transform: scale(1.04);
}

/* Mascot Ticket Booth Enhancement for Station Tower */
body[data-page="games"] .station-tower-hero.station-hero-games {
  background: linear-gradient(135deg, #FF7675 0%, #E84118 60%, #C23616 100%) !important;
  border: 3px solid #2D3436 !important;
  border-radius: 24px !important;
  box-shadow: 0 6px 0 #2D3436, 0 12px 24px rgba(232, 65, 24, 0.25) !important;
  position: relative !important;
  padding: 16px 18px !important;
}

.arcade-tower-ticket {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px dashed rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arcade-tower-ticket-text {
  font-family: var(--font-display, cursive);
  font-size: 13px;
  font-weight: 900;
  color: #FFFFFF;
}

.arcade-tower-spin-btn {
  background: #FFD166;
  border: 2px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 3px 0 #2D3436;
  color: #2D3436;
  font-family: var(--font-display, cursive);
  font-size: 11.5px;
  font-weight: 900;
  padding: 4px 10px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.arcade-tower-spin-btn:hover {
  transform: scale(1.06);
}

/* Toast popup for previews */
.arcade-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2D3436;
  color: #FFFFFF;
  border: 2.5px solid #FFD166;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--font-display, cursive);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 99999;
}

.arcade-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile Breakpoints */
@media (max-width: 900px) {
  .arcade-hero-spotlight {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .arcade-hero-poster-wrap {
    max-width: 360px;
    margin: 0 auto;
  }
}



/* ==========================================================================
   🎮 OPTION 2: HORIZON SPLIT SHELF ARCADE LOBBY
   ========================================================================== */

.arcade-split-shelf-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

/* Category Filter Bar */
.arcade-shelf-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 6px 0;
}
.arcade-shelf-filter-bar::-webkit-scrollbar {
  display: none;
}

.arcade-shelf-pill {
  background: #FFFFFF;
  border: 2px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 3px 0 #2D3436;
  color: #2D3436;
  font-family: var(--font-display, cursive);
  font-size: 13px;
  font-weight: 800;
  padding: 5px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.arcade-shelf-pill:hover {
  transform: translateY(-2px);
  background: #FFF9DB;
}
.arcade-shelf-pill.active {
  background: #8338EC;
  color: #FFFFFF;
}

/* Section Headings */
.arcade-shelf-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -4px;
}
.arcade-shelf-title {
  font-family: var(--font-display, cursive);
  font-size: 17px;
  font-weight: 900;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.arcade-shelf-badge {
  background: #ECFDF5;
  color: #059669;
  border: 1.5px solid #A7F3D0;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
}

/* --- Row 1: Horizontal Playable Cards --- */
.arcade-shelf-row-playable {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
}

.arcade-card-horizontal {
  background: #FFFFFF;
  border: 2.5px solid #2D3436;
  border-radius: 20px;
  box-shadow: 0 4px 0 #2D3436, 0 8px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 14px;
  padding: 12px;
  box-sizing: border-box;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease;
  min-height: 135px;
}
.arcade-card-horizontal:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 0 #2D3436, 0 14px 22px rgba(0, 0, 0, 0.12);
}

.arcade-card-h-thumb {
  width: 140px;
  height: 105px;
  border-radius: 14px;
  border: 2px solid #2D3436;
  overflow: clip;
  flex-shrink: 0;
  position: relative;
  background: #1E293B;
}
.arcade-card-h-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.arcade-card-horizontal:hover .arcade-card-h-thumb img {
  transform: scale(1.06);
}

.arcade-card-h-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #10B981;
  color: white;
  font-family: var(--font-display, cursive);
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.arcade-card-h-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.arcade-card-h-title {
  margin: 0;
  font-family: var(--font-display, cursive);
  font-size: 16px;
  font-weight: 900;
  color: #1E293B;
  line-height: 1.25;
}

.arcade-card-h-desc {
  margin: 3px 0 0 0;
  font-family: var(--font-body, sans-serif);
  font-size: 12px;
  color: #64748B;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: clip;
}

.arcade-card-h-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1.5px dashed #E2E8F0;
}

.arcade-card-h-play-btn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 2px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 3px 0 #2D3436;
  color: #FFFFFF;
  font-family: var(--font-display, cursive);
  font-size: 13px;
  font-weight: 900;
  padding: 5px 16px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.arcade-card-horizontal:hover .arcade-card-h-play-btn {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  transform: scale(1.04);
}

/* --- Row 2: Compact Vertical Preview Mini-Cards --- */
.arcade-shelf-row-coming {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}

.arcade-card-mini {
  background: #FFFFFF;
  border: 2px solid #2D3436;
  border-radius: 16px;
  box-shadow: 0 3px 0 #2D3436, 0 6px 12px rgba(0, 0, 0, 0.04);
  overflow: clip;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 195px;
}
.arcade-card-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 0 #2D3436, 0 10px 18px rgba(0, 0, 0, 0.08);
}

.arcade-card-mini-thumb {
  height: 105px;
  width: 100%;
  position: relative;
  background: #1E293B;
  overflow: clip;
  border-bottom: 2px solid #2D3436;
}
.arcade-card-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.arcade-card-mini:hover .arcade-card-mini-thumb img {
  transform: scale(1.07);
}

.arcade-card-mini-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #8338EC;
  color: white;
  font-family: var(--font-display, cursive);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid white;
}

.arcade-card-mini-body {
  padding: 8px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.arcade-card-mini-title {
  margin: 0;
  font-family: var(--font-display, cursive);
  font-size: 13.5px;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.25;
}

.arcade-card-mini-desc {
  margin: 2px 0 0 0;
  font-family: var(--font-body, sans-serif);
  font-size: 11px;
  color: #64748B;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: clip;
}

.arcade-card-mini-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #E2E8F0;
}

.arcade-card-mini-preview-btn {
  background: #F1F5F9;
  border: 1.5px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 2px 0 #2D3436;
  color: #475569;
  font-family: var(--font-display, cursive);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}
.arcade-card-mini:hover .arcade-card-mini-preview-btn {
  background: #FFD166;
  color: #2D3436;
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .arcade-shelf-row-playable {
    grid-template-columns: 1fr;
  }
  .arcade-shelf-row-coming {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* ==========================================================================
   🎮 COMPACT 4-GAME RANDOMIZED TOP ROW (100% ZERO-SCROLL ARCADE LOBBY)
   ========================================================================== */

body[data-page="games"] .station-discovery-arena {
  height: calc(100vh - var(--navbar-h) - 10px) !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

body[data-page="games"] .station-bento-arena {
  overflow-y: hidden !important;
  overflow-x: hidden !important;
  padding: 4px 10px 10px 6px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

@media (max-width: 900px) {
  body[data-page="games"] .station-bento-arena {
    overflow-y: auto !important;
  }
}

.arcade-split-shelf-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* Category Filter Bar */
.arcade-shelf-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0 4px 0;
  margin: 0;
}
.arcade-shelf-filter-bar::-webkit-scrollbar {
  display: none;
}

.arcade-shelf-pill {
  background: #FFFFFF;
  border: 2px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 2.5px 0 #2D3436;
  color: #2D3436;
  font-family: var(--font-display, cursive);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.arcade-shelf-pill:hover {
  transform: translateY(-2px);
  background: #FFF9DB;
}
.arcade-shelf-pill.active {
  background: #8338EC;
  color: #FFFFFF;
}

/* Section Headings */
.arcade-shelf-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0;
}
.arcade-shelf-title {
  font-family: var(--font-display, cursive);
  font-size: 15px;
  font-weight: 900;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

/* Shuffle Button */
.arcade-shuffle-btn {
  background: #FFD166;
  border: 1.5px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 2px 0 #2D3436;
  color: #2D3436;
  font-family: var(--font-display, cursive);
  font-size: 11.5px;
  font-weight: 900;
  padding: 3px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.1s ease, background 0.1s ease;
}
.arcade-shuffle-btn:hover {
  transform: scale(1.05);
  background: #FFE082;
}
.arcade-shuffle-btn:active {
  transform: translateY(1px);
}

/* --- Row 1: 4 Top Games (Vertical Compact Cards) --- */
.arcade-top-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

.arcade-top-card {
  background: #FFFFFF;
  border: 2px solid #2D3436;
  border-radius: 16px;
  box-shadow: 0 3.5px 0 #2D3436, 0 6px 14px rgba(0, 0, 0, 0.05);
  overflow: clip;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease;
  height: 175px;
  box-sizing: border-box;
}
.arcade-top-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 7px 0 #2D3436, 0 12px 20px rgba(0, 0, 0, 0.1);
}

.arcade-top-card-thumb {
  height: 96px;
  width: 100%;
  position: relative;
  background: #1E293B;
  overflow: clip;
  border-bottom: 2px solid #2D3436;
}
.arcade-top-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.arcade-top-card:hover .arcade-top-card-thumb img {
  transform: scale(1.08);
}

.arcade-top-card-ribbon {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #10B981;
  color: white;
  font-family: var(--font-display, cursive);
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.arcade-top-card-body {
  padding: 6px 8px 8px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.arcade-top-card-title {
  margin: 0;
  font-family: var(--font-display, cursive);
  font-size: 13.5px;
  font-weight: 900;
  color: #1E293B;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arcade-top-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3px;
  padding-top: 4px;
  border-top: 1px dashed #E2E8F0;
}

.arcade-top-card-play-btn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 1.5px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 2px 0 #2D3436;
  color: #FFFFFF;
  font-family: var(--font-display, cursive);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 11px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}
.arcade-top-card:hover .arcade-top-card-play-btn {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  transform: scale(1.05);
}

/* --- Row 2: Bottom Row (More Games & Previews) --- */
.arcade-bottom-shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

.arcade-bottom-card {
  background: #FFFFFF;
  border: 1.5px solid #2D3436;
  border-radius: 14px;
  box-shadow: 0 2.5px 0 #2D3436;
  overflow: clip;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 145px;
}
.arcade-bottom-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 0 #2D3436;
}

.arcade-bottom-card-thumb {
  height: 75px;
  width: 100%;
  position: relative;
  background: #1E293B;
  overflow: clip;
  border-bottom: 1.5px solid #2D3436;
}
.arcade-bottom-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.arcade-bottom-card:hover .arcade-bottom-card-thumb img {
  transform: scale(1.07);
}

.arcade-bottom-card-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #8338EC;
  color: white;
  font-family: var(--font-display, cursive);
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid white;
}

.arcade-bottom-card-body {
  padding: 5px 7px 6px 7px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.arcade-bottom-card-title {
  margin: 0;
  font-family: var(--font-display, cursive);
  font-size: 12px;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arcade-bottom-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  padding-top: 3px;
  border-top: 1px dashed #E2E8F0;
}

.arcade-bottom-card-btn {
  background: #F1F5F9;
  border: 1px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 1.5px 0 #2D3436;
  color: #475569;
  font-family: var(--font-display, cursive);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}
.arcade-bottom-card:hover .arcade-bottom-card-btn {
  background: #FFD166;
  color: #2D3436;
}

@media (max-width: 900px) {
  .arcade-top-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .arcade-bottom-shelf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   🎮 SEARCH & CATEGORY CAROUSEL SHELVES (SCALABLE TO 1000 GAMES, ZERO-SCROLL)
   ========================================================================== */

/* Header Controls: Filters + Search Row */
.arcade-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 2px;
}

.arcade-shelf-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  margin: 0;
  flex: 1;
}
.arcade-shelf-filter-bar::-webkit-scrollbar {
  display: none;
}

/* Kid-Friendly Search Box */
.arcade-search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.arcade-search-input {
  background: #FFFFFF;
  border: 2px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 2.5px 0 #2D3436;
  padding: 4px 28px 4px 30px;
  font-family: var(--font-display, cursive);
  font-size: 11.5px;
  font-weight: 800;
  color: #1E293B;
  outline: none;
  width: 160px;
  transition: width 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s ease, box-shadow 0.2s ease;
}
.arcade-search-input:focus {
  width: 210px;
  border-color: #8338EC;
  box-shadow: 0 3px 0 #8338EC;
}
.arcade-search-input::placeholder {
  color: #94A3B8;
  font-weight: 700;
}

.arcade-search-icon {
  position: absolute;
  left: 9px;
  font-size: 12px;
  pointer-events: none;
  color: #64748B;
}

.arcade-search-clear {
  position: absolute;
  right: 7px;
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: #94A3B8;
  padding: 2px 4px;
  line-height: 1;
  display: none;
}
.arcade-search-clear:hover {
  color: #EF4444;
}

/* Category Shelf Header & Carousel Controls */
.arcade-shelf-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arcade-carousel-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.arcade-carousel-btn {
  background: #FFFFFF;
  border: 1.5px solid #2D3436;
  border-radius: 999px;
  box-shadow: 0 2px 0 #2D3436;
  width: 26px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  color: #2D3436;
  transition: transform 0.1s ease, background 0.1s ease;
}
.arcade-carousel-btn:hover {
  background: #FFD166;
  transform: scale(1.08);
}
.arcade-carousel-btn:active {
  transform: translateY(1px);
}

/* Scalable Horizontal Category Shelf Track (Smooth 0-Scroll) */
.arcade-bottom-shelf-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 30px) / 4);
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.arcade-bottom-shelf-grid::-webkit-scrollbar {
  display: none;
}
.arcade-bottom-shelf-grid .arcade-bottom-card {
  scroll-snap-align: start;
}

/* Star Featured Spotlight Card highlight */
.arcade-top-card.featured-spotlight {
  border: 2.5px solid #8338EC !important;
  box-shadow: 0 4px 0 #8338EC, 0 8px 20px rgba(131, 56, 236, 0.15) !important;
}
.arcade-top-card.featured-spotlight .arcade-top-card-ribbon {
  background: linear-gradient(135deg, #8338EC 0%, #3A86FF 100%) !important;
}

@media (max-width: 900px) {
  .arcade-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .arcade-search-input {
    width: 100%;
  }
  .arcade-search-input:focus {
    width: 100%;
  }
  .arcade-bottom-shelf-grid {
    grid-auto-columns: calc((100% - 10px) / 2);
  }
}

/* Guarantee removal of sidebar floating mascot on games page */
body[data-page="games"] .station-tower-mascot-float,
.station-hero-games .station-tower-mascot-float {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Remove Piku Panda gaming background completely from left sidebar Game Zone box */
body[data-page="games"] .station-tower-hero.station-hero-games::after,
.station-hero-games::after {
  content: none !important;
  display: none !important;
  background-image: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Fix bottom shelf cards to strict equal width (eliminate elongated 5th card) */
.arcade-bottom-shelf-grid {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  width: 100% !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.arcade-bottom-shelf-grid::-webkit-scrollbar {
  display: none !important;
}

.arcade-bottom-card {
  flex: 0 0 calc((100% - 30px) / 4) !important;
  min-width: calc((100% - 30px) / 4) !important;
  max-width: calc((100% - 30px) / 4) !important;
  box-sizing: border-box !important;
  scroll-snap-align: start !important;
}

@media (max-width: 900px) {
  .arcade-bottom-card {
    flex: 0 0 calc((100% - 10px) / 2) !important;
    min-width: calc((100% - 10px) / 2) !important;
    max-width: calc((100% - 10px) / 2) !important;
  }
}

/* Workshop Preview Modal (Option C) */
.workshop-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.workshop-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.workshop-modal-card {
  background: #FFFFFF;
  border: 3.5px solid #2D3436;
  border-radius: 28px;
  box-shadow: 0 12px 0 #2D3436, 0 24px 48px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.workshop-modal-backdrop.active .workshop-modal-card {
  transform: translateY(0) scale(1);
}

.workshop-modal-header {
  background: linear-gradient(135deg, #8338EC 0%, #3A86FF 100%);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #2D3436;
}
.workshop-modal-title {
  font-family: var(--font-display, cursive);
  font-size: 17px;
  font-weight: 900;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  text-shadow: 0 1.5px 0 rgba(0,0,0,0.2);
}
.workshop-modal-close {
  background: #FFFFFF;
  border: 2px solid #2D3436;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 0 #2D3436;
  transition: transform 0.1s ease, background 0.1s ease;
}
.workshop-modal-close:hover {
  background: #FF7675;
  color: white;
  transform: scale(1.1);
}

.workshop-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.workshop-modal-thumb-wrap {
  width: 100%;
  height: 180px;
  border-radius: 18px;
  border: 2px solid #2D3436;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 0 #2D3436;
}
.workshop-modal-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.workshop-modal-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #FF9F43 0%, #EE5253 100%);
  color: white;
  border: 2px solid #2D3436;
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--font-display, cursive);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 2px 0 #2D3436;
}

.workshop-modal-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 12px 14px;
}
.workshop-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  font-family: var(--font-display, cursive);
}

.workshop-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.workshop-btn-notify {
  flex: 1;
  background: #FFD166;
  border: 2px solid #2D3436;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-display, cursive);
  font-size: 13.5px;
  font-weight: 900;
  color: #2D3436;
  box-shadow: 0 3px 0 #2D3436;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}
.workshop-btn-notify:hover {
  background: #FFE082;
  transform: translateY(-2px);
}
.workshop-btn-play-balloon {
  flex: 1.2;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 2px solid #2D3436;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-display, cursive);
  font-size: 13.5px;
  font-weight: 900;
  color: #FFFFFF;
  box-shadow: 0 3px 0 #2D3436;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}
.workshop-btn-play-balloon:hover {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  transform: translateY(-2px);
}

/* ==========================================================================
   Balwadi Arcade: Favorites & Play Count Tracking Styles
   ========================================================================== */
.kid-game-fav-btn {
  background: #FFF1F2 !important;
  border: 2px solid #FDA4AF !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-family: 'Baloo 2', cursive, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #E11D48 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  box-shadow: 0 2px 0 #FDA4AF !important;
  transition: all 0.2s ease !important;
}
.kid-game-fav-btn:hover {
  background: #FFE4E6 !important;
  transform: translateY(-1px) scale(1.04) !important;
}
.kid-game-fav-btn.active {
  background: #E11D48 !important;
  border-color: #BE123C !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 0 #BE123C !important;
}

.arcade-card-fav-btn {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  z-index: 5 !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 2px solid #2D3436 !important;
  box-shadow: 0 2px 0 #2D3436 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease !important;
  padding: 0 !important;
}
.arcade-card-fav-btn:hover {
  transform: scale(1.18) !important;
  background: #FFF1F2 !important;
}
.arcade-card-fav-btn.liked {
  background: #FFE4E6 !important;
  border-color: #E11D48 !important;
  box-shadow: 0 2px 0 #E11D48 !important;
}

.workshop-btn-fav {
  background: #FFF1F2 !important;
  color: #E11D48 !important;
  border: 2px solid #FDA4AF !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  font-family: var(--font-display, cursive) !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  box-shadow: 0 2.5px 0 #FDA4AF !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}
.workshop-btn-fav:hover {
  background: #FFE4E6 !important;
  transform: translateY(-1px) !important;
}
.workshop-btn-fav.active {
  background: #E11D48 !important;
  color: #FFFFFF !important;
  border-color: #BE123C !important;
  box-shadow: 0 2.5px 0 #BE123C !important;
}

/* ==========================================================================
   Skybar Daily Growth Quest Pill (Polished Balwadi Standard)
   ========================================================================== */
.opt2-quest-pill,
.daily-growth-quest-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  height: 40px !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5253 100%) !important;
  color: #FFFFFF !important;
  border: 2.5px solid #2D3436 !important;
  border-radius: 999px !important;
  box-shadow: 0 3.5px 0 #2D3436 !important;
  font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  cursor: pointer !important;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, background 0.15s ease !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  outline: none !important;
}

.opt2-quest-pill:hover,
.daily-growth-quest-pill:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 0 #2D3436 !important;
  background: linear-gradient(135deg, #FF7675 0%, #E84142 100%) !important;
}

.opt2-quest-pill:active,
.daily-growth-quest-pill:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1.5px 0 #2D3436 !important;
}

.opt2-quest-pill .quest-pill-icon,
.daily-growth-quest-pill .quest-pill-icon {
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.opt2-quest-pill .quest-pill-text,
.daily-growth-quest-pill .quest-pill-text {
  font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  letter-spacing: 0.3px !important;
}

.opt2-quest-pill .quest-pill-badge,
.daily-growth-quest-pill .quest-pill-badge {
  background: #FEF08A !important;
  color: #1E293B !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  border: 1.5px solid #2D3436 !important;
  box-shadow: 0 1.5px 0 #2D3436 !important;
  margin-left: 2px !important;
  line-height: 1.2 !important;
}





/* ==========================================================================
   BALWADI STORIES CATALOG: PURE 2-ROW WOODEN BOOKSHELF (NO SHELF NAMES, HD ART)
   ========================================================================== */
body[data-page="books"] .station-bento-arena {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  height: 100% !important;
}

.folk-library-cabinet {
  background: #FFFDF7;
  border: 7px solid #D97706;
  border-image: linear-gradient(135deg, #B45309, #F59E0B, #D97706, #78350F) 7;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(120, 53, 15, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

/* Category Filter Bar (Slim Top Strip) */
.shelf-filters-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 14px;
  background: #381908;
  border-bottom: 2px solid #230E04;
  flex: 0 0 auto;
}
.shelf-genre-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.shelf-genre-pills::-webkit-scrollbar { display: none; }

.shelf-genre-pill {
  background: #50220C;
  color: #FEF08A;
  border: 1.5px solid #854D0E;
  border-radius: 999px;
  padding: 3px 13px;
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.shelf-genre-pill.active, .shelf-genre-pill:hover {
  background: #F59E0B;
  color: #281005;
  border-color: #FEF08A;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* Wooden Interior Library Cavity (Full Height for 2 Shelves) */
.wooden-cabinet-cavity {
  background: 
    radial-gradient(ellipse at 50% 20%, rgba(254, 240, 138, 0.18) 0%, transparent 70%),
    repeating-linear-gradient(90deg, #E8D4B4 0px, #E8D4B4 32px, #E1CB9F 32px, #E1CB9F 64px);
  padding: 8px 14px 8px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  min-height: 0;
  gap: 12px;
  overflow: hidden;
}

/* Shelf Tier (Takes exactly 50% height, pure wooden shelf) */
.wooden-shelf-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 50%;
  min-height: 0;
  justify-content: flex-end;
  overflow: visible;
}

/* Books Row resting directly on the wooden plank */
.shelf-books-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 6px 16px 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  height: calc(100% - 22px);
}
.shelf-books-row::-webkit-scrollbar {
  height: 5px;
}
.shelf-books-row::-webkit-scrollbar-thumb {
  background: #A76536;
  border-radius: 4px;
}

/* Physical 3D Wooden Shelf Plank */
.wooden-shelf-plank {
  position: relative;
  height: 22px;
  background: linear-gradient(180deg, #A76536 0%, #7A421C 45%, #562B10 100%);
  border-radius: 4px;
  box-shadow: 
    0 4px 0 #361706,
    0 10px 16px rgba(22, 10, 4, 0.4),
    inset 0 1.5px 2px rgba(255,255,255,0.35);
  border-top: 2px solid #C8834F;
  z-index: 3;
  flex: 0 0 22px;
}

.shelf-bracket-left, .shelf-bracket-right {
  position: absolute;
  bottom: -14px;
  width: 12px;
  height: 16px;
  background: #451E0C;
  border: 1.5px solid #F59E0B;
  z-index: 2;
}
.shelf-bracket-left { left: 8px; border-radius: 0 0 0 6px; }
.shelf-bracket-right { right: 8px; border-radius: 0 0 6px 0; }

.shelf-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #78350F;
  border: 2px solid #FEF08A;
  color: #FEF08A;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  transition: all 0.15s;
}
.shelf-nav-btn:hover {
  background: #F59E0B;
  color: #3E1E0F;
  transform: translateY(-50%) scale(1.08);
}
.shelf-nav-prev { left: -10px; }
.shelf-nav-next { right: -10px; }

/* ── ROW 1: FEATURED HARDCOVER STORYBOOKS (HD JACKET DESIGN, ZERO OVERLAP) ── */
.book-featured-card {
  flex: 0 0 auto;
  height: 94%;
  max-height: 235px;
  aspect-ratio: 1 / 1.25;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.book-featured-card:hover {
  transform: translateY(-5px);
  z-index: 15;
}

.book-hardcover-wrap {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #FFFDF7;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.28),
    0 8px 18px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 3px solid #B45309;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.book-featured-card:hover .book-hardcover-wrap {
  border-color: #F59E0B;
  box-shadow: 
    0 6px 16px rgba(245, 158, 11, 0.4),
    0 14px 28px rgba(0,0,0,0.35);
}

/* Clear, High-Contrast Title Header on Book Jacket */
.book-jacket-header {
  background: linear-gradient(180deg, #FFFDF0 0%, #FEF9E7 100%);
  border-bottom: 2px solid #F59E0B;
  padding: 4px 6px;
  text-align: center;
  flex: 0 0 auto;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-jacket-title {
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #1F2937;
  line-height: 1.15;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Crystal-Clear Book Illustration: sharp, unobstructed, vibrant */
.book-thumb-img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #FFFBEB;
}

/* Jacket Footer with Star Rating & Duration */
.book-jacket-footer {
  background: #451E0C;
  color: #FEF08A;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 10px;
  font-weight: 800;
  flex: 0 0 auto;
  border-top: 1px solid #78350F;
}

/* ── ROW 2: LIBRARY & COMING SOON BOOKS (ZERO OVERLAP, HD JACKET) ── */
.book-library-card, .book-coming-soon-card {
  flex: 0 0 auto;
  height: 94%;
  max-height: 235px;
  aspect-ratio: 1 / 1.25;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.book-library-card:hover, .book-coming-soon-card:hover {
  transform: translateY(-5px);
  z-index: 15;
}
.book-library-card .book-hardcover-wrap {
  border: 3px solid #78350F;
}
.book-library-card:hover .book-hardcover-wrap {
  border-color: #F59E0B;
}
.book-coming-soon-card .book-hardcover-wrap {
  border: 3px dashed #D97706;
  background: #FFFBEB;
}
.coming-soon-overlay-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #1F2937;
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.35);
  border: 1px solid #FEF08A;
  white-space: nowrap;
  z-index: 10;
}

/* UPRIGHT BOOK SPINES (PROPORTIONAL TO SHELF, NO SCALE OVERLAP) */
.book-spine-upright {
  flex: 0 0 28px;
  height: 84%;
  max-height: 210px;
  position: relative;
  border-radius: 4px 4px 2px 2px;
  box-shadow: -2px 0 3px rgba(0,0,0,0.4), 2px 3px 7px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 7px 3px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border: 1px solid rgba(0,0,0,0.25);
  box-sizing: border-box;
}
.book-spine-upright:hover {
  transform: translateY(-8px);
  z-index: 20;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}
.spine-title-text {
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 110px;
  color: #FFF;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.spine-accent-band {
  width: 100%;
  height: 5px;
  border-top: 1px solid #FEF08A;
  border-bottom: 1px solid #FEF08A;
  opacity: 0.85;
}
.spine-ornament {
  font-size: 9px;
  transform: rotate(90deg);
}

.spine-blue   { background: linear-gradient(90deg, #1E40AF 0%, #3B82F6 50%, #1D4ED8 100%); }
.spine-red    { background: linear-gradient(90deg, #991B1B 0%, #EF4444 50%, #B91C1C 100%); }
.spine-green  { background: linear-gradient(90deg, #166534 0%, #22C55E 50%, #15803D 100%); }
.spine-purple { background: linear-gradient(90deg, #6B21A8 0%, #A855F7 50%, #7E22CE 100%); }
.spine-amber  { background: linear-gradient(90deg, #92400E 0%, #F59E0B 50%, #B45309 100%); }
.spine-teal   { background: linear-gradient(90deg, #115E59 0%, #14B8A6 50%, #0F766E 100%); }

.shelf-trinket {
  flex: 0 0 auto;
  font-size: 24px;
  margin-bottom: 3px;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.4));
  cursor: pointer;
  transition: transform 0.2s;
}
.shelf-trinket:hover {
  transform: scale(1.15) rotate(6deg);
}


/* ═══════════════════════════════════════════════════════════
   BOOKS & GAMES STATION REFINEMENTS (AUDIT POLISH)
   ═══════════════════════════════════════════════════════════ */

/* 1. Quick Audio Listen Preview Chip on Book Hover */
.book-audio-listen-pill {
  position: absolute;
  top: 42px;
  right: 8px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  color: #FEF08A;
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1.5px solid #F59E0B;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
  pointer-events: auto;
  z-index: 12;
  cursor: pointer;
}
.book-featured-card:hover .book-audio-listen-pill,
.book-library-card:hover .book-audio-listen-pill {
  opacity: 1;
  transform: translateY(0);
}
.book-audio-listen-pill:hover {
  background: #D97706;
  color: #FFF;
  border-color: #FEF08A;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.6);
}
.book-audio-listen-pill.is-previewing {
  opacity: 1 !important;
  transform: translateY(0) !important;
  background: #10B981 !important;
  border-color: #A7F3D0 !important;
  color: #FFF !important;
  animation: pulseListen 1.2s infinite;
}
@keyframes pulseListen {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 12px rgba(16, 185, 129, 0.7); }
  100% { transform: scale(1); }
}

/* 2. Interactive Book Spines Wobble Animation */
@keyframes spineWobble {
  0% { transform: rotate(0deg) translateY(-6px); }
  25% { transform: rotate(-5deg) translateY(-8px); }
  50% { transform: rotate(4deg) translateY(-8px); }
  75% { transform: rotate(-2deg) translateY(-7px); }
  100% { transform: rotate(0deg) translateY(-6px); }
}
.book-spine-upright.wobbling {
  animation: spineWobble 0.45s ease-in-out;
}

/* 3. Pulsing Arcade Play Button for Featured Games */
@keyframes arcadePlayPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
.arcade-top-card-play-btn.is-pulsing,
.arcade-bottom-card-btn.is-playable-pulse {
  animation: arcadePlayPulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1) !important;
}

/* 4. Surprise Book Mystery Toast Bubble */
.surprise-book-bubble {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  color: #FEF08A;
  border: 2px solid #F59E0B;
  border-radius: 20px;
  padding: 12px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 18px rgba(245, 158, 11, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Baloo 2', cursive, sans-serif;
}
.surprise-book-bubble.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.surprise-book-bubble-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #1F2937;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.15s;
}
.surprise-book-bubble-btn:hover {
  transform: scale(1.06);
}




/* ==========================================================================
   OPTION 1: MODERN TACTILE CLAYMORPHIC SKYBAR SYSTEM (ULTRA-SLEEK COMPACT 30px)
   Balanced text-to-pill proportion, elegant micro-depth, razor-sharp typography
   ========================================================================== */

/* Global Top Skybar Container (Ultra-Sleek Compact 44px) */
.opt2-sky-bar,
.app-header.sky-bar-shell,
.opt2-sky-bar.sky-bar-shell {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  box-sizing: border-box !important;
  padding: 0 12px !important;
  margin: 0 0 10px !important;
  background: #FFFFFF !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 3px 0 #CBD5E1, 0 8px 20px rgba(15, 23, 42, 0.06) !important;
  gap: 8px !important;
  position: relative !important;
  z-index: 50 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Island 1: Identity & Station Breadcrumb */
.opt2-sky-bar .opt2-island-identity {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-shrink: 0 !important;
}

.opt2-mascot-chip {
  width: auto !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  overflow: visible !important;
  position: relative !important;
  margin-top: -3px !important;
  margin-bottom: -3px !important;
  margin-right: 4px !important;
  flex-shrink: 0 !important;
  z-index: 10 !important;
}
.opt2-mascot-chip:hover {
  transform: scale(1.18) rotate(6deg) !important;
}
.opt2-mascot-img {
  width: auto !important;
  height: 48px !important;
  max-width: 52px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22)) !important;
}

.opt2-brand-col .brand-dev-title {
  font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: 0.3px !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 2px !important;
}

/* Station Indicator Pill (Compact 30px) */
.opt2-page-indicator-pill {
  height: 30px !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 100%) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 0 #0369A1 !important;
  color: #FFFFFF !important;
  padding: 0 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
}
.opt2-page-indicator-pill:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 0 #0369A1 !important;
}
.opt2-page-indicator-pill:active {
  transform: translateY(1px) !important;
  box-shadow: 0 0.5px 0 #0369A1 !important;
}
.opt2-page-pill-icon {
  font-size: 13.5px !important;
  line-height: 1 !important;
}
.opt2-page-pill-text {
  font-weight: 800 !important;
}

/* Island 2: Adaptive Search (Compact 30px) */
.opt2-sky-bar .opt2-island-discovery {
  flex: 1 1 auto !important;
  max-width: 280px !important;
  min-width: 170px !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 4px !important;
}

.opt2-search-input-wrap {
  width: 100% !important;
  height: 30px !important;
  box-sizing: border-box !important;
  background: #F1F5F9 !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1.5px 3px rgba(0,0,0,0.06) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 10px !important;
  position: relative !important;
  transition: background 0.15s, box-shadow 0.15s !important;
}
.opt2-search-input-wrap:focus-within {
  background: #FFFFFF !important;
  box-shadow: 0 0 0 2.5px rgba(56, 189, 248, 0.25), inset 0 1px 2px rgba(0,0,0,0.04) !important;
}

.opt2-search-input {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  padding: 0 24px 0 2px !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #1E293B !important;
}
.opt2-search-input::placeholder {
  color: #94A3B8 !important;
  font-weight: 600 !important;
}

.opt2-voice-btn {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 24px !important;
  border: none !important;
  background: transparent !important;
  font-size: 13px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: background 0.15s ease !important;
  user-select: none !important;
}
.opt2-voice-btn:hover {
  transform: translateY(-50%) !important;
  background: rgba(56, 189, 248, 0.18) !important;
}
.opt2-voice-btn:active {
  transform: translateY(-50%) scale(0.92) !important;
}

/* Island 3: Utility & Governance Items */
.opt2-sky-bar .opt2-island-utility {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

/* Daily Quest Pill (Compact 30px) */
.opt2-quest-pill,
.daily-growth-quest-pill {
  height: 30px !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, #FF6B81 0%, #EE5253 100%) !important;
  box-shadow: 0 2px 0 #C23616 !important;
  border: none !important;
  border-radius: 999px !important;
  color: #FFFFFF !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  white-space: nowrap !important;
}
.opt2-quest-pill:hover,
.daily-growth-quest-pill:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 0 #C23616 !important;
}
.opt2-quest-pill:active,
.daily-growth-quest-pill:active {
  transform: translateY(1px) !important;
  box-shadow: 0 0.5px 0 #C23616 !important;
}
.quest-pill-badge {
  background: rgba(0,0,0,0.2) !important;
  color: #FFFFFF !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  padding: 1px 5px !important;
  border-radius: 8px !important;
  line-height: 1 !important;
}

/* Segmented Language Capsule (Compact 30px, Zero Black Outlines) */
.opt2-lang-group {
  height: 30px !important;
  box-sizing: border-box !important;
  background: #F1F5F9 !important;
  box-shadow: inset 0 1.5px 3px rgba(0,0,0,0.06) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 1.5px !important;
}

.opt2-lang-pill {
  height: 26px !important;
  box-sizing: border-box !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #64748B !important;
  font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.opt2-lang-pill:hover {
  color: #1E293B !important;
  background: rgba(255,255,255,0.65) !important;
}
.opt2-lang-pill.active {
  background: #FBBF24 !important;
  box-shadow: 0 1.5px 0 #D97706 !important;
  color: #78350F !important;
  font-weight: 900 !important;
  border: none !important;
}

.opt2-lang-more-btn {
  height: 26px !important;
  box-sizing: border-box !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #64748B !important;
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  transition: all 0.15s !important;
}
.opt2-lang-more-btn:hover {
  color: #1E293B !important;
  background: rgba(255,255,255,0.65) !important;
}

/* Master Sound Toggle Circle (Compact 30px) - Unified Platform Control */
.opt2-sound-btn,
.sound-toggle-btn {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  box-sizing: border-box !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13.5px !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

/* Sound ON - Vibrant Tactile Green Pill */
.opt2-sound-btn:not(.sound-muted),
.opt2-sound-btn.sound-on,
.sound-toggle-btn:not(.sound-muted),
.sound-toggle-btn.sound-on {
  background: #DCFCE7 !important;
  border: 1.5px solid #10B981 !important;
  box-shadow: 0 2px 0 #059669 !important;
  color: #065F46 !important;
}
.opt2-sound-btn:not(.sound-muted):hover,
.opt2-sound-btn.sound-on:hover,
.sound-toggle-btn:not(.sound-muted):hover,
.sound-toggle-btn.sound-on:hover {
  transform: translateY(-1px) scale(1.06) !important;
  background: #BBF7D0 !important;
  box-shadow: 0 3px 0 #059669 !important;
}

/* Sound MUTED - Vibrant Tactile Red Pill */
.opt2-sound-btn.sound-muted,
.sound-toggle-btn.sound-muted {
  background: #FEE2E2 !important;
  border: 1.5px solid #EF4444 !important;
  box-shadow: 0 2px 0 #DC2626 !important;
  color: #991B1B !important;
}
.opt2-sound-btn.sound-muted:hover,
.sound-toggle-btn.sound-muted:hover {
  transform: translateY(-1px) scale(1.06) !important;
  background: #FECACA !important;
  box-shadow: 0 3px 0 #DC2626 !important;
}

.opt2-sound-btn:active,
.sound-toggle-btn:active {
  transform: translateY(1px) scale(0.96) !important;
  box-shadow: 0 0.5px 0 rgba(0,0,0,0.2) !important;
}

/* Profile / Login HUD Pill (Compact 30px) */
.opt2-profile-pill,
#profile-btn {
  height: 30px !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, #60A5FA 0%, #2563EB 100%) !important;
  box-shadow: 0 2px 0 #1D4ED8 !important;
  border: none !important;
  border-radius: 999px !important;
  color: #FFFFFF !important;
  padding: 0 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  white-space: nowrap !important;
}
.opt2-profile-pill:hover,
#profile-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 0 #1D4ED8 !important;
}
.opt2-profile-pill:active,
#profile-btn:active {
  transform: translateY(1px) !important;
  box-shadow: 0 0.5px 0 #1D4ED8 !important;
}

/* Parents Gate Pill (Compact 30px) */
.opt2-parents-pill,
.parents-portal-btn {
  height: 30px !important;
  box-sizing: border-box !important;
  background: #F8FAFC !important;
  box-shadow: 0 2px 0 #CBD5E1 !important;
  border: none !important;
  border-radius: 999px !important;
  color: #475569 !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  white-space: nowrap !important;
}
.opt2-parents-pill:hover,
.parents-portal-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 0 #CBD5E1 !important;
  background: #FFFFFF !important;
}
.opt2-parents-pill:active,
.parents-portal-btn:active {
  transform: translateY(1px) !important;
  box-shadow: 0 0.5px 0 #CBD5E1 !important;
}


/* =============================================================
   SKYBAR 1.2: FLOATING UNIVERSAL SEARCH DROPDOWN & VOICE MODAL
   ============================================================= */

/* Search Clear Button */
.opt2-search-clear-btn {
  position: absolute !important;
  right: 28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 17px !important;
  height: 17px !important;
  border-radius: 50% !important;
  background: #CBD5E1 !important;
  border: none !important;
  color: #FFFFFF !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 0 !important;
  z-index: 2 !important;
  transition: background 0.15s, transform 0.15s !important;
}
.opt2-search-clear-btn:hover {
  background: #94A3B8 !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* Floating Search Dropdown */
#skybar-search-dropdown {
  display: none;
  position: fixed;
  z-index: 99999;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
  box-sizing: border-box;
  animation: skybarDropSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Fredoka', 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

@keyframes skybarDropSlide {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-drop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 8px 6px;
  border-bottom: 1.5px solid #F1F5F9;
  margin-bottom: 8px;
}
.search-drop-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.search-drop-count {
  font-size: 11px;
  font-weight: 800;
  color: #38BDF8;
  background: #F0F9FF;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Quick Trending Chips */
.search-quick-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 2px 8px 2px;
}
.search-quick-tag {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  color: #334155;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.search-quick-tag:hover {
  background: #E0F2FE;
  border-color: #38BDF8;
  color: #0284C7;
  transform: translateY(-1px);
}

/* Search Results List */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}
.search-result-item:hover,
.search-result-item.highlighted {
  background: #F8FAFC;
  border-color: #E2E8F0;
  transform: translateX(3px);
}
.search-result-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #F1F5F9;
  flex-shrink: 0;
  border: 1px solid #E2E8F0;
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-name {
  font-size: 13px;
  font-weight: 800;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.search-result-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.search-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 999px;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.search-result-category {
  color: #64748B;
  font-size: 10.5px;
}

/* Kid-Friendly Voice Modal */
#skybar-voice-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: voiceFadeIn 0.2s ease-out;
}

@keyframes voiceFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.voice-modal-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 26px 24px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
  text-align: center;
  position: relative;
  border: 3.5px solid #38BDF8;
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  animation: voiceCardPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes voiceCardPop {
  from { transform: scale(0.88); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.voice-mascot-head {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
  animation: mascotBob 3s ease-in-out infinite alternate;
}

.voice-modal-title {
  font-size: 20px;
  font-weight: 900;
  color: #0F172A;
  margin: 18px 0 6px 0;
}
.voice-modal-subtitle {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 20px;
}

/* Pulsing Sonic Wave Animation */
.voice-wave-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voice-ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.25);
  animation: voiceRipple 1.8s infinite cubic-bezier(0.25, 1, 0.5, 1);
}
.voice-ripple:nth-child(2) {
  animation-delay: 0.6s;
}
@keyframes voiceRipple {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.voice-mic-core {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #FFFFFF;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.voice-mic-core:hover {
  transform: scale(1.08);
}

.voice-transcript-box {
  background: #F8FAFC;
  border: 2px dashed #CBD5E1;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 800;
  color: #334155;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  word-break: break-word;
}
.voice-transcript-box.listening {
  border-color: #38BDF8;
  background: #F0F9FF;
  color: #0369A1;
}

.voice-suggestions-hint {
  font-size: 11.5px;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.voice-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}
.voice-chip {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.voice-chip:hover {
  background: #E0F2FE;
  border-color: #38BDF8;
  color: #0284C7;
  transform: translateY(-1px);
}

.voice-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.voice-cancel-btn {
  background: #F1F5F9;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 800;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}
.voice-cancel-btn:hover {
  background: #E2E8F0;
  color: #1E293B;
}

/* Real-Time Audio Level Equalizer */
.voice-equalizer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  margin: 10px 0 14px 0;
}
.voice-eq-bar {
  width: 5px;
  height: 8px;
  min-height: 4px;
  max-height: 28px;
  background: #38BDF8;
  border-radius: 999px;
  transition: height 0.06s ease, background 0.15s ease;
}
.voice-eq-bar.active {
  background: #10B981;
}


/* ==========================================================================
   🎪 STUDIO 3.8: FUN ZONE PRO TACTILE FLIP CARDS (SSOT)
   ========================================================================== */
.fun-bento-card {
  width: 100% !important;
  height: 100% !important;
  perspective: 1000px !important;
  cursor: pointer !important;
  user-select: none !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.fun-bento-card .flip-card-inner {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  transform-style: preserve-3d !important;
}

.fun-bento-card.flipped .flip-card-inner {
  transform: rotateY(180deg) !important;
}

.fun-bento-card .flip-card-front,
.fun-bento-card .flip-card-back {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

/* Front Side */
.fun-bento-card .flip-card-front {
  border: 1.5px solid #E2E8F0 !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 0 #CBD5E1, 0 6px 14px rgba(15, 23, 42, 0.05) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

.fun-bento-card:hover .flip-card-front {
  transform: translateY(-3px) !important;
  border-color: #94A3B8 !important;
  box-shadow: 0 6px 0 #CBD5E1, 0 10px 18px rgba(15, 23, 42, 0.08) !important;
}

.fun-bento-card:active .flip-card-front {
  transform: translateY(2px) !important;
  box-shadow: 0 1.5px 0 #CBD5E1 !important;
}

/* Hero Thumbnail Stage (84px high - exactly like quiz station for viewport fit) */
.fun-card-thumb-stage {
  position: relative !important;
  width: 100% !important;
  height: 84px !important;
  overflow: hidden !important;
  background: #0F172A !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.fun-card-thumb-stage .fun-visual-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

.fun-bento-card:hover .fun-visual-thumb {
  transform: scale(1.06) !important;
}

/* Floating Badges */
.fun-flag-badge {
  position: absolute !important;
  bottom: 4px !important;
  left: 5px !important;
  font-family: var(--font-kids, 'Fredoka', cursive) !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 1.5px 5px !important;
  border-radius: 4px !important;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.3) !important;
  z-index: 5 !important;
}

.fun-xp-badge {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  background: #10B981 !important;
  color: #FFFFFF !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  padding: 1.5px 6px !important;
  border-radius: 4px !important;
  box-shadow: 0 1.5px 0 #059669 !important;
  z-index: 5 !important;
}

/* Card Body & Footer */
.fun-card-footer-stage {
  padding: 4px 7px 6px 7px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 2px !important;
  background: #FFFFFF !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

.fun-card-title {
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  line-height: 1.15 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
  min-height: 24px !important;
  max-height: 26px !important;
}

.fun-meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: auto !important;
}

.fun-tts-btn {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 6px !important;
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 1px 0 #94A3B8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  cursor: pointer !important;
  transition: all 0.1s ease !important;
  padding: 0 !important;
}

.fun-tts-btn:hover {
  background: #E2E8F0 !important;
  transform: translateY(-1px) !important;
}

.fun-tts-btn:active {
  transform: translateY(1px) !important;
  box-shadow: none !important;
}

.fun-direct-btn {
  flex: 1 !important;
  height: 25px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 0 6px !important;
  border-radius: 6px !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #FFFFFF !important;
  border: 1.5px solid #B45309 !important;
  box-shadow: 0 2px 0 #92400E !important;
}

.fun-direct-btn.btn-riddle {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%) !important;
  border: 1.5px solid #5B21B6 !important;
  box-shadow: 0 2px 0 #4C1D95 !important;
}

.fun-direct-btn.btn-twister {
  background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%) !important;
  border: 1.5px solid #9D174D !important;
  box-shadow: 0 2px 0 #831843 !important;
}

.fun-direct-btn:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.05) !important;
}

.fun-direct-btn:active {
  transform: translateY(1.5px) !important;
  box-shadow: none !important;
}

/* Back Side (Flipped State) */
.fun-bento-card .flip-card-back {
  transform: rotateY(180deg) !important;
  border: 2px solid #86EFAC !important;
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%) !important;
  box-shadow: 0 4px 0 #86EFAC, 0 6px 14px rgba(15, 23, 42, 0.06) !important;
  padding: 6px 8px 6px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 2px !important;
}

.fun-back-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.fun-back-badge {
  background: #10B981 !important;
  color: #FFFFFF !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 0 #059669 !important;
}

.fun-back-status {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  color: #15803D !important;
}

.fun-back-punchline {
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  color: #14532D !important;
  line-height: 1.2 !important;
  text-align: center !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: auto 0 !important;
}

.fun-back-why {
  font-size: 9.5px !important;
  font-weight: 600 !important;
  color: #166534 !important;
  text-align: center !important;
  line-height: 1.15 !important;
  opacity: 0.9 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.fun-back-replay-btn {
  width: 100% !important;
  height: 24px !important;
  border-radius: 6px !important;
  background: #22C55E !important;
  color: #FFFFFF !important;
  border: 1.5px solid #16A34A !important;
  box-shadow: 0 1.5px 0 #15803D !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.1s ease !important;
}

.fun-back-replay-btn:hover {
  background: #16A34A !important;
  transform: translateY(-1px) !important;
}

.fun-back-replay-btn:active {
  transform: translateY(1px) !important;
  box-shadow: none !important;
}

/* Ribbons for Fun Zone */
.ribbon-top-lol {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.4) !important;
}

.ribbon-tricky {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
  box-shadow: 0 2px 4px rgba(124, 58, 237, 0.4) !important;
}

.ribbon-twister {
  background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%) !important;
  box-shadow: 0 2px 4px rgba(219, 39, 119, 0.4) !important;
}

.ribbon-viral {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%) !important;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.4) !important;
}


/* ==========================================================================
   FUN ZONE: TAILORED LOOK & FEEL (JOKES vs RIDDLES vs COMICS)
   ========================================================================== */

/* 1. SILLY JOKES THEME (Warm, Bouncy, Coral/Gold) */
.fun-bento-card.card-joke .flip-card-front {
  border-color: #FED7AA !important;
  box-shadow: 0 4px 0 #FDBA74, 0 6px 14px rgba(249, 115, 22, 0.08) !important;
}
.fun-bento-card.card-joke:hover .flip-card-front {
  border-color: #FB923C !important;
  box-shadow: 0 6px 0 #FDBA74, 0 10px 18px rgba(249, 115, 22, 0.12) !important;
}
.fun-flag-badge.badge-joke {
  background: rgba(254, 243, 199, 0.95) !important;
  color: #B45309 !important;
  border-color: #FCD34D !important;
}
.fun-direct-btn.btn-joke {
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5253 100%) !important;
  box-shadow: 0 1.5px 0 #C23616 !important;
}
.fun-direct-btn.btn-joke:hover {
  background: linear-gradient(135deg, #FF7675 0%, #D63031 100%) !important;
}

/* 2. BRAIN RIDDLES THEME (Mysterious, Inquisitive, Indigo/Teal) */
.fun-bento-card.card-riddle .flip-card-front {
  border-color: #DDD6FE !important;
  box-shadow: 0 4px 0 #C4B5FD, 0 6px 14px rgba(109, 40, 217, 0.08) !important;
}
.fun-bento-card.card-riddle:hover .flip-card-front {
  border-color: #A78BFA !important;
  box-shadow: 0 6px 0 #C4B5FD, 0 10px 18px rgba(109, 40, 217, 0.12) !important;
}
.fun-flag-badge.badge-riddle {
  background: rgba(237, 233, 254, 0.95) !important;
  color: #6D28D9 !important;
  border-color: #C4B5FD !important;
}
.fun-direct-btn.btn-riddle {
  background: linear-gradient(135deg, #6C5CE7 0%, #4834D4 100%) !important;
  box-shadow: 0 1.5px 0 #3721A6 !important;
}
.fun-direct-btn.btn-riddle:hover {
  background: linear-gradient(135deg, #7C6CF7 0%, #5039E8 100%) !important;
}

/* Riddle Back Stage: Mystery Solved */
.fun-bento-card .flip-card-back.riddle-back {
  border: 2px solid #C4B5FD !important;
  background: linear-gradient(135deg, #FAF5FF 0%, #EDE9FE 100%) !important;
  box-shadow: 0 4px 0 #C4B5FD, 0 6px 14px rgba(109, 40, 217, 0.08) !important;
}
.riddle-back .fun-back-badge {
  background: #6D28D9 !important;
  color: #FFFFFF !important;
}
.riddle-back .fun-back-punchline {
  color: #4C1D95 !important;
}
.riddle-feedback-row {
  display: flex !important;
  gap: 4px !important;
  margin: 1px 0 !important;
}
.riddle-chip {
  flex: 1 !important;
  height: 20px !important;
  border-radius: 999px !important;
  border: 1px solid #C4B5FD !important;
  background: #FFFFFF !important;
  color: #6D28D9 !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.1s ease !important;
  padding: 0 4px !important;
}
.riddle-chip:hover {
  background: #6D28D9 !important;
  color: #FFFFFF !important;
  border-color: #6D28D9 !important;
}

/* 3. COMICS THEME (Pop-Art Comic Cover, Non-Flip Tactile Bento Card) */
.comic-bento-card {
  width: 100% !important;
  height: 100% !important;
  border-radius: 14px !important;
  border: 2px solid #2D3436 !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 0 #2D3436, 0 8px 16px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.comic-bento-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 0 #2D3436, 0 12px 20px rgba(0, 0, 0, 0.12) !important;
}
.comic-bento-card:active {
  transform: translateY(2px) !important;
  box-shadow: 0 1.5px 0 #2D3436 !important;
}
.comic-bento-thumb {
  position: relative !important;
  width: 100% !important;
  height: 84px !important;
  flex: 0 0 84px !important;
  overflow: hidden !important;
  background: #1E293B !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}
.comic-bento-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}
.comic-bento-card:hover .comic-bento-thumb img {
  transform: scale(1.06) !important;
}
.comic-panel-count-badge {
  position: absolute !important;
  bottom: 4px !important;
  left: 6px !important;
  z-index: 3 !important;
  background: rgba(15, 23, 42, 0.88) !important;
  color: #38BDF8 !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 1px 6px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}
.comic-bento-footer {
  padding: 4px 7px 6px 7px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 2px !important;
  background: #FFFFFF !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}
.comic-bento-title {
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  color: #1E293B !important;
  line-height: 1.15 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
  min-height: 24px !important;
  max-height: 26px !important;
}
.comic-action-row {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  width: 100% !important;
}
.comic-lang-indicator {
  height: 24px !important;
  padding: 0 6px !important;
  border-radius: 6px !important;
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 1px 0 #94A3B8 !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #475569 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.comic-read-btn {
  flex-grow: 1 !important;
  height: 24px !important;
  background: linear-gradient(135deg, #8338EC 0%, #3A86FF 100%) !important;
  color: #FFFFFF !important;
  border: 1.5px solid #2D3436 !important;
  border-radius: 6px !important;
  box-shadow: 0 1.5px 0 #2D3436 !important;
  font-family: var(--font-display, 'Baloo 2', 'Fredoka', cursive) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.comic-read-btn:hover {
  background: linear-gradient(135deg, #9B51E0 0%, #4D96FF 100%) !important;
  box-shadow: 0 2px 0 #2D3436 !important;
}
.comic-read-btn:active {
  transform: translateY(1.5px) !important;
  box-shadow: none !important;
}


/* 4. TONGUE TWISTERS THEME (Light, Airy Strawberry Pastel & Playful Candy Accent) */
.fun-bento-card.card-twister .flip-card-front {
  border-color: #FECDD3 !important;
  box-shadow: 0 4px 0 #FDA4AF, 0 6px 14px rgba(244, 63, 94, 0.06) !important;
}
.fun-bento-card.card-twister:hover .flip-card-front {
  border-color: #FB7185 !important;
  box-shadow: 0 6px 0 #FDA4AF, 0 10px 18px rgba(244, 63, 94, 0.10) !important;
}
.fun-bento-card.card-twister .fun-card-thumb-stage {
  background: #FFF1F2 !important;
}
.fun-flag-badge.badge-twister {
  background: rgba(255, 241, 242, 0.95) !important;
  color: #E11D48 !important;
  border-color: #FECDD3 !important;
}
.corner-ribbon.ribbon-twister {
  background: linear-gradient(135deg, #FB7185 0%, #F43F5E 100%) !important;
  color: #FFFFFF !important;
}
.fun-direct-btn.btn-twister {
  background: linear-gradient(135deg, #FB7185 0%, #F43F5E 100%) !important;
  box-shadow: 0 1.5px 0 #E11D48 !important;
  color: #FFFFFF !important;
}
.fun-direct-btn.btn-twister:hover {
  background: linear-gradient(135deg, #FDA4AF 0%, #FB7185 100%) !important;
}

/* Twister Back Stage: Speed Master (Soft Candy Rose) */
.fun-bento-card .flip-card-back.twister-back {
  border: 2px solid #FDA4AF !important;
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%) !important;
  box-shadow: 0 4px 0 #FDA4AF, 0 6px 14px rgba(244, 63, 94, 0.06) !important;
}
.twister-back .fun-back-badge {
  background: #F43F5E !important;
  color: #FFFFFF !important;
}
.twister-back .fun-back-punchline {
  color: #9F1239 !important;
}
.twister-back .riddle-chip {
  border-color: #FDA4AF !important;
  color: #E11D48 !important;
}
.twister-back .riddle-chip:hover {
  background: #F43F5E !important;
  color: #FFFFFF !important;
  border-color: #F43F5E !important;
}


/* ══════════════════════════════════════════════════════════════════════
   KID-FRIENDLY TYPOGRAPHY ENHANCEMENTS (Ages 2-12 Usability Standard)
   ══════════════════════════════════════════════════════════════════════ */
.bento-badge-chip,
.station-card-badge,
.arcade-top-card-ribbon,
.arcade-bottom-card-badge,
.quiz-flag-badge,
.fun-flag-badge,
.badge-age,
.badge-format,
.badge-lang-mr,
.badge-lang-hi,
.badge-lang-en,
.badge-lang-all,
.badge-count {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px;
  line-height: 1.25 !important;
}

.bento-print-pill,
.bento-color-pill,
.arcade-bottom-card-btn {
  font-size: 11.5px !important;
  font-weight: 800 !important;
}

.station-tower-desc {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.action-btn-sub,
.station-ws-action-btn .action-btn-sub,
.station-learn-action-btn .action-btn-sub {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.action-btn-main,
.station-ws-action-btn .action-btn-main,
.station-learn-action-btn .action-btn-main {
  font-size: 13.5px !important;
  font-weight: 900 !important;
}

.station-quest-badge,
.station-quest-footer,
.quiz-xp-badge,
.fun-xp-badge {
  font-size: 11.5px !important;
  font-weight: 800 !important;
}

.station-card-duration-badge {
  font-size: 11px !important;
  font-weight: 800 !important;
}

.pillar-count {
  font-size: 11px !important;
  font-weight: 800 !important;
}

.learn-filter-chip,
.view-toggle-btn {
  font-size: 11px !important;
  font-weight: 800 !important;
}

.qjump-label {
  font-size: 11.5px !important;
  font-weight: 800 !important;
}

.legal-link-item {
  font-size: 11px !important;
}

.legal-footer-copy {
  font-size: 10px !important;
}

.sheet-bento-title,
.learn-bento-card .bento-item-title {
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

:lang(mr), :lang(hi),
[lang="mr"], [lang="hi"] {
  letter-spacing: 0.25px;
}


/* Additional Kid-Friendly Ribbon, Fun & Book Typography */
.corner-ribbon,
.coming-soon-overlay-badge,
.fun-back-badge,
.fun-back-status,
.fun-back-why,
.quiz-scrim-pill,
.live-pill-badge,
.live-pill-sub,
.book-jacket-footer,
.spine-title-text,
.fun-direct-btn,
.fun-back-replay-btn,
.station-card-meta-row,
.station-card-tts-btn,
.bento-audio-pill {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.15px;
}


/* ============================================================== */
/* SHELL 4: STATION BIOMES (Dynamic Scenery Landscapes)           */
/* ============================================================== */
.toy-train-container.biome-sunshine {
    background: linear-gradient(180deg, #FEF9C3 0%, #FFFFFF 100%) !important;
}
.toy-train-container.biome-desert {
    background: linear-gradient(180deg, #FEF3C7 0%, #FED7AA 100%) !important;
    border-color: #FDBA74 !important;
}
.toy-train-container.biome-night {
    background: linear-gradient(180deg, #0F172A 0%, #1E1B4B 100%) !important;
    border-color: #334155 !important;
}
.toy-train-container.biome-snow {
    background: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 100%) !important;
    border-color: #BAE6FD !important;
}
.toy-train-container.biome-candyland {
    background: linear-gradient(180deg, #FCE7F3 0%, #EDE9FE 100%) !important;
    border-color: #F472B6 !important;
}


/* ═══════════════════════════════════════════════════════════════
   DEFINITIVE ZERO-GAP GROUNDING: WHEELS SIT FLUSH ON STEEL RAILS
   ═══════════════════════════════════════════════════════════════ */
body[data-page="home"]:not(.theme-immersive) .toy-train-container .toy-train-viewport {
    height: 100% !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 0 !important;
    margin: 0 !important;
}

body[data-page="home"]:not(.theme-immersive) .toy-train-container .toy-train-viewport .toy-train-track {
    display: inline-flex !important;
    align-items: flex-end !important;
    transform: none !important;
    padding: 0 !important;
    padding-bottom: 0px !important;
    margin: 0 !important;
    gap: 0px !important;
}

body[data-page="home"]:not(.theme-immersive) .toy-train-viewport .train-engine {
    width: 195px !important;
    min-width: 195px !important;
    max-width: 195px !important;
    height: 120px !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    margin: 0 !important;
    margin-bottom: 5px !important;
    padding: 0 !important;
    animation: none !important;
    overflow: visible !important;
}

body[data-page="home"]:not(.theme-immersive) .toy-train-viewport .hub-toy-wagon {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 120px !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    margin: 0 !important;
    margin-bottom: 1px !important;
    padding: 0 !important;
    animation: none !important;
    overflow: visible !important;
}

body[data-page="home"]:not(.theme-immersive) .toy-train-viewport .train-guard-van {
    width: 185px !important;
    min-width: 185px !important;
    max-width: 185px !important;
    height: 120px !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    margin: 0 !important;
    margin-bottom: 3px !important;
    padding: 0 !important;
    animation: none !important;
    overflow: visible !important;
}

.wood-rotating-wheel {
    transform-box: fill-box !important;
    transform-origin: center center !important;
    animation: woodSpinWheel 1.4s infinite linear !important;
}

body[data-page="home"]:not(.theme-immersive) .toy-train-viewport.train-stopped .wood-rotating-wheel,
body[data-page="home"].signal-red .wood-rotating-wheel {
    animation-play-state: paused !important;
}

body[data-page="home"].signal-yellow .wood-rotating-wheel {
    animation-duration: 2.8s !important;
}

body[data-page="home"]:not(.theme-immersive) .toy-train-viewport .train-engine .engine-wrap {
    height: 120px !important;
    width: 195px !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
}

body[data-page="home"]:not(.theme-immersive) .toy-train-viewport .train-engine svg,
body[data-page="home"]:not(.theme-immersive) .toy-train-viewport .hub-toy-wagon svg,
body[data-page="home"]:not(.theme-immersive) .toy-train-viewport .train-guard-van svg,
.admin-train-consist-row svg {
    display: block !important;
    height: 120px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* ═══ SECTION 2.0 SHELL GOVERNANCE (THEME, RADIUS, TYPOGRAPHY, PILLS) ═══ */
.opt2-stage-card {
    border-radius: calc(var(--sec2-card-radius, 18px) + 4px) !important;
    transition: background 0.25s ease, border-color 0.25s ease, border-radius 0.2s ease, box-shadow 0.25s ease !important;
}

.opt2-stage-card .deluxe-box,
.opt2-stage-card .greeting-card-frame,
.opt2-stage-card .homepage-comic-strip-img {
    border-radius: var(--sec2-card-radius, 18px) !important;
    transition: background 0.25s ease, border-color 0.25s ease, border-radius 0.2s ease !important;
}

/* Pill Bar Size Governance */
.opt2-stage-card .hero-tab-pill {
    height: var(--sec2-pill-height, 30px) !important;
    min-height: var(--sec2-pill-height, 30px) !important;
    font-size: var(--sec2-pill-font, 12px) !important;
    padding: var(--sec2-pill-pad, 0 12px) !important;
    transition: all 0.18s ease !important;
}

/* Section Typography Scale Governance */
.opt2-stage-card #hero-stage-content-mount {
    zoom: var(--sec2-font-scale, 1);
}

/* Theme Mode 1: Vibrant Activity Pastels (Default) */
.opt2-stage-card[data-shell-theme="vibrant"] {
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%) !important;
    border: 3px solid #38BDF8 !important;
}

/* Theme Mode 2: Warm Balwadi Cream */
.opt2-stage-card[data-shell-theme="warm_cream"] {
    background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%) !important;
    border: 3px solid #F59E0B !important;
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.18) !important;
}
.opt2-stage-card[data-shell-theme="warm_cream"] .deluxe-box {
    background: linear-gradient(180deg, #FFFBEB 0%, #FDE68A 100%) !important;
    border-color: #D97706 !important;
}
.opt2-stage-card[data-shell-theme="warm_cream"] .hero-tab-pill:not(.active) {
    background: #FFFBEB !important;
    border-color: #F59E0B !important;
    color: #92400E !important;
}

/* Theme Mode 3: Clean Minimal White */
.opt2-stage-card[data-shell-theme="clean_white"] {
    background: #FFFFFF !important;
    border: 3px solid #CBD5E1 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07) !important;
}
.opt2-stage-card[data-shell-theme="clean_white"] .deluxe-box {
    background: #FFFFFF !important;
    border-color: #94A3B8 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}
.opt2-stage-card[data-shell-theme="clean_white"] .hero-tab-pill:not(.active) {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #334155 !important;
}


/* ═══════════════════════════════════════════════════════════════
   📺 KID THEATER 4-CHANNEL DIAL & CC FLYOUT STYLES
   ═══════════════════════════════════════════════════════════════ */
.theater-channel-pill {
    background: transparent;
    color: #94A3B8;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.theater-channel-pill:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.theater-channel-pill.active {
    background: #6366F1 !important;
    color: #FFFFFF !important;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

#theater-ch-mr.active {
    background: #EA580C !important;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
}

#theater-ch-hi.active {
    background: #059669 !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

#theater-ch-en.active {
    background: #2563EB !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.cc-lang-opt:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #60A5FA !important;
}

.cc-lang-opt.active {
    background: rgba(99, 102, 241, 0.25) !important;
    color: #818CF8 !important;
}
