/* ═══════════════════════════════════════════════════════════════
   SparkNest Playground – Pre-Nursery Runner Stylesheet (styles.css)
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. GLOBAL PRESETS & COLOR TOKENS ─── */
:root {
  --font-fun: 'Fredoka One', cursive, sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  --primary-color: #ff8b94;
  --secondary-color: #ffaaa6;
  --bg-color: #f7f9fc;
  --card-bg: #ffffff;
  --text-dark: #2d3748;
  --text-light: #718096;
  --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-pop: 0 15px 30px rgba(255, 139, 148, 0.25);
  
  --green: #2ecc71;
  --red: #ff6b6b;
  --blue: #54a0ff;
  --yellow: #feca57;
  --purple: #9b59b6;
  
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.dashboard {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh;
  position: relative;
}

@supports not (zoom: 1) {
  body.dashboard {
    width: 125%;
    min-height: 125vh;
    transform: scale(0.8);
    transform-origin: top left;
  }
}

/* .page layout handled by sidebar.css */

/* ─── 2. BREADCRUMBS ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #ff6b6b;
  text-decoration: underline;
}

.bc-sep {
  color: #cbd5e0;
}

.bc-current {
  color: var(--text-dark);
}

/* ─── 3. SUBJECT DASHBOARD / LANDING PAGE ─── */
.subject-dashboard {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-left h1 {
  font-family: var(--font-fun);
  font-size: 3rem;
  color: var(--text);
  margin: 0 0 10px 0;
}

.hero-left p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 0 20px 0;
}

.back-link {
  display: inline-block;
  font-family: var(--font-fun);
  background: var(--card);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.back-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.hero-mascot {
  font-size: 8rem;
  animation: floatMascot 4s ease-in-out infinite;
}

.toy-icon {
  font-size: 2.2rem;
  display: inline-block;
  margin-bottom: 10px;
}

.unit-box {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.unit-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 30px;
  border-bottom: 2px dashed rgba(0,0,0,0.05);
}

.unit-icon {
  font-size: 2.5rem;
}

.unit-header h2 {
  font-family: var(--font-fun);
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-dark);
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 30px;
}

.chapter-card {
  background: var(--bg-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chapter-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--secondary-color);
  background: var(--card-bg);
  box-shadow: 0 12px 20px rgba(0,0,0,0.05);
}

.chapter-card.completed {
  border-color: var(--green);
}

.verified-blue-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-left: 8px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.verified-blue-tick:hover {
  transform: scale(1.15) rotate(10deg);
}
.verified-blue-tick svg {
  width: 100%;
  height: 100%;
  fill: #3B82F6;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.25));
}
body[data-theme="dark"] .verified-blue-tick svg {
  fill: #60A5FA;
  filter: drop-shadow(0 2px 4px rgba(96, 165, 250, 0.35));
}

.chapter-info h3, .lesson-title-big {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.chapter-card-header {
  display: flex;
  gap: 15px;
  align-items: center;
  position: relative;
}

.chapter-icon {
  font-size: 3rem;
  transition: transform 0.2s;
}

.chapter-card:hover .chapter-icon {
  transform: rotate(10deg) scale(1.1);
}

.chapter-info h3 {
  font-family: var(--font-fun);
  font-size: 1.15rem;
  margin: 0 0 5px 0;
  color: var(--text-dark);
}

.chapter-info p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

.chapter-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  font-family: var(--font-fun);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--secondary-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chapter-card.completed .chapter-badge {
  background: var(--green);
}

.chapter-badge .verified-blue-tick {
  width: 14px;
  height: 14px;
  margin-left: 0;
}

.chapter-badge .verified-blue-tick svg {
  fill: #ffffff !important;
  filter: none !important;
}

/* ─── 4. PLAYGROUND CORE VIEW LAYOUT ─── */
.chapter-play-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.play-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  padding: 15px 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
}

.back-btn-toddler {
  font-family: var(--font-fun);
  background-color: var(--yellow);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px #e5b323;
  transition: transform 0.1s, box-shadow 0.1s;
}

.back-btn-toddler:active {
  transform: translateY(4px);
  box-shadow: none;
}

.chapter-title-badge {
  font-family: var(--font-fun);
  font-size: 1.4rem;
  color: var(--text-dark);
}

.stars-counter-container {
  font-family: var(--font-fun);
  font-size: 1.3rem;
  background: #fef3c7;
  color: #d97706;
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid #fde68a;
}

.play-steps {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}

.step-dot {
  font-family: var(--font-fun);
  font-size: 1.1rem;
  padding: 12px 25px;
  border-radius: 30px;
  background: var(--card-bg);
  color: var(--text-light);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.step-dot.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-pop);
  transform: scale(1.05);
}

.play-content-panel {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

@media (max-width: 768px) {
  body.dashboard {
    zoom: 100% !important;
  }
  @supports not (zoom: 1) {
    body.dashboard {
      width: 100% !important;
      min-height: 100vh !important;
      transform: none !important;
    }
  }
  .alphabet-playground.fullscreen-active {
    zoom: 100% !important;
  }

  .play-content-panel {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .play-content-panel {
    padding: 15px;
    border-radius: 16px;
  }
}

/* ─── 5. LESSON FLASHCARDS SLIDESHOW ─── */
.lesson-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.lesson-intro-bar {
  font-family: var(--font-fun);
  font-size: 1.3rem;
  color: var(--text-dark);
  text-align: center;
  background: #f0fdf4;
  padding: 12px 24px;
  border-radius: 15px;
  border: 2px dashed #bbf7d0;
}

.lesson-card-toddler {
  background: var(--bg-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 800px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.lesson-card-mascot {
  font-size: 9rem;
  background: var(--card);
  padding: 20px;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s;
}

.lesson-card-mascot:hover {
  transform: scale(1.1) rotate(5deg);
}

.lesson-card-details {
  flex: 1;
}

.lesson-card-details h2 {
  font-family: var(--font-fun);
  font-size: 2.2rem;
  margin: 0 0 15px 0;
  color: var(--text-dark);
}

.lesson-card-body {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 25px 0;
}

.voice-btn {
  font-family: var(--font-fun);
  background-color: var(--blue);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 5px #2980b9;
  transition: transform 0.1s, box-shadow 0.1s;
}

.voice-btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

.voice-btn.speaking {
  background-color: var(--purple);
  box-shadow: 0 5px #7d3c98;
  animation: pulseSpeech 1s infinite alternate;
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  margin-top: 15px;
}

.slide-ctrl-btn {
  font-family: var(--font-fun);
  background-color: #edf2f7;
  border: none;
  color: var(--text-dark);
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px #cbd5e0;
  transition: transform 0.1s, box-shadow 0.1s;
}

.slide-ctrl-btn:not(:disabled):active {
  transform: translateY(4px);
  box-shadow: none;
}

.slide-ctrl-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slide-ctrl-btn.highlight {
  background-color: var(--green);
  color: white;
  box-shadow: 0 4px #27ae60;
}

.slide-indicators {
  display: flex;
  gap: 8px;
}

.indicator-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #e2e8f0;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.indicator-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* ─── 6. ACTIVITIES COMMON LAYOUT ─── */
.activity-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.activity-header-box {
  text-align: center;
}

.activity-header-box h2 {
  font-family: var(--font-fun);
  font-size: 2rem;
  color: var(--text-dark);
  margin: 0 0 10px 0;
}

.activity-header-box .instruction {
  font-size: 1.25rem;
  color: var(--text-light);
  margin: 0;
}

.activity-workspace {
  width: 100%;
  max-width: 800px;
  background: var(--bg-color);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}

.play-btn {
  font-family: var(--font-fun);
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 14px 35px;
  border-radius: 30px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 6px #e5727b;
  transition: transform 0.1s, box-shadow 0.1s;
}

.play-btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

.play-btn.secondary {
  background-color: #cbd5e0;
  color: var(--text-dark);
  box-shadow: 0 6px #94a3b8;
  font-size: 1rem;
  padding: 10px 25px;
}

.play-btn.highlight {
  background-color: var(--green);
  box-shadow: 0 6px #27ae60;
  animation: pulseSpeech 1.5s infinite;
}

/* ─── 7. INTERACTIVE GAME: STRING MATCHING ─── */
.match-game-board {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: clamp(120px, 22vw, 350px);
  margin: 20px auto;
  width: fit-content;
  max-width: 100%;
}

.match-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: fit-content;
  min-width: 180px;
}
.match-column.right {
  align-items: stretch;
}

.match-card-item {
  position: relative;
  width: 100%;
  background: var(--card);
  border: 2.5px solid #ECE9FA;
  border-radius: 20px;
  padding: 14px 22px;
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  user-select: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  transition: border-color .25s, transform .2s, box-shadow .25s, background-color .25s;
  cursor: pointer;
}
body[data-theme="dark"] .match-card-item {
  background: #191635 !important;
  border-color: var(--text) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}
.match-card-item.left-item {
  justify-content: flex-start;
  padding-right: 38px;
}
.match-card-item.right-item {
  justify-content: flex-end;
  padding-left: 38px;
}

.match-card-item:hover:not(.matched) {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(108, 93, 211, 0.08), 0 4px 6px -2px rgba(108, 93, 211, 0.04);
  border-color: #B073FF;
}
body[data-theme="dark"] .match-card-item:hover:not(.matched) {
  border-color: #B073FF !important;
}

.match-card-item.matched {
  border-color: #3DD68C !important;
  background-color: #F1FFF7 !important;
  color: var(--muted) !important;
  cursor: default;
  transform: none;
  box-shadow: none;
}
body[data-theme="dark"] .match-card-item.matched {
  background-color: var(--text) !important;
  border-color: #3DD68C !important;
  color: #a7f3d0 !important;
}
.match-card-item.matched:hover {
  transform: none;
  box-shadow: none;
}

.match-card-item.wrong {
  animation: matchShake .38s ease;
  border-color: #FF6B6B !important;
}

@keyframes matchShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.match-dot {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid #D9D4F5;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(217, 212, 245, 0.35);
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
  z-index: 5;
}
body[data-theme="dark"] .match-dot {
  background: #191635 !important;
  border-color: var(--text) !important;
  box-shadow: 0 0 0 3px rgba(43, 38, 80, 0.5);
}
.match-card-item.left-item .match-dot {
  right: -9px;
}
.match-card-item.right-item .match-dot {
  left: -9px;
}
.match-card-item.matched .match-dot {
  background: #3DD68C !important;
  border-color: #3DD68C !important;
  box-shadow: 0 0 0 4px rgba(61, 214, 140, 0.25) !important;
}
body[data-theme="dark"] .match-card-item.matched .match-dot {
  background: #3DD68C !important;
  border-color: #3DD68C !important;
}
.match-dot.active {
  transform: translateY(-50%) scale(1.25);
  border-color: #B073FF !important;
  box-shadow: 0 0 0 4px rgba(176, 115, 255, 0.25), 0 0 8px rgba(176, 115, 255, 0.5) !important;
}

svg.match-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
svg.match-lines path {
  filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.12));
}

.game-feedback-text {
  font-family: var(--font-fun);
  font-size: 1.25rem;
  text-align: center;
  color: var(--text-light);
  margin-top: 15px;
}

.game-feedback-text.success {
  color: #3DD68C;
}

.matching-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}

.matching-progress {
  display: flex;
  gap: 8px;
  background: #f1effc;
  padding: 8px 16px;
  border-radius: 20px;
  width: fit-content;
  margin: 0 auto;
}
body[data-theme="dark"] .matching-progress {
  background: #1d193d;
}

.matching-pip {
  width: 24px;
  height: 6px;
  border-radius: 4px;
  background: #d9d4f5;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
body[data-theme="dark"] .matching-pip {
  background: #352f63;
}

.matching-pip.on {
  background: #3DD68C;
  width: 36px;
}

/* ─── Premium Redesigned Practice Panel ─── */
.activity-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 3px solid #ECE9FA;
  border-radius: 32px;
  padding: 35px;
  box-shadow: 0 20px 40px -15px rgba(60, 40, 110, 0.08);
  max-width: 800px;
  margin: 0 auto 20px auto;
  transition: all 0.3s ease;
}

