/* Lingo Games - Coloring Book & Language Games */
:root {
  --primary: #FF6B6B;
  --secondary: #4ECDC4;
  --accent: #FFE66D;
  --purple: #A78BFA;
  --bg: #FFF9F0;
  --text: #2D3748;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; color: var(--text); background: var(--bg); }

/* ============ NAV ============ */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-family: 'Fredoka One', cursive; font-size: 1.4rem; color: var(--primary); }
.logo-icon { font-size: 1.6rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 700; font-size: 0.95rem; }
.nav-links a.active { color: var(--primary); }
.btn-print {
  padding: 0.5rem 1.2rem; background: var(--primary); color: #fff; border: none; border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  transition: all 0.2s;
}
.btn-print:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,107,107,0.4); }
.lang-switcher select {
  padding: 0.4rem 0.8rem; border: 2px solid var(--secondary); border-radius: 8px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.85rem; cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}
.hero-bg-image {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('/img/hero-time-capsule.jpg') center center / cover no-repeat;
  z-index: 0; opacity: 0.15;
  filter: brightness(0.8) saturate(1.1);
}
.hero-bg-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(255,249,240,0.85), rgba(255,249,240,0.7));
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; }
.hero-characters { display: flex; align-items: flex-end; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.character { animation: charFloat 3s ease-in-out infinite; }
.char-weebster { animation-delay: 0.5s; }
.char-mocha { animation-delay: 1s; }
@keyframes charFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wave { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(15deg); } 75% { transform: rotate(-10deg); } }
@keyframes wag { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(10deg); } 75% { transform: rotate(-10deg); } }
.hero-char-img {
  width: 100px; height: auto; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border: 3px solid rgba(255,255,255,0.7);
}
.char-name { display: block; font-family: 'Fredoka One', cursive; font-size: 0.85rem; margin-top: 0.25rem; }
.char-vs { font-size: 1.5rem; font-weight: 800; color: var(--purple); align-self: flex-end; margin-bottom: 1.2rem; }
.char-deb .char-name { color: #FF6B6B; }
.char-weebster .char-name { color: #4ECDC4; }
.char-mocha .char-name { color: #C4883C; }
.hero-title {
  font-family: 'Fredoka One', cursive; font-size: 3.5rem;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.5rem;
}
.hero-tagline { font-size: 1.3rem; color: #718096; margin-bottom: 2.5rem; font-weight: 600; }

/* ============ LANGUAGE SELECTOR ============ */
.language-selector { background: #fff; border-radius: var(--radius); padding: 2rem 2.5rem; box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
.language-selector h2 { font-family: 'Fredoka One', cursive; font-size: 1.3rem; margin-bottom: 1.5rem; }
.lang-pairs { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.lang-pair { display: flex; flex-direction: column; gap: 0.4rem; }
.lang-pair label { font-size: 0.8rem; font-weight: 700; color: #718096; text-transform: uppercase; }
.lang-pair select { padding: 0.7rem 1.2rem; border: 3px solid var(--secondary); border-radius: 10px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem; min-width: 160px; cursor: pointer; }
.lang-arrow { font-size: 2rem; color: var(--purple); font-weight: 800; margin-top: 1.2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.8rem; border-radius: 50px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; }
.btn-big { padding: 1rem 3rem; font-size: 1.2rem; }
.btn-start { background: linear-gradient(135deg, var(--primary), #EE5A5A); color: #fff; box-shadow: 0 4px 15px rgba(255,107,107,0.4); }
.btn-start:hover { transform: translateY(-2px) scale(1.02); }

/* ============ SECTIONS ============ */
.themes-section, .games-section, .coloring-section, .section { padding: 4rem 2rem; }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-title { font-family: 'Fredoka One', cursive; font-size: 2rem; text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; font-size: 1.1rem; color: #718096; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============ THEMES ============ */
.themes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; }
.theme-card { background: #fff; border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: all 0.3s; border: 3px solid transparent; }
.theme-card:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,0,0,0.12); border-color: var(--secondary); }
.theme-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.theme-label { font-weight: 700; font-size: 1rem; }

/* ============ GAMES GRID ============ */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.game-card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow);
  transition: all 0.3s; border: 3px solid transparent;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.game-card:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 12px 40px rgba(0,0,0,0.15); border-color: var(--primary); }
.game-icon { font-size: 3.5rem; display: block; }
.game-name { font-family: 'Fredoka One', cursive; font-size: 1.3rem; }
.game-desc { font-size: 0.9rem; color: #718096; font-weight: 600; }

/* ============ GENERATOR ============ */
.generator-container { max-width: 1200px; margin: 0 auto; padding: 6rem 2rem 4rem; }
.generator-controls { background: #fff; border-radius: var(--radius); padding: 1.5rem 2rem; box-shadow: var(--shadow); margin-bottom: 2rem; position: sticky; top: 70px; z-index: 50; }
.generator-title { font-family: 'Fredoka One', cursive; font-size: 1.8rem; margin-bottom: 1rem; text-align: center; }
.controls-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; align-items: flex-end; margin-bottom: 1rem; }
.control-group { display: flex; flex-direction: column; gap: 0.3rem; }
.control-group label { font-size: 0.75rem; font-weight: 700; color: #718096; text-transform: uppercase; }
.control-group select, .control-group input[type="color"] {
  padding: 0.5rem 0.8rem; border: 2px solid var(--secondary); border-radius: 8px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.control-group input[type="color"] { width: 50px; height: 38px; padding: 2px; }
.color-palette { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.color-swatch { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: transform 0.2s; }
.color-swatch:hover { transform: scale(1.2); }

/* ============ COLORING PAGES - ONE LARGE PER PAGE ============ */
.coloring-pages { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 700px; margin: 0 auto; }
.coloring-page { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: all 0.3s; border: 3px dashed #E0DDD3; page-break-after: always; margin-bottom: 2rem; }
.coloring-page:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); border-color: var(--secondary); }
.page-inner { display: flex; flex-direction: column; align-items: center; }
.coloring-scene-img { width: 100%; max-width: 600px; height: auto; cursor: pointer; border-radius: 8px; border: 2px solid #ddd; }
.coloring-svg { width: 100%; max-width: 400px; height: auto; cursor: pointer; }
.coloring-svg path, .coloring-svg circle, .coloring-svg ellipse, .coloring-svg rect { transition: fill 0.2s; }
.word-labels { margin-top: 0.8rem; text-align: center; }
.word-translit { display: block; font-family: 'Nunito', sans-serif; font-size: 0.75rem; color: #999; font-style: normal; font-weight: 600; letter-spacing: 0.02em; line-height: 1.3; }
.word-native { font-family: 'Fredoka One', cursive; font-size: 1.1rem; color: var(--primary); }
.word-divider { margin: 0 0.3rem; color: #ccc; font-weight: 700; }
.word-target { font-family: 'Fredoka One', cursive; font-size: 1.1rem; color: var(--secondary); }
.coloring-phrase { font-size: 0.95rem; color: #888; font-style: italic; text-align: center; margin-top: 0.5rem; padding: 0.3rem 0.8rem; line-height: 1.4; min-height: 1.4em; max-width: 95%; word-wrap: break-word; }
.coloring-phrase.coloring-phrase-native { color: #555; font-style: normal; font-weight: 700; margin-top: 1rem; }
.print-footer { text-align: center; margin-top: 3rem; padding-bottom: 2rem; }

/* ============ PER-PAGE PRINT BUTTONS ============ */
.page-print-btn {
  display: inline-block;
  padding: 0.5rem 1.3rem;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 0.8rem;
  transition: all 0.2s;
}
.page-print-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(78,205,196,0.4);
}

/* ============ GAME PAGES ============ */
.game-container { max-width: 800px; margin: 0 auto; padding: 5rem 1rem 3rem; }
.game-header { text-align: center; margin-bottom: 1.5rem; }
.game-header h1 { font-family: 'Fredoka One', cursive; font-size: 2rem; }
.game-back { display: inline-flex; align-items: center; gap: 0.3rem; color: #718096; font-size: 0.85rem; font-weight: 600; text-decoration: none; margin-bottom: 0.5rem; }
.game-back:hover { color: var(--primary); }
.game-stats { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.stat-box { background: #fff; border-radius: 12px; padding: 1rem 1.5rem; text-align: center; box-shadow: var(--shadow); min-width: 80px; }
.stat-value { font-family: 'Fredoka One', cursive; font-size: 1.8rem; color: var(--primary); }
.stat-label { font-size: 0.8rem; font-weight: 700; color: #718096; text-transform: uppercase; }

/* Flashcard */
.flashcard-area { display: flex; flex-direction: column; align-items: center; margin-bottom: 2rem; }
.flashcard { width: 100%; max-width: 420px; height: 260px; perspective: 1000px; cursor: pointer; position: relative; }
.flashcard-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: transform 0.6s; }
.flashcard-front { background: linear-gradient(135deg, var(--primary), var(--purple)); color: #fff; }
.flashcard-back { background: linear-gradient(135deg, var(--secondary), #3BA99C); color: #fff; transform: rotateY(180deg); }
.flashcard.flipped .flashcard-front { transform: rotateY(180deg); }
.flashcard.flipped .flashcard-back { transform: rotateY(0deg); }
.flashcard-word { font-family: 'Fredoka One', cursive; font-size: 2.2rem; }
.flashcard-lang { font-size: 0.9rem; opacity: 0.8; margin-top: 0.3rem; font-weight: 600; }
.flashcard-hint { margin-top: 1rem; font-size: 0.85rem; color: #718096; font-weight: 600; }

/* Phrase display on flashcard back */
.flashcard-phrase {
  font-size: 0.8rem;
  color: #5a6778;
  margin-top: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: rgba(90, 114, 50, 0.08);
  border-radius: 6px;
  line-height: 1.4;
  display: none;
  max-width: 90%;
}
.flashcard-phrase-target {
  background: rgba(201, 168, 76, 0.1);
  color: #7a6020;
  font-style: italic;
}
.flashcard-controls { display: flex; justify-content: center; gap: 1rem; }

/* Match game */
.match-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; max-width: 600px; margin: 0 auto; }
.match-card { background: #fff; border-radius: 12px; padding: 1rem 0.5rem; text-align: center; font-weight: 700; font-size: 0.9rem; cursor: pointer; box-shadow: var(--shadow); border: 3px solid transparent; transition: all 0.2s; word-break: break-word; }
.match-card:hover { border-color: var(--secondary); transform: translateY(-2px); }
.match-card.selected { border-color: var(--primary); background: rgba(255,107,107,0.1); }
.match-card.matched { border-color: #34D399; background: rgba(52,211,153,0.15); opacity: 0.6; }
.match-card.wrong { border-color: var(--primary); background: rgba(255,107,107,0.15); }

/* Memory game */
.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; max-width: 500px; margin: 0 auto; }
.memory-card { aspect-ratio: 1; background: linear-gradient(135deg, var(--primary), var(--purple)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Fredoka One', cursive; font-size: 1.1rem; color: #fff; cursor: pointer; box-shadow: var(--shadow); transition: all 0.2s; border: 3px solid transparent; }
.memory-card:hover { transform: translateY(-2px); }
.memory-card.flipped { background: #fff; color: var(--text); border-color: var(--secondary); }
.memory-card.matched { background: rgba(52,211,153,0.2); border-color: #34D399; opacity: 0.7; }

/* Quiz */
.quiz-question { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; text-align: center; }
.quiz-prompt { font-size: 1.1rem; font-weight: 700; color: #718096; margin-bottom: 0.5rem; }
.quiz-word { font-family: 'Fredoka One', cursive; font-size: 2.5rem; color: var(--primary); }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 500px; margin: 0 auto; }
.quiz-option { background: #fff; border-radius: 12px; padding: 1.2rem; text-align: center; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); border: 3px solid transparent; transition: all 0.2s; }
.quiz-option:hover { border-color: var(--secondary); transform: translateY(-2px); }
.quiz-option.correct { border-color: #34D399; background: rgba(52,211,153,0.15); }
.quiz-option.incorrect { border-color: var(--primary); background: rgba(255,107,107,0.15); }

/* Scramble */
.scramble-area { text-align: center; margin-bottom: 2rem; }
.scramble-word { font-family: 'Fredoka One', cursive; font-size: 3rem; letter-spacing: 0.3rem; color: var(--primary); margin-bottom: 0.5rem; }
.scramble-hint { font-size: 1rem; color: #718096; font-weight: 600; margin-bottom: 1.5rem; }
.scramble-input { width: 100%; max-width: 400px; padding: 1rem 1.5rem; border: 3px solid var(--secondary); border-radius: 12px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1.2rem; text-align: center; outline: none; transition: border-color 0.2s; }
.scramble-input:focus { border-color: var(--primary); }

/* Results */
.results-area { text-align: center; padding: 2rem; }
.results-emoji { font-size: 4rem; margin-bottom: 0.5rem; }
.results-title { font-family: 'Fredoka One', cursive; font-size: 2rem; color: var(--primary); margin-bottom: 0.5rem; }
.results-score { font-size: 1.5rem; font-weight: 700; color: var(--secondary); margin-bottom: 1.5rem; }

/* Confetti */
.confetti-piece { position: fixed; top: -10px; z-index: 999; pointer-events: none; animation: confettiFall 3s ease-in forwards; }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }

/* ============ FOOTER ============ */
.main-footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 2rem; text-align: center; font-size: 0.9rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .char-svg { width: 60px; }
  .controls-row { flex-direction: column; align-items: stretch; }
  .coloring-pages { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .games-grid { grid-template-columns: 1fr; }
  .match-grid { grid-template-columns: repeat(2, 1fr); }
  .memory-grid { grid-template-columns: repeat(3, 1fr); }
  .quiz-options { grid-template-columns: 1fr; }
}

/* ============ WORD SEARCH ============ */
.wordsearch-words { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.ws-word { background: #fff; border-radius: 8px; padding: 0.4rem 0.8rem; font-weight: 700; font-size: 0.9rem; box-shadow: var(--shadow); border: 2px solid #e2e8f0; transition: all 0.3s; }
.ws-word.ws-found { background: rgba(52,211,153,0.2); border-color: #34D399; text-decoration: line-through; opacity: 0.6; }
.wordsearch-grid { display: grid; gap: 2px; max-width: 450px; margin: 0 auto; background: #e2e8f0; padding: 2px; border-radius: 8px; }
.ws-cell { width: 100%; aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Fredoka One', cursive; font-size: 1.1rem; cursor: pointer; border-radius: 4px; transition: all 0.15s; user-select: none; }
.ws-cell:hover { background: rgba(78,205,196,0.2); }
.ws-cell.ws-selected { background: rgba(255,107,107,0.3); }
.ws-cell.ws-found-cell { background: rgba(52,211,153,0.3); }

/* ============ SPELLING BEE ============ */
.spelling-area { text-align: center; }
.spelling-prompt { font-size: 1.2rem; font-weight: 700; color: #718096; margin-bottom: 1rem; }
.spelling-hint { font-size: 1rem; color: var(--secondary); font-weight: 600; margin-bottom: 1rem; min-height: 1.5em; }
.spelling-answer { font-family: 'Fredoka One', cursive; font-size: 1.5rem; color: var(--primary); margin-bottom: 1rem; min-height: 1.5em; }
.spelling-letters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.sb-letter { width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #FFD93D); border: none; font-family: 'Fredoka One', cursive; font-size: 1.2rem; cursor: pointer; transition: all 0.2s; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.sb-letter:hover { transform: translateY(-2px) scale(1.05); }
.sb-letter.used { opacity: 0.3; transform: scale(0.9); cursor: not-allowed; }
.spelling-input { min-height: 60px; background: #fff; border: 3px dashed var(--secondary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Fredoka One', cursive; font-size: 1.8rem; letter-spacing: 0.2rem; margin-bottom: 1rem; padding: 1rem; }
.spelling-result { font-size: 1.2rem; font-weight: 700; margin-top: 1rem; min-height: 1.5em; }
.spelling-controls { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ============ SENTENCE BUILDER ============ */
.sentence-area { text-align: center; }
.sentence-prompt { font-size: 1.2rem; font-weight: 700; color: #718096; margin-bottom: 0.5rem; }
.sentence-hint { font-size: 1rem; color: var(--secondary); font-weight: 600; margin-bottom: 1.5rem; font-style: italic; }
.sentence-build { min-height: 60px; background: #fff; border: 3px dashed var(--secondary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; padding: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.sentence-words { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.snt-word { background: linear-gradient(135deg, var(--purple), #8B5CF6); color: #fff; border: none; border-radius: 8px; padding: 0.6rem 1rem; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.2s; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.snt-word:hover { transform: translateY(-2px); }
.sentence-result { font-size: 1.2rem; font-weight: 700; margin: 1rem 0; min-height: 1.5em; }
.sentence-controls { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }

/* ============ STORY TIME ============ */
.story-area { max-width: 700px; margin: 0 auto; }
.story-loading { text-align: center; font-size: 1.2rem; color: #718096; padding: 3rem; }
.story-content { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.story-title { font-family: 'Fredoka One', cursive; font-size: 1.8rem; color: var(--primary); text-align: center; margin-bottom: 1rem; }
.story-text { font-size: 1.1rem; line-height: 1.8; margin-bottom: 2rem; color: var(--text); }
.story-text p { margin-bottom: 0.8rem; }
.story-question-area { border-top: 2px solid #f0f0f0; padding-top: 1.5rem; }
.story-question { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; text-align: center; }
.story-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 500px; margin: 0 auto 1rem; }
.story-result { text-align: center; font-size: 1.2rem; font-weight: 700; margin: 1rem 0; min-height: 1.5em; }
.story-next-btn { margin: 1rem auto 0; display: block; }

/* ============ PRONUNCIATION PRACTICE ============ */
.pron-container { max-width: 700px; margin: 0 auto; }
.pron-loading { text-align: center; font-size: 1.2rem; color: #718096; padding: 3rem; }
.pron-content { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.pron-target-word { font-family: 'Fredoka One', cursive; font-size: 3rem; color: var(--primary); text-align: center; margin-bottom: 0.5rem; }
.pron-native-hint { font-size: 1.2rem; color: #718096; text-align: center; font-weight: 700; margin-bottom: 1rem; }
.pron-phonetic { font-size: 1.5rem; color: var(--purple); text-align: center; font-weight: 700; margin-bottom: 0.5rem; }
.pron-syllables { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.pron-syllable { background: linear-gradient(135deg, var(--accent), #FFD93D); border-radius: 8px; padding: 0.4rem 0.8rem; font-weight: 700; font-size: 1rem; }
.pron-actions { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.btn-pron { padding: 0.8rem 1.5rem; border-radius: 50px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem; cursor: pointer; border: 3px solid var(--secondary); background: #fff; color: var(--text); transition: all 0.2s; }
.btn-pron:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }
.btn-pron.recording { background: var(--primary); color: #fff; border-color: var(--primary); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.btn-check { background: linear-gradient(135deg, var(--secondary), #3BA99C); color: #fff; border: none; padding: 0.8rem 2rem; border-radius: 50px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.2s; }
.btn-check:hover { transform: translateY(-2px); }
.pron-feedback { text-align: center; font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; min-height: 1.5em; color: var(--secondary); }
.pron-spelling-section { border-top: 2px solid #f0f0f0; padding-top: 1.5rem; margin-top: 1rem; }
.pron-spelling-label { text-align: center; font-weight: 700; color: #718096; margin-bottom: 1rem; }
.pron-letters { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 1rem; }
.pron-letter-btn { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--purple), #8B5CF6); color: #fff; border: none; font-family: 'Fredoka One', cursive; font-size: 1.1rem; cursor: pointer; transition: all 0.2s; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.pron-letter-btn:hover { transform: translateY(-2px) scale(1.05); }
.pron-letter-btn:disabled { opacity: 0.4; transform: none; }
.pron-answer { min-height: 50px; background: #f8f8f8; border: 3px dashed #ddd; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Fredoka One', cursive; font-size: 1.5rem; letter-spacing: 0.15rem; margin-bottom: 1rem; }
.pron-result { text-align: center; font-size: 1.2rem; font-weight: 700; margin: 1rem 0; min-height: 1.5em; }
.pron-next-btn { margin: 1rem auto 0; display: block; }
