/* ============================================================
   READ IT! - Children's English Learning App
   ✨ VIVID PLAYFUL — canlı, doygun, neşeli tema
   ============================================================ */

:root {
  /* ✨ PURPLE + LIME — ferah, enerjik, modern tema */
  /* Ana marka rengi: canlı mor */
  --purple: #5346E1;
  --purple-deep: #4338CA;
  --purple-light: #E8E6FB;
  --purple-bg: #F4F3FD;

  /* Vurgu/aksiyon rengi: enerjik lime */
  --lime: #D2F104;
  --lime-deep: #B6D300;
  --lime-light: #F2FCE0;
  --lime-bg: #F8FDEC;

  /* green = lime ile uyumlu (geriye dönük uyum) */
  --green: #84CC16;
  --green-deep: #65A30D;
  --green-light: #ECFCCB;
  --green-bg: #F7FEE7;

  --pink: #EC4899;
  --pink-deep: #DB2777;
  --pink-light: #FCE7F3;
  --pink-bg: #FDF2F8;

  --yellow: #FACC15;
  --yellow-deep: #EAB308;
  --yellow-light: #FEF9C3;
  --yellow-bg: #FEFCE8;

  --blue: #5346E1;
  --blue-deep: #4338CA;
  --blue-light: #E8E6FB;
  --blue-bg: #F4F3FD;

  --orange: #F97316;
  --orange-deep: #EA580C;
  --orange-light: #FFEDD5;
  --orange-bg: #FFF7ED;

  --cyan: #06B6D4;

  /* Neutrals */
  --text: #14122B;
  --text-soft: #6B7280;
  --text-light: #9CA3AF;
  --bg: #FAF9FC;
  --bg-soft: #F2FCE0;
  --card: #FFFFFF;
  --border: #ECEAF6;

  /* Shadows — soft purple/lime glow */
  --shadow-sm: 0 2px 10px rgba(83, 70, 225, 0.06);
  --shadow-md: 0 10px 26px rgba(83, 70, 225, 0.10);
  --shadow-lg: 0 18px 44px rgba(83, 70, 225, 0.16);
  --shadow-purple: 0 12px 28px rgba(83, 70, 225, 0.40);
  --shadow-lime: 0 12px 28px rgba(178, 211, 0, 0.45);
  --shadow-pink: 0 12px 28px rgba(236, 72, 153, 0.40);
  --shadow-green: 0 12px 28px rgba(132, 204, 22, 0.42);
  --shadow-blue: 0 12px 28px rgba(83, 70, 225, 0.40);
  --shadow-yellow: 0 12px 28px rgba(250, 204, 21, 0.42);
  --shadow-orange: 0 12px 28px rgba(249, 115, 22, 0.40);

  /* Gradients */
  --grad-purple: linear-gradient(135deg, #5346E1 0%, #7C6BF5 100%);
  --grad-lime: linear-gradient(135deg, #D2F104 0%, #A8E000 100%);
  --grad-pink: linear-gradient(135deg, #F472B6 0%, #DB2777 100%);
  --grad-green: linear-gradient(135deg, #A3E635 0%, #65A30D 100%);
  --grad-yellow: linear-gradient(135deg, #FDE047 0%, #EAB308 100%);
  --grad-blue: linear-gradient(135deg, #6C5DF0 0%, #4338CA 100%);
  --grad-orange: linear-gradient(135deg, #FB923C 0%, #EA580C 100%);
  --grad-hero: linear-gradient(160deg, #FAF9FC 0%, #F2FCE0 100%);
}

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

html, body {
  font-family: 'Quicksand', system-ui, sans-serif;
  background: linear-gradient(170deg, #FAF9FC 0%, #FAF9FC 45%, #F2FCE0 100%);
  background-attachment: fixed;
  color: var(--text);
  font-weight: 500;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-weight: 600;
}

/* ============================================================
   APP CONTAINER (Telefon uygulaması hissi)
   ============================================================ */
.app {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  padding-bottom: 90px; /* alt nav için */
  box-shadow: 0 0 60px rgba(17, 24, 39, 0.06);
}

@media (min-width: 600px) {
  body { padding: 20px 0; background: linear-gradient(135deg, #F5F3FF, #EFF6FF, #FEF9C3); background-attachment: fixed; }
  .app { border-radius: 32px; overflow: hidden; min-height: calc(100vh - 40px); }
}

/* ============================================================
   ÜST BAR (App header)
   ============================================================ */
.app-header {
  background: var(--card);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1;
  background: linear-gradient(95deg, #6C5DF0 0%, #7FC93A 55%, #C8E61E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--purple-deep); /* gradient desteklemeyen tarayıcılar için fallback */
}
.brand-tagline {
  font-size: 10px;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 3px;
  letter-spacing: 0.5px;
  /* text-transform KALDIRILDI: Türkçe locale'de "i" → "İ" (noktalı) oluyordu.
     Metni doğrudan büyük harfle yazıyoruz ki "JUNIOR" düz I ile görünsün. */
}

.streak-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow-bg);
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 700;
  color: var(--yellow-deep);
  font-size: 15px;
}
.streak-badge i { font-size: 16px; color: var(--orange); }

/* ============================================================
   HERO BÖLÜMÜ (Karşılama)
   ============================================================ */
.hero {
  background: var(--grad-hero);
  padding: 24px 20px 28px;
  border-radius: 0 0 32px 32px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(83,70,225,0.16), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(210,241,4,0.22), transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.hero-text { flex: 1; }
.hero-greet {
  font-size: 14px;
  color: var(--purple-deep);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.hero-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.2;
}
.hero-sub {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.4;
}
.hero-mascot {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(139, 92, 246, 0.2));
  animation: bounce-soft 3s ease-in-out infinite;
}
@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============================================================
   İSTATİSTİK KARTLARI
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px;
  margin-top: -16px;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--card);
  border-radius: 18px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-size: 18px;
  color: white;
}
.stat-icon.purple { background: var(--grad-purple); }
.stat-icon.green { background: var(--grad-green); }
.stat-icon.orange { background: var(--grad-orange); }

.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ============================================================
   SEKTION BAŞLIKLARI
   ============================================================ */
.section {
  padding: 8px 20px 20px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .emoji { font-size: 22px; }

/* Renkli ikon rozeti (emoji yerine) */
.title-ic {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(83,70,225,0.18);
}
.title-ic.purple { background: linear-gradient(135deg,#7C6BF5,#5346E1); }
.title-ic.green  { background: linear-gradient(135deg,#9BE15D,#5FB025); }
.title-ic.orange { background: linear-gradient(135deg,#FFB547,#F77F00); }
.title-ic.blue   { background: linear-gradient(135deg,#5EC5FF,#2B8FE0); }
.title-ic.pink   { background: linear-gradient(135deg,#FF9ABf,#F75C95); }

/* ============================================================
   SEVİYE LİSTESİ (Yolculuk haritası)
   ============================================================ */
.level-journey {
  position: relative;
  padding: 8px 0;
}

.level-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--card);
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.level-item:hover, .level-item:active {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.level-item.purple:hover { border-color: var(--purple); }
.level-item.green:hover { border-color: var(--green); }
.level-item.yellow:hover { border-color: var(--yellow); }
.level-item.blue:hover { border-color: var(--blue); }
.level-item.orange:hover { border-color: var(--orange); }

.level-badge-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.level-info { flex: 1; min-width: 0; }
.level-code {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.level-item.purple .level-code { color: var(--purple-deep); }
.level-item.green .level-code { color: var(--green-deep); }
.level-item.yellow .level-code { color: var(--yellow-deep); }
.level-item.blue .level-code { color: var(--blue-deep); }
.level-item.orange .level-code { color: var(--orange-deep); }

.level-desc-text {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  margin-bottom: 6px;
}
.progress-bar {
  height: 6px;
  background: var(--bg-soft);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.level-item.purple .progress-fill { background: var(--grad-purple); }
.level-item.green .progress-fill { background: var(--grad-green); }
.level-item.yellow .progress-fill { background: var(--grad-yellow); }
.level-item.blue .progress-fill { background: var(--grad-blue); }
.level-item.orange .progress-fill { background: var(--grad-orange); }

.level-count-text {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 4px;
}

.level-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 14px;
  flex-shrink: 0;
}

/* ============================================================
   ALT NAVİGASYON (Bottom Nav)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--card);
  padding: 10px 16px 14px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.06);
}
@media (min-width: 600px) {
  .bottom-nav {
    border-radius: 0 0 32px 32px;
    bottom: 20px;
    max-width: 480px;
  }
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 14px;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  flex: 1;
}
.nav-item i { font-size: 20px; }
.nav-item.active {
  color: var(--purple);
  background: var(--purple-bg);
}
.nav-item:not(.active):hover { color: var(--text-soft); }

/* ============================================================
   GERİ BUTONU - sayfa başı
   ============================================================ */
.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 4px;
}
.back-btn {
  width: 42px;
  height: 42px;
  background: var(--card);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.back-btn:hover { transform: scale(1.05); background: var(--purple-bg); color: var(--purple); }
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.page-subtitle {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
}

/* ============================================================
   KİTAP LİSTESİ
   ============================================================ */
.book-grid {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.book-card {
  background: var(--card);
  border-radius: 22px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.book-card:hover, .book-card:active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-light);
}
.book-cover {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-cover.purple { background: var(--grad-purple); }
.book-cover.green { background: var(--grad-green); }
.book-cover.yellow { background: var(--grad-yellow); }
.book-cover.blue { background: var(--grad-blue); }
.book-cover.orange { background: var(--grad-orange); }
.book-cover::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent);
}
.book-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  text-align: center;
}
.book-level-tag {
  font-size: 10px;
  color: var(--text-soft);
  font-weight: 600;
  text-align: center;
  margin-top: 2px;
}
.completed-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--green);
  color: white;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: var(--shadow-green);
  z-index: 2;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
}
.empty-state img {
  width: 140px;
  margin-bottom: 16px;
  opacity: 0.7;
}
.empty-state .title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

/* ============================================================
   OKUYUCU SAYFASI
   ============================================================ */
.reader-tabs {
  display: flex;
  gap: 6px;
  background: var(--card);
  padding: 5px;
  border-radius: 16px;
  margin: 0 20px 16px;
  box-shadow: var(--shadow-sm);
}
.tab-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}
.tab-btn.active {
  background: var(--grad-purple);
  color: white;
  box-shadow: var(--shadow-purple);
}
.tab-btn i { margin-right: 6px; font-size: 13px; }

.reader-card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px 22px 32px;
  box-shadow: var(--shadow-sm);
  margin: 0 20px 20px;
}

.story-text {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: 0.2px;
  text-align: left;
}

/* Her cümle ayrı satır */
.story-line {
  display: block;
  margin-bottom: 14px;
}
.story-line:last-child { margin-bottom: 0; }

.story-text .word {
  display: inline-block;
  padding: 2px 4px;
  margin: 2px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.story-text .word:hover {
  background: var(--blue-bg);
  color: var(--blue-deep);
}
/* Highlighted vocabulary (canlı sarı altlık) */
.story-text .word.vocab {
  background: #FEF08A;
  color: var(--text);
  padding: 2px 8px;
  font-weight: 700;
  box-shadow: inset 0 -8px 0 rgba(251, 191, 36, 0.45);
}
.story-text .word.vocab:hover {
  background: #FDE047;
}

/* Aktif kelime (karaoke highlight) — canlı mor parlama */
.story-text .word.active {
  background: var(--grad-purple);
  color: #fff;
  transform: scale(1.18);
  box-shadow: 0 8px 22px rgba(83, 70, 225, 0.50);
  z-index: 2;
  font-weight: 700;
}
@keyframes word-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.28); }
  100% { transform: scale(1.18); }
}
.story-text .word.active {
  animation: word-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.story-text .word.read {
  color: var(--purple-deep);
  opacity: 0.85;
}
.story-text .word.read.vocab {
  opacity: 1;
}

/* Audio Player - sticky en üstte, kullan\u0131m kolayl\u0131\u011f\u0131 i\u00e7in */
.player-wrap {
  position: sticky;
  top: 70px; /* app-header alt\u0131nda */
  z-index: 50;
  padding: 0 20px 16px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 70%, transparent 100%);
}
.player {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--grad-hero);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.08);
}

.play-btn {
  width: 64px;
  height: 64px;
  background: var(--grad-purple);
  color: white;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-purple);
  transition: all 0.2s ease;
}
.play-btn:hover, .play-btn:active {
  transform: scale(1.08);
}
.play-btn:active { transform: scale(0.95); }

.ctrl-btn {
  background: var(--card);
  color: var(--purple);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.ctrl-btn:hover { background: var(--purple-bg); transform: scale(1.05); }

.finish-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 20px 0;
  background: var(--grad-green);
  color: white;
  padding: 14px 28px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-green);
  width: calc(100% - 40px);
  transition: all 0.2s ease;
}
.finish-btn:hover { transform: translateY(-2px); }
.finish-btn:active { transform: translateY(0); }

/* ============================================================
   KELİME POPUP
   ============================================================ */
.word-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: var(--card);
  border-radius: 28px;
  padding: 28px 32px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  text-align: center;
  min-width: 280px;
  max-width: 90vw;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.word-popup.show { transform: translate(-50%, -50%) scale(1); }

.word-popup .pop-decor {
  width: 56px; height: 56px;
  background: var(--grad-yellow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.4);
  transform: rotate(-8deg);
}

.word-popup .en-word {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.word-popup .arrow {
  font-size: 18px;
  color: var(--text-light);
  margin: 6px 0;
}
.word-popup .tr-word {
  font-size: 24px;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 20px;
}
.popup-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.popup-actions button {
  flex: 1;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.speak-pop {
  background: var(--blue-bg);
  color: var(--blue-deep);
}
.speak-pop:hover { background: var(--blue-light); }
.close-pop {
  background: var(--grad-purple);
  color: white;
  box-shadow: var(--shadow-purple);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}
.overlay.show { opacity: 1; pointer-events: all; }

/* ============================================================
   PRACTISE
   ============================================================ */
.practise-intro {
  text-align: center;
  margin-bottom: 20px;
}
.practise-intro .icon-wrap {
  width: 64px; height: 64px;
  background: var(--grad-purple);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-purple);
}
.practise-intro h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.practise-intro p {
  font-size: 14px;
  color: var(--text-soft);
}

.exercise-card {
  background: var(--bg);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  border: 2px solid var(--border);
}
.exercise-card .q-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.exercise-card .question {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.exercise-card .question .target {
  color: var(--purple-deep);
  font-size: 26px;
}
.choices { display: grid; gap: 8px; }
.choice-btn {
  background: var(--card);
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  transition: all 0.2s ease;
  border: 2px solid var(--border);
}
.choice-btn:hover { border-color: var(--blue); background: var(--blue-bg); }
.choice-btn.correct {
  background: var(--grad-green);
  color: white;
  border-color: var(--green);
}
.choice-btn.wrong {
  background: #FEE2E2;
  color: #B91C1C;
  border-color: #FCA5A5;
}

.score-display {
  text-align: center;
  padding: 16px;
  background: var(--grad-hero);
  border-radius: 16px;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--purple-deep);
}

/* ============================================================
   KELİME EŞLEŞTİRME OYUNU
   ============================================================ */
.match-game { margin-bottom: 8px; }
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.match-col { display: flex; flex-direction: column; gap: 10px; }
.match-col-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: .5px;
  margin-bottom: 2px;
}
.match-item {
  background: var(--card);
  border: 2.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 10px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all .18s ease;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.match-item.en { color: var(--purple-deep); }
.match-item:active { transform: scale(.96); }
/* Seçili durum */
.match-item.selected {
  border-color: var(--purple);
  background: var(--purple-bg);
  box-shadow: 0 4px 12px rgba(108,93,240,0.22);
}
/* Doğru eşleşince */
.match-item.matched {
  background: linear-gradient(135deg,#9BE15D,#5FB025);
  color: white;
  border-color: #5FB025;
  cursor: default;
  opacity: .9;
}
/* Yanlış eşleşme (kısa animasyon) */
.match-item.wrong-shake {
  border-color: #FCA5A5;
  background: #FEE2E2;
  animation: matchShake .35s;
}
@keyframes matchShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.match-done {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  margin-top: 14px;
}
.practise-divider {
  height: 2px;
  background: var(--border);
  border: none;
  margin: 26px 0 22px;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 380px) {
  .hero-mascot { width: 80px; height: 80px; }
  .hero-title { font-size: 20px; }
  .story-text { font-size: 22px; }
  .book-grid { gap: 10px; padding: 12px; }
}

@media (min-width: 600px) {
  .story-text { font-size: 28px; line-height: 1.9; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