body[data-theme="dark"] .activity-panel {
  background: rgba(30, 27, 57, 0.85);
  border-color: var(--text);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.practice-eyebrow {
  font-family: var(--font-fun);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #B073FF;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}

.practice-title {
  font-family: var(--font-fun);
  font-size: 32px;
  color: var(--text-dark);
  font-weight: 800;
  text-align: center;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

body[data-theme="dark"] .practice-title {
  color: #ffffff;
}

.practice-title .set-indicator {
  font-size: 16px;
  background: #EAE5FF;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 700;
}

body[data-theme="dark"] .practice-title .set-indicator {
  background: #2D2754;
  color: #B073FF;
}

.practice-sub {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 28px;
  font-weight: 600;
}

body[data-theme="dark"] .practice-sub {
  color: #a5b4fc;
}

@media (max-width: 1024px) {
  .match-game-board {
    gap: clamp(90px, 16vw, 200px) !important;
    margin: 15px auto;
  }
  .match-column {
    min-width: 140px !important;
  }
  .match-card-item {
    font-size: 16px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }
  .match-dot {
    width: 16px !important;
    height: 16px !important;
    border-width: 2.5px !important;
  }
  .match-card-item.left-item .match-dot {
    right: -8px !important;
  }
  .match-card-item.right-item .match-dot {
    left: -8px !important;
  }
  .quiz-game-board, .quiz-complete-card {
    padding: 25px !important;
    border-radius: 24px !important;
    gap: 20px !important;
  }
  .quiz-question-title {
    font-size: 1.7rem !important;
  }
  .opt-emoji {
    font-size: 2.8rem !important;
  }
  .quiz-opt-btn {
    padding: 16px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 600px) {
  .match-game-board {
    gap: clamp(80px, 18vw, 150px) !important;
  }
  .match-column {
    min-width: 120px !important;
  }
  .match-card-item {
    font-size: 15px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }
  .match-card-item.left-item {
    padding-right: 24px !important;
  }
  .match-card-item.right-item {
    padding-left: 24px !important;
  }
  .match-dot {
    width: 14px !important;
    height: 14px !important;
    border-width: 2px !important;
  }
  .match-card-item.left-item .match-dot {
    right: -7px !important;
  }
  .match-card-item.right-item .match-dot {
    left: -7px !important;
  }
  .match-dot.active {
    transform: translateY(-50%) scale(1.15) !important;
  }
  .quiz-game-board, .quiz-complete-card {
    padding: 20px 15px !important;
    border-radius: 20px !important;
    gap: 15px !important;
  }
  .quiz-question-title {
    font-size: 1.4rem !important;
    margin: 5px 0 !important;
  }
  .opt-emoji {
    font-size: 2.2rem !important;
  }
  .quiz-opt-btn {
    padding: 14px 10px !important;
    border-radius: 12px !important;
    min-width: 120px !important;
  }
  .opt-text {
    font-size: 1rem !important;
  }
  .result-score {
    font-size: 1.6rem !important;
  }
  .result-score span {
    font-size: 2.5rem !important;
  }
  .result-desc {
    font-size: 1.05rem !important;
  }
}

@media (max-width: 400px) {
  .match-game-board {
    gap: clamp(65px, 15vw, 100px) !important;
  }
  .match-column {
    min-width: 90px !important;
  }
  .match-card-item {
    font-size: 13px !important;
    padding: 8px 10px !important;
  }
  .quiz-game-board, .quiz-complete-card {
    padding: 15px 10px !important;
    border-radius: 16px !important;
  }
  .quiz-question-title {
    font-size: 1.25rem !important;
  }
  .quiz-opt-btn {
    min-width: 100% !important;
  }
}

/* ─── 8. INTERACTIVE GAME: FILL IN BLANK ─── */
.fb-game-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.fb-sentence {
  font-family: var(--font-fun);
  font-size: 2rem;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.8;
}

.blank-slot-toddler {
  display: inline-block;
  min-width: 120px;
  height: 50px;
  line-height: 42px;
  border-bottom: 5px dashed var(--primary-color);
  background: var(--card);
  color: var(--primary-color);
  border-radius: 10px;
  margin: 0 10px;
  vertical-align: middle;
  text-align: center;
}

.blank-slot-toddler.filled-correct {
  color: var(--green);
  border-bottom: 5px solid var(--green);
  background-color: #d1fae5;
}

.fb-choices {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.fb-choice-btn {
  font-family: var(--font-fun);
  font-size: 1.4rem;
  padding: 15px 30px;
  border: 4px solid #cbd5e0;
  background: var(--card);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  box-shadow: 0 6px #cbd5e0;
  transition: all 0.1s;
}

.fb-choice-btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

.fb-choice-btn.correct {
  background-color: var(--green);
  color: white;
  border-color: #27ae60;
  box-shadow: 0 6px #1e8449;
}

.fb-choice-btn.wrong {
  background-color: var(--red);
  color: white;
  border-color: var(--muted);
  box-shadow: 0 6px #922b21;
}

.fb-progress-counter {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 700;
}

/* ─── 9. INTERACTIVE GAME: BUBBLE POP ─── */
.bubble-game-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

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

.pop-goal {
  font-family: var(--font-fun);
  font-size: 1.3rem;
  color: var(--text-dark);
}

.bubble-sky-canvas {
  height: 350px;
  width: 100%;
  background: linear-gradient(to top, #87ceeb, #e0f6ff);
  border-radius: var(--border-radius-lg);
  border: 4px solid #ffffff;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.ready-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-fun);
  font-size: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.floating-bubble {
  position: absolute;
  bottom: -110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

.floating-bubble.popped {
  transform: scale(1.4);
  opacity: 0;
}

.pop-success-board {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  text-align: center;
  border: 4px solid var(--green);
}

.pop-success-board h2 {
  font-family: var(--font-fun);
  color: var(--green);
  margin-top: 0;
}

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

/* ─── 10. INTERACTIVE GAME: DRAG SHAPES ─── */
.drag-game-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.drag-instructions {
  font-family: var(--font-fun);
  font-size: 1.2rem;
  text-align: center;
  color: var(--text-dark);
}

.drag-playground {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding: 10px 0;
}

.shape-sources {
  display: flex;
  gap: 25px;
  justify-content: center;
}

.shape-piece {
  width: 100px;
  height: 100px;
  border-radius: 15px;
  color: white;
  font-family: var(--font-fun);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 6px rgba(0,0,0,0.15);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shape-piece:hover {
  transform: translateY(-3px);
}

.shape-piece.selected {
  outline: 6px solid var(--purple);
  transform: scale(1.05);
}

.shape-piece.placed {
  width: 70px;
  height: 70px;
  font-size: 0.8rem;
  box-shadow: none;
  cursor: default;
}

.shape-targets {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.shape-target-box {
  width: 130px;
  height: 130px;
  border: 4px dashed #cbd5e0;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--card);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.shape-target-box span {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-light);
}

.shape-target-box.matched {
  border-color: var(--green);
}

.target-outline {
  width: 60px;
  height: 60px;
  border: 3px dashed #cbd5e0;
  border-radius: 10px;
}

.shape-target-box:hover {
  background-color: #f7fafc;
}

/* ─── 11. INTERACTIVE GAME: PATTERNS ─── */
.pattern-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.pattern-sequence {
  display: flex;
  gap: 15px;
  align-items: center;
}

.pattern-item {
  font-size: 3rem;
  background: var(--card);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.pattern-item.next-slot {
  border: 4px dashed var(--primary-color);
  color: var(--primary-color);
  font-family: var(--font-fun);
  background: transparent;
  box-shadow: none;
}

.pattern-prompt {
  font-family: var(--font-fun);
  font-size: 1.3rem;
  color: var(--text-dark);
}

.pattern-choices {
  display: flex;
  gap: 20px;
}

.pattern-choice-btn {
  font-size: 3rem;
  background: var(--card);
  border: 4px solid #cbd5e0;
  width: 90px;
  height: 90px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 6px #cbd5e0;
  transition: all 0.1s;
}

.pattern-choice-btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

.pattern-choice-btn.correct {
  background-color: var(--green);
  border-color: #27ae60;
  box-shadow: 0 6px #1e8449;
}

.pattern-choice-btn.wrong {
  background-color: var(--red);
  border-color: var(--muted);
  box-shadow: 0 6px #922b21;
}

/* ─── 12. QUIZ LAYOUT ─── */
.quiz-game-board {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 3px solid #ECE9FA;
  border-radius: 32px;
  padding: 35px;
  box-shadow: 0 20px 40px -15px rgba(60, 40, 110, 0.08);
  max-width: 800px;
  margin: 0 auto;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
body[data-theme="dark"] .quiz-game-board {
  background: rgba(30, 27, 57, 0.85);
  border-color: var(--text);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.quiz-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #ECE9FA;
  padding-bottom: 18px;
  margin-bottom: 5px;
}
body[data-theme="dark"] .quiz-question-header {
  border-bottom-color: var(--text);
}

.quiz-question-header span {
  font-family: var(--font-fun);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-light);
}
body[data-theme="dark"] .quiz-question-header span {
  color: #a5b4fc;
}

.quiz-question-title {
  font-family: var(--font-fun);
  font-size: 2.1rem;
  text-align: center;
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.4;
  margin: 10px 0;
}
body[data-theme="dark"] .quiz-question-title {
  color: #ffffff;
}

.quiz-options-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.quiz-options-list.grid-options {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.quiz-opt-btn {
  background: var(--card);
  border: 2.5px solid #ECE9FA;
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex: 1 1 calc(50% - 20px);
  min-width: 240px;
  max-width: 360px;
}
body[data-theme="dark"] .quiz-opt-btn {
  background: #191635 !important;
  border-color: var(--text) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.quiz-opt-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: #B073FF;
  box-shadow: 0 10px 15px -3px rgba(108, 93, 211, 0.08);
}
body[data-theme="dark"] .quiz-opt-btn:hover:not(:disabled) {
  border-color: #B073FF !important;
}

.quiz-opt-btn:disabled {
  cursor: not-allowed;
}

.quiz-opt-btn.correct {
  background-color: #E2FBF0 !important;
  border-color: #3DD68C !important;
  color: var(--muted) !important;
  box-shadow: 0 0 12px rgba(61, 214, 140, 0.2) !important;
}
body[data-theme="dark"] .quiz-opt-btn.correct {
  background-color: var(--text) !important;
  border-color: #3DD68C !important;
  color: #a7f3d0 !important;
}

.quiz-opt-btn.wrong {
  background-color: #FFF0F0 !important;
  border-color: #FF6B6B !important;
  color: var(--text) !important;
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.2) !important;
}
body[data-theme="dark"] .quiz-opt-btn.wrong {
  background-color: var(--text) !important;
  border-color: #FF6B6B !important;
  color: #fca5a5 !important;
}

.opt-emoji {
  font-size: 3.5rem;
  display: block;
  transition: transform 0.25s;
}

.quiz-opt-btn:hover .opt-emoji {
  transform: scale(1.1) rotate(5deg);
}

.opt-text {
  font-family: var(--font-fun);
  font-size: 1.2rem;
  font-weight: 700;
}

.quiz-complete-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 3px solid #ECE9FA;
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 20px 40px -15px rgba(60, 40, 110, 0.08);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transition: all 0.3s ease;
}
body[data-theme="dark"] .quiz-complete-card {
  background: rgba(30, 27, 57, 0.85);
  border-color: var(--text);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.result-emoji {
  font-size: 6rem;
  animation: bounceSpeech 1.5s infinite alternate;
}

.result-score {
  font-family: var(--font-fun);
  font-size: 2.2rem;
  color: var(--text-dark);
  font-weight: 800;
}
body[data-theme="dark"] .result-score {
  color: #ffffff;
}

.result-score span {
  color: #B073FF;
  font-size: 3.5rem;
  font-weight: 900;
}
body[data-theme="dark"] .result-score span {
  color: #B073FF;
}

.result-desc {
  font-size: 1.3rem;
  color: var(--text-light);
  max-width: 500px;
  font-weight: 600;
  line-height: 1.6;
}
body[data-theme="dark"] .result-desc {
  color: #a5b4fc;
}

.quiz-complete-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── 13. TOAST, CONFETTI & ANIMATIONS ─── */
.toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text);
  color: white;
  padding: 16px 32px;
  border-radius: 30px;
  font-family: var(--font-fun);
  font-size: 1.1rem;
  box-shadow: 0 10px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  bottom: 40px;
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  border-radius: 4px;
  animation: confettiFall 3s linear infinite;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(105vh) rotate(720deg);
  }
}

.shake-wrong {
  animation: shakeWrong 0.5s ease;
  border-color: var(--red) !important;
}

@keyframes shakeWrong {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.bounce-pop-anim {
  animation: bouncePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bouncePop {
  0% { transform: scale(1); }
  30% { transform: scale(0.8) rotate(-5deg); }
  60% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

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

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

.animate-pulse {
  animation: pulseLight 1s infinite alternate;
}

@keyframes pulseLight {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.animate-fade {
  animation: fadeIn 0.4s ease-out;
}

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

/* Floating decorations background */
.floating-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.float-item {
  position: absolute;
  font-size: 2rem;
  opacity: 0.15;
  animation: floatBackground 6s ease-in-out infinite alternate;
}

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

/* ─── 14. DARK MODE ADAPTATIONS ─── */
body[data-theme="dark"] {
  --bg-color: var(--text);
  --card-bg: #2d3748;
  --text-dark: #f7fafc;
  --text-light: #a0aec0;
}

body[data-theme="dark"] .dashboard-hero {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body[data-theme="dark"] .hero-left h1 {
  color: #ffffff;
}

body[data-theme="dark"] .hero-left p {
  color: #edf2f7;
}

body[data-theme="dark"] .back-link {
  background-color: var(--muted);
  color: #ffffff;
}

body[data-theme="dark"] .back-link:hover {
  background-color: var(--text);
}

body[data-theme="dark"] .chapter-card {
  background-color: var(--text);
}

body[data-theme="dark"] .chapter-card:hover {
  background-color: var(--text);
}

body[data-theme="dark"] .chapter-title-badge {
  color: #ffffff;
}

body[data-theme="dark"] .lesson-intro-bar {
  background: #1c3d27;
  border-color: var(--muted);
  color: #9ae6b4;
}

body[data-theme="dark"] .lesson-card-toddler {
  background-color: var(--text);
}

body[data-theme="dark"] .lesson-card-details h2 {
  color: #ffffff;
}

body[data-theme="dark"] .lesson-card-details p {
  color: #e2e8f0;
}

body[data-theme="dark"] .lesson-card-mascot {
  background-color: var(--text);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

body[data-theme="dark"] .slide-ctrl-btn {
  background-color: var(--muted);
  color: #ffffff;
  box-shadow: 0 4px #2d3748;
}

body[data-theme="dark"] .activity-workspace {
  background-color: var(--text);
}

body[data-theme="dark"] .match-card-item {
  background-color: var(--text);
  border-color: var(--muted);
}

body[data-theme="dark"] .match-card-item:hover:not(.matched) {
  border-color: var(--secondary-color);
}

body[data-theme="dark"] .match-card-item.selected {
  background-color: var(--text);
  border-color: var(--purple);
}

body[data-theme="dark"] .match-card-item.matched {
  background-color: var(--muted);
  border-color: var(--green);
  color: #a7f3d0;
}

body[data-theme="dark"] .blank-slot-toddler {
  background-color: var(--text);
}

body[data-theme="dark"] .fb-choice-btn {
  background-color: var(--text);
  border-color: var(--muted);
  box-shadow: 0 6px #1a202c;
}

body[data-theme="dark"] .shape-target-box {
  background-color: var(--text);
  border-color: var(--muted);
}

body[data-theme="dark"] .shape-piece {
  box-shadow: 0 6px rgba(0,0,0,0.4);
}

body[data-theme="dark"] .pattern-item {
  background-color: var(--text);
}

body[data-theme="dark"] .pattern-choice-btn {
  background-color: var(--text);
  border-color: var(--muted);
  box-shadow: 0 6px #1a202c;
}

body[data-theme="dark"] .quiz-opt-btn {
  background-color: var(--text);
  border-color: var(--muted);
}

body[data-theme="dark"] .quiz-opt-btn.correct {
  background-color: var(--muted);
  border-color: var(--green);
  color: #a7f3d0;
}

body[data-theme="dark"] .quiz-opt-btn.wrong {
  background-color: var(--text);
  border-color: var(--red);
  color: #fca5a5;
}

body[data-theme="dark"] .quiz-complete-card h2,
body[data-theme="dark"] .quiz-complete-card .result-score {
  color: #ffffff;
}

/* Responsive Scaling */
@media (max-width: 768px) {
  .hero-mascot {
    display: none;
  }
  
  .lesson-card-toddler {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .lesson-card-mascot {
    width: 140px;
    height: 140px;
    font-size: 6rem;
  }
  
  .match-game-board {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .play-steps {
    flex-wrap: wrap;
  }
}

/* ─── 8. INTERACTIVE ALPHABET BOARD ─── */
.alphabet-playground {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.alphabet-hero-banner {
  background: linear-gradient(135deg, #e3f9eb 0%, #fafdcf 100%);
  border-radius: 24px;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.03);
}

body[data-theme="dark"] .alphabet-hero-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
}

.hero-left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  z-index: 5;
}

.abc-badge {
  background-color: #3b82f6;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 12px;
  text-transform: lowercase;
  font-family: var(--font-fun);
}

.hero-title {
  font-family: var(--font-fun);
  font-size: 2.6rem;
  color: var(--text);
  margin: 0;
  line-height: 1.1;
}

body[data-theme="dark"] .hero-title {
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
}

body[data-theme="dark"] .hero-subtitle {
  color: #e2e8f0;
}

.hero-tip {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 10px 0;
}

body[data-theme="dark"] .hero-tip {
  color: #94a3b8;
}

.back-to-hub-btn {
  background: var(--card);
  color: var(--text);
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-to-hub-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  background-color: #f8fafc;
}

.back-to-hub-btn:active {
  transform: translateY(1px);
}

.lion-mascot-wrapper {
  position: relative;
  width: 250px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 2;
}

.lion-mascot-img {
  width: 190px;
  height: auto;
  z-index: 2;
  animation: bounceLion 3s ease-in-out infinite;
}

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

.floating-letter {
  position: absolute;
  font-family: var(--font-fun);
  font-size: 2.2rem;
  font-weight: 900;
  z-index: 3;
  animation: floatLetter 4s ease-in-out infinite;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.floating-letter.letter-a {
  top: 20px;
  left: 20px;
  color: #ff6b8b;
  animation-delay: 0s;
}

.floating-letter.letter-b {
  top: 30px;
  right: 15px;
  color: #3498db;
  animation-delay: 1.5s;
}

.floating-letter.letter-c {
  bottom: 45px;
  left: -5px;
  color: #2ecc71;
  animation-delay: 0.8s;
}

@keyframes floatLetter {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(15deg); }
}

.rainbow-decor {
  position: absolute;
  top: -20px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,200,200,0.15) 0%, rgba(200,255,200,0.15) 50%, rgba(200,200,255,0.15) 100%);
  z-index: 1;
  border-radius: 50%;
}

.letters-panel-card {
  background: var(--card);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border: 2px solid #f1f5f9;
}

body[data-theme="dark"] .letters-panel-card {
  background-color: var(--text);
  border-color: var(--muted);
}

.letters-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.letters-panel-header h2 {
  font-family: var(--font-fun);
  font-size: 1.8rem;
  color: var(--text);
  margin: 0;
}

body[data-theme="dark"] .letters-panel-header h2 {
  color: #ffffff;
}

.alphabet-song-btn {
  background-color: var(--muted);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

.alphabet-song-btn:hover {
  transform: translateY(-2px);
  background-color: var(--muted);
  box-shadow: 0 6px 15px rgba(108, 92, 231, 0.4);
}

.alphabet-song-btn.playing {
  background-color: var(--muted);
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.letters-flex-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 16px;
}

.letter-play-card {
  border-radius: 20px;
  border: 4px solid;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  box-shadow: 0 8px 0 rgba(0,0,0,0.06), 0 12px 20px rgba(0,0,0,0.05); /* premium 3D block look */
  position: relative;
  user-select: none;
}

.letter-play-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 16px 0 rgba(0,0,0,0.04), 0 20px 30px rgba(0,0,0,0.08);
}

.letter-play-card:active,
.letter-play-card.highlighted-active {
  transform: translateY(4px) scale(0.98);
  box-shadow: 0 2px 0 rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.08);
}

.letter-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 4px;
}

.letter-char {
  font-size: 2rem;
  font-weight: 900;
}

.letter-emoji-pic {
  font-size: 1.8rem;
}

.letter-play-btn {
  font-size: 0.92rem;
  font-weight: 800;
  margin-top: 8px;
}

.highlighted-active {
  transform: scale(1.08) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
  z-index: 5;
  border-color: currentColor !important;
  animation: cardHighlightPulse 1.2s infinite alternate;
}

@keyframes cardHighlightPulse {
  0% { transform: scale(1.08); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
  100% { transform: scale(1.11); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
}

.alphabet-features-row {
  display: flex;
  justify-content: space-between;
  background: var(--card);
  border-radius: 24px;
  padding: 20px 30px;
  border: 2px solid #f1f5f9;
  box-shadow: var(--shadow-soft);
  flex-wrap: wrap;
  gap: 20px;
}

body[data-theme="dark"] .alphabet-features-row {
  background-color: var(--text);
  border-color: var(--muted);
}

.feature-badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 180px;
}

.badge-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.badge-icon-circle.bg-abc { background-color: #3b82f6; font-family: var(--font-fun); font-size: 1rem; }
.badge-icon-circle.bg-sound { background-color: #10b981; }
.badge-icon-circle.bg-activity { background-color: var(--muted); }
.badge-icon-circle.bg-progress { background-color: #f59e0b; }
.badge-icon-circle.bg-badges { background-color: var(--muted); }

.badge-text-info h3 {
  font-family: var(--font-fun);
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 2px 0;
}

body[data-theme="dark"] .badge-text-info h3 {
  color: #ffffff;
}

.badge-text-info p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
}

body[data-theme="dark"] .badge-text-info p {
  color: #94a3b8;
}

/* Sidebar Custom Chick reading styling */
.sidebar-mascot-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0 5px 0;
  padding: 0 15px;
}

.sidebar-mascot-img {
  width: 100%;
  max-width: 130px;
  height: auto;
  animation: floatSidebarMascot 4s ease-in-out infinite;
}

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

/* Particle effect */
.star-particle {
  position: absolute;
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 1000;
  animation: starPopEffect 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes starPopEffect {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0) rotate(360deg); opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .letters-flex-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 900px) {
  .letters-flex-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .alphabet-hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }
  .hero-left-content {
    align-items: center;
  }
  .lion-mascot-wrapper {
    width: 100%;
    max-width: 250px;
  }
  .letters-flex-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .alphabet-features-row {
    flex-direction: column;
    gap: 15px;
  }
  .play-header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .letters-flex-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .letter-play-card {
    min-height: 90px;
    padding: 10px 5px;
  }
  .letter-char {
    font-size: 1.5rem;
  }
  .letter-emoji-pic {
    font-size: 1.3rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .letters-panel-card {
    padding: 15px !important;
  }
  .chapter-play-layout[data-chapter="alphabet-a-z"] .alphabet-playground {
    padding: 0 !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 375px) {
  .letters-flex-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .play-header {
    padding: 12px 10px !important;
  }
  .play-steps {
    gap: 8px !important;
  }
  .step-dot {
    padding: 8px 15px !important;
    font-size: 0.95rem !important;
  }
}

/* ─── MAGIC DISPLAY BOARD & FULLSCREEN STYLES ─── */
.magic-display-board {
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border-radius: 24px;
  padding: 25px 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 4px solid #f0f4f8;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 25px;
  position: relative;
  min-height: 180px;
  transition: all 0.3s ease;
  overflow: hidden;
}

body[data-theme="dark"] .magic-display-board {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: var(--muted);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mdb-help-text {
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  color: #718096;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.mdb-layout {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 40px;
}

.mdb-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.mdb-big-letter {
  font-family: 'Fredoka One', 'Nunito', sans-serif;
  font-size: 5rem;
  line-height: 1;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.mdb-lower {
  font-size: 3rem;
  opacity: 0.7;
  margin-left: 2px;
}

.mdb-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.mdb-emoji {
  font-size: 6.5rem;
  line-height: 1;
  filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.1));
}

/* Magic board interactive items */
.mdb-interactive {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 20px;
  padding: 10px;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mdb-interactive:hover {
  transform: scale(1.08) translateY(-5px);
  background-color: rgba(0, 0, 0, 0.03);
}

.mdb-interactive:active {
  transform: scale(0.95);
}

body[data-theme="dark"] .mdb-interactive:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.mdb-tap-hint {
  font-size: 0.85rem;
  font-family: var(--font-fun);
  background: rgba(0, 0, 0, 0.06);
  padding: 4px 12px;
  border-radius: 12px;
  margin-top: 8px;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(5px);
  color: var(--text-light);
  font-weight: 800;
  pointer-events: none;
}

body[data-theme="dark"] .mdb-tap-hint {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.mdb-interactive:hover .mdb-tap-hint {
  opacity: 1;
  transform: translateY(0);
}

.mdb-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mdb-title-text {
  font-family: 'Fredoka One', 'Nunito', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
  line-height: 1.2;
}

body[data-theme="dark"] .mdb-title-text {
  color: #f7fafc;
}

.mdb-description {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

body[data-theme="dark"] .mdb-description {
  color: #cbd5e1;
}

/* Responsive adjustments for Magic Display Board */
@media (max-width: 768px) {
  .magic-display-board {
    padding: 20px;
    min-height: auto;
    gap: 20px;
  }
  
  .mdb-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-items: center;
    align-items: center;
  }
  
  .mdb-left {
    grid-column: 1;
    min-width: auto;
  }
  
  .mdb-middle {
    grid-column: 2;
    min-width: auto;
  }
  
  .mdb-right {
    grid-column: 1 / span 2;
    width: 100%;
    text-align: center;
  }

  .alphabet-playground.fullscreen-active .magic-display-board {
    min-height: auto !important;
    padding: 20px !important;
    aspect-ratio: auto !important;
  }


}

@media (max-width: 480px) {
  .magic-display-board {
    padding: 15px;
    gap: 15px;
  }
  
  .mdb-layout {
    gap: 15px;
  }
  
  .mdb-big-letter {
    font-size: 3.5rem;
  }
  
  .mdb-lower {
    font-size: 2.2rem;
  }
  
  .mdb-emoji {
    font-size: 4.5rem;
  }
  
  .mdb-title-text {
    font-size: 1.6rem;
  }
  
  .mdb-description {
    font-size: 1rem;
    line-height: 1.4;
  }

  .alphabet-playground.fullscreen-active .magic-display-board {
    padding: 15px !important;
    aspect-ratio: auto !important;
  }


}

/* Animations */
.animate-bounce-in {
  animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.animate-slide-right {
  animation: slideRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); opacity: 0.8; }
  70% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideRight {
  0% { transform: translateX(-20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* FULLSCREEN STYLING */
.alphabet-playground.fullscreen-active {
  background: #f8fafc !important;
  padding: 40px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100vh !important;
  width: 100vw !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 99999 !important;
}

body[data-theme="dark"] .alphabet-playground.fullscreen-active {
  background: #0f172a !important;
}

.alphabet-playground.fullscreen-active .alphabet-hero-banner {
  display: none !important;
}

.alphabet-playground.fullscreen-active .magic-display-board {
  min-height: 300px !important;
  padding: 40px 60px !important;
  border-width: 6px !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1) !important;
  background: var(--card) !important;
  margin-bottom: 30px !important;
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: auto !important;
}

.alphabet-playground.fullscreen-active .mdb-emoji-wrapper {
  width: clamp(70px, 20vw, 130px) !important;
  height: clamp(70px, 20vw, 130px) !important;
  border-radius: clamp(14px, 4vw, 28px) !important;
  padding: clamp(5px, 1.5vw, 10px) !important;
}

body[data-theme="dark"] .alphabet-playground.fullscreen-active .magic-display-board {
  background: #1e293b !important;
}

.alphabet-playground.fullscreen-active .mdb-big-letter {
  font-size: clamp(3rem, 10vw, 6rem) !important;
}

.alphabet-playground.fullscreen-active .mdb-lower {
  font-size: clamp(1.8rem, 6vw, 3.8rem) !important;
}

.alphabet-playground.fullscreen-active .mdb-emoji {
  font-size: clamp(3.5rem, 12vw, 7rem) !important;
}

.alphabet-playground.fullscreen-active .mdb-title-text {
  font-size: clamp(1.3rem, 5vw, 2.5rem) !important;
}

.alphabet-playground.fullscreen-active .mdb-description {
  font-size: clamp(0.9rem, 3vw, 1.4rem) !important;
}

.alphabet-playground.fullscreen-active .letters-panel-card {
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.alphabet-playground.fullscreen-active .letters-flex-grid {
  grid-template-columns: repeat(13, 1fr) !important;
  gap: 15px !important;
}

@media (max-width: 1024px) {
  .alphabet-playground.fullscreen-active .letters-flex-grid {
    grid-template-columns: repeat(7, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .alphabet-playground.fullscreen-active .letters-flex-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.alphabet-playground.fullscreen-active .letter-play-card {
  min-height: 90px !important;
  padding: 10px 5px !important;
  border-width: 3px !important;
  box-shadow: 0 4px 0 rgba(0,0,0,0.06), 0 8px 12px rgba(0,0,0,0.05) !important;
}

.alphabet-playground.fullscreen-active .letter-play-card:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 8px 0 rgba(0,0,0,0.04), 0 12px 18px rgba(0,0,0,0.08) !important;
}

.alphabet-playground.fullscreen-active .letter-play-card:active,
.alphabet-playground.fullscreen-active .letter-play-card.highlighted-active {
  transform: translateY(2px) scale(0.98) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1), 0 3px 6px rgba(0,0,0,0.08) !important;
}

.alphabet-playground.fullscreen-active .letter-char {
  font-size: 2.2rem !important;
}

.alphabet-playground.fullscreen-active .letter-emoji-pic {
  font-size: 1.8rem !important;
}

.alphabet-playground.fullscreen-active .letter-play-btn {
  display: none !important;
}

/* Control Buttons Row */
.letters-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.action-buttons-group {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.fullscreen-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.fullscreen-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.fullscreen-btn.exit-mode {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.fullscreen-btn.exit-mode:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* ─── DUAL-PHASE SYLLABLE HIGHLIGHTING ─── */
.magic-display-board.highlight-letter-only .mdb-left {
  transform: scale(1.18);
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: rgba(59, 130, 246, 0.08);
  border-radius: 20px;
  padding: 10px;
  box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.1);
}

.magic-display-board.highlight-word-only .mdb-middle {
  transform: scale(1.22) rotate(5deg);
  filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.6));
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.magic-display-board.highlight-word-only .mdb-right {
  transform: translateX(12px);
  transition: all 0.3s ease;
  background-color: rgba(251, 191, 36, 0.06);
  border-radius: 20px;
  padding: 12px 18px;
  box-shadow: inset 0 0 10px rgba(251, 191, 36, 0.05);
}
/* ─── VIDEO STAGE & PANEL ─── */
.video-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.video-wrapper {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.video-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border: 8px solid #ffeef2; /* Styled inline dynamically, fallback pastel */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.alphabet-video-btn {
  background: linear-gradient(135deg, #ef4444 0%, #ea580c 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  transition: all 0.2s ease;
}

.alphabet-video-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  filter: brightness(1.1);
}

.alphabet-video-btn:active {
  transform: translateY(0);
}

/* ─── GOLDEN GLOSSY CARD EFFECT ─── */
.glass-gold-card,
.letter-play-card,
.chapter-card,
.magic-display-board,
.letters-panel-card,
.dashboard-video-section,
.lesson-card-toddler,
.activity-panel,
.quiz-panel,
.quiz-results-card {
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.15) 0%, rgba(253, 224, 71, 0.04) 50%, rgba(202, 138, 4, 0.15) 100%) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 3px solid rgba(253, 224, 71, 0.4) !important; /* Golden border highlight */
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5), /* Inner top highlight */
    0 8px 32px rgba(234, 179, 8, 0.08) !important; /* Soft golden ambient glow */
}

body[data-theme="dark"] .glass-gold-card,
body[data-theme="dark"] .letter-play-card,
body[data-theme="dark"] .chapter-card,
body[data-theme="dark"] .magic-display-board,
body[data-theme="dark"] .letters-panel-card,
body[data-theme="dark"] .dashboard-video-section,
body[data-theme="dark"] .lesson-card-toddler,
body[data-theme="dark"] .activity-panel,
body[data-theme="dark"] .quiz-panel,
body[data-theme="dark"] .quiz-results-card {
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.06) 0%, rgba(234, 179, 8, 0.02) 50%, rgba(202, 138, 4, 0.06) 100%) !important;
  border: 3px solid rgba(253, 224, 71, 0.22) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 8px 32px rgba(234, 179, 8, 0.04) !important;
}

/* Hover overrides for interactive golden glossy cards */
.letter-play-card:hover {
  transform: translateY(-8px) scale(1.05) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 0 rgba(234, 179, 8, 0.15),
    0 24px 35px rgba(234, 179, 8, 0.12) !important;
}

.letter-play-card:active,
.letter-play-card.highlighted-active {
  transform: translateY(4px) scale(0.98) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 0 rgba(234, 179, 8, 0.3),
    0 4px 8px rgba(234, 179, 8, 0.1) !important;
  border-color: rgba(234, 179, 8, 0.8) !important;
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.3) 0%, rgba(234, 179, 8, 0.15) 50%, rgba(202, 138, 4, 0.3) 100%) !important;
}

.chapter-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  border-color: rgba(234, 179, 8, 0.8) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 24px rgba(234, 179, 8, 0.15) !important;
}

.chapter-card.completed {
  border-color: var(--green) !important;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(253, 224, 71, 0.05) 50%, rgba(34, 197, 94, 0.12) 100%) !important;
}

body[data-theme="dark"] .letter-play-card:active,
body[data-theme="dark"] .letter-play-card.highlighted-active {
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.15) 0%, rgba(234, 179, 8, 0.08) 50%, rgba(202, 138, 4, 0.15) 100%) !important;
}

.video-container {
  border: 8px solid rgba(253, 224, 71, 0.4) !important;
  box-shadow: 0 15px 30px rgba(234, 179, 8, 0.1) !important;
}

/* ─── CUSTOM ENGLISH FUN SUBJECT HOME STYLES ─── */
.subject-dashboard[data-subject="english"] .dashboard-hero {
  background: url('../../../assets/images/english_fun_hero_bg.png') no-repeat center right / cover !important;
  min-height: 290px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.subject-dashboard[data-subject="english"] .dashboard-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.subject-dashboard[data-subject="english"] .hero-left {
  animation: floatHeroLeft 4s ease-in-out infinite alternate;
  z-index: 10;
}

@keyframes floatHeroLeft {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.subject-dashboard[data-subject="english"] .toy-icon {
  background-color: #ff8b94 !important;
  color: white !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.8rem !important;
  box-shadow: 0 4px 10px rgba(255, 139, 148, 0.3) !important;
  margin-bottom: 12px !important;
}

.subject-dashboard[data-subject="english"] .hero-left h1 {
  font-family: var(--font-fun);
  font-size: 3.2rem;
  color: var(--text) !important;
  margin-bottom: 8px;
}

.subject-dashboard[data-subject="english"] .hero-left p {
  color: var(--muted) !important;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.subject-dashboard[data-subject="english"] .back-link {
  background-color: var(--text) !important;
  color: white !important;
  border-radius: 50px !important;
  padding: 12px 28px !important;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
  transition: transform 0.2s, background-color 0.2s;
}

.subject-dashboard[data-subject="english"] .back-link:hover {
  background-color: var(--text) !important;
  transform: translateY(-2px);
}

/* English Units Layout Grid */
.english-units-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 25px;
  margin-top: 15px;
}

@media (max-width: 1024px) {
  .english-units-container {
    grid-template-columns: 1fr;
  }
}

/* Glassmorphic Unit Box Containers */
.english-unit-box {
  border-radius: 28px !important;
  padding: 30px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  border: 3px solid rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  height: 100%;
}

.alphabet-fun-box {
  background: linear-gradient(135deg, rgba(254, 202, 202, 0.95) 0%, rgba(254, 226, 226, 0.7) 100%) !important;
}

.rhymes-music-box {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95) 0%, rgba(253, 230, 138, 0.7) 100%) !important;
}

/* Unit Header */
.english-unit-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 5px;
}

.english-unit-header-icon {
  width: 54px;
  height: 44px;
  background-color: var(--muted);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-fun);
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  user-select: none;
}

.english-unit-header-text h2 {
  font-family: var(--font-fun);
  font-size: 2.1rem;
  color: white !important;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  line-height: 1.1;
}

.english-unit-header-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 6px 0 0 0;
  font-weight: 700;
}

/* Cards Grid inside Alphabet Fun */
.alphabet-cards-container {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .alphabet-cards-container {
    grid-template-columns: 1fr;
  }
}

/* Left Card: Letters A-Z */
.letters-az-card {
  background-color: var(--text) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s !important;
  cursor: pointer;
}

.letters-az-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.22) !important;
}

.letters-az-icon-wrapper {
  width: 52px;
  height: 42px;
  background-color: var(--muted);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-fun);
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.letters-az-info h3 {
  font-family: var(--font-fun);
  font-size: 1.45rem;
  color: white !important;
  margin: 0 0 8px 0;
}

.letters-az-info p {
  font-size: 0.9rem;
  color: #94a3b8 !important;
  line-height: 1.45;
  margin: 0;
}

.letters-az-play-btn {
  background: var(--card) !important;
  color: var(--muted) !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 10px 22px !important;
  font-family: var(--font-fun);
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  transition: transform 0.15s, background-color 0.2s !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.letters-az-play-btn:hover {
  background-color: #f8fafc !important;
  transform: scale(1.05);
}

.letters-az-play-btn:active {
  transform: scale(0.95);
}

/* Right Card: Alphabet Song Video */
.alphabet-video-card {
  background: var(--card) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 20px !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05) !important;
}

.video-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-card-icon {
  font-size: 1.8rem;
}

.video-card-title-info h3 {
  font-family: var(--font-fun);
  font-size: 1.2rem;
  color: var(--text) !important;
  margin: 0;
}

.video-card-title-info p {
  font-size: 0.85rem;
  color: var(--muted) !important;
  margin: 3px 0 0 0;
  font-weight: 600;
}

.video-thumbnail-container {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.video-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-thumbnail-container:hover .video-thumbnail-img {
  transform: scale(1.04);
}

.youtube-play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 40px;
  background-color: var(--text);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.youtube-play-btn-overlay::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 3px;
}

.video-thumbnail-container:hover .youtube-play-btn-overlay {
  background-color: var(--text);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(15, 23, 42, 0.85);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}

/* Rhymes & Music cards list */
.rhymes-list-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rhyme-item-card {
  background-color: var(--text) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 15px;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s !important;
  cursor: pointer;
}

.rhyme-item-card:hover {
  transform: translateY(-4px) !important;
  background-color: var(--text) !important;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.18) !important;
}

.rhyme-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rhyme-item-icon {
  font-size: 2rem;
  transition: transform 0.2s;
}

.rhyme-item-card:hover .rhyme-item-icon {
  transform: scale(1.12) rotate(5deg);
}

.rhyme-item-info h3 {
  font-family: var(--font-fun);
  font-size: 1.25rem;
  color: white !important;
  margin: 0 0 4px 0;
}

.rhyme-item-info p {
  font-size: 0.85rem;
  color: #94a3b8 !important;
  margin: 0;
  font-weight: 600;
}

.rhyme-item-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rhyme-item-card:hover .rhyme-item-arrow-btn {
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateX(2px);
}

/* Red New pill badge */
.rhyme-new-badge {
  position: absolute;
  top: 10px;
  right: 64px;
  background-color: var(--muted) !important;
  color: white !important;
  font-size: 0.72rem !important;
  font-family: var(--font-fun);
  font-weight: 700;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35) !important;
  user-select: none;
}

/* Dark Mode Adaptation overrides for English specific containers */
body[data-theme="dark"] .alphabet-video-card {
  background-color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body[data-theme="dark"] .video-card-title-info h3 {
  color: white !important;
}

body[data-theme="dark"] .video-card-title-info p {
  color: #94a3b8 !important;
}

body[data-theme="dark"] .alphabet-fun-box {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.2) 0%, rgba(30, 41, 59, 0.5) 100%) !important;
  border-color: rgba(254, 202, 202, 0.12) !important;
}

body[data-theme="dark"] .rhymes-music-box {
  background: linear-gradient(135deg, rgba(120, 53, 4, 0.2) 0%, rgba(30, 41, 59, 0.5) 100%) !important;
  border-color: rgba(254, 243, 199, 0.12) !important;
}

body[data-theme="dark"] .english-unit-header-text h2 {
  color: white !important;
}

/* Magic and Video Row side-by-side layout styles */
.magic-and-video-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
  align-items: stretch;
}

