/* ============ מסע הקריאה — STYLES ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'Arial Hebrew', 'Noto Sans Hebrew', Arial, sans-serif;
  background: linear-gradient(160deg, #1a1a4e 0%, #2d2b7a 45%, #4a3a9e 100%);
  color: #fff; overflow-x: hidden;
  user-select: none; -webkit-user-select: none;
}
#app { max-width: 640px; margin: 0 auto; padding: 12px; min-height: 100vh; }

/* --- barres --- */
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.topbar h2 { font-size: 1.3rem; flex: 1; }
.btn-back { background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 1.4rem; width: 44px; height: 44px; border-radius: 14px; cursor: pointer; }
.hud { display: flex; gap: 10px; align-items: center; margin-inline-start: auto; font-size: 1rem; }
.hud-item { background: rgba(255,255,255,.12); padding: 5px 10px; border-radius: 12px; display: flex; align-items: center; gap: 4px; }
.jar-wrap { position: relative; display: inline-block; width: 22px; height: 24px; }
.jar-glass { position: relative; z-index: 2; }
.jar-fill { position: absolute; bottom: 2px; left: 2px; right: 2px; background: linear-gradient(#ff8fc0, #ff5fa2); border-radius: 3px; z-index: 1; transition: height .4s; }

.prog { height: 10px; background: rgba(255,255,255,.15); border-radius: 6px; margin: 6px 0 14px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, #ffd24a, #ff9f1a); border-radius: 6px; transition: width .4s; }

/* --- exercices --- */
.ex { text-align: center; padding: 8px 0 30px; }
.instr { font-size: 1.15rem; opacity: .92; margin-bottom: 14px; }
.big-word { font-size: 3.4rem; font-weight: 700; background: #fff; color: #1a1a4e; border-radius: 22px; padding: 26px 18px; margin: 0 auto 20px; max-width: 460px; line-height: 1.6; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.big-word.syll-q { font-size: 4.5rem; }
.big-emoji { font-size: 4.6rem; margin: 8px 0 16px; }
.big-audio { font-size: 3rem; background: #ffd24a; border: none; border-radius: 50%; width: 110px; height: 110px; cursor: pointer; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.35); animation: pulse 1.6s infinite; }
.big-audio.small { width: 64px; height: 64px; font-size: 1.6rem; animation: none; }
.hear { background: rgba(255,255,255,.15); border: none; font-size: 1.5rem; border-radius: 14px; padding: 8px 22px; margin-top: 16px; cursor: pointer; color: #fff; }

.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 460px; margin: 0 auto; }
.choice { background: #fff; border: none; border-radius: 20px; padding: 18px 8px; font-size: 1.4rem; cursor: pointer; color: #1a1a4e; box-shadow: 0 5px 14px rgba(0,0,0,.25); transition: transform .12s; font-family: inherit; }
.choice:active { transform: scale(.95); }
.choice .em { font-size: 3rem; }
.choice .wd { font-size: 1.9rem; font-weight: 700; line-height: 1.7; }
.choice .sy { font-size: 2.6rem; font-weight: 700; line-height: 1.7; }
.choice.num, .choice .num { font-size: 2.2rem; font-weight: 800; }
.choice.snd { color: #fff; font-size: 2rem; font-weight: 800; padding: 22px 8px; text-shadow: 0 2px 4px rgba(0,0,0,.3); }
.choice.right { background: #b6f5c3 !important; }
.wrong-shake { animation: shake .5s; background: #ffc4c4 !important; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-9px)} 40%,80%{transform:translateX(9px)} }

.btn-big { background: linear-gradient(180deg, #ffd24a, #ff9f1a); color: #4a2c00; border: none; font-size: 1.5rem; font-weight: 800; padding: 16px 34px; border-radius: 20px; cursor: pointer; margin-top: 22px; box-shadow: 0 6px 0 #c46f00; font-family: inherit; }
.btn-big:active { transform: translateY(4px); box-shadow: 0 2px 0 #c46f00; }
.ghost-btn { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.btn-danger { background: #e74c3c; color: #fff; border: none; padding: 12px 22px; border-radius: 14px; margin-top: 26px; cursor: pointer; font-size: 1rem; }

/* --- correction --- */
.fix-screen { text-align: center; padding: 24px 0; }
.fix-screen h3 { font-size: 1.4rem; margin-bottom: 18px; color: #ffd24a; }
.fix-emoji { font-size: 4.4rem; margin-bottom: 10px; }
.fix-word { display: flex; justify-content: center; gap: 12px; direction: rtl; margin: 14px 0; flex-wrap: wrap; }
.fix-syll { font-size: 3.6rem; font-weight: 800; background: rgba(255,255,255,.15); border-radius: 16px; padding: 12px 18px; opacity: .35; transition: all .3s; line-height: 1.6; }
.fix-syll.on { opacity: 1; background: #fff; color: #1a1a4e; transform: scale(1.08); }
.fix-sent { font-size: 2rem; background: #fff; color: #1a1a4e; border-radius: 18px; padding: 18px; margin: 0 auto 14px; max-width: 480px; line-height: 1.9; }
.fix-sound { display: inline-block; font-size: 2.6rem; font-weight: 800; padding: 14px 30px; border-radius: 18px; margin-top: 10px; }
.fix-ghost { font-size: 3rem; margin-top: 12px; }
.fix-math { font-size: 3rem; font-weight: 800; margin: 20px 0; }

/* --- phrases / histoires --- */
.sent-box { font-size: 2.2rem; font-weight: 700; background: #fff; color: #1a1a4e; border-radius: 22px; padding: 26px 20px; margin: 0 auto 20px; max-width: 500px; line-height: 2; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.sent-box.small { font-size: 1.5rem; padding: 14px; opacity: .85; }
.story h2 { margin-bottom: 14px; }
.story-lines { background: #fff; color: #1a1a4e; border-radius: 22px; padding: 24px 20px; max-width: 520px; margin: 0 auto; text-align: right; }
.story-line { font-size: 1.9rem; font-weight: 700; line-height: 2.1; }
.fluency-clock { font-size: 3rem; font-weight: 800; color: #ffd24a; margin-bottom: 8px; }

/* --- maths --- */
.math-q { font-size: 3.4rem; font-weight: 800; background: #fff; color: #1a1a4e; border-radius: 22px; padding: 22px; margin: 0 auto 16px; max-width: 400px; direction: ltr; }
.math-q .op { color: #e67e22; }
.dots { font-size: 1.3rem; margin-bottom: 16px; direction: ltr; }
.dots .grp { background: rgba(255,255,255,.12); border-radius: 10px; padding: 4px 8px; margin: 0 4px; display: inline-block; }

/* --- sprint --- */
.sprint-bar { display: flex; justify-content: space-between; align-items: center; max-width: 460px; margin: 0 auto 12px; font-size: 1.5rem; }
.stime { background: #e74c3c; font-weight: 800; font-size: 2rem; border-radius: 50%; width: 74px; height: 74px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.stime.urgent { animation: pulse .5s infinite; background: #ff2d00; }
.sscore { background: rgba(255,255,255,.14); padding: 8px 18px; border-radius: 14px; }
.sprint-intro h2, .sprint-end h2 { font-size: 2.2rem; margin: 20px 0 10px; }
.sprint-score { font-size: 5.5rem; font-weight: 800; color: #ffd24a; }
.sprint-score small { font-size: 1.5rem; }
.record-line { font-size: 1.3rem; color: #ffd24a; margin: 10px 0; }

/* --- carte --- */
.map-head { text-align: center; margin-bottom: 10px; }
.map-head h1 { font-size: 1.9rem; margin: 8px 0; }
.map-monster { font-size: 3.6rem; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; animation: float 3s ease-in-out infinite; }
.monster-lbl { font-size: .95rem; background: rgba(255,255,255,.15); border-radius: 10px; padding: 2px 12px; margin-top: 2px; }
.stickers { font-size: 1.5rem; margin-top: 6px; letter-spacing: 4px; }
.map .hud { justify-content: center; margin: 8px 0; }
.world-title { font-size: 1.15rem; font-weight: 700; margin: 16px 4px 8px; opacity: .95; }
.world-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.day-node { border: none; border-radius: 18px; padding: 14px 6px; font-size: 1.1rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: inherit; }
.day-node .day-num { font-size: 1.7rem; font-weight: 800; }
.day-node.open { background: linear-gradient(180deg, #ffd24a, #ff9f1a); color: #4a2c00; box-shadow: 0 5px 0 #c46f00; }
.day-node.done { background: rgba(72, 199, 116, .25); color: #b6f5c3; }
.day-node.locked { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
.day-node.boss.open { background: linear-gradient(180deg, #b76cff, #7a2bd8); color: #fff; box-shadow: 0 5px 0 #4a0f96; }
.day-stars { font-size: .85rem; }
.parent-link { background: none; border: none; color: rgba(255,255,255,.55); margin: 26px auto 10px; display: block; cursor: pointer; font-size: .95rem; font-family: inherit; }

/* --- écran jour --- */
.missions { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.mission-card { display: flex; align-items: center; gap: 16px; border: none; border-radius: 20px; padding: 18px; font-size: 1.2rem; cursor: pointer; text-align: right; font-family: inherit; }
.mission-card .m-icon { font-size: 2.2rem; }
.mission-card .m-name { font-weight: 800; font-size: 1.3rem; flex: 1; }
.mission-card .m-sub { font-size: .95rem; opacity: .8; }
.mission-card.mnext { background: linear-gradient(180deg, #ffd24a, #ff9f1a); color: #4a2c00; box-shadow: 0 5px 0 #c46f00; }
.mission-card.mdone { background: rgba(72,199,116,.22); color: #b6f5c3; }
.mission-card.mlock { background: rgba(255,255,255,.08); color: rgba(255,255,255,.45); }

/* --- intro son / boss / pauses / fêtes --- */
.sound-badge { display: inline-block; font-size: 3.2rem; font-weight: 800; padding: 16px 36px; border-radius: 24px; margin: 12px 0 16px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.syll-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 420px; margin: 0 auto; }
.syll-card { background: #fff; color: #1a1a4e; border: 4px solid; border-radius: 18px; font-size: 2.6rem; font-weight: 800; padding: 14px 4px; cursor: pointer; line-height: 1.6; font-family: inherit; }
.bounce { animation: bounce .4s; }
@keyframes bounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
.boss-face { font-size: 6rem; animation: float 2s ease-in-out infinite; }
.boss-hp { display: flex; align-items: center; gap: 8px; max-width: 460px; margin: 0 auto 6px; font-size: 1.6rem; }
.hp-bar { flex: 1; height: 14px; background: rgba(255,255,255,.15); border-radius: 8px; overflow: hidden; }
.hp-fill { height: 100%; background: linear-gradient(90deg, #ff5f5f, #d31027); transition: width .4s; }
.break { padding-top: 60px; }
.break-emoji { font-size: 5rem; animation: bounce 0.6s infinite; }
.break-clock { font-size: 4.5rem; font-weight: 800; color: #ffd24a; margin-top: 20px; }
.mission-end h2, .celebrate h1 { font-size: 2rem; margin: 24px 0 12px; }
.stars-line { font-size: 3rem; margin: 10px 0; }
.star-off { opacity: .25; }
.acc-line { font-size: 1.2rem; opacity: .9; }
.monster-evolve { font-size: 7rem; animation: evolve 1.2s ease; }
@keyframes evolve { 0%{transform:scale(.2) rotate(-40deg);opacity:0} 70%{transform:scale(1.25)} 100%{transform:scale(1)} }
.monster-name { font-size: 1.2rem; margin: 8px 0; }
.tomorrow { font-size: 1.25rem; color: #ffd24a; margin-top: 10px; }
.diploma { background: #fff8dc; color: #6b4b00; border: 4px double #d4a017; border-radius: 16px; font-size: 1.6rem; line-height: 1.8; padding: 20px; max-width: 380px; margin: 16px auto; }

/* --- démarrage --- */
.start { text-align: center; padding-top: 12vh; }
.start-rocket { font-size: 6rem; animation: float 2.5s ease-in-out infinite; }
.start h1 { font-size: 2.6rem; margin: 14px 0 6px; }
.subtitle { font-size: 1.3rem; opacity: .9; }
.start-btn { font-size: 1.8rem; padding: 20px 44px; margin-top: 34px; }
.warn { margin-top: 20px; color: #ffb4a2; }

/* --- overlay / surprise --- */
.overlay { position: fixed; inset: 0; background: rgba(10,10,40,.85); display: flex; align-items: center; justify-content: center; z-index: 50; }
.overlay-card { background: #2d2b7a; border-radius: 26px; padding: 30px; text-align: center; max-width: 420px; width: 92%; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.surprise-box { font-size: 5rem; animation: bounce .8s infinite; }
.sticker-won { font-size: 5rem; margin: 12px 0; animation: evolve 1s ease; }
.pgate input { font-size: 2rem; width: 120px; text-align: center; border-radius: 12px; border: none; padding: 10px; margin: 14px 0; }
.pgate h3 { margin-bottom: 10px; }

/* --- parents --- */
.parent { background: #fff; color: #222; border-radius: 22px; padding: 18px; margin-top: 6px; }
.parent h3 { margin: 18px 0 8px; color: #2d2b7a; }
.ptable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ptable th, .ptable td { border-bottom: 1px solid #e5e5f0; padding: 7px 4px; text-align: center; }
.ptable th { background: #f2f2fb; }
.fails { display: flex; flex-wrap: wrap; gap: 8px; }
.fail-chip { background: #ffe9e6; color: #a02b1d; border-radius: 12px; padding: 5px 12px; font-size: 1.05rem; direction: rtl; }
.sound-stat { display: inline-flex; align-items: center; gap: 6px; margin: 4px 12px 4px 0; font-size: 1rem; }
.sound-stat .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.phint { background: #fff8dc; border-radius: 12px; padding: 12px; margin-top: 14px; font-size: .95rem; }
.parent .topbar { color: #fff; }
.parent .topbar h2 { color: #2d2b7a; }
.parent .btn-back { background: #2d2b7a; }

/* --- divers --- */
.confetti { position: fixed; top: -20px; width: 12px; height: 12px; border-radius: 3px; z-index: 100; animation: fall linear forwards; pointer-events: none; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }
.candy-fly { position: fixed; font-size: 1.8rem; z-index: 99; animation: candyfly .85s ease-in forwards; pointer-events: none; }
@keyframes candyfly { 0%{transform:translateY(0) scale(1);opacity:1} 100%{transform:translateY(-130px) scale(.4);opacity:0} }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.pulse { animation: pulse 1.6s infinite; }

@media (max-width: 420px) {
  .big-word { font-size: 2.7rem; }
  .choice .em { font-size: 2.4rem; }
  .choice .wd { font-size: 1.5rem; }
  .world-row { gap: 7px; }
}

/* --- English break --- */
.en-word { font-size: 2rem; font-weight: 800; color: #ffd24a; direction: ltr; margin-bottom: 14px; letter-spacing: 1px; }
.en-word.big { font-size: 2.6rem; margin: 8px 0; }
.en-card { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.en-card .em { font-size: 2.4rem; }
.en-card .en-word { font-size: 1.2rem; color: #2d2b7a; margin: 0; }
.twin2 { grid-template-columns: 1fr; max-width: 340px; }

/* --- enregistrement 🎤 --- */
.rec-words { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0; }
.rec-word { background: #fff; color: #1a1a4e; font-size: 1.9rem; font-weight: 800; border-radius: 14px; padding: 8px 16px; line-height: 1.6; }
.rec-word.en { background: #dbeafe; color: #1e3a8a; direction: ltr; font-size: 1.4rem; }
.rec-btn { font-size: 3.4rem; width: 120px; height: 120px; border-radius: 50%; border: none; background: linear-gradient(180deg, #ff6b6b, #d31027); cursor: pointer; margin-top: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.rec-btn.recording { animation: pulse .7s infinite; background: #16a34a; }
.rec-status { font-size: 1.2rem; color: #ffd24a; margin-top: 10px; min-height: 1.6em; }
.rec-screen .ghost-btn { margin-top: 12px; }
.rec-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid #eee; }
.rec-row audio { height: 36px; }

/* --- coffre des défis --- */
.chest { display: block; margin: 20px auto 0; background: linear-gradient(180deg, #b76cff, #7a2bd8); color: #fff; border: none; font-size: 1.25rem; font-weight: 800; padding: 14px 30px; border-radius: 18px; cursor: pointer; box-shadow: 0 5px 0 #4a0f96; font-family: inherit; }

/* --- karaoké --- */
.karaoke .k-word { transition: all .15s; border-radius: 8px; padding: 0 4px; }
.karaoke .k-word.on { background: #ffd24a; color: #4a2c00; transform: scale(1.06); display: inline-block; }

/* --- comparaison erreur : tapé vs bonne réponse --- */
.cmp { display: flex; gap: 12px; justify-content: center; margin: 6px 0 16px; }
.cmp-box { border-radius: 16px; padding: 10px 18px; min-width: 120px; }
.cmp-box span { display: block; font-size: .95rem; margin-bottom: 4px; opacity: .9; }
.cmp-box b { font-size: 2rem; line-height: 1.6; display: block; }
.cmp-box.bad { background: rgba(231,76,60,.25); border: 2px solid #e74c3c; }
.cmp-box.good { background: rgba(39,174,96,.25); border: 2px solid #27ae60; }

/* --- brevet des sons --- */
.brevet-btn { background: linear-gradient(180deg, #34d399, #059669); box-shadow: 0 5px 0 #065f46; margin-top: 12px; }
.matrix { border-collapse: collapse; margin-top: 6px; direction: rtl; }
.matrix th { padding: 4px 7px; font-size: 1.05rem; }
.mcell { width: 26px; height: 22px; border: 1px solid #e2e2ee; display: table-cell; }
span.mcell { display: inline-block; vertical-align: middle; margin: 0 4px; border-radius: 4px; }
.m-ok { background: #34d399; }
.m-mid { background: #fbbf24; }
.m-no { background: #f0f0f6; }
.matrix-legend { font-size: .9rem; margin: 4px 0; }

/* --- écriture guidée --- */
.slots { display: flex; gap: 8px; justify-content: center; margin: 14px 0; flex-wrap: wrap; }
.slot { min-width: 46px; height: 62px; background: rgba(255,255,255,.12); border-radius: 12px; font-size: 2.2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1.6; padding: 0 6px; }
.slot.filled { background: #fff; color: #1a1a4e; }
.slot.now { border: 3px dashed #ffd24a; animation: pulse 1.2s infinite; }
.build-q { font-size: 1.2rem; color: #ffd24a; margin-bottom: 10px; }
.small-em { font-size: 3.2rem; margin: 4px 0 8px; }
.tile.vtile .sy { font-size: 2.2rem; }
.tile.glow { box-shadow: 0 0 0 4px #ffd24a, 0 0 22px #ffd24a; animation: pulse .8s infinite; }
.target-line { font-size: 1.35rem; color: #7CFC9A; margin: 8px 0; font-weight: 800; }

.tiles { grid-template-columns: repeat(3, 1fr); }

/* ===== thème jardin de Or (5 ans : rose, doux, gros) ===== */
body { background: linear-gradient(160deg, #5b2a6e 0%, #8e4a9e 45%, #c86dab 100%); }
.choice { border-radius: 26px; padding: 22px 8px; }
.btn-big { font-size: 1.7rem; padding: 20px 40px; }
.instr { font-size: 1.3rem; }
.wrong-soft { background: #ffe9d6 !important; }
.glow { box-shadow: 0 0 0 4px #ffd24a, 0 0 22px #ffd24a; animation: pulse .8s infinite; }
.garden { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.garden .day-node { padding: 10px 2px; border-radius: 16px; }
.garden .day-node .day-num { font-size: 1.4rem; }
.garden .day-node.done { background: rgba(255,182,224,.35); }
.blend-zone { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0; direction: rtl; }
.blend-tile { font-size: 3rem; font-weight: 800; background: #fff; color: #1a1a4e; border: 4px solid #ffd24a; border-radius: 20px; width: 96px; height: 96px; cursor: pointer; line-height: 1.4; font-family: inherit; }
.blend-tile.vowel { border-color: #ccc; font-size: 2rem; }
.blend-tile:disabled { opacity: .45; }
.blend-plus, .blend-eq { font-size: 2rem; font-weight: 800; }
.blend-result { font-size: 3.4rem; font-weight: 800; background: rgba(255,255,255,.15); border-radius: 20px; width: 110px; height: 96px; display: flex; align-items: center; justify-content: center; line-height: 1.4; }
.blend-result.born { background: #fff; color: #1a1a4e; animation: evolve .8s ease; }
.candies-box { font-size: 2.2rem; background: #fff; border-radius: 22px; padding: 18px; max-width: 460px; margin: 0 auto 16px; line-height: 1.8; letter-spacing: 3px; }
.ep-text { font-size: 1.4rem; color: #ffd24a; margin: 8px 0; font-weight: 700; }
.episodes { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ep-row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.12); border-radius: 14px; padding: 10px 14px; font-size: 1.1rem; cursor: pointer; }
.ep-e { font-size: 1.8rem; }
.stickers.big { font-size: 2.4rem; letter-spacing: 8px; text-align: center; line-height: 1.8; }
.matrix { border-collapse: collapse; margin-top: 6px; direction: rtl; }
.matrix th { padding: 4px 7px; font-size: 1.05rem; }
.mcell { width: 26px; height: 22px; border: 1px solid #e2e2ee; display: table-cell; }
.m-ok { background: #34d399; } .m-mid { background: #fbbf24; } .m-no { background: #f0f0f6; }
.rec-words { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0; }
.rec-word { background: #fff; color: #1a1a4e; font-size: 2rem; font-weight: 800; border-radius: 14px; padding: 8px 16px; line-height: 1.6; }
.rec-btn { font-size: 3.4rem; width: 120px; height: 120px; border-radius: 50%; border: none; background: linear-gradient(180deg, #ff6b9d, #d3105e); cursor: pointer; margin-top: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.rec-btn.recording { animation: pulse .7s infinite; background: #16a34a; }
.rec-status { font-size: 1.2rem; color: #ffd24a; margin-top: 10px; min-height: 1.6em; }
.rec-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid #eee; }
.rec-row audio { height: 36px; }
.chest { display: block; margin: 18px auto 0; background: linear-gradient(180deg, #ff8fc0, #d3105e); color: #fff; border: none; font-size: 1.2rem; font-weight: 800; padding: 14px 30px; border-radius: 18px; cursor: pointer; box-shadow: 0 5px 0 #8f0a40; font-family: inherit; }
.brevet-btn { background: linear-gradient(180deg, #34d399, #059669); box-shadow: 0 5px 0 #065f46; margin-top: 12px; }
.cmp { display: flex; gap: 12px; justify-content: center; margin: 6px 0 16px; }
.cmp-box { border-radius: 16px; padding: 10px 18px; min-width: 110px; }
.cmp-box span { display: block; font-size: .95rem; margin-bottom: 4px; opacity: .9; }
.cmp-box b { font-size: 2rem; line-height: 1.6; display: block; }
.cmp-box.bad { background: rgba(231,126,60,.25); border: 2px solid #e79e3c; }
.cmp-box.good { background: rgba(39,174,96,.25); border: 2px solid #27ae60; }

/* ===== thème magique de Nel ===== */
body { background: linear-gradient(160deg, #241a4e 0%, #4a2b7a 45%, #7a4a9e 100%); }
.ltr { direction: ltr; }
.frw { font-family: Georgia, 'Times New Roman', serif; letter-spacing: .5px; }
.enw { font-family: 'Trebuchet MS', Verdana, sans-serif; }
.enbg .choice, .en-card-big, .rec-word.en { background: #dbeafe !important; color: #1e3a8a !important; }
.en-card-big { font-size: 2.6rem; font-weight: 800; border-radius: 20px; padding: 18px 30px; display: inline-block; margin-bottom: 12px; direction: ltr; font-family: 'Trebuchet MS', sans-serif; }
.dir-arrow { font-size: 1rem; background: rgba(255,255,255,.14); border-radius: 12px; padding: 6px 14px; display: inline-block; margin-bottom: 10px; }
.lesson-vis { background: #fff; color: #1a1a4e; border-radius: 22px; padding: 22px; font-size: 1.6rem; line-height: 2; max-width: 480px; margin: 14px auto; direction: ltr; }
.lesson h2 { color: #ffd24a; margin-top: 10px; }
.mscore { text-align: center; font-size: 1.15rem; background: rgba(255,255,255,.12); border-radius: 14px; padding: 8px; max-width: 320px; margin: 0 auto 10px; font-weight: 800; }
.giveup { margin-top: 14px; font-size: 1.05rem; }
.slot.en-slot { min-width: 64px; font-size: 1.4rem; direction: ltr; }
.frw .story-line, .story-lines.frw .story-line { font-family: Georgia, serif; }

/* --- le cours du jour --- */
.course-cards { grid-template-columns: repeat(2, 1fr); max-width: 400px; display: grid; gap: 12px; }
.course-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 6px; }
.course-letter { font-size: 3rem; font-weight: 800; line-height: 1.2; }
.course-emoji { font-size: 2.6rem; }
.course-word { font-size: 1.2rem; color: #555; }
.course-heard { outline: 4px solid #34d399; }

/* --- alphabet --- */
.abc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 460px; margin: 0 auto 14px; }
.abc-letter { background: rgba(255,255,255,.14); border-radius: 10px; padding: 8px 0; font-size: 1.5rem; font-weight: 800; font-family: Georgia, serif; transition: all .15s; }
.abc-letter.on { background: #ffd24a; color: #4a2c00; transform: scale(1.15); }
.abcbig { font-size: 2.6rem; font-weight: 800; }
.abc-choices { grid-template-columns: repeat(3, 1fr); }

.cahier-btn { background: linear-gradient(180deg, #60a5fa, #2563eb); box-shadow: 0 5px 0 #1e3a8a; margin-top: 12px; }
.sprint-bar { display: flex; justify-content: space-between; align-items: center; max-width: 460px; margin: 10px auto; font-size: 1.4rem; }
.stime { background: #e74c3c; font-weight: 800; font-size: 1.9rem; border-radius: 50%; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; }
.sscore { background: rgba(255,255,255,.14); padding: 8px 16px; border-radius: 14px; }
.sprint-score { font-size: 4.5rem; font-weight: 800; color: #ffd24a; }
.sprint-score small { font-size: 1.4rem; }
.target-line { font-size: 1.35rem; color: #7CFC9A; font-weight: 800; }
.record-line { font-size: 1.2rem; color: #ffd24a; }

/* boutons réactifs + états visibles + points visibles */
button { touch-action: manipulation; }
.choice:disabled { opacity: .55; }
.candy-fly { font-size: 2.3rem; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.prog-num { text-align: center; font-size: 1.05rem; font-weight: 800; margin: -6px 0 10px; opacity: .95; }

.enworld-btn { background: linear-gradient(180deg, #38bdf8, #0369a1); box-shadow: 0 5px 0 #075985; margin-top: 12px; }
.even-btn { background: linear-gradient(180deg, #fbbf24, #b45309); box-shadow: 0 5px 0 #713f12; margin-top: 12px; font-size: 1.05rem; }

/* ===== L'Empire de Romy : look 11 ans (sombre / rosé-doré, zéro bébé) ===== */
body { background: linear-gradient(160deg, #16121c 0%, #2b1f33 45%, #4a2c3d 100%); }
.btn-big { background: linear-gradient(180deg, #e8b46a, #b8860b); color: #241708; box-shadow: 0 5px 0 #6b4d0a; }
.day-node.open { background: linear-gradient(180deg, #e8b46a, #b8860b); color: #241708; box-shadow: 0 4px 0 #6b4d0a; }
.mission-card.mnext { background: linear-gradient(180deg, #e8b46a, #b8860b); color: #241708; box-shadow: 0 5px 0 #6b4d0a; }
.prog-fill { background: linear-gradient(90deg, #e8b46a, #d4956b); }
.conj-colors { display: flex; gap: 10px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.cpron { border-radius: 12px; padding: 8px 14px; font-weight: 800; font-size: 1.05rem; color: #fff; }
.cpron.cred, .tile.cred { background: #c0392b !important; color: #fff !important; }
.cpron.cblue, .tile.cblue { background: #2471a3 !important; color: #fff !important; }
.cpron.cgreen, .tile.cgreen { background: #1e8449 !important; color: #fff !important; }

/* ===== Le Film de Liam : cinéma noir/rouge/or (14 ans) ===== */
body { background: linear-gradient(160deg, #0d0d0f 0%, #1a1214 50%, #261a10 100%); }
.btn-big { background: linear-gradient(180deg, #d4af37, #8a6d1d); color: #140f05; box-shadow: 0 4px 0 #4a3a10; }
.day-node.open { background: linear-gradient(180deg, #d4af37, #8a6d1d); color: #140f05; box-shadow: 0 3px 0 #4a3a10; }
.mission-card.mnext { background: linear-gradient(180deg, #d4af37, #8a6d1d); color: #140f05; box-shadow: 0 4px 0 #4a3a10; }
.prog-fill { background: linear-gradient(90deg, #e50914, #d4af37); }
.code-card { background: rgba(255,255,255,.06); border: 1px solid rgba(212,175,55,.4); border-radius: 18px; padding: 18px; max-width: 520px; margin: 12px auto; text-align: right; }
.code-card h3 { color: #d4af37; margin-bottom: 8px; }
.code-card p { line-height: 1.8; font-size: 1.05rem; }
.code-p { color: #e50914; font-weight: 800; margin-top: 10px; font-size: 1.1rem; text-align: center; }
.hero-checks { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 14px auto; }
.hcheck { background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px 16px; font-size: 1.1rem; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.hcheck input { width: 22px; height: 22px; accent-color: #d4af37; }
.piq-input { width: 100%; max-width: 480px; border-radius: 14px; border: 1px solid rgba(212,175,55,.5); background: rgba(255,255,255,.92); padding: 12px; font-size: 1.1rem; font-family: inherit; margin: 8px auto; display: block; }
.piq-res { border-radius: 14px; padding: 12px; margin: 8px auto; max-width: 480px; text-align: right; }
.piq-res.pgood { background: rgba(39,174,96,.18); border: 1px solid #27ae60; }
.piq-res.pbad { background: rgba(229,9,20,.15); border: 1px solid #e50914; }
.piq-better { background: rgba(212,175,55,.15); border-radius: 10px; padding: 8px; margin-top: 6px; font-size: 1rem; }
