:root {
  --ink: #2c2150;
  --muted: #6d6490;
  --paper: #fff6ea;
  --card: #fffdf9;
  --line: #f0d9b8;
  --green: #1f8a6a;
  --gold: #f0b429;
  --rose: #e56b8a;
  --sky: #5eb7e5;
  --ok: #1f8a6a;
  --shadow: 0 12px 28px rgba(80, 40, 90, .12);
  --radius: 28px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
p, li, h1, h2, h3, .day-card, .block { overflow-wrap: break-word; }
.brand, .nav, .panel, .hero > *, .lesson-head, .form, .top > *, .brand > *, .lesson-head > * { min-width: 0; max-width: 100%; }
body {
  font-family: Nunito, "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 18px;
  background:
    radial-gradient(circle at 12% -10%, #ffe7c2 0 18%, transparent 42%),
    radial-gradient(circle at 100% 0%, #d8f1ff 0 16%, transparent 40%),
    radial-gradient(circle at 80% 100%, #ffd6e8 0 14%, transparent 38%),
    linear-gradient(180deg, #fff4dc 0%, #eef8ff 55%, #ffe9f2 100%);
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; opacity: .22; z-index: 0;
  background-image:
    radial-gradient(circle at 10% 20%, #fff 1.5px, transparent 2px),
    radial-gradient(circle at 40% 70%, #fff 1.5px, transparent 2px),
    radial-gradient(circle at 70% 30%, #fff 1.5px, transparent 2px),
    radial-gradient(circle at 90% 80%, #fff 1.5px, transparent 2px);
  background-size: 180px 180px;
}
button, input, select, a { font-family: inherit; }
h1,h2,h3 { font-family: Fredoka, Nunito, sans-serif; margin: 0 0 .35em; letter-spacing: .01em; max-width: 100%; }
.app { max-width: 1080px; width: 100%; margin: 0 auto; padding: 16px 16px 96px; position: relative; z-index: 1; }

.top {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 16px;
}
.brand { display: flex; gap: 12px; align-items: center; }
.mark {
  width: 64px; height: 64px; flex: 0 0 64px;
  border-radius: 22px;
  background: linear-gradient(160deg, #ffb347, #ff7eb3);
  color: #fff; display: grid; place-items: center;
  font-family: Fredoka, sans-serif; font-size: 1.5rem; font-weight: 700;
  box-shadow: 0 10px 0 #e58a2c, var(--shadow);
}
.titles { flex: 1; min-width: 0; }
.titles h1 { font-size: 1.55rem; margin: 0; }
.brand p { margin: 0; color: var(--muted); font-weight: 700; font-size: .95rem; }

.nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nav button, .ghost, .primary, .ok, .nav a, a.ghost, a.primary {
  border: 0; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 12px 18px; cursor: pointer; font-weight: 800;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 4px 0 #ecd4a8;
  min-height: 48px;
}
.nav button.active, .weeks button.active, .primary, a.primary {
  background: linear-gradient(180deg, #ff8a5b, #ff5d8f);
  color: #fff; box-shadow: 0 4px 0 #c4476c;
}
.ok {
  background: linear-gradient(180deg, #3fd19a, #1f8a6a);
  color: #fff; box-shadow: 0 5px 0 #14684f; font-size: 1.15rem; min-height: 58px; padding: 14px 22px;
}
.ghost:hover, .nav button:hover { transform: translateY(-1px); }
.nav a.ghost { font-size: .9rem; opacity: .8; }

.panel {
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 10px 0 rgba(255, 183, 120, .35), var(--shadow);
  padding: 22px; width: 100%;
}
.hero { margin-bottom: 18px; }
.hello {
  background: linear-gradient(135deg, #7ec8e3 0%, #b8e6d5 48%, #ffe08a 100%);
  color: #1d3557; overflow: hidden; position: relative;
}
.hello::after {
  content: "✦"; position: absolute; right: 18px; top: 10px; font-size: 4rem; opacity: .25;
}
.hello h2 { font-size: 2rem; margin: 0 0 6px; }
.hello p { margin: 0; font-weight: 700; }
.star-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.progress { flex: 1; height: 18px; background: rgba(255,255,255,.55); border-radius: 99px; overflow: hidden; box-shadow: inset 0 2px 6px rgba(0,0,0,.08); }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb347, #ff5d8f); border-radius: 99px; transition: width .4s ease; }
.star-count { font-family: Fredoka, sans-serif; font-weight: 700; font-size: 1.2rem; white-space: nowrap; }

.today-card {
  margin-top: 16px; width: 100%; border: 0; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, #ffb347, #ff8a00); color: #fff;
  border-radius: 24px; padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  box-shadow: 0 6px 0 #d97706;
}
.today-card small { display: block; color: rgba(255,255,255,.85); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .75rem; }
.today-card strong { font-family: Fredoka, sans-serif; font-size: 1.25rem; display: block; }
.today-go {
  background: rgba(255,255,255,.28); padding: 10px 16px; border-radius: 999px;
  font-weight: 800; white-space: nowrap; flex: 0 0 auto;
}

.weeks { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 12px; }
.weeks button {
  border: 0; background: #fff; color: var(--ink); font-weight: 800;
  border-radius: 999px; padding: 10px 14px; cursor: pointer; box-shadow: 0 3px 0 #ecd4a8;
}
.weeks button.active { color: #fff; background: #7b6cff; box-shadow: 0 3px 0 #5346c9; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.day-card {
  text-align: center; border: 0; background: #fff;
  border-radius: 26px; padding: 14px 10px 12px; cursor: pointer; min-height: 132px;
  box-shadow: 0 7px 0 #f3d2a6; position: relative;
}
.day-card:hover { transform: translateY(-3px); }
.day-card .day-num {
  width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-family: Fredoka, sans-serif;
  font-size: 1.35rem; font-weight: 700; box-shadow: 0 4px 0 rgba(0,0,0,.12);
}
.day-card strong { display: block; font-size: .82rem; line-height: 1.25; max-height: 2.5em; overflow: hidden; }
.day-card .day-star { position: absolute; top: 8px; right: 10px; font-size: 1.1rem; color: #d9c7a0; }
.day-card.done { background: #fffbeb; }
.day-card.done .day-star { color: #f0b429; }
.day-card.today { outline: 4px solid #ff8a5b; outline-offset: 2px; }
.w1 .day-num { background: linear-gradient(180deg,#9b8cff,#6a5ae0); }
.w2 .day-num { background: linear-gradient(180deg,#5ad0c6,#1f8a6a); }
.w3 .day-num { background: linear-gradient(180deg,#ffd36b,#f0b429); color:#5a3b00; }
.w4 .day-num { background: linear-gradient(180deg,#ff9bb8,#e56b8a); }
.w5 .day-num { background: linear-gradient(180deg,#7be0a5,#2f9e66); }
.w6 .day-num { background: linear-gradient(180deg,#7ed0ff,#3a8fd6); }
.w7 .day-num { background: linear-gradient(180deg,#86e3c3,#1c9b76); }
.w8 .day-num { background: linear-gradient(180deg,#9ad8ff,#5eb7e5); }
.w9 .day-num { background: linear-gradient(180deg,#ffb07c,#ef7a3b); }
.w10 .day-num { background: linear-gradient(180deg,#8fe3b5,#2aa56a); }
.w11 .day-num { background: linear-gradient(180deg,#ffb3d0,#e56b8a); }
.w12 .day-num { background: linear-gradient(180deg,#c5b7ff,#7b6cff); }
.w13 .day-num { background: linear-gradient(180deg,#ffe08a,#f0b429); color:#5a3b00; }

.lesson-page { padding: 8px 4px 12px; }
.lesson-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: #ffe08a; color: #5a3b00; border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 800; }
.chip.green { background: #c8f3df; color: #14684f; }
.chip.rose { background: #ffd0e0; color: #9b3358; }
.story {
  font-size: 1.22rem; line-height: 1.75; color: #2c2150;
  background: #fff8ee; border-radius: 24px; padding: 18px 18px 8px; margin-top: 14px;
}
.story p { margin: 0 0 14px; }
.block { margin-top: 16px; }
.block h3 { font-size: 1.15rem; }
.arabic {
  font-family: Amiri, "Times New Roman", serif; direction: rtl; text-align: center;
  font-size: 2.05rem; line-height: 1.85; background: #eef7ff; border-radius: 22px;
  padding: 14px 16px; margin: 10px 0; color: #1d3557;
  box-shadow: inset 0 0 0 4px #d6ecff;
}
.memo-card, .play-card, .promise-card {
  border-radius: 24px; padding: 16px 18px; margin-top: 14px;
}
.memo-card { background: #eef7ff; }
.play-card { background: #fff3d6; }
.promise-card { background: #ffe6f1; text-align: center; font-size: 1.15rem; font-weight: 800; }
.q {
  background: #fff; border-radius: 20px; padding: 14px 16px; margin: 10px 0;
  box-shadow: 0 4px 0 #f3d2a6; text-align: left;
}
.q b { display: block; margin-bottom: 8px; font-size: 1.05rem; }
.q .answer { margin: 8px 0 0; color: #1f8a6a; font-weight: 800; display: none; }
.q.open .answer { display: block; }
.q .reveal {
  border: 0; background: #7b6cff; color: #fff; border-radius: 999px;
  padding: 8px 14px; font-weight: 800; cursor: pointer;
}
.q.open .reveal { display: none; }
.parent-box, .sources {
  margin-top: 16px; background: #f6f1ff; border-radius: 18px; padding: 8px 14px;
  font-size: .95rem; color: var(--muted);
}
.sources[open] { max-height: 40vh; overflow-y: auto; }
.sources ul { margin: 8px 0 0; padding-left: 1.2em; }
.parent-box summary, .sources summary { cursor: pointer; font-weight: 800; color: var(--ink); padding: 8px 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.form { display: grid; gap: 10px; }
.form.meta { grid-template-columns: 1fr 1fr auto; align-items: end; }
.form input, .form select {
  border: 3px solid #f0d9b8; border-radius: 16px; padding: 12px 14px; background: #fff; width: 100%; font-size: 1rem;
}
.form label { display: block; font-size: .95rem; color: var(--muted); font-weight: 800; }
.search { width: min(280px, 100%); border: 3px solid #f0d9b8; border-radius: 999px; padding: 10px 14px; font-weight: 700; }
.footer-note { margin-top: 10px; color: var(--muted); font-size: .95rem; font-weight: 700; }
.userchip { font-size: .95rem; color: var(--muted); font-weight: 700; }
.hidden { display: none !important; }
.help p, .src-list p { line-height: 1.65; }
.src-list ul { columns: 2; gap: 24px; }
.cert {
  border: 8px solid #f0b429; border-radius: 28px; padding: 28px; text-align: center;
  background: linear-gradient(180deg, #fffaf0, #ffe08a); margin-top: 16px;
}
.cert h2 { font-size: 2rem; }
.err { background:#ffd6de; color:#9b3358; border-radius:16px; padding:12px; margin:8px 0; display:none; font-weight:800; }

.auth-wrap { max-width: 440px; margin: 36px auto; position: relative; z-index: 1; padding: 0 16px 60px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.auth-tabs a { width: 100%; text-align: center; }
.auth-hero { text-align: center; margin-bottom: 16px; }
.auth-hero .mark { margin: 0 auto 10px; }

.celebrate {
  position: fixed; inset: 0; z-index: 50; background: rgba(44, 33, 80, .45);
  display: grid; place-items: center; padding: 20px;
}
.celebrate .pop {
  background: #fff; border-radius: 32px; padding: 28px 22px; text-align: center; max-width: 360px; width: 100%;
  box-shadow: 0 16px 0 #f0b429;
}
.celebrate .bigstar { font-size: 4.5rem; animation: pop .5s ease; }
.celebrate.section-done .pop { box-shadow: 0 16px 0 #7b6cff; }
.float-star {
  position: absolute; top: 20%; font-size: 1.4rem; color: #f0b429;
  animation: floatUp 1.2s ease forwards; pointer-events: none;
}
@keyframes pop { from { transform: scale(.4) rotate(-20deg); } to { transform: scale(1) rotate(0); } }
@keyframes floatUp {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-120px) scale(0.6); }
}

/* Journey path */
.journey-path { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.journey-week {
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 8px 0 rgba(255, 183, 120, .28), var(--shadow);
  padding: 18px 18px 14px; border-left: 6px solid #d8d0ff;
}
.journey-week.week-current { border-left-color: #ff8a5b; background: linear-gradient(135deg, #fffdf9 0%, #fff8ee 100%); }
.journey-week.week-done { border-left-color: #f0b429; opacity: .95; }
.week-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.week-moon { font-size: 2rem; line-height: 1; flex: 0 0 auto; color: #7b6cff; }
.journey-week.week-done .week-moon { color: #f0b429; }
.week-head h3 { font-size: 1.15rem; margin: 0 0 4px; }
.week-head p { margin: 0; font-size: .92rem; color: var(--muted); font-weight: 700; line-height: 1.45; }
.week-progress { height: 8px; background: #f0e6d6; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; max-width: 200px; }
.week-progress > i { display: block; height: 100%; background: linear-gradient(90deg, #ffb347, #ff5d8f); border-radius: 99px; transition: width .35s ease; }
.week-head small { color: var(--muted); font-weight: 800; font-size: .8rem; }
.journey-track { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; padding-left: 4px; }
.journey-node {
  border: 0; background: #fff; border-radius: 18px; padding: 8px 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 58px;
  box-shadow: 0 4px 0 #f3d2a6; transition: transform .15s ease;
}
.journey-node:hover { transform: translateY(-2px); }
.journey-node .node-icon { font-size: 1.35rem; line-height: 1; font-family: Fredoka, sans-serif; }
.journey-node .node-label { font-size: .7rem; font-weight: 800; color: var(--muted); }
.journey-node.done { background: #fffbeb; }
.journey-node.done .node-icon { color: #f0b429; }
.journey-node.current {
  background: linear-gradient(180deg, #ffb347, #ff8a00); color: #fff;
  box-shadow: 0 5px 0 #d97706; outline: 3px solid #fff; outline-offset: 2px;
}
.journey-node.current .node-label { color: rgba(255,255,255,.9); }
.journey-node.upcoming .node-icon { color: #d9c7a0; }
.child-mode .parent-only { display: none !important; }
.parent-mode .child-logout { display: none !important; }
.parent-mode .parent-only { display: block; }
.parent-mode details.parent-only { display: block; }
.mode-badge { margin: 0; color: var(--muted); font-weight: 800; font-size: .9rem; }
.parent-nav.hidden, .child-nav.hidden { display: none; }

.constellation {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0;
  padding: 10px 0; position: relative;
}
.constellation-done { filter: drop-shadow(0 0 8px rgba(240,180,41,.35)); }
.constellation-star {
  border: 0; background: #fff; border-radius: 18px; padding: 10px 8px; cursor: pointer;
  box-shadow: 0 4px 0 #f3d2a6; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 52px; flex: 0 0 auto;
}
.constellation-star.done { background: #fffbeb; }
.constellation-star.done .node-icon { color: #f0b429; }
.constellation-star.current { background: linear-gradient(180deg,#ffb347,#ff8a00); color:#fff; box-shadow:0 5px 0 #d97706; }
.constellation-star.locked { opacity: .5; }
.constellation-line {
  width: 16px; height: 3px; background: #ecd4a8; border-radius: 2px; flex: 0 0 auto;
}
.constellation-line.done { background: linear-gradient(90deg, #f0b429, #ffb347); }
.gate-btn { margin-top: 10px; width: 100%; border: 0; border-radius: 18px; padding: 12px; font-weight: 800; cursor: pointer;
  background: linear-gradient(180deg,#c5b7ff,#7b6cff); color: #fff; box-shadow: 0 4px 0 #5346c9; }
.gate-done { margin: 10px 0 0; font-weight: 800; color: #7b6cff; text-align: center; }

.chest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
.chest-card { background: #fff8ee; border-radius: 20px; padding: 14px; text-align: center; box-shadow: 0 4px 0 #f3d2a6; border: none; width: 100%; cursor: default; font: inherit; color: inherit; }
.chest-card.owned { cursor: pointer; }
.chest-card.owned:active { transform: translateY(2px); box-shadow: 0 2px 0 #f3d2a6; }
.chest-card.locked { opacity: .45; }
.chest-icon { font-size: 2rem; display: block; margin-bottom: 6px; }
.chest-card p { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }

.quran-list { display: grid; gap: 10px; margin-top: 12px; }
.quran-card { display: flex; gap: 12px; align-items: center; border: 0; background: #eef7ff; border-radius: 20px; padding: 14px; cursor: pointer; text-align: left; box-shadow: 0 4px 0 #d6ecff; }
.quran-card.locked { opacity: .5; }
.quran-card span { font-size: 2rem; }
.quran-visual { height: 120px; border-radius: 20px; margin-bottom: 12px; background: linear-gradient(180deg,#d8f1ff,#eef8ff); }
.quran-visual.sky { background: linear-gradient(180deg,#1d3557,#5eb7e5); }
.quran-visual.stars { background: radial-gradient(circle,#fff 2px,transparent 3px), linear-gradient(180deg,#1d3557,#3a8fd6); background-size: 40px 40px, 100% 100%; }
.quran-visual.earth { background: linear-gradient(180deg,#86e3c3,#2f9e66); }
.quran-visual.animals { background: linear-gradient(180deg,#ffe08a,#7be0a5); }
.quran-ref { background: #f6f1ff; border-radius: 18px; padding: 14px; }

.game-q { font-weight: 800; font-size: 1.1rem; }
.game-options { display: grid; gap: 8px; margin: 12px 0; }
.game-opt { border: 0; background: #fff; border-radius: 16px; padding: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 #ecd4a8; text-align: left; min-height: 52px; }
.game-opt:disabled { opacity: .6; }
.game-feedback .good { color: #1f8a6a; font-weight: 800; }
.game-feedback .soft { color: #6d6490; font-weight: 800; }
.match-grid { display: grid; gap: 8px; }
.match-right { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.order-pool, .order-chosen { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.order-chip { background: #eef7ff; padding: 8px 12px; border-radius: 12px; font-weight: 800; }

.pin-pop { max-width: 320px; }
.pin-input { width: 100%; font-size: 1.6rem; text-align: center; letter-spacing: .4em; padding: 12px; border: 3px solid #f0d9b8; border-radius: 16px; margin: 12px 0; }
.pin-err { display: block; color: #9b3358; font-weight: 800; }
.card-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 45; background: #fff; padding: 12px 18px; border-radius: 18px; box-shadow: 0 8px 0 #f0b429; display: flex; gap: 10px; align-items: center; font-weight: 800; }
.hatira-panel { margin-bottom: 14px; border: 3px solid #f0b429; }
.ret-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.ret-row span { flex: 0 0 42%; font-weight: 800; font-size: .9rem; }
.ret-bar { flex: 1; height: 12px; background: #f0e6d6; border-radius: 99px; overflow: hidden; }
.ret-bar i { display: block; height: 100%; background: linear-gradient(90deg,#ffb347,#7b6cff); }
.week-summary { margin: 10px 0 0; font-weight: 800; color: rgba(29,53,87,.85); }

.gentle-hint {
  position: fixed; left: 50%; bottom: 24px; z-index: 40;
  transform: translateX(-50%) translateY(12px);
  background: #fff; border-radius: 22px; padding: 14px 20px;
  box-shadow: 0 8px 0 #7b6cff, 0 16px 32px rgba(44, 33, 80, .18);
  display: flex; align-items: center; gap: 12px; max-width: min(420px, calc(100% - 32px));
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.gentle-hint.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.gentle-hint span { font-size: 1.6rem; flex: 0 0 auto; }
.gentle-hint p { margin: 0; font-weight: 800; color: var(--ink); line-height: 1.4; font-size: 1rem; }
.journey-line { width: 18px; height: 3px; background: #ecd4a8; border-radius: 2px; flex: 0 0 auto; }
.journey-line.done { background: linear-gradient(90deg, #f0b429, #ffb347); }

.browse-all { margin-top: 8px; }
.browse-all summary { cursor: pointer; font-weight: 800; font-family: Fredoka, Nunito, sans-serif; font-size: 1.05rem; padding: 4px 0; }

/* Lesson steps */
.step-bar { display: flex; align-items: center; gap: 6px; margin: 16px 0 8px; flex-wrap: wrap; }
.step-dot {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #f0e6d6; font-weight: 800; font-size: .85rem; color: var(--muted);
}
.step-dot.active { background: linear-gradient(180deg, #ff8a5b, #ff5d8f); color: #fff; }
.step-dot.done { background: #c8f3df; color: #14684f; }
.step-connector { width: 12px; height: 2px; background: #ecd4a8; }
.step-count { margin-left: auto; font-weight: 800; color: var(--muted); font-size: .9rem; }
.step-title { font-family: Fredoka, sans-serif; font-size: 1.2rem; margin: 0 0 10px; color: var(--ink); }
.step-body { min-height: 120px; }
.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.form-err { color: #b42318; background: #ffe8e5; border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-weight: 700; }
.server-warn { background: #fff3cd; color: #7a4f01; border: 2px solid #f0b429; border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; font-weight: 800; }
.step-nav-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.q-counter { font-weight: 800; color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.q.hidden { display: none; }
.star-toolbar { justify-content: center; }

/* Week-themed lesson backgrounds */
.lesson-page.w1 { background: linear-gradient(180deg, transparent, rgba(155,140,255,.06)); border-radius: 20px; }
.lesson-page.w2 { background: linear-gradient(180deg, transparent, rgba(31,138,106,.05)); border-radius: 20px; }
.lesson-page.w3 { background: linear-gradient(180deg, transparent, rgba(240,180,41,.06)); border-radius: 20px; }
.lesson-page.w13 { background: linear-gradient(180deg, transparent, rgba(255,224,138,.1)); border-radius: 20px; }

.completion-ring { background: #fff8ee; border-radius: 18px; padding: 12px 14px; margin: 12px 0; }
.ring-title { font-weight: 800; margin: 0 0 8px; font-family: Fredoka, sans-serif; }
.ring-row { display: flex; justify-content: space-between; font-weight: 800; margin: 4px 0; }
.ring-dot { color: #d4c4a8; }
.ring-dot.on { color: #f0b429; }
.ring-done { color: #1f8a6a; font-weight: 800; margin: 8px 0 0; }
.today-mission, .today-reward { font-size: .9rem; color: var(--muted); margin: 6px 0 0; font-weight: 700; }

.mission-card { background: #fff8ee; border-radius: 20px; padding: 16px; }
.mission-instruction { font-weight: 700; line-height: 1.5; }
.mission-checklist, .mission-find { display: grid; gap: 8px; margin-top: 12px; }
.mission-step { border: 0; background: #fff; border-radius: 16px; padding: 14px; font-weight: 800; text-align: left; cursor: pointer; box-shadow: 0 4px 0 #ecd4a8; }
.mission-step.done { background: #e8faf3; box-shadow: 0 4px 0 #a8e6cf; }
.mission-note textarea { width: 100%; margin-top: 10px; border-radius: 12px; border: 2px solid #f0d9b8; padding: 8px; }
.reward-card { text-align: center; }
.reward-card .bigstar { font-size: 3rem; color: #f0b429; }

.quran-map { margin-top: 12px; overflow-x: auto; padding-bottom: 8px; }
.quran-path { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 200px; }
.quran-node { border: 0; background: #eef7ff; border-radius: 16px; padding: 10px 14px; width: min(280px, 100%); text-align: left; cursor: pointer; box-shadow: 0 3px 0 #d6ecff; display: flex; gap: 10px; align-items: center; }
.quran-node.locked { opacity: .45; background: #f5f5f5; box-shadow: none; }
.quran-node.done { background: #e8faf3; }
.quran-node.open { background: #fffbeb; box-shadow: 0 3px 0 #f0b429; }
.qnode-icon { font-size: 1.4rem; }
.qnode-label { font-weight: 800; font-size: .95rem; }
.quran-connector { width: 3px; height: 16px; background: #c5d9f0; border-radius: 2px; }
.quran-journey-node { font-size: .85rem; padding: 2px 4px; flex: 0 0 auto; }
.quran-journey-node.locked { opacity: .4; }
.quran-region-label { font-weight: 800; font-family: Fredoka, sans-serif; color: #6a5ae0; margin: 16px 0 8px; text-align: center; width: 100%; }

.teach-back-card { background: #f6f1ff; border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.teach-back-prompt { font-weight: 700; line-height: 1.5; }
.teach-back-timer { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-weight: 800; color: #6a5ae0; }
.mic-pulse { animation: micPulse 1.5s ease-in-out infinite; }
@keyframes micPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.teach-back-done { margin-bottom: 12px; }

.mystery-banner { cursor: pointer; color: #6a5ae0; font-weight: 800; margin: 8px 0; }
.mystery-pop .mystery-q { font-size: 3rem; color: #f0b429; }
.memory-book-preview { margin-bottom: 16px; padding: 14px; border-radius: 16px; background: #fff8ee; }
.panel-soft { background: #fff8ee; }
.book-preview { margin-top: 10px; }
.book-page-preview { padding: 6px 0; border-bottom: 1px solid #f0e0c8; }
.book-link { display: inline-block; margin-top: 8px; padding: 10px 16px; border-radius: 14px; text-decoration: none; color: #fff; background: #6a5ae0; font-weight: 800; }
.parent-conversation { margin-top: 16px; padding-top: 12px; border-top: 2px solid #f0e0c8; }
.parent-conversation h3 { font-size: 1rem; margin-bottom: 8px; }
.parent-conversation small { color: var(--muted); }
.audio-pref { display: block; margin-top: 12px; font-weight: 700; }
.listen-btn { margin-top: 10px; }

.play-home { display: grid; gap: 10px; margin-top: 12px; }
.play-mode { border: 0; background: linear-gradient(180deg,#fff8ee,#ffe8c8); border-radius: 18px; padding: 16px; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 4px 0 #f0b429; text-align: left; }
.play-weeks { margin-top: 16px; }
.play-weeks p { font-weight: 800; margin-bottom: 8px; }
.play-week { margin: 4px 6px 4px 0; }
.play-box { margin-top: 12px; }
.game-hint { background: #f6f1ff; padding: 10px; border-radius: 12px; font-weight: 700; margin-top: 8px; }
.game-opt.selected { background: #e8faf3; box-shadow: 0 4px 0 #a8e6cf; }

@media (max-width: 860px) {
  .form.meta { grid-template-columns: 1fr; }
  h1 { font-size: 1.28rem; }
  .brand { width: 100%; }
  .nav { width: 100%; }
  .arabic { font-size: 1.55rem; }
  .app { padding: 12px 12px 80px; }
  .panel { padding: 16px; }
  .lesson-head { flex-direction: column; }
  .src-list ul { columns: 1; }
  .hello h2 { font-size: 1.6rem; }
  .today-card { flex-direction: column; align-items: stretch; }
  .today-go { text-align: center; }
  .journey-track { gap: 6px 2px; }
  .journey-node { min-width: 52px; padding: 6px 8px; }
  .journey-line { width: 10px; }
  .constellation { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .constellation-line { width: 12px; }
  .constellation-star { min-width: 48px; padding: 8px 6px; }
  .step-bar { gap: 4px; }
  .step-dot { width: 28px; height: 28px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; }
  body::before, .nav, .toolbar, .weeks, .search, .celebrate { display: none !important; }
  .panel { box-shadow: none; }
}

/* Sesli okumada okunan kelime: açık pastel, satırı kaydırmayan vurgu */
.tts-word { border-radius: 6px; transition: background-color .18s ease, box-shadow .18s ease; }
.tts-word.tts-active { background: #fdf1c4; box-shadow: 0 0 0 3px #fdf1c4; }
@media (prefers-reduced-motion: reduce) { .tts-word { transition: none; } }