.magic-and-video-row .magic-display-board,
.magic-and-video-row .action-display-board {
  margin-bottom: 0 !important;
  height: 100%;
}

.magic-and-video-row .integrated-video-section {
  width: 100%;
  display: flex;
  align-items: center;
}

.magic-and-video-row .video-wrapper {
  max-width: 100%;
  width: 100%;
}

@media (max-width: 1024px) {
  .magic-and-video-row {
    grid-template-columns: 1fr;
  }
}

/* Transparent styling for Alphabet Fun, Numbers, Shapes, Matching, Action Rhymes, Drag-Drop Shapes and Sequencing Patterns play-content-panel */
.chapter-play-layout[data-chapter="alphabet-a-z"] .play-content-panel,
.chapter-play-layout[data-chapter="numbers-1-10"] .play-content-panel,
.chapter-play-layout[data-chapter="shapes"] .play-content-panel,
.chapter-play-layout[data-chapter="matching-games"] .play-content-panel,
.chapter-play-layout[data-chapter="action-rhymes"] .play-content-panel,
.chapter-play-layout[data-chapter="drag-drop-shapes"] .play-content-panel,
.chapter-play-layout[data-chapter="sequencing-patterns"] .play-content-panel {
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Dark theme transparent support */
body[data-theme="dark"] .chapter-play-layout[data-chapter="alphabet-a-z"] .play-content-panel,
body[data-theme="dark"] .chapter-play-layout[data-chapter="numbers-1-10"] .play-content-panel,
body[data-theme="dark"] .chapter-play-layout[data-chapter="shapes"] .play-content-panel,
body[data-theme="dark"] .chapter-play-layout[data-chapter="matching-games"] .play-content-panel,
body[data-theme="dark"] .chapter-play-layout[data-chapter="action-rhymes"] .play-content-panel,
body[data-theme="dark"] .chapter-play-layout[data-chapter="drag-drop-shapes"] .play-content-panel,
body[data-theme="dark"] .chapter-play-layout[data-chapter="sequencing-patterns"] .play-content-panel {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Colorful child-friendly keyboard background for Alphabet Fun letters-panel-card */
.chapter-play-layout[data-chapter="alphabet-a-z"] .letters-panel-card {
  background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 25%, #f0fff4 50%, #f0f9ff 75%, #faf5ff 100%) !important;
  border: 4px dashed #ffb3c1 !important;
  box-shadow: 0 15px 35px rgba(255, 179, 193, 0.15) !important;
  position: relative;
}

.chapter-play-layout[data-chapter="alphabet-a-z"] .letters-panel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 107, 139, 0.05) 8px, transparent 8px),
    radial-gradient(circle at 90% 80%, rgba(52, 152, 219, 0.05) 12px, transparent 12px),
    radial-gradient(circle at 50% 15%, rgba(46, 204, 113, 0.04) 10px, transparent 10px),
    radial-gradient(circle at 80% 30%, rgba(241, 196, 15, 0.05) 9px, transparent 9px),
    radial-gradient(circle at 20% 70%, rgba(155, 89, 182, 0.05) 11px, transparent 11px);
  background-size: 100% 100%;
  pointer-events: none;
  border-radius: 20px;
}

/* Dark mode adjustment for colorful keyboard */
body[data-theme="dark"] .chapter-play-layout[data-chapter="alphabet-a-z"] .letters-panel-card {
  background: linear-gradient(135deg, #1e2030 0%, #1a1b26 50%, #1f2335 100%) !important;
  border: 4px dashed #414868 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
}

body[data-theme="dark"] .chapter-play-layout[data-chapter="alphabet-a-z"] .letters-panel-card::before {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 107, 139, 0.08) 8px, transparent 8px),
    radial-gradient(circle at 90% 80%, rgba(52, 152, 219, 0.08) 12px, transparent 12px),
    radial-gradient(circle at 50% 15%, rgba(46, 204, 113, 0.06) 10px, transparent 10px);
}

/* Cheerful colorful background for the entire Alphabet playground container */
.chapter-play-layout[data-chapter="alphabet-a-z"] .alphabet-playground {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

/* Dark mode colorful background for Alphabet playground */
body[data-theme="dark"] .chapter-play-layout[data-chapter="alphabet-a-z"] .alphabet-playground {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Magic and Video Row layout */
.chapter-play-layout[data-chapter="alphabet-a-z"] .magic-and-video-row,
.chapter-play-layout[data-chapter="numbers-1-10"] .magic-and-video-row,
.chapter-play-layout[data-chapter="shapes"] .magic-and-video-row,
.chapter-play-layout[data-chapter="matching-games"] .magic-and-video-row,
.chapter-play-layout[data-chapter="action-rhymes"] .magic-and-video-row,
.chapter-play-layout[data-chapter="sequencing-patterns"] .magic-and-video-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0px !important;
  height: auto !important;
  min-height: auto !important;
  align-items: stretch !important;
  margin-bottom: 0px !important;
}

.chapter-play-layout[data-chapter="alphabet-a-z"] .magic-display-board,
.chapter-play-layout[data-chapter="numbers-1-10"] .magic-display-board,
.chapter-play-layout[data-chapter="shapes"] .magic-display-board,
.chapter-play-layout[data-chapter="matching-games"] .magic-display-board,
.chapter-play-layout[data-chapter="drag-drop-shapes"] .magic-display-board,
.chapter-play-layout[data-chapter="sequencing-patterns"] .magic-display-board,
.chapter-play-layout[data-chapter="action-rhymes"] .action-display-board {
  aspect-ratio: 16/9 !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 24px !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 15px !important;
  background:
    radial-gradient(circle, #1a1a1a 1.2px, transparent 1.2px) !important;
  background-size: 8px 8px !important;
  background-color: var(--text) !important;
  border: 2px solid #3a3a3a !important;
  border-radius: 28px !important;
}

.chapter-play-layout[data-chapter="alphabet-a-z"] .integrated-video-section,
.chapter-play-layout[data-chapter="numbers-1-10"] .integrated-video-section,
.chapter-play-layout[data-chapter="shapes"] .integrated-video-section,
.chapter-play-layout[data-chapter="matching-games"] .integrated-video-section,
.chapter-play-layout[data-chapter="drag-drop-shapes"] .integrated-video-section,
.chapter-play-layout[data-chapter="sequencing-patterns"] .integrated-video-section,
.chapter-play-layout[data-chapter="action-rhymes"] .integrated-video-section {
  height: auto !important;
  display: block !important;
}

.chapter-play-layout[data-chapter="alphabet-a-z"] .video-wrapper,
.chapter-play-layout[data-chapter="numbers-1-10"] .video-wrapper,
.chapter-play-layout[data-chapter="shapes"] .video-wrapper,
.chapter-play-layout[data-chapter="matching-games"] .video-wrapper,
.chapter-play-layout[data-chapter="drag-drop-shapes"] .video-wrapper,
.chapter-play-layout[data-chapter="sequencing-patterns"] .video-wrapper,
.chapter-play-layout[data-chapter="action-rhymes"] .video-wrapper {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

.chapter-play-layout[data-chapter="alphabet-a-z"] .video-container,
.chapter-play-layout[data-chapter="numbers-1-10"] .video-container,
.chapter-play-layout[data-chapter="shapes"] .video-container,
.chapter-play-layout[data-chapter="matching-games"] .video-container,
.chapter-play-layout[data-chapter="drag-drop-shapes"] .video-container,
.chapter-play-layout[data-chapter="sequencing-patterns"] .video-container,
.chapter-play-layout[data-chapter="action-rhymes"] .video-container {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9 !important;
  padding-bottom: 0 !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04) !important;
}

/* Letters panel card */
.chapter-play-layout[data-chapter="alphabet-a-z"] .letters-panel-card {
  /* background: var(--card) !important; */
  padding: 10px !important;
  border-radius: 28px !important;
  border: 2px solid #f1f5f9 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02) !important;
  /* margin-bottom: 30px !important; */
}

.chapter-play-layout[data-chapter="alphabet-a-z"] .letters-panel-header {
  margin-bottom: 20px !important;
}

.chapter-play-layout[data-chapter="alphabet-a-z"] .letters-flex-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 14px !important;
}

.chapter-play-layout[data-chapter="alphabet-a-z"] .letter-play-card {
  min-height: 105px !important;
  height: auto !important;
  padding: 12px 6px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 18px !important;
}

.chapter-play-layout[data-chapter="alphabet-a-z"] .letter-header-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.chapter-play-layout[data-chapter="alphabet-a-z"] .letter-char {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

.chapter-play-layout[data-chapter="alphabet-a-z"] .letter-emoji-pic {
  font-size: 1.8rem !important;
  line-height: 1.1 !important;
}

.chapter-play-layout[data-chapter="alphabet-a-z"] .letter-play-btn {
  display: none !important;
}

/* Redesigned Magic Display Board Internals */
.mdb-layout {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  gap: 15px !important;
  height: 100% !important;
}

.mdb-top-row {
  flex: 1 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-around !important;
  width: 100% !important;
  gap: 20px !important;
}

.mdb-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.mdb-big-letter {
  font-family: 'Fredoka One', 'Nunito', sans-serif !important;
  font-size: clamp(2rem, 8vw, 6rem) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.mdb-lower {
  font-size: clamp(1.2rem, 5vw, 3.8rem) !important;
  opacity: 0.7 !important;
  margin-left: 2px !important;
}

.mdb-middle {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

/* Emoji cards side-by-side */
.mdb-emojis-container {
  display: flex !important;
  gap: 10px !important;
  justify-content: center !important;
  align-items: center !important;
}

.mdb-emoji-wrapper {
  background: var(--card) !important;
  border-radius: clamp(12px, 3vw, 24px) !important;
  padding: clamp(6px, 1.5vw, 14px) !important;
  width: clamp(60px, 16vw, 130px) !important;
  height: clamp(60px, 16vw, 130px) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
  border: 3px solid #ffccd5 !important;
  transition: transform 0.2s !important;
}

.mdb-emoji-wrapper:hover {
  transform: scale(1.1) !important;
}

.mdb-emoji {
  font-size: clamp(2.2rem, 9vw, 7rem) !important;
  line-height: 1 !important;
}

.mdb-right {
  flex: 0 0 auto !important;
  width: 100% !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
}

.mdb-title-text {
  font-family: 'Fredoka One', 'Nunito', sans-serif !important;
  font-size: clamp(1.1rem, 3.5vw, 2.5rem) !important;
  font-weight: 800 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.mdb-description {
  font-size: clamp(0.9rem, 2vw, 1.4rem) !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* Dark mode adjust for wrappers */
body[data-theme="dark"] .mdb-emoji-wrapper {
  background: rgba(30, 41, 59, 0.7) !important;
}

/* Tablet / Mobile adjustments */
@media (max-width: 1024px) {
  .chapter-play-layout[data-chapter="alphabet-a-z"] .magic-and-video-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .letters-flex-grid {
    grid-template-columns: repeat(9, 1fr) !important;
    gap: 10px !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .letter-play-card {
    min-height: 80px !important;
  }
}

@media (max-width: 768px) {
  .chapter-play-layout[data-chapter="alphabet-a-z"],
  .chapter-play-layout[data-chapter="numbers-1-10"],
  .chapter-play-layout[data-chapter="shapes"],
  .chapter-play-layout[data-chapter="matching-games"],
  .chapter-play-layout[data-chapter="action-rhymes"] {
    height: auto !important;
    overflow: visible !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .alphabet-playground,
  .chapter-play-layout[data-chapter="numbers-1-10"] .numbers-playground,
  .chapter-play-layout[data-chapter="action-rhymes"] .action-rhymes-playground {
    padding: 0 !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .magic-and-video-row,
  .chapter-play-layout[data-chapter="numbers-1-10"] .magic-and-video-row,
  .chapter-play-layout[data-chapter="shapes"] .magic-and-video-row,
  .chapter-play-layout[data-chapter="matching-games"] .magic-and-video-row,
  .chapter-play-layout[data-chapter="action-rhymes"] .magic-and-video-row {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: auto !important;
    gap: 15px !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .magic-display-board,
  .chapter-play-layout[data-chapter="numbers-1-10"] .magic-display-board,
  .chapter-play-layout[data-chapter="shapes"] .magic-display-board,
  .chapter-play-layout[data-chapter="matching-games"] .magic-display-board,
  .chapter-play-layout[data-chapter="action-rhymes"] .action-display-board {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    min-height: 0 !important;
    padding: 15px !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .mdb-layout {
    gap: 8px !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .mdb-top-row {
    gap: 10px !important;
  }



  .mdb-tap-hint {
    display: none !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .letters-panel-card {
    padding: 15px !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .letters-flex-grid {
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 8px !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .letter-play-card {
    min-height: 65px !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .letter-char {
    font-size: 1.5rem !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .letter-emoji-pic {
    font-size: 1.1rem !important;
  }

  .lesson-top-nav {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    border-radius: 28px !important;
  }

  .lesson-indicator-badge,
  .lesson-indicator-badge-big {
    order: -1 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    margin-bottom: 4px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .badge-icon-wrap {
    font-size: 2rem !important;
  }

  .badge-lesson-title,
  .lesson-title-big {
    font-size: 1.3rem !important;
    margin: 0 !important;
  }

  .lesson-nav-btn {
    width: 47% !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    padding: 8px 12px !important;
  }
}

@media (max-width: 480px) {
  .chapter-play-layout[data-chapter="alphabet-a-z"] .alphabet-playground {
    padding: 0 !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .letters-flex-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 6px !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .letter-play-card {
    min-height: 55px !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .letter-char {
    font-size: 1.2rem !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .letter-emoji-pic {
    font-size: 0.9rem !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .magic-display-board {
    padding: 10px !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .mdb-layout {
    gap: 5px !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .mdb-top-row {
    gap: 8px !important;
  }

  .chapter-play-layout[data-chapter="alphabet-a-z"] .mdb-idle-wand {
    display: none !important;
  }



  .lesson-top-nav {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .lesson-indicator-badge {
    order: -1 !important;
    width: 100% !important;
    padding: 10px 16px !important;
    gap: 10px !important;
  }

  .badge-icon-wrap {
    font-size: 1.8rem !important;
  }

  .badge-lesson-title {
    font-size: 1.1rem !important;
  }

  .lesson-nav-btn {
    width: 47% !important;
    font-size: 0.9rem !important;
    padding: 10px 12px !important;
  }
  
  .lesson-nav-btn .btn-text {
    font-size: 0.9rem !important;
  }
}

/* ═══ REDESIGNED LESSON TOP NAVIGATION ═══ */
.lesson-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 16px 32px;
  width: 100%;
  background: var(--card);
  border-radius: 50px;
  border: 3px solid #f1f5f9;
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

body[data-theme="dark"] .lesson-top-nav {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.lesson-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  font-family: 'Nunito', var(--font-fun), sans-serif;
  font-size: 0.95rem;
  font-weight: 850;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  padding: 8px 18px;
  border-radius: 25px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.lesson-nav-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.lesson-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* --- Premium Large Lesson Badge --- */
.lesson-indicator-badge {
  background: var(--card);
  border: 3px solid #e2e8f0;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 850;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.lesson-indicator-badge:hover {
  transform: scale(1.05) translateY(-2px);
}

.lesson-indicator-badge:active {
  transform: scale(0.96);
}

.badge-icon-wrap {
  font-size: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
  animation: float-badge-icon 2.5s ease-in-out infinite alternate;
}

@keyframes float-badge-icon {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-4px) rotate(4deg); }
}

.badge-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.badge-progress-sub {
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.badge-lesson-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  margin: 0;
  font-family: 'Nunito', var(--font-fun), sans-serif;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

body[data-theme="dark"] .badge-lesson-title {
  color: #f8fafc;
}

.lesson-indicator-badge.badge-click-pop {
  animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(1); }
  25% { transform: scale(0.92) rotate(-2deg); }
  50% { transform: scale(1.08) rotate(2deg); }
  75% { transform: scale(0.97) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ═══ MAGIC DISPLAY BOARD IDLE STATE STYLES ═══ */
.mdb-idle-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 16px;
  padding: 10px 0;
  text-align: center;
}

.mdb-idle-circle {
  width: clamp(50px, 12vw, 100px) !important;
  height: clamp(50px, 12vw, 100px) !important;
  border-radius: 50%;
  background: #eef2ff;
  border: 4px solid #c7d2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
  animation: SnFloatMedal 4s ease-in-out infinite alternate;
}

body[data-theme="dark"] .mdb-idle-circle {
  background: #312e81;
  border-color: var(--muted);
}

.mdb-idle-letter {
  font-family: 'Fredoka One', 'Nunito', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3.5rem) !important;
  font-weight: 900;
  color: var(--muted);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

body[data-theme="dark"] .mdb-idle-letter {
  color: #c7d2fe;
}

.mdb-idle-text {
  font-size: clamp(0.85rem, 2.2vw, 1.2rem) !important;
  font-weight: 700;
  color: var(--muted);
  max-width: 250px;
  margin: 0;
  line-height: 1.4;
}

body[data-theme="dark"] .mdb-idle-text {
  color: #cbd5e1;
}

.mdb-idle-wand {
  margin-top: 8px;
  animation: floatStar 4s ease-in-out infinite;
}

.mdb-idle-wand img {
  width: clamp(80px, 14vw, 120px) !important;
  height: auto;
  object-fit: contain;
}

/* ═══ 3D IMAGE MAGIC BOARD COMPONENT ═══ */
.mdb-3d-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(80px, 18vw, 140px) !important;
  height: clamp(80px, 18vw, 140px) !important;
  border-radius: 24px;
  background: var(--card);
  border: 4px solid var(--border-color, #e2e8f0);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  padding: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.mdb-3d-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

body[data-theme="dark"] .mdb-3d-image-container {
  background: #1e293b;
  border-color: rgba(255,255,255,0.08);
}

.lesson-title-big {
  font-family: 'Fredoka One', sans-serif;
  font-size: 2.5rem;
  color: var(--text);
  margin: 0;
  text-shadow: 0 4px 0 rgba(0,0,0,0.05);
  text-align: center;
}

body[data-theme="dark"] .lesson-title-big {
  color: #93c5fd !important;
}

@media (max-width: 768px) {
  .lesson-title-big {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 480px) {
  .lesson-title-big {
    font-size: 1.1rem !important;
  }
}

.lesson-top-nav.alphabet-nav-layout {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
}

.lesson-top-nav.alphabet-nav-layout .lesson-indicator-badge-big {
  flex: 1 !important;
  text-align: center !important;
}

.lesson-top-nav.alphabet-nav-layout .prev-btn,
.lesson-top-nav.alphabet-nav-layout .next-btn {
  width: auto !important;
}

/* Mobile/Tablet: Title on Top, Buttons below */
@media (max-width: 768px) {
  .lesson-top-nav.alphabet-nav-layout {
    display: grid !important;
    grid-template-areas: 
      "title title"
      "prev next" !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    padding: 15px 20px !important;
    border-radius: 28px !important;
  }
  
  .lesson-top-nav.alphabet-nav-layout .lesson-indicator-badge-big {
    grid-area: title !important;
    width: 100% !important;
  }
  
  .lesson-top-nav.alphabet-nav-layout .prev-btn {
    grid-area: prev !important;
    width: 100% !important;
    justify-content: center !important;
  }
  
  .lesson-top-nav.alphabet-nav-layout .next-btn {
    grid-area: next !important;
    width: 100% !important;
    justify-content: center !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   TWINKLE TWINKLE PAGE — Night Sky Theme
   ═══════════════════════════════════════════════════════════════ */

/* Transparent golden glossy play-content-panel styling for Twinkle Twinkle */
.chapter-play-layout[data-chapter="twinkle-twinkle"] .play-content-panel {
  background: none !important;
  padding: 0 !important;
}

/* Glossy glassmorphism highlights */
.chapter-play-layout[data-chapter="twinkle-twinkle"] .play-content-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Ensure contents stay on top of the glossy highlights */
.chapter-play-layout[data-chapter="twinkle-twinkle"] .play-content-panel > * {
  position: relative;
  z-index: 2;
}

.twinkle-playground {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* ── Video + Poem Display Row ── */
.twinkle-video-and-poem-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* ── Poem Display Board (mirrors magic-display-board) ── */
.poem-display-board {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  border-radius: 24px;
  padding: 30px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid #6366f1;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.poem-display-board::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(253, 230, 138, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative twinkling stars on the board */
.poem-display-board .board-star {
  position: absolute;
  color: #fde68a;
  font-size: 0.7rem;
  animation: twinkleStar 2s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
}

.poem-display-board .board-star:nth-child(1) { top: 10%; left: 8%; animation-delay: 0s; }
.poem-display-board .board-star:nth-child(2) { top: 15%; right: 12%; animation-delay: 0.5s; }
.poem-display-board .board-star:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 1s; }
.poem-display-board .board-star:nth-child(4) { bottom: 10%; right: 8%; animation-delay: 1.5s; }
.poem-display-board .board-star:nth-child(5) { top: 50%; left: 5%; animation-delay: 0.3s; }

@keyframes twinkleStar {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.poem-board-verse {
  position: relative;
  z-index: 2;
  text-align: center;
}

.poem-board-verse .verse-line {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #e0e7ff;
  line-height: 2;
  letter-spacing: 0.3px;
}

.poem-board-verse .verse-line.highlight-line {
  color: #fde68a;
  font-size: 1.35rem;
  text-shadow: 0 0 20px rgba(253, 230, 138, 0.5);
}

.poem-board-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.poem-board-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #e0e7ff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
  backdrop-filter: blur(4px);
}

.poem-board-controls button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fde68a;
  color: #fde68a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(253, 230, 138, 0.3);
}

.poem-board-controls button:active {
  transform: translateY(0);
}

.poem-verse-indicator {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 2;
}

.poem-verse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.poem-verse-dot.active {
  background: #fde68a;
  box-shadow: 0 0 10px rgba(253, 230, 138, 0.6);
  transform: scale(1.3);
}

/* ── Full Poem Section ── */
.full-poem-section {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 24px;
  border: 2px solid #f0abfc;
  box-shadow: 0 4px 20px rgba(240, 171, 252, 0.15);
}

body[data-theme="dark"] .full-poem-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-color: var(--muted);
}

.full-poem-section .section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.full-poem-section .section-header h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--muted);
  margin: 0;
}

body[data-theme="dark"] .full-poem-section .section-header h2 {
  color: #c4b5fd;
}

.full-poem-section .section-icon {
  font-size: 2rem;
}

.poem-stanzas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.poem-stanza-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #e9d5ff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.poem-stanza-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #a78bfa, #f0abfc, #fde68a);
}

.poem-stanza-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(167, 139, 250, 0.2);
  border-color: #c4b5fd;
}

body[data-theme="dark"] .poem-stanza-card {
  background: #1e293b;
  border-color: var(--muted);
}

.poem-stanza-card .stanza-number {
  font-family: 'Fredoka One', cursive;
  font-size: 0.85rem;
  color: #a78bfa;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

body[data-theme="dark"] .poem-stanza-card .stanza-number {
  color: #c4b5fd;
}

.poem-stanza-card .stanza-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.8;
}

body[data-theme="dark"] .poem-stanza-card .stanza-text {
  color: #e2e8f0;
}

.poem-stanza-card .stanza-emoji {
  font-size: 2.5rem;
  text-align: center;
  margin-top: 10px;
}

.poem-stanza-card .speak-stanza-btn {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
  font-family: 'Nunito', sans-serif;
}

.poem-stanza-card .speak-stanza-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  transform: translateY(-1px);
}

/* ── New Words Section ── */
.new-words-section {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 24px;
  border: 2px solid #6ee7b7;
  box-shadow: 0 4px 20px rgba(110, 231, 183, 0.15);
}

body[data-theme="dark"] .new-words-section {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-color: #34d399;
}

.new-words-section .section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.new-words-section .section-header h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--muted);
  margin: 0;
}

body[data-theme="dark"] .new-words-section .section-header h2 {
  color: #6ee7b7;
}

.new-words-section .section-icon {
  font-size: 2rem;
}

.words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.word-card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  border: 2px solid #a7f3d0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.word-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
  border-color: #34d399;
}

.word-card:active {
  transform: translateY(-1px) scale(0.98);
}

body[data-theme="dark"] .word-card {
  background: #1e293b;
  border-color: var(--muted);
}

body[data-theme="dark"] .word-card:hover {
  border-color: #34d399;
  box-shadow: 0 8px 25px rgba(52, 211, 153, 0.15);
}

.word-card .word-emoji {
  font-size: 2.2rem;
  line-height: 1;
}

.word-card .word-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--muted);
  text-transform: capitalize;
}

body[data-theme="dark"] .word-card .word-text {
  color: #6ee7b7;
}

.word-card .word-meaning {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

body[data-theme="dark"] .word-card .word-meaning {
  color: #94a3b8;
}

.word-card .word-speak-icon {
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.word-card:hover .word-speak-icon {
  opacity: 1;
}

/* ── Fun Facts Section ── */
.fun-facts-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 24px;
  border: 2px solid #fcd34d;
  box-shadow: 0 4px 20px rgba(252, 211, 77, 0.15);
}

body[data-theme="dark"] .fun-facts-section {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
  border-color: #f59e0b;
}

.fun-facts-section .section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.fun-facts-section .section-header h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--muted);
  margin: 0;
}

body[data-theme="dark"] .fun-facts-section .section-header h2 {
  color: #fcd34d;
}

.fun-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fact-card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #fde68a;
  transition: all 0.3s ease;
}

.fact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 211, 77, 0.2);
}

body[data-theme="dark"] .fact-card {
  background: #1e293b;
  border-color: var(--muted);
}

.fact-card .fact-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.fact-card .fact-text {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.5;
}

body[data-theme="dark"] .fact-card .fact-text {
  color: #e2e8f0;
}

/* ── Sing Along Tips Section ── */
.sing-tips-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 24px;
  border: 2px solid #93c5fd;
  box-shadow: 0 4px 20px rgba(147, 197, 253, 0.15);
}

body[data-theme="dark"] .sing-tips-section {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  border-color: #60a5fa;
}

.sing-tips-section .section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sing-tips-section .section-header h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--muted);
  margin: 0;
}

body[data-theme="dark"] .sing-tips-section .section-header h2 {
  color: #93c5fd;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-item {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #bfdbfe;
  transition: all 0.3s ease;
}

.tip-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(147, 197, 253, 0.2);
}

body[data-theme="dark"] .tip-item {
  background: #1e293b;
  border-color: var(--muted);
}

.tip-item .tip-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.tip-item .tip-text {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

body[data-theme="dark"] .tip-item .tip-text {
  color: #e2e8f0;
}

/* Twinkle Top Nav styles removed - using standardized top nav */

/* ── Responsive: Twinkle Page ── */
@media (max-width: 900px) {
  .twinkle-video-and-poem-row {
    grid-template-columns: 1fr;
  }
  
  .poem-stanzas-grid {
    grid-template-columns: 1fr;
  }
  
  .fun-facts-grid {
    grid-template-columns: 1fr;
  }
  
  .words-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

@media (max-width: 600px) {
  .poem-display-board {
    padding: 20px;
    min-height: 220px;
  }
  
  .poem-board-verse .verse-line {
    font-size: 1.05rem;
  }
  
  .poem-board-verse .verse-line.highlight-line {
    font-size: 1.15rem;
  }
  
  .full-poem-section,
  .new-words-section,
  .fun-facts-section,
  .sing-tips-section {
    padding: 20px;
  }
  
  .full-poem-section .section-header h2,
  .new-words-section .section-header h2,
  .fun-facts-section .section-header h2,
  .sing-tips-section .section-header h2 {
    font-size: 1.3rem;
  }
  
  .poem-stanza-card {
    padding: 14px;
  }
  
  .words-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  
  .word-card {
    padding: 12px 8px;
  }
  
  .word-card .word-emoji {
    font-size: 1.8rem;
  }
  
  .word-card .word-text {
    font-size: 0.95rem;
  }
  
  /* Twinkle responsive nav overrides removed */
}

@media (max-width: 400px) {
  .words-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .poem-board-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .poem-board-controls button {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ABC SONG PAGE — Playful Purple & Gold Theme
   ═══════════════════════════════════════════════════════════════ */

.abc-song-playground {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* ── Video + Song Display Row ── */
.abc-video-and-song-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* ── Song Display Board ── */
.song-display-board {
  background: linear-gradient(135deg, #2e1065 0%, #581c87 50%, #2e1065 100%);
  border-radius: 24px;
  padding: 30px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid #d946ef;
  box-shadow: 0 10px 40px rgba(217, 70, 239, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.song-display-board::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(253, 224, 71, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(192, 132, 252, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative stars on ABC board */
.song-display-board .board-star {
  position: absolute;
  font-size: 0.95rem;
  animation: floatAbcStar 3s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.7;
}

.song-display-board .board-star:nth-child(1) { top: 10%; left: 8%; animation-delay: 0s; }
.song-display-board .board-star:nth-child(2) { top: 15%; right: 12%; animation-delay: 0.6s; }
.song-display-board .board-star:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 1.2s; }
.song-display-board .board-star:nth-child(4) { bottom: 10%; right: 8%; animation-delay: 1.8s; }
.song-display-board .board-star:nth-child(5) { top: 50%; left: 5%; animation-delay: 0.4s; }

@keyframes floatAbcStar {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.4; }
  50% { transform: translateY(-8px) scale(1.2) rotate(15deg); opacity: 1; }
}

.song-board-verse {
  position: relative;
  z-index: 2;
  text-align: center;
}

.song-board-verse .verse-line {
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f5f3ff;
  line-height: 2.2;
  letter-spacing: 0.5px;
}

.song-board-verse .verse-line.highlight-line {
  color: #fde68a;
  font-size: 1.45rem;
  text-shadow: 0 0 20px rgba(253, 230, 138, 0.6);
}

.song-board-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.song-board-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #f5f3ff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
  backdrop-filter: blur(4px);
}

.song-board-controls button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fde68a;
  color: #fde68a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(253, 230, 138, 0.3);
}

.song-board-controls button:active {
  transform: translateY(0);
}

/* ── Full Song Cards Section ── */
.abc-full-song-section {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 2px solid #d8b4fe;
  box-shadow: 0 4px 20px rgba(216, 180, 254, 0.15);
}

body[data-theme="dark"] .abc-full-song-section {
  background: linear-gradient(135deg, #2e1065 0%, #3b0764 100%);
  border-color: var(--muted);
}

.abc-stanza-card::before {
  background: linear-gradient(90deg, #c084fc, #e9d5ff, #fde68a);
}

.abc-stanza-card:hover {
  box-shadow: 0 8px 25px rgba(192, 132, 252, 0.25);
  border-color: #c084fc;
}

/* ── New Words Section ── */
.abc-new-words-section {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border: 2px solid #fbcfe8;
  box-shadow: 0 4px 20px rgba(251, 207, 232, 0.15);
}

body[data-theme="dark"] .abc-new-words-section {
  background: linear-gradient(135deg, #500724 0%, #701a35 100%);
  border-color: var(--muted);
}

.abc-new-words-section .section-header h2 {
  color: var(--muted);
}

body[data-theme="dark"] .abc-new-words-section .section-header h2 {
  color: #fbcfe8;
}

.abc-word-card {
  border-color: #fbcfe8;
}

.abc-word-card .word-text {
  color: var(--muted);
}

body[data-theme="dark"] .abc-word-card .word-text {
  color: #fbcfe8;
}

.abc-word-card:hover {
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.2);
  border-color: var(--muted);
}

/* ── Fun Facts Section ── */
.abc-fun-facts-section {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 2px solid #ddd6fe;
  box-shadow: 0 4px 20px rgba(221, 214, 254, 0.15);
}

body[data-theme="dark"] .abc-fun-facts-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-color: var(--muted);
}

.abc-fun-facts-section .section-header h2 {
  color: var(--muted);
}

body[data-theme="dark"] .abc-fun-facts-section .section-header h2 {
  color: #c4b5fd;
}

.abc-fact-card {
  border: 1px solid #c4b5fd;
}

.abc-fact-card:hover {
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.15);
}

/* ── Sing Along Tips Section ── */
.abc-sing-tips-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #bbf7d0;
  box-shadow: 0 4px 20px rgba(187, 247, 208, 0.15);
}

body[data-theme="dark"] .abc-sing-tips-section {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-color: #34d399;
}

.abc-sing-tips-section .section-header h2 {
  color: var(--muted);
}

body[data-theme="dark"] .abc-sing-tips-section .section-header h2 {
  color: #86efac;
}

.abc-tip-item {
  border: 1px solid #86efac;
}

.abc-tip-item:hover {
  box-shadow: 0 4px 15px rgba(21, 128, 61, 0.15);
}

/* ── ABC Song Top Nav ── */
.lesson-top-nav.abc-song-nav-layout {
  background: linear-gradient(135deg, #3b0764, #581c87);
  border: 2px solid #d946ef;
  box-shadow: 0 4px 20px rgba(217, 70, 239, 0.25);
}

.lesson-top-nav.abc-song-nav-layout .lesson-indicator-badge-big {
  background: transparent;
}

.lesson-top-nav.abc-song-nav-layout .lesson-title-big {
  color: #fde68a;
  text-shadow: 0 0 20px rgba(253, 230, 138, 0.4);
}

.lesson-top-nav.abc-song-nav-layout .prev-btn,
.lesson-top-nav.abc-song-nav-layout .next-btn {
  color: #f5f3ff;
}

.lesson-top-nav.abc-song-nav-layout .prev-btn:hover,
.lesson-top-nav.abc-song-nav-layout .next-btn:hover {
  color: #fde68a;
}

.lesson-top-nav.abc-song-nav-layout .arrow-circle {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: #f5f3ff;
}

.lesson-top-nav.abc-song-nav-layout .btn-text {
  color: #e9d5ff;
}

/* ── Responsive: ABC Song Page ── */
@media (max-width: 900px) {
  .abc-video-and-song-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .song-display-board {
    padding: 20px;
    min-height: 220px;
  }
  
  .song-board-verse .verse-line {
    font-size: 1.15rem;
  }
  
  .song-board-verse .verse-line.highlight-line {
    font-size: 1.25rem;
  }
  
  .lesson-top-nav.abc-song-nav-layout {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }
  
  .lesson-top-nav.abc-song-nav-layout .prev-btn {
    order: 2;
  }
  
  .lesson-top-nav.abc-song-nav-layout .next-btn {
    order: 3;
  }
  
  .lesson-top-nav.abc-song-nav-layout .lesson-indicator-badge-big {
    order: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ACTION RHYMES PAGE — Active Mint Green & Coral Theme
   ═══════════════════════════════════════════════════════════════ */

.action-rhymes-playground {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* ── Video + Action Display Row ── */
.action-video-and-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* ── Action Display Board ── */
.action-display-board {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #064e3b 100%);
  border-radius: 24px;
  padding: 30px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid #10b981;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.action-display-board::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(248, 113, 113, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(110, 231, 183, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative stars on Action board */
.action-display-board .board-star {
  position: absolute;
  font-size: 1.1rem;
  animation: floatActionStar 3s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.7;
}

.action-display-board .board-star:nth-child(1) { top: 10%; left: 8%; animation-delay: 0s; }
.action-display-board .board-star:nth-child(2) { top: 15%; right: 12%; animation-delay: 0.6s; }
.action-display-board .board-star:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 1.2s; }
.action-display-board .board-star:nth-child(4) { bottom: 10%; right: 8%; animation-delay: 1.8s; }
.action-display-board .board-star:nth-child(5) { top: 50%; left: 5%; animation-delay: 0.4s; }

@keyframes floatActionStar {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.4; }
  50% { transform: translateY(-8px) scale(1.2) rotate(15deg); opacity: 1; }
}

.action-board-verse {
  position: relative;
  z-index: 2;
  text-align: center;
}

.action-board-verse .verse-line {
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ecfdf5;
  line-height: 2.2;
  letter-spacing: 0.5px;
}

.action-board-verse .verse-line.highlight-line {
  color: #fde68a;
  font-size: 1.45rem;
  text-shadow: 0 0 20px rgba(253, 230, 138, 0.6);
}

.action-board-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.action-board-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #ecfdf5;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
  backdrop-filter: blur(4px);
}

.action-board-controls button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fde68a;
  color: #fde68a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(253, 230, 138, 0.3);
}

.action-board-controls button:active {
  transform: translateY(0);
}

/* ── Full Rhyme Cards Section ── */
.action-full-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #a7f3d0;
  box-shadow: 0 4px 20px rgba(167, 243, 208, 0.15);
}

body[data-theme="dark"] .action-full-section {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-color: #10b981;
}

.action-stanza-card::before {
  background: linear-gradient(90deg, #34d399, #6ee7b7, #fde68a);
}

.action-stanza-card:hover {
  box-shadow: 0 8px 25px rgba(52, 211, 153, 0.25);
  border-color: #34d399;
}

/* ── New Words Section ── */
.action-new-words-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #bfdbfe;
  box-shadow: 0 4px 20px rgba(191, 219, 254, 0.15);
}

body[data-theme="dark"] .action-new-words-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border-color: #3b82f6;
}

.action-new-words-section .section-header h2 {
  color: var(--muted);
}

body[data-theme="dark"] .action-new-words-section .section-header h2 {
  color: #bfdbfe;
}

.action-word-card {
  border-color: #bfdbfe;
}

.action-word-card .word-text {
  color: var(--muted);
}

body[data-theme="dark"] .action-word-card .word-text {
  color: #bfdbfe;
}

.action-word-card:hover {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

/* ── Fun Facts Section ── */
.action-fun-facts-section {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 2px solid #fed7aa;
  box-shadow: 0 4px 20px rgba(254, 215, 170, 0.15);
}

body[data-theme="dark"] .action-fun-facts-section {
  background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%);
  border-color: var(--muted);
}

.action-fun-facts-section .section-header h2 {
  color: var(--muted);
}

body[data-theme="dark"] .action-fun-facts-section .section-header h2 {
  color: #ffedd5;
}

.action-fact-card {
  border: 1px solid #fed7aa;
}

.action-fact-card:hover {
  box-shadow: 0 6px 20px rgba(194, 65, 12, 0.15);
}

/* ── Sing Along Tips Section ── */
.action-sing-tips-section {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border: 2px solid #fbcfe8;
  box-shadow: 0 4px 20px rgba(251, 207, 232, 0.15);
}

body[data-theme="dark"] .action-sing-tips-section {
  background: linear-gradient(135deg, #701a75 0%, #4a044e 100%);
  border-color: var(--muted);
}

.action-sing-tips-section .section-header h2 {
  color: var(--muted);
}

body[data-theme="dark"] .action-sing-tips-section .section-header h2 {
  color: #fbcfe8;
}

.action-tip-item {
  border: 1px solid #fbcfe8;
}

.action-tip-item:hover {
  box-shadow: 0 4px 15px rgba(190, 24, 93, 0.15);
}

/* ── Action Rhymes Top Nav ── */
.lesson-top-nav.action-rhymes-nav-layout {
  background: linear-gradient(135deg, #064e3b, #047857);
  border: 2px solid #10b981;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.lesson-top-nav.action-rhymes-nav-layout .lesson-indicator-badge-big {
  background: transparent;
}

.lesson-top-nav.action-rhymes-nav-layout .lesson-title-big {
  color: #fde68a;
  text-shadow: 0 0 20px rgba(253, 230, 138, 0.4);
}

.lesson-top-nav.action-rhymes-nav-layout .prev-btn,
.lesson-top-nav.action-rhymes-nav-layout .next-btn {
  color: #ecfdf5;
}

.lesson-top-nav.action-rhymes-nav-layout .prev-btn:hover,
.lesson-top-nav.action-rhymes-nav-layout .next-btn:hover {
  color: #fde68a;
}

.lesson-top-nav.action-rhymes-nav-layout .arrow-circle {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: #ecfdf5;
}

.lesson-top-nav.action-rhymes-nav-layout .btn-text {
  color: #a7f3d0;
}

/* ── Responsive: Action Rhymes Page ── */
@media (max-width: 900px) {
  .action-video-and-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .action-display-board {
    padding: 20px;
    min-height: 220px;
  }
  
  .action-board-verse .verse-line {
    font-size: 1.15rem;
  }
  
  .action-board-verse .verse-line.highlight-line {
    font-size: 1.25rem;
  }
  
  .lesson-top-nav.action-rhymes-nav-layout {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }
  
  .lesson-top-nav.action-rhymes-nav-layout .prev-btn {
    order: 2;
  }
  
  .lesson-top-nav.action-rhymes-nav-layout .next-btn {
    order: 3;
  }
  
  .lesson-top-nav.action-rhymes-nav-layout .lesson-indicator-badge-big {
    order: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════
   NUMBERS PLAYGROUND PAGE — Sun Gold & Sky Blue Theme
   ═══════════════════════════════════════════════════════════════ */

.numbers-playground {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* ── Magic Display & Video Row ── */
.numbers-magic-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* ── Magic Number Display Board ── */
.numbers-display-board {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 50%, #fef3c7 100%);
  border-radius: 24px;
  padding: 30px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid #f59e0b;
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

body[data-theme="dark"] .numbers-display-board {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
  border-color: #f59e0b;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.numbers-display-board::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Idle State */
.ndb-idle-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.ndb-idle-circle {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.ndb-idle-num {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  color: #ffffff;
}

.ndb-idle-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  max-width: 260px;
  margin: 0;
}

body[data-theme="dark"] .ndb-idle-text {
  color: #94a3b8;
}

.ndb-idle-wand img {
  animation: waveWand 2.5s ease-in-out infinite;
}

@keyframes waveWand {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(20deg) translateY(-5px); }
}

/* Tapped State Layout */
.ndb-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 20px;
  z-index: 2;
}

.ndb-top-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  gap: 15px;
}

.ndb-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ndb-left:hover {
  transform: scale(1.08);
}

.ndb-big-number {
  font-family: 'Fredoka One', cursive;
  font-size: 5rem;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ndb-word-label {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-top: 4px;
}

.ndb-tap-hint {
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0.7;
  margin-top: 4px;
}

.ndb-emoji-wrapper {
  background: var(--card);
  border: 3px solid #fde68a;
  border-radius: 20px;
  padding: 16px 20px;
  max-width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

body[data-theme="dark"] .ndb-emoji-wrapper {
  background: #1e293b;
}

.ndb-emoji {
  font-size: 2.2rem;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 2px;
  display: inline-block;
  word-break: break-word;
}

.ndb-right {
  text-align: center;
}

.ndb-title-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  margin: 0 0 8px 0;
}

.ndb-body-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

body[data-theme="dark"] .ndb-body-text {
  color: #cbd5e1;
}

/* ── Number Keys Panel ── */
.numbers-panel-card {
  background: var(--card);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border: 2px solid #f1f5f9;
  margin-bottom: 24px;
}

body[data-theme="dark"] .numbers-panel-card {
  background-color: var(--text);
  border-color: var(--muted);
}

.numbers-flex-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.number-play-card {
  border-radius: 20px;
  border: 3px solid;
  padding: 18px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.number-play-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.number-play-card:active {
  transform: scale(0.95);
}

.number-char {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  line-height: 1;
}

.number-emoji-pic {
  font-size: 1.5rem;
  line-height: 1;
}

/* ── Content Sections Custom Colors ── */
.numbers-new-words-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fde68a;
  box-shadow: 0 4px 20px rgba(254, 243, 199, 0.15);
}

body[data-theme="dark"] .numbers-new-words-section {
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
  border-color: #f59e0b;
}

.numbers-new-words-section .section-header h2 {
  color: #d97706;
}

body[data-theme="dark"] .numbers-new-words-section .section-header h2 {
  color: #fde68a;
}

.number-word-card {
  border-color: #fde68a;
}

.number-word-card .word-text {
  color: #d97706;
}

body[data-theme="dark"] .number-word-card .word-text {
  color: #fde68a;
}

.number-word-card:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
}

.numbers-fun-facts-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #bfdbfe;
  box-shadow: 0 4px 20px rgba(219, 234, 254, 0.15);
}

body[data-theme="dark"] .numbers-fun-facts-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border-color: #3b82f6;
}

.numbers-fun-facts-section .section-header h2 {
  color: var(--muted);
}

body[data-theme="dark"] .numbers-fun-facts-section .section-header h2 {
  color: #bfdbfe;
}

.number-fact-card {
  border: 1px solid #bfdbfe;
}

.number-fact-card:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.numbers-sing-tips-section {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border: 2px solid #fbcfe8;
  box-shadow: 0 4px 20px rgba(251, 207, 232, 0.15);
}

body[data-theme="dark"] .numbers-sing-tips-section {
  background: linear-gradient(135deg, #701a75 0%, #4a044e 100%);
  border-color: var(--muted);
}

.numbers-sing-tips-section .section-header h2 {
  color: var(--muted);
}

body[data-theme="dark"] .numbers-sing-tips-section .section-header h2 {
  color: #fbcfe8;
}

.number-tip-item {
  border: 1px solid #fbcfe8;
}

.number-tip-item:hover {
  box-shadow: 0 4px 15px rgba(190, 24, 93, 0.15);
}

/* ── Top Navigation Layout for Numbers ── */
.lesson-top-nav.numbers-nav-layout {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 2px solid #60a5fa;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.lesson-top-nav.numbers-nav-layout .lesson-indicator-badge-big {
  background: transparent;
}

.lesson-top-nav.numbers-nav-layout .lesson-title-big {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.lesson-top-nav.numbers-nav-layout .prev-btn,
.lesson-top-nav.numbers-nav-layout .next-btn {
  color: #ffffff;
}

.lesson-top-nav.numbers-nav-layout .prev-btn:hover,
.lesson-top-nav.numbers-nav-layout .next-btn:hover {
  color: #fde68a;
}

.lesson-top-nav.numbers-nav-layout .arrow-circle {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: #ffffff;
}

.lesson-top-nav.numbers-nav-layout .btn-text {
  color: #dbeafe;
}

/* ── Responsive: Numbers Page ── */
@media (max-width: 900px) {
  .numbers-magic-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .numbers-flex-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .numbers-display-board {
    padding: 20px;
    min-height: 220px;
  }
  
  .ndb-big-number {
    font-size: 3.8rem;
  }
  
  .ndb-word-label {
    font-size: 1rem;
  }
  
  .ndb-emoji {
    font-size: 1.8rem;
  }
  
  .ndb-title-text {
    font-size: 1.3rem;
  }
  
  .ndb-body-text {
    font-size: 0.95rem;
  }
  
  .numbers-flex-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .number-play-card {
    padding: 14px 8px;
  }
  
  .number-char {
    font-size: 1.8rem;
  }
  
  .number-emoji-pic {
    font-size: 1.25rem;
  }
  
  .lesson-top-nav.numbers-nav-layout {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }
  
  .lesson-top-nav.numbers-nav-layout .prev-btn {
    order: 2;
  }
  
  .lesson-top-nav.numbers-nav-layout .next-btn {
    order: 3;
  }
  
  .lesson-top-nav.numbers-nav-layout .lesson-indicator-badge-big {
    order: 1;
  }
}

@media (max-width: 400px) {
  .numbers-flex-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Individual countable items grid on Numbers Display Board */
.ndb-items-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 65%;
}

.ndb-single-item {
  background: var(--card);
  border: 3px solid;
  border-radius: 16px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

body[data-theme="dark"] .ndb-single-item {
  background: #1e293b;
}

.ndb-single-item:hover {
  transform: scale(1.18) translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.ndb-single-item:active {
  transform: scale(0.95);
}

.ndb-item-emoji {
  font-size: 2rem;
  line-height: 1.2;
}

.ndb-item-index {
  font-family: 'Fredoka One', cursive;
  font-size: 0.85rem;
  margin-top: 2px;
  font-weight: 800;
}

@media (max-width: 600px) {
  .ndb-items-grid {
    max-width: 100%;
    gap: 8px;
  }
  
  .ndb-single-item {
    padding: 6px 10px;
    border-radius: 12px;
  }
  
  .ndb-item-emoji {
    font-size: 1.5rem;
  }
  
  .ndb-item-index {
    font-size: 0.75rem;
  }
}

/* Default Colors and Override for Numbers Magic Display Board */
.chapter-play-layout[data-chapter="numbers-1-10"] .magic-display-board {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15) !important;
}

body[data-theme="dark"] .chapter-play-layout[data-chapter="numbers-1-10"] .magic-display-board {
  background: #1e293b !important;
  border-color: #f59e0b !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Default Colors and Override for Shapes Magic Display Board */
.chapter-play-layout[data-chapter="shapes"] .magic-display-board {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15) !important;
}

body[data-theme="dark"] .chapter-play-layout[data-chapter="shapes"] .magic-display-board {
  background: #1e293b !important;
  border-color: #34d399 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Default Colors and Override for Matching Games Magic Display Board */
.chapter-play-layout[data-chapter="matching-games"] .magic-display-board {
  background: #fdf2f8 !important;
  border-color: #fbcfe8 !important;
  box-shadow: 0 10px 40px rgba(236, 72, 153, 0.15) !important;
}

body[data-theme="dark"] .chapter-play-layout[data-chapter="matching-games"] .magic-display-board {
  background: #1e293b !important;
  border-color: var(--muted) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Default Arrow Circle Styles inside Lesson Navigation Buttons */
.lesson-nav-btn .arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  transition: all 0.2s ease;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════
   SHAPES PLAYGROUND PAGE — Emerald & Teal Theme
   ═══════════════════════════════════════════════════════════════ */

.shapes-playground {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* ── Shapes Grid Panel ── */
.shapes-panel-card {
  background: var(--card);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border: 2px solid #f1f5f9;
  margin-bottom: 24px;
}

body[data-theme="dark"] .shapes-panel-card {
  background-color: var(--text);
  border-color: var(--muted);
}

.shapes-flex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.shape-play-card {
  border-radius: 20px;
  border: 3px solid;
  padding: 16px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shape-play-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.shape-play-card:active {
  transform: scale(0.95);
}

.shape-char {
  font-size: 2.5rem;
  line-height: 1.1;
}

.shape-name-pic {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  line-height: 1;
}

/* ── Content Sections Custom Colors ── */
.shapes-new-words-section {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #a7f3d0;
  box-shadow: 0 4px 20px rgba(209, 250, 229, 0.15);
}

body[data-theme="dark"] .shapes-new-words-section {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-color: #34d399;
}

.shapes-new-words-section .section-header h2 {
  color: var(--muted);
}

body[data-theme="dark"] .shapes-new-words-section .section-header h2 {
  color: #a7f3d0;
}

.shape-word-card {
  border-color: #a7f3d0;
}

.shape-word-card .word-text {
  color: var(--muted);
}

body[data-theme="dark"] .shape-word-card .word-text {
  color: #a7f3d0;
}

.shape-word-card:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
  border-color: #34d399;
}

.shapes-fun-facts-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fde68a;
  box-shadow: 0 4px 20px rgba(254, 243, 199, 0.15);
}

body[data-theme="dark"] .shapes-fun-facts-section {
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
  border-color: #f59e0b;
}

.shapes-fun-facts-section .section-header h2 {
  color: #d97706;
}

body[data-theme="dark"] .shapes-fun-facts-section .section-header h2 {
  color: #fde68a;
}

.shape-fact-card {
  border: 1px solid #fde68a;
}

.shape-fact-card:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}

.shapes-sing-tips-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #bfdbfe;
  box-shadow: 0 4px 20px rgba(219, 234, 254, 0.15);
}

body[data-theme="dark"] .shapes-sing-tips-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border-color: #3b82f6;
}

.shapes-sing-tips-section .section-header h2 {
  color: var(--muted);
}

body[data-theme="dark"] .shapes-sing-tips-section .section-header h2 {
  color: #bfdbfe;
}

.shape-tip-item {
  border: 1px solid #bfdbfe;
}

.shape-tip-item:hover {
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

/* Interactive SVG & Corner Tap Styling */
.interactive-shape-svg {
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.06));
}

.interactive-shape-svg .draw-path {
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawShape 1.5s ease-out forwards;
}

@keyframes drawShape {
  to {
    stroke-dashoffset: 0;
  }
}

.corner-tap-point {
  transition: r 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulsePoint 2s infinite;
}

@keyframes pulsePoint {
  0% { r: 6.5; opacity: 0.8; }
  50% { r: 8.5; opacity: 1; filter: drop-shadow(0 0 6px currentColor); }
  100% { r: 6.5; opacity: 0.8; }
}

.shape-svg-label {
  font-weight: bold;
}


/* ── Responsive: Shapes Page ── */
@media (max-width: 768px) {
  .shapes-flex-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .shapes-flex-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .shape-play-card {
    padding: 12px 8px;
  }
  
  .shape-char {
    font-size: 2rem;
  }
  
  .shape-name-pic {
    font-size: 0.95rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MATCHING PLAYGROUND PAGE — Pink & Rose Theme
   ═══════════════════════════════════════════════════════════════ */

.matching-playground {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* ── Matching Grid Panel ── */
.matching-panel-card {
  background: var(--card);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border: 2px solid #f1f5f9;
  margin-bottom: 24px;
}

body[data-theme="dark"] .matching-panel-card {
  background-color: var(--text);
  border-color: var(--muted);
}

.matching-flex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.match-play-card {
  border-radius: 20px;
  border: 3px solid;
  padding: 16px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.match-play-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.match-play-card:active {
  transform: scale(0.95);
}

.match-char {
  font-size: 2.5rem;
  line-height: 1.1;
}

.match-name-pic {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  line-height: 1;
}

/* ── Content Sections Custom Colors ── */
.matching-new-words-section {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border: 2px solid #fbcfe8;
  box-shadow: 0 4px 20px rgba(252, 231, 243, 0.15);
}

body[data-theme="dark"] .matching-new-words-section {
  background: linear-gradient(135deg, #500724 0%, #831843 100%);
  border-color: var(--muted);
}

.matching-new-words-section .section-header h2 {
  color: var(--muted);
}

body[data-theme="dark"] .matching-new-words-section .section-header h2 {
  color: #fbcfe8;
}

.match-word-card {
  border-color: #fbcfe8;
}

.match-word-card .word-text {
  color: var(--muted);
}

body[data-theme="dark"] .match-word-card .word-text {
  color: #fbcfe8;
}

.match-word-card:hover {
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.25);
  border-color: var(--muted);
}

.matching-fun-facts-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fde68a;
  box-shadow: 0 4px 20px rgba(254, 243, 199, 0.15);
}

body[data-theme="dark"] .matching-fun-facts-section {
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
  border-color: #f59e0b;
}

.matching-fun-facts-section .section-header h2 {
  color: #d97706;
}

body[data-theme="dark"] .matching-fun-facts-section .section-header h2 {
  color: #fde68a;
}

.match-fact-card {
  border: 1px solid #fde68a;
}

.match-fact-card:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}

.matching-sing-tips-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #bfdbfe;
  box-shadow: 0 4px 20px rgba(219, 234, 254, 0.15);
}

body[data-theme="dark"] .matching-sing-tips-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border-color: #3b82f6;
}

.matching-sing-tips-section .section-header h2 {
  color: var(--muted);
}

body[data-theme="dark"] .matching-sing-tips-section .section-header h2 {
  color: #bfdbfe;
}

.match-tip-item {
  border: 1px solid #bfdbfe;
}

.match-tip-item:hover {
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   YUMMY FRUITS PLAYGROUND PAGE
   ═══════════════════════════════════════════════════════════════ */
.fruits-playground {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fruit-play-card {
  border-radius: 20px;
  border: 3px solid;
  padding: 16px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fruit-play-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.fruit-play-card:active {
  transform: scale(0.95);
}

.fruit-play-card.active {
  transform: scale(1.08) !important;
}

.chapter-play-layout[data-chapter="fruits-chapter"] .magic-display-board {
  box-shadow: 0 10px 40px rgba(225, 29, 72, 0.15) !important;
}

body[data-theme="dark"] .chapter-play-layout[data-chapter="fruits-chapter"] .magic-display-board {
  background: #1e293b !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

body[data-theme="dark"] .fruits-panel-card {
  background-color: var(--text) !important;
  border-color: var(--muted) !important;
}

body[data-theme="dark"] .fruit-description-card {
  background-color: var(--text) !important;
  border-color: var(--muted) !important;
}

body[data-theme="dark"] .fruit-description-card p {
  color: #cbd5e1 !important;
}

@media (max-width: 768px) {
  .fruits-flex-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .fruits-flex-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .fruit-play-card {
    padding: 12px 8px !important;
  }
}

/* ── Responsive: Matching Page ── */
@media (max-width: 768px) {
  .matching-flex-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .matching-flex-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .match-play-card {
    padding: 12px 8px;
  }
  
  .match-char {
    font-size: 2rem;
  }
  
  .match-name-pic {
    font-size: 0.95rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMAL BUDDIES PLAYGROUND PAGE
   ═══════════════════════════════════════════════════════════════ */
.animals-playground {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.animal-play-card {
  border-radius: 20px;
  border: 3px solid;
  padding: 16px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animal-play-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.animal-play-card:active {
  transform: scale(0.95);
}

.animal-play-card.active {
  transform: scale(1.08) !important;
}

.chapter-play-layout[data-chapter="animals-chapter"] .magic-display-board {
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15) !important;
}

body[data-theme="dark"] .chapter-play-layout[data-chapter="animals-chapter"] .magic-display-board {
  background: #1e293b !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

body[data-theme="dark"] .animals-panel-card {
  background-color: var(--text) !important;
  border-color: var(--muted) !important;
}

body[data-theme="dark"] .animal-description-card {
  background-color: var(--text) !important;
  border-color: var(--muted) !important;
}

body[data-theme="dark"] .animal-description-card p {
  color: #cbd5e1 !important;
}

@media (max-width: 768px) {
  .animals-flex-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .animals-flex-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .animal-play-card {
    padding: 12px 8px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RAINBOW COLORS PLAYGROUND PAGE
   ═══════════════════════════════════════════════════════════════ */
.colors-playground {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.color-play-card {
  border-radius: 20px;
  border: 3px solid;
  padding: 16px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-play-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.color-play-card:active {
  transform: scale(0.95);
}

.color-play-card.active {
  transform: scale(1.08) !important;
}

.chapter-play-layout[data-chapter="colors-chapter"] .magic-display-board {
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15) !important;
}

body[data-theme="dark"] .chapter-play-layout[data-chapter="colors-chapter"] .magic-display-board {
  background: #1e293b !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

body[data-theme="dark"] .colors-panel-card {
  background-color: var(--text) !important;
  border-color: var(--muted) !important;
}

body[data-theme="dark"] .color-description-card {
  background-color: var(--text) !important;
  border-color: var(--muted) !important;
}

body[data-theme="dark"] .color-description-card p {
  color: #cbd5e1 !important;
}

@media (max-width: 1024px) {
  .colors-flex-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .colors-flex-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .colors-flex-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .color-play-card {
    padding: 12px 8px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MY FAMILY PLAYGROUND PAGE
   ═══════════════════════════════════════════════════════════════ */
.family-playground {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.family-play-card {
  border-radius: 20px;
  border: 3px solid;
  padding: 16px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.family-play-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.family-play-card:active {
  transform: scale(0.95);
}

.family-play-card.active {
  transform: scale(1.08) !important;
}

.chapter-play-layout[data-chapter="family-chapter"] .magic-display-board {
  box-shadow: 0 10px 40px rgba(219, 39, 119, 0.15) !important;
}

body[data-theme="dark"] .chapter-play-layout[data-chapter="family-chapter"] .magic-display-board {
  background: #1e293b !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

body[data-theme="dark"] .family-panel-card {
  background-color: var(--text) !important;
  border-color: var(--muted) !important;
}

body[data-theme="dark"] .family-description-card {
  background-color: var(--text) !important;
  border-color: var(--muted) !important;
}

body[data-theme="dark"] .family-description-card p {
  color: #cbd5e1 !important;
}

@media (max-width: 600px) {
  .family-flex-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .family-play-card {
    padding: 12px 8px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOUSE SKILLS PLAYGROUND PAGE
   ═══════════════════════════════════════════════════════════════ */
.mouse-playground {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mouse-play-card {
  border-radius: 20px;
  border: 3px solid;
  padding: 16px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mouse-play-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.mouse-play-card:active {
  transform: scale(0.95);
}

.mouse-play-card.active {
  transform: scale(1.08) !important;
}

.chapter-play-layout[data-chapter="mouse-skills"] .magic-display-board {
  box-shadow: 0 10px 40px rgba(244, 63, 94, 0.15) !important;
}

body[data-theme="dark"] .chapter-play-layout[data-chapter="mouse-skills"] .magic-display-board {
  background: #1e293b !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

body[data-theme="dark"] .mouse-panel-card {
  background-color: var(--text) !important;
  border-color: var(--muted) !important;
}

body[data-theme="dark"] .mouse-description-card {
  background-color: var(--text) !important;
  border-color: var(--muted) !important;
}

body[data-theme="dark"] .mouse-description-card p {
  color: #cbd5e1 !important;
}

.toddler-scroll-box::-webkit-scrollbar {
  width: 10px;
}

.toddler-scroll-box::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 5px;
}

.toddler-scroll-box::-webkit-scrollbar-thumb {
  background: #84cc16;
  border-radius: 5px;
}

@media (max-width: 600px) {
  .mouse-flex-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .mouse-play-card {
    padding: 12px 8px !important;
  }
}

/* ─── DRAG & DROP SHAPES PLAYGROUND STYLES ─── */
.drag-shapes-playground {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chapter-play-layout[data-chapter="drag-drop-shapes"] .shapes-panel-card {
  background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 25%, #f0fff4 50%, #f0f9ff 75%, #faf5ff 100%) !important;
  border: 4px dashed #e2e8f0 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02) !important;
  padding: 24px !important;
  border-radius: 28px !important;
  position: relative;
}

body[data-theme="dark"] .chapter-play-layout[data-chapter="drag-drop-shapes"] .shapes-panel-card {
  background: linear-gradient(135deg, #1e2030 0%, #1a1b26 50%, #1f2335 100%) !important;
  border: 4px dashed #414868 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
}

.drag-shapes-flex-grid {
  display: grid !important;
  grid-template-columns: repeat(8, 1fr) !important;
  gap: 12px !important;
}

@media (max-width: 1024px) {
  .drag-shapes-flex-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .drag-shapes-flex-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

.drag-shape-play-card {
  border-radius: 20px !important;
  border: 4px solid !important;
  padding: 16px 8px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 110px !important;
  box-shadow: 0 8px 0 rgba(0,0,0,0.06), 0 12px 20px rgba(0,0,0,0.05) !important;
  position: relative !important;
  user-select: none !important;
}

.drag-shape-play-card:hover {
  transform: translateY(-8px) scale(1.05) !important;
  box-shadow: 0 16px 0 rgba(0,0,0,0.04), 0 20px 30px rgba(0,0,0,0.08) !important;
}

.drag-shape-play-card:active,
.drag-shape-play-card.active {
  transform: translateY(4px) scale(0.98) !important;
  box-shadow: 0 2px 0 rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.08) !important;
}

/* Magic display board layouts */
.drag-shapes-mdb-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drag-match-sandbox {
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.05);
}

.drag-shape-buddy-item {
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.drag-shape-buddy-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.drag-shape-item.selected {
  outline: 4px solid #8b5cf6;
  outline-offset: 4px;
  border-radius: 50%;
  animation: pulseSelection 1.5s infinite alternate;
}

@keyframes pulseSelection {
  0% { transform: scale(1); box-shadow: 0 0 0 0px rgba(139, 92, 246, 0.5); }
  100% { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(139, 92, 246, 0); }
}

/* Dark mode overrides for Sandbox elements */
body[data-theme="dark"] .drag-match-sandbox {
  background-color: var(--text) !important;
}

body[data-theme="dark"] .drop-shape-target {
  background-color: var(--text) !important;
}

body[data-theme="dark"] .drag-shape-buddy-item {
  background-color: var(--text) !important;
  color: #f1f5f9;
}

/* ─── SEQUENCING & PATTERNS PLAYGROUND STYLES ─── */
.patterns-playground {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chapter-play-layout[data-chapter="sequencing-patterns"] .patterns-panel-card {
  background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 25%, #f0fff4 50%, #f0f9ff 75%, #faf5ff 100%) !important;
  border: 4px dashed #a7f3d0 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02) !important;
  padding: 24px !important;
  border-radius: 28px !important;
  position: relative;
}

body[data-theme="dark"] .chapter-play-layout[data-chapter="sequencing-patterns"] .patterns-panel-card {
  background: linear-gradient(135deg, #1e2030 0%, #1a1b26 50%, #1f2335 100%) !important;
  border: 4px dashed #414868 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
}

.patterns-flex-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

@media (max-width: 1024px) {
  .patterns-flex-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .patterns-flex-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

.pattern-play-card {
  border-radius: 20px !important;
  border: 4px solid !important;
  padding: 16px 8px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 110px !important;
  box-shadow: 0 8px 0 rgba(0,0,0,0.06), 0 12px 20px rgba(0,0,0,0.05) !important;
  position: relative !important;
  user-select: none !important;
}

.pattern-play-card:hover {
  transform: translateY(-8px) scale(1.05) !important;
  box-shadow: 0 16px 0 rgba(0,0,0,0.04), 0 20px 30px rgba(0,0,0,0.08) !important;
}

.pattern-play-card:active,
.pattern-play-card.active {
  transform: translateY(4px) scale(0.98) !important;
  box-shadow: 0 2px 0 rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.08) !important;
}

/* Magic display board styling for patterns sandbox */
.chapter-play-layout[data-chapter="sequencing-patterns"] .magic-display-board {
  box-shadow: 0 10px 40px rgba(5, 150, 105, 0.15) !important;
}

body[data-theme="dark"] .chapter-play-layout[data-chapter="sequencing-patterns"] .magic-display-board {
  background: #1e293b !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Choice Buttons and sequence animations */
.pattern-choice-btn:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05) !important;
}

.pattern-choice-btn:active {
  transform: translateY(2px) scale(0.98) !important;
}

.shake-anim {
  animation: shakeBtn 0.4s ease-in-out;
}

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

/* Responsive styles for drag & drop magic board */
@media (max-width: 600px) {
  .drag-shapes-top-row {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .drag-shapes-description-card {
    width: 100% !important;
  }
  .drag-shape-buddies-grid {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }
}


