/* Loulira — styles. Pensé pour le doigt d'un enfant : grandes cibles, peu de texte, retours visibles. */
:root {
  --bg: #fff7ec;
  --paper: #ffffff;
  --ink: #2b2140;
  --muted: #6f6785;
  --line: #eadfce;
  --accent: #7c3aed;
  --accent-soft: #efe7ff;
  --good: #16a34a;
  --good-soft: #dcfce7;
  --bad: #e11d48;
  --warn: #f59e0b;
  --radius: 22px;
  --shadow: 0 2px 0 rgba(43, 33, 64, .06), 0 8px 24px rgba(43, 33, 64, .08);
  --big: clamp(64px, 15vw, 118px);
  --ui: 'Fredoka', system-ui, sans-serif;
  --read: 'Andika', 'Fredoka', sans-serif;
  --emoji: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  color-scheme: light;
}
body.theme-violet { --accent: #7c3aed; --accent-soft: #efe7ff; --bg: #fbf6ff; }
body.theme-vert { --accent: #059669; --accent-soft: #d9f7ea; --bg: #f3fbf6; }
body.theme-bleu { --accent: #2563eb; --accent-soft: #e0ebff; --bg: #f4f8ff; }
body.theme-parent { --accent: #4f46e5; --accent-soft: #eef0ff; --bg: #f7f7fb; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 18px;
  line-height: 1.35;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background .3s;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input, select { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
.giant { font-size: calc(var(--big) * 1.5); line-height: 1; font-family: var(--emoji); }
.mid-emoji { font-size: 56px; font-family: var(--emoji); }
.row { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 14px; }
.row.wrap { flex-wrap: wrap; }
.row.left { justify-content: flex-start; flex-wrap: wrap; }
.small { font-size: 15px; }
.muted { color: var(--muted); }

/* ---------- boutons ---------- */
.btn {
  background: var(--paper); border: 2px solid var(--line); border-radius: 999px;
  padding: 12px 22px; font-weight: 600; box-shadow: var(--shadow); min-height: 52px;
  transition: transform .1s;
}
.btn:active { transform: scale(.96); }
.btn.go { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.big { font-size: 22px; padding: 16px 30px; min-height: 64px; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { color: var(--bad); border-color: #fecdd3; }
.btn:disabled { opacity: .5; }
.iconbtn {
  width: 52px; height: 52px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow);
  font-size: 26px; display: grid; place-items: center; font-family: var(--emoji); flex: none;
}
.pill { background: var(--paper); border-radius: 999px; padding: 6px 12px; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; }
.btn-pill { cursor: pointer; }
.link { color: var(--muted); text-decoration: none; font-weight: 500; padding: 10px; }

/* ---------- accueil ---------- */
.home { max-width: 900px; margin: 0 auto; padding: 32px 16px; min-height: 100dvh; display: flex; flex-direction: column; }
.home-head { text-align: center; margin-bottom: 24px; }
.home-head .logo { font-size: 64px; font-family: var(--emoji); }
.home-head h1 { font-family: 'Fredoka'; font-size: clamp(40px, 8vw, 64px); color: #7c3aed; letter-spacing: -.5px; }
.home-head p { color: var(--muted); font-size: 20px; margin: 4px 0 0; }
.kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; flex: 1; align-content: start; }
.kid {
  background: var(--paper); border-radius: 32px; padding: 28px 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 6px; border: 4px solid transparent;
  transition: transform .15s;
}
.kid:active { transform: scale(.97); }
.kid.theme-violet { border-color: #ddd0fb; background: linear-gradient(180deg, #fff, #f6f0ff); }
.kid.theme-vert { border-color: #c9eedd; background: linear-gradient(180deg, #fff, #eefaf3); }
.kid.theme-bleu { border-color: #cfdcfb; background: linear-gradient(180deg, #fff, #eef3ff); }
.kid-avatar { font-size: 96px; line-height: 1.1; font-family: var(--emoji); }
.kid-name { font-size: 34px; font-weight: 700; }
.kid-meta { color: var(--muted); font-weight: 600; }
.home-foot { display: flex; justify-content: space-between; margin-top: 24px; }

/* ---------- espace enfant ---------- */
.hub, .albumpage { max-width: 980px; margin: 0 auto; padding: 14px 16px 40px; }
.hub-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.who { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.who-av { font-size: 40px; font-family: var(--emoji); }
.who-name { font-size: 26px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badges { display: flex; gap: 8px; }
.mission {
  background: var(--paper); border-radius: 28px; padding: 18px; box-shadow: var(--shadow);
  border: 3px solid var(--accent-soft); text-align: center;
}
.mission.complete { background: linear-gradient(180deg, #fffbea, #fff); border-color: #fde68a; }
.mission-head { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 30px; }
.mission-head h2 { font-size: 24px; }
.mission-head span { font-family: var(--emoji); }
.mission-steps { display: flex; justify-content: center; gap: 10px; margin: 16px 0 6px; flex-wrap: wrap; }
.step { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 104px; padding: 10px 4px; border-radius: 18px; background: #faf7f2; opacity: .75; }
.step.next { background: var(--accent-soft); opacity: 1; outline: 3px solid var(--accent); animation: bob 1.6s ease-in-out infinite; }
.step.done { opacity: 1; background: var(--good-soft); }
.step-ico { font-size: 36px; font-family: var(--emoji); }
.step-lbl { font-size: 13px; font-weight: 600; line-height: 1.15; }
.mission-done { color: var(--muted); }
.explore { margin: 26px 4px 8px; font-size: 22px; }
.domaine h3 { font-size: 17px; margin: 18px 4px 8px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tiles.young { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.tile-act {
  background: var(--paper); border-radius: var(--radius); padding: 14px 10px 12px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 6px; border-bottom: 5px solid var(--dom, var(--accent));
  transition: transform .1s; min-height: 132px;
}
.tile-act:active { transform: scale(.96); }
.ta-ico { font-size: 44px; font-family: var(--emoji); line-height: 1.1; }
.young .ta-ico { font-size: 64px; }
.ta-title { font-weight: 600; font-size: 16px; text-align: center; line-height: 1.15; }
.ta-level { display: flex; gap: 3px; align-items: center; min-height: 12px; }
.ta-level i { width: 9px; height: 9px; border-radius: 50%; background: #e7e0d4; }
.ta-level i.on { background: var(--dom, var(--accent)); }
.ta-level em { font-style: normal; font-size: 12px; color: var(--dom, var(--accent)); font-weight: 600; }
.dom-lire { --dom: #f97362; } .dom-ecrire { --dom: #ec4899; } .dom-mots { --dom: #f59e0b; } .dom-nombres { --dom: #3b82f6; }
.dom-calcul { --dom: #0d9488; } .dom-mesures { --dom: #6366f1; } .dom-formes { --dom: #eab308; } .dom-graphisme { --dom: #16a34a; }
.dom-monde { --dom: #059669; }

/* ---------- écran de jeu ---------- */
.play { min-height: 100dvh; display: flex; flex-direction: column; max-width: 1000px; margin: 0 auto; padding: 10px 14px 20px; }
.playtop { display: flex; align-items: center; gap: 10px; }
.playtitle { flex: 1; font-weight: 700; font-size: 18px; display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.playtitle small { font-size: 12px; color: var(--accent); }
.young .playtitle { visibility: hidden; }
.dots { display: flex; gap: 6px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: #e7e0d4; transition: background .3s, transform .3s; }
.dots i.ok { background: var(--good); transform: scale(1.15); }
.dots i.mid { background: var(--warn); }
.dots i.ko { background: #c4b5a2; }
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding-top: 8px; }
.prompt { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pvisual { display: flex; justify-content: center; }
.ptext { font-size: 28px; font-weight: 600; }
.ptext.small { font-size: 18px; color: var(--muted); font-weight: 500; }
.ptext.lecture, .lecture { font-family: var(--read); }
.ptext.lecture { font-size: clamp(44px, 11vw, 84px); font-weight: 700; letter-spacing: .5px; background: var(--paper); padding: 6px 28px; border-radius: 24px; box-shadow: var(--shadow); }
.ptext.lecture.phrase { font-size: clamp(28px, 6vw, 46px); line-height: 1.3; max-width: 760px; }
.ptext.enonce { font-family: var(--read); font-size: 22px; font-weight: 400; max-width: 680px; background: var(--paper); border-radius: 20px; padding: 14px 20px; box-shadow: var(--shadow); line-height: 1.45; text-align: left; }
.ptext.bignum, .bignum { font-size: 60px; font-weight: 700; font-family: var(--ui); }
.miss { display: inline-block; min-width: 1.2em; padding: 0 .2em; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.mot .syl.s0 { color: #dc2626; } .mot .syl.s1 { color: #2563eb; }
.mot .muet { color: #b8b0c6; }
.answer { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* options à toucher */
.options { display: grid; gap: 14px; width: 100%; max-width: 860px; grid-template-columns: repeat(2, 1fr); }
.options.n3 { grid-template-columns: repeat(3, 1fr); }
.options.n4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
  .options.n4 { grid-template-columns: repeat(2, 1fr); }
  .options.n3.scenes, .options.n3.nums { grid-template-columns: repeat(3, 1fr); }
}
.opt {
  position: relative; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  min-height: 130px; display: grid; place-items: center; padding: 12px; border: 4px solid transparent;
  transition: transform .12s, border-color .2s, opacity .3s;
}
.opt:active { transform: scale(.96); }
.young .opt { min-height: 170px; }
.opt.right { border-color: var(--good); background: var(--good-soft); animation: pop .45s; }
.opt.wrong { animation: shake .4s; opacity: .35; }
.opt.reveal { border-color: var(--good); animation: pulse 1s 2; }
.options.align-end .opt { align-items: end; }
.oemoji { font-size: var(--big); line-height: 1.05; font-family: var(--emoji); }
.otext { font-size: 36px; font-weight: 700; }
.otext.graphe { font-family: var(--read); font-size: clamp(34px, 8vw, 60px); }
.otext.lecture { font-family: var(--read); font-size: 34px; }
.otext.lecture.small { font-size: 26px; }
.otext.nombre { font-size: clamp(34px, 8vw, 56px); }
.ohtml { display: grid; place-items: center; }
.ohtml svg { max-width: 100%; height: auto; }
.options.solides .ohtml svg { width: 120px; height: 120px; }
.hear {
  position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); display: grid; place-items: center; font-size: 20px; font-family: var(--emoji);
}

/* clavier numérique */
.kdisp { font-size: 46px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.kdisp b { min-width: 84px; text-align: center; padding: 2px 14px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); border: 3px solid var(--accent-soft); }
.kdisp b.empty { color: #cbbfdc; }
.kdisp b.right { border-color: var(--good); background: var(--good-soft); animation: pop .45s; }
.kdisp b.wrong { border-color: var(--bad); animation: shake .4s; }
.kdisp b.reveal { border-color: var(--good); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(360px, 100%); }
.keypad.locked { pointer-events: none; opacity: .6; }
.key { height: 66px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); font-size: 30px; font-weight: 700; }
.key:active { transform: scale(.95); background: var(--accent-soft); }
.key.ok { background: var(--accent); color: #fff; }

/* étiquettes (encodage) */
.slots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.slot { min-width: 70px; height: 84px; border-radius: 16px; border: 3px dashed #cfc3de; background: #fff; font-family: var(--read); font-size: 44px; font-weight: 700; padding: 0 8px; }
.slot.full { border-style: solid; border-color: var(--accent); }
.slot.fixed { border-style: solid; border-color: #e7e0d4; color: #b8b0c6; background: #faf8f5; }
.slot.wrong { border-color: var(--bad); animation: shake .4s; }
.slots.right .slot:not(.fixed) { border-color: var(--good); background: var(--good-soft); }
.slots.reveal .slot:not(.fixed) { border-color: var(--good); }
.bank { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 620px; }
.tile { min-width: 70px; height: 72px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); font-family: var(--read); font-size: 38px; font-weight: 700; padding: 0 12px; border-bottom: 4px solid var(--accent-soft); }
.tile.used { opacity: .2; }

/* tambour */
.drum { font-size: 120px; font-family: var(--emoji); width: 200px; height: 200px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); }
.drum.hit { animation: hit .2s; }
.drummarks { display: flex; gap: 10px; min-height: 30px; }
.drummarks i { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); animation: pop .3s; }
.drummarks.right i { background: var(--good); }

/* tracé */
.tracehost { width: 100%; max-width: 660px; display: flex; flex-direction: column; align-items: center; }
.tracecv { background: #fff; border-radius: 24px; box-shadow: var(--shadow); touch-action: none; max-width: 100%; }

/* supports visuels */
.groupe { display: grid; grid-template-columns: repeat(var(--cols, 5), auto); gap: 4px 8px; justify-content: center; font-family: var(--emoji); font-size: 54px; line-height: 1.1; }
.groupe.small { font-size: clamp(30px, 6vw, 44px); }
.groupe.tiny { font-size: 26px; }
.young .groupe.small { font-size: clamp(40px, 10vw, 58px); }
.caption { font-size: 15px; color: var(--muted); max-width: 520px; }
.groupe.barre span.out { opacity: .35; position: relative; }
.groupe.barre span.out::after { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 5px; background: var(--bad); border-radius: 3px; transform: rotate(-25deg); }
.eq { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.eq > b { font-size: 44px; color: var(--accent); }
.vrac { position: relative; width: min(340px, 86vw); height: 210px; background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); }
.vrac span { position: absolute; font-size: 44px; font-family: var(--emoji); }
.de { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100px; height: 100px; padding: 12px; background: #fff; border-radius: 18px; border: 3px solid #e7e0d4; }
.de i { border-radius: 50%; }
.b10 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 8px; background: #fff; border: 3px solid #c7b9e4; border-radius: 14px; }
.b10 i { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #ddd3ee; }
.b10 i.on { border: 0; }
.b10s { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.diz { display: flex; gap: 22px; align-items: flex-end; }
.bars { display: flex; gap: 8px; }
.bar { display: grid; grid-template-rows: repeat(10, 16px); gap: 2px; }
.bar i, .units i { width: 20px; height: 16px; background: #60a5fa; border-radius: 3px; display: block; }
.units { display: grid; grid-template-columns: repeat(3, 20px); gap: 3px; }
.units i { background: #f59e0b; }
.horloge svg { display: block; }
.monnaie { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 560px; }
.piece { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); align-content: center; }
.piece b { font-size: 26px; line-height: 1; }
.piece.p1 { background: radial-gradient(circle, #e5c77a 45%, #cbd5e1 47%); }
.piece.p2 { background: radial-gradient(circle, #cbd5e1 45%, #e5c77a 47%); }
.billet { width: 120px; height: 66px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; color: #1e293b; grid-auto-flow: column; }
.billet b { font-size: 30px; }
.billet.b5 { background: linear-gradient(135deg, #d6d3d1, #a8a29e); }
.billet.b10 { background: linear-gradient(135deg, #fecaca, #f87171); }
.billet.b20 { background: linear-gradient(135deg, #bfdbfe, #60a5fa); }
.filenum { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.filenum span { min-width: 64px; height: 64px; display: grid; place-items: center; background: #fff; border-radius: 14px; box-shadow: var(--shadow); font-size: 28px; font-weight: 700; padding: 0 6px; }
.filenum span.miss { background: var(--accent-soft); color: var(--accent); border: 3px dashed var(--accent); }
.suite { display: flex; gap: 6px; font-size: clamp(34px, 8vw, 58px); font-family: var(--emoji); flex-wrap: wrap; justify-content: center; }
.suite .miss { font-family: var(--ui); font-weight: 700; padding: 0 .3em; }
.paire { display: flex; gap: 4px; font-size: clamp(40px, 9vw, 64px); font-family: var(--emoji); }

/* scènes de position */
.scene { position: relative; width: 150px; height: 120px; }
.scene .meuble { position: absolute; left: 10px; bottom: 0; width: 130px; height: 86px; }
.scene .meuble.front { z-index: 3; }
.scene .animal { position: absolute; font-size: 54px; font-family: var(--emoji); z-index: 2; line-height: 1; }
.pos-sur .animal { left: 46px; bottom: 60px; }
.pos-sous .animal { left: 46px; bottom: 0; font-size: 44px; }
.pos-dans .animal { left: 46px; bottom: 26px; }
.pos-devant .animal { left: 40px; bottom: -6px; z-index: 4; font-size: 62px; }
.pos-derriere .animal { left: 70px; bottom: 50px; z-index: 1; font-size: 46px; }
.pos-derriere .meuble { z-index: 2; }
.pos-cote .meuble { left: 0; width: 96px; }
.pos-cote .animal { left: 98px; bottom: 0; }

/* présentation d'une nouveauté */
.intro { background: var(--paper); border-radius: 30px; box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 560px; width: 100%; text-align: center; animation: pop .4s; }
.intro-badge { background: #fef3c7; color: #92400e; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.intro-visual.big { font-size: 110px; font-family: var(--emoji); }
.intro-text { font-size: 34px; font-weight: 700; font-family: var(--read); }
.sonintro { display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap; }
.sonintro .graph, .graph { font-family: var(--read); font-size: 76px; font-weight: 700; color: var(--accent); }
.sonintro .ref { display: flex; flex-direction: column; align-items: center; font-family: var(--read); font-size: 26px; }
.sonintro .ref .giant { font-size: 90px; }

/* fin de série */
.end, .gate { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.endcard { background: var(--paper); border-radius: 32px; box-shadow: var(--shadow); padding: 28px 22px; text-align: center; max-width: 520px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.endcard h2 { font-size: 32px; }
.endstars { font-size: 64px; display: flex; gap: 6px; font-family: var(--emoji); }
.endstars span { filter: grayscale(1) opacity(.25); }
.endstars span.on { filter: none; animation: starIn .5s both; }
.endscore { color: var(--muted); margin: 0; }
.levelup { font-weight: 700; color: var(--accent); margin: 0; }
.sticker-won { display: flex; align-items: center; gap: 12px; background: var(--accent-soft); padding: 10px 18px; border-radius: 20px; font-weight: 600; animation: pop .5s .6s both; }
.sticker-won.gold { background: #fef3c7; }
.sticker { font-size: 56px; font-family: var(--emoji); animation: spin 1s .8s both; }
.pause .idea { font-size: 22px; font-weight: 600; background: var(--good-soft); padding: 12px 16px; border-radius: 18px; }

/* album */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.alb { aspect-ratio: 1; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); font-size: 44px; display: grid; place-items: center; font-family: var(--emoji); }
.alb .shadow { filter: brightness(0) opacity(.08); }
.alb.got:active { transform: scale(1.2) rotate(-8deg); }

/* ---------- espace parents ---------- */
.parent { max-width: 980px; margin: 0 auto; padding: 16px 16px 60px; user-select: text; -webkit-user-select: text; }
.phead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.phead h1 { font-size: 26px; }
.ptabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.ptabs button { padding: 10px 16px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); font-weight: 600; white-space: nowrap; }
.ptabs button.on { background: var(--accent); color: #fff; }
.pbody { display: flex; flex-direction: column; gap: 16px; }
.pcard { background: var(--paper); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.pcard h2 { font-size: 22px; margin-bottom: 8px; }
.pc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.pc-head h2 { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.kpi { background: var(--bg); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; }
.kpi b { font-size: 24px; }
.kpi span { font-size: 13px; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 120px; margin-bottom: 10px; }
.wday { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.wbar { flex: 1; width: 100%; max-width: 36px; background: var(--bg); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.wbar i { display: block; width: 100%; background: var(--accent); border-radius: 8px 8px 0 0; min-height: 2px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
.ptable th { text-align: left; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); padding: 6px; }
.ptable td { border-bottom: 1px solid #f1ece4; padding: 7px 6px; }
.lvlbtns { white-space: nowrap; }
.lvlbtns button { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); font-weight: 700; margin-left: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.field > label { font-weight: 600; font-size: 15px; }
.field input:not([type]), .field input[inputmode], .field select { padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; max-width: 420px; }
.field input[type=range] { max-width: 420px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.avatars { display: flex; flex-wrap: wrap; gap: 6px; }
.avatars button { width: 46px; height: 46px; border-radius: 12px; font-size: 26px; background: var(--bg); font-family: var(--emoji); }
.avatars button.on { outline: 3px solid var(--accent); background: var(--accent-soft); }
.sonsgrid { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.sonchip { padding: 6px 10px; border-radius: 10px; background: var(--bg); font-family: var(--read); font-weight: 700; border: 2px solid transparent; }
.sonchip.on { background: var(--accent-soft); border-color: var(--accent); }
.sonchip:disabled { opacity: .75; cursor: default; }
.actchecks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.tip { background: var(--bg); border-radius: 14px; padding: 12px; }
.tip p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.links { padding-left: 18px; margin: 0; }
.links li { margin: 8px 0; font-size: 15px; }
.links a { color: var(--accent); font-weight: 600; }
.actdesc h3 { font-size: 16px; margin: 12px 0 4px; }
.actdesc ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.code { font-size: 22px; letter-spacing: 2px; background: var(--accent-soft); padding: 2px 10px; border-radius: 8px; }
.progress { height: 12px; background: var(--bg); border-radius: 6px; overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.gate .kdisp b { min-width: 140px; }

/* ---------- animations ---------- */
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes pulse { 0%, 100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 0 0 10px rgba(22, 163, 74, .25); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes hit { 0% { transform: scale(1); } 50% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes starIn { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.25) rotate(10deg); } 100% { transform: scale(1); } }
@keyframes spin { 0% { transform: scale(0) rotate(-180deg); } 100% { transform: scale(1) rotate(0); } }
#fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.conf { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall 2.8s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ================= v2 : verrouillage, fluence, histoires, mémory, fiches ================= */
/* bouton parent à maintenir */
.iconbtn.hold { position: relative; overflow: hidden; font-size: 20px; opacity: .55; }
.iconbtn.hold::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--accent); }
.iconbtn.hold.holding { opacity: 1; }
.iconbtn.hold.holding::after { width: 100%; transition: width var(--hold, 2s) linear; }
body.locked { overscroll-behavior: none; touch-action: manipulation; }

/* mode tuteur */
.tuteur-toggle { display: block; margin: 14px auto 0; padding: 12px 18px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); font-weight: 600; border: 2px dashed var(--accent); }
.tuteur-toggle.on { background: var(--accent); color: #fff; border-style: solid; }
.ptext.tuteur { font-size: clamp(24px, 5vw, 36px) !important; background: #fff; padding: 10px 20px; border-radius: 18px; box-shadow: var(--shadow); max-width: 760px; }

/* tuiles spéciales */
.ta-record { font-size: 12px; font-weight: 600; color: var(--dom, var(--accent)); text-align: center; }
.tile-act.special { background: linear-gradient(180deg, #fff, #fff4f1); }
.tile-act.story.locked { opacity: .55; }

/* mémory */
.memo { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(80px, 130px)); justify-content: center; }
.memo.n4, .memo.n6 { grid-template-columns: repeat(4, minmax(70px, 120px)); }
.memo-card { aspect-ratio: 1; border-radius: 18px; background: var(--accent); box-shadow: var(--shadow); position: relative; font-family: var(--emoji); transition: transform .25s; }
.memo-card .face, .memo-card .back { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(34px, 9vw, 60px); border-radius: 18px; }
.memo-card .face { background: #fff; opacity: 0; transition: opacity .2s; }
.memo-card .back { color: #fff; font-size: 30px; }
.memo-card.open .face { opacity: 1; }
.memo-card.found .face { background: var(--good-soft); outline: 4px solid var(--good); }

/* lecture à voix haute */
.fl-intro { text-align: center; font-size: 18px; margin: 0 0 14px; }
.fl .playtitle { font-size: 20px; }
.fl-sec { font-size: 30px; min-width: 56px; text-align: center; color: var(--accent); }
.fl-timer { height: 10px; background: #eee6da; border-radius: 6px; overflow: hidden; margin: 8px 0; }
.fl-timer i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444); transition: width .2s linear; }
.fl-help { text-align: center; color: var(--muted); margin: 4px 0 10px; }
.fl-help.alert { color: #fff; background: var(--bad); padding: 8px 12px; border-radius: 12px; font-weight: 700; }
.fl-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 8px; overflow-y: auto; max-height: calc(100dvh - 230px); padding: 4px; }
.fl-grid.texte { display: block; line-height: 2.1; font-size: clamp(24px, 5.5vw, 38px); background: #fff; border-radius: 20px; padding: 16px 20px; box-shadow: var(--shadow); }
.fl-item { font-family: var(--read); font-size: clamp(22px, 5vw, 36px); font-weight: 700; background: #fff; border-radius: 14px; padding: 8px 4px; box-shadow: var(--shadow); border: 3px solid transparent; }
.fl-grid.texte .fl-item { display: inline; background: none; box-shadow: none; padding: 2px 3px; font-size: inherit; border-radius: 8px; border-width: 2px; }
.fl-item.err { background: #ffe4e6 !important; border-color: var(--bad); text-decoration: line-through; text-decoration-color: var(--bad); }
.fl-item.cur { border-color: var(--accent); background: var(--accent-soft) !important; }
.fl-item.okw { color: var(--good); }
.fl-grid.choose .fl-item { outline: 2px dashed #f59e0b; outline-offset: 1px; }
.fl-score b { font-size: 84px; line-height: 1; color: var(--accent); display: block; }
.fl-score span { color: var(--muted); font-weight: 600; }
.fl-gauge { width: 100%; }
.fl-gauge-bar { position: relative; height: 18px; background: #eee6da; border-radius: 10px; margin: 22px 0 6px; }
.fl-gauge-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #22c55e); border-radius: 10px; }
.fl-gauge-bar span { position: absolute; top: -22px; transform: translateX(-50%); font-size: 13px; font-weight: 700; color: var(--good); white-space: nowrap; }
.fl-gauge small { color: var(--muted); }
.fl-errs { background: #fff7ed; border-radius: 12px; padding: 8px 12px; }
.fl-chart svg { max-width: 460px; }
.fl-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.fl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.fl-hist { margin-top: 14px; }

/* histoires */
.play.story .stage { justify-content: flex-start; padding-top: 20px; }
.story-img { font-size: clamp(70px, 18vw, 130px); font-family: var(--emoji); letter-spacing: 6px; }
.story-line { font-family: var(--read); font-size: clamp(30px, 7vw, 54px); font-weight: 700; text-align: center; line-height: 1.5; max-width: 900px; margin: 0; background: #fff; padding: 12px 22px; border-radius: 24px; box-shadow: var(--shadow); }
.sw { font: inherit; border-radius: 10px; padding: 0 2px; }
.sw:active, .sw.helped { background: #fef3c7; }
.punct { font-weight: 700; }
.qopt { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qe { font-size: 54px; font-family: var(--emoji); }
.qt { font-family: var(--read); font-size: 20px; font-weight: 700; }
.otext.prenom { font-size: clamp(26px, 6vw, 40px); letter-spacing: 2px; }

/* parents */
.steps { padding-left: 22px; margin: 6px 0 0; }
.steps li { margin: 8px 0; }
.warn { color: #b45309; }
.recrow { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1ece4; }
.recrow .row { margin: 0; }
.graphe-sm { font-family: var(--read); font-size: 24px; }
.pfluence h3 { font-size: 16px; margin: 12px 0 4px; }
@media (max-width: 560px) { .recrow { grid-template-columns: 70px 1fr; } .recrow .row { grid-column: 1 / -1; } }

/* fiches */
.sheet-preview { margin-top: 14px; }
.sheet { background: #fff; color: #111; border: 1px solid #ddd; border-radius: 8px; padding: 24px; max-width: 800px; font-family: var(--read); }
.sheet-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 2px solid #111; padding-bottom: 8px; font-size: 20px; }
.sheet-head span { font-size: 14px; white-space: pre; }
.sheet-consigne { font-size: 17px; font-weight: 700; margin: 12px 0; }
.sheet-grid { display: grid; gap: 14px 18px; }
.sheet-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.sheet-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.sheet-cell { font-size: 28px; display: flex; align-items: center; gap: 10px; }
.sheet-cell .box { width: 22px; height: 22px; border: 2px solid #333; border-radius: 4px; flex: none; }
.sheet-grid.calc .sheet-cell { font-size: 26px; font-family: var(--ui); }
.sheet-cell.shape { justify-content: center; }
.sheet-relier { display: grid; grid-template-columns: 1fr 1fr; gap: 0 120px; }
.rl { display: flex; align-items: center; justify-content: space-between; height: 80px; font-size: 30px; }
.rl .dot { width: 14px; height: 14px; border-radius: 50%; background: #111; }
.emo { font-family: var(--emoji); font-size: 50px; }
.emo.small { font-size: 26px; }
.sheet-ecrire { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ec { display: flex; align-items: center; gap: 12px; }
.lignes { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.lignes i { display: block; border-bottom: 1.5px solid #9aa; height: 14px; }
.sheet-story p { font-size: 24px; margin: 8px 0; line-height: 1.5; }
.sheet-q li { font-size: 18px; margin: 12px 0; }
.qr { display: flex; gap: 26px; margin-top: 6px; font-size: 20px; }
.sheet-trace svg { width: 100%; height: 140px; }
.sheet-count { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px dashed #ccc; }
.sheet-count .nums { display: flex; gap: 14px; font-size: 26px; font-family: var(--ui); }
.sheet-name .dotted { font-family: var(--read); font-size: 64px; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px #999; letter-spacing: 10px; margin: 10px 0; }
.sheet-name .empty { height: 90px; border-bottom: 2px solid #999; }
.sheet-actions { justify-content: flex-end; }
@media print {
  body.printing { background: #fff; }
  body.printing * { visibility: hidden; }
  body.printing .sheet, body.printing .sheet * { visibility: visible; }
  body.printing .sheet { position: absolute; left: 0; top: 0; width: 100%; max-width: none; border: 0; padding: 0; }
  body.printing .sheet-actions { display: none; }
  @page { size: A4; margin: 14mm; }
}

/* garde-fou : aucun contenu plus large que l'écran */
.stage > *, .prompt > *, .answer > * { max-width: 100%; }
.story-line, .ptext { max-width: min(900px, 100%); overflow-wrap: break-word; }
.story-img { max-width: 100%; overflow: hidden; text-align: center; }
html, body { overflow-x: hidden; }

/* ============================ Les jeux (ex-jeux2) ============================ */
.jeu-head { padding: 8px 16px; }
.jeu-h2 { text-align: center; margin: 10px 0 18px; font-size: 30px; }
.jeu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; padding-bottom: 40px; }
.jeu-tile { position: relative; background: var(--c); border-radius: 28px; padding: 22px 14px 18px; min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 6px 0 rgba(0,0,0,.15); transition: transform .12s; text-align: center; }
.jeu-tile:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.jeu-ico { font-size: 64px; line-height: 1; animation: bob 3s ease-in-out infinite; }
.jeu-sub { font-size: 15px; opacity: .8; }
.jeu-tile .ta-title { font-size: 24px; font-weight: 700; }
.dom-jeu .tile-act { background: linear-gradient(180deg, #fef3c7, #fde68a); color: #3e2f25; }
.dom-jeu .ta-ico { animation: bob 3s ease-in-out infinite; }

/* Carte des niveaux */
.path { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 26px 16px; max-width: 860px; margin: 0 auto; padding: 12px 16px 40px; }
.lvl { background: var(--paper); border-radius: 50%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 6px 0 rgba(43,33,64,.15); border: 6px solid var(--c, #7cc97c); transition: transform .12s; }
.lvl:nth-child(even) { translate: 0 16px; }
.lvl:active { transform: scale(.94); }
.lvl-n { font-size: 22px; font-weight: 700; }
.lvl-st { color: #ffb300; font-size: 20px; letter-spacing: 2px; }
.lvl.locked { filter: grayscale(1); opacity: .55; }
.lvl.next { animation: pulse 1.2s ease-in-out infinite; }
.btn.extra-jeu { display: block; margin: 0 auto 18px; }

/* Partie (canvas plein écran) */
.jeu-play { position: fixed; inset: 0; background: #000; z-index: 40; }
.jeu-play .stage-wrap { position: absolute; inset: 0; }
/* Seulement le canvas des jeux : « .stage » tout court écrasait la mise en page des activités. */
canvas.stage { display: block; }
.play-bar { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; display: flex; gap: 10px; align-items: center; z-index: 3; }
.play-bar .iconbtn { background: rgba(255,255,255,.85); color: #3e2f25; }
.lvl-tag { background: rgba(255,255,255,.85); color: #3e2f25; padding: 8px 14px; border-radius: 999px; font-weight: 600; }


/* Ma Petite Ville : boutique */
.btn.extra { margin: 0 auto 22px; display: block; }
.shop { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto auto; background: linear-gradient(#bfe6ff, #fff3e0 60%); color: #3e2f25; overflow: hidden; }
.shop-sky { position: relative; height: 70px; }
.shop-awning { position: absolute; inset: 0 0 auto; height: 44px; background: repeating-linear-gradient(90deg, #ef5350 0 60px, #fff 60px 120px); border-radius: 0 0 30px 30px; box-shadow: 0 6px 0 rgba(0,0,0,.08); }
.shop-sign { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); background: #fff; padding: 6px 18px; border-radius: 999px; font-weight: 700; font-size: 20px; box-shadow: var(--shadow); }
.shop-scene { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 30px; padding: 0 16px; min-height: 0; }
.shop-cust { font-size: clamp(90px, 18vh, 170px); line-height: 1; transform: translateX(120vw); transition: transform .9s cubic-bezier(.3,1.2,.5,1); }
.shop-cust.in { transform: none; }
.shop-cust.out { transform: translateX(-120vw); transition-duration: .7s; }
.shop-cust.happy { animation: hop .4s ease-in-out 3; }
.shop-bubble { align-self: center; background: #fff; border-radius: 26px; padding: 14px 20px; font-size: 26px; box-shadow: var(--shadow); }
.shop-counter { position: relative; background: #a1887f; border-radius: 22px 22px 0 0; padding: 14px 26px 22px; display: flex; flex-direction: column; align-items: center; box-shadow: inset 0 -10px 0 #8d6e63; }
.shop-item { font-size: clamp(64px, 12vh, 110px); line-height: 1; transition: transform .4s; }
.shop-item.sold { transform: translateY(-40px) scale(1.2); }
.shop-tag { background: #fff59d; padding: 4px 14px; border-radius: 10px; font-size: 26px; font-weight: 700; transform: rotate(-4deg); margin-top: 6px; }
.shop-tray { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; min-height: 96px; box-shadow: 0 -4px 0 rgba(0,0,0,.05); flex-wrap: wrap; justify-content: center; }
.shop-tray.over { animation: shake .35s; background: #ffebee; }
.tray-label { font-size: 22px; font-weight: 600; }
.tray-coins { display: flex; flex-wrap: wrap; gap: 6px; min-height: 64px; align-items: center; }
.tray-sum { font-size: 30px; font-weight: 700; color: #2e7d32; min-width: 70px; }
.shop-wallet { display: flex; gap: 16px; justify-content: center; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); background: #ffe0b2; }
.coin { width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8c4, #fbc02d 55%, #c79100); color: #5d4037; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 5px 0 #a67c00; font-size: 30px; }
.coin small { font-size: 16px; margin-left: 1px; }
.coin.c2 { background: radial-gradient(circle at 35% 30%, #fff, #cfd8dc 45%, #fbc02d 46%, #c79100); }
.tray-coins .coin { width: 58px; height: 58px; font-size: 24px; box-shadow: 0 3px 0 #a67c00; }
.coin.bill { width: 110px; border-radius: 12px; box-shadow: 0 5px 0 rgba(0,0,0,.2); }
.coin.c5 { background: linear-gradient(135deg, #cfd8dc, #90a4ae); color: #263238; }
.coin.c10 { background: linear-gradient(135deg, #ffab91, #e57373); color: #4e342e; }
.coin.c20 { background: linear-gradient(135deg, #90caf9, #5c9fd6); color: #0d2a4a; }
.tray-coins .coin.bill { width: 84px; }
.coin.mini { width: 80px; height: 46px; font-size: 22px; vertical-align: middle; }
.coin.bump { animation: pop .25s; }
@keyframes hop { 50% { transform: translateY(-24px); } }

/* Ma Petite Ville : la ville */
.town-head { display: flex; align-items: center; gap: 12px; }
.town-head h2 { flex: 1; margin: 0; }
.town-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; background: #8bd16a; padding: 12px; border-radius: 28px; margin-top: 14px; box-shadow: inset 0 0 0 6px #6fbf55; }
.cell { aspect-ratio: 1; border-radius: 16px; background: rgba(255,255,255,.18); font-size: clamp(30px, 7vw, 64px); display: grid; place-items: center; }
.cell.target:empty { background: rgba(255,255,255,.45); animation: pulse 1.2s infinite; }
.cell.built { animation: pop .4s cubic-bezier(.2,1.8,.4,1); }
.town-tip { text-align: center; }
.town-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.bld { background: var(--paper); border-radius: 18px; padding: 8px 4px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; }
.bld span { font-size: 40px; }
.bld small { font-size: 15px; font-weight: 600; }
.bld.poor { opacity: .4; }
.bld.on { outline: 4px solid var(--accent); }


/* Premier lancement et liens légaux (édition publique) */
.onboard { max-width: 560px; width: 100%; margin: 0 auto; }
.onboard .field input, .onboard .field select { font-size: 18px; }
.legal-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 20px; }
.no-voice { text-align: center; max-width: 560px; margin: 16px auto 0; }
.legal-page { max-width: 720px; margin: 0 auto; padding: 24px 18px 48px; font-family: Andika, system-ui, sans-serif; line-height: 1.6; color: #2b2540; }
.legal-page h1 { font-family: Fredoka, system-ui, sans-serif; color: #7c3aed; }
.legal-page h2 { font-size: 20px; margin-top: 28px; }
.legal-page .todo { background: #fef3c7; padding: 0 4px; border-radius: 4px; }
.legal-page, .legal-page * { user-select: text; -webkit-user-select: text; }

/* Les Aventures : la question qui ouvre une porte (styles absents depuis la fusion des jeux) */
@keyframes fade { from { opacity: 0; } }
.q-modal { position: absolute; inset: 0; background: rgba(30, 20, 10, .45); display: grid; place-items: center; z-index: 4; padding: 16px; animation: fade .2s; }
.q-card { background: #fffdf7; color: #3e2f25; border-radius: 34px; padding: 22px 24px 28px; text-align: center; box-shadow: 0 14px 40px rgba(0,0,0,.3); animation: pop .35s cubic-bezier(.2,1.6,.4,1); max-width: 640px; width: 100%; }
.q-lock { font-size: 40px; font-family: var(--emoji); }
.q-word { font-family: Andika, Fredoka, sans-serif; font-size: clamp(54px, 11vw, 92px); font-weight: 700; margin: 6px 0 18px; letter-spacing: 2px; }
.q-word .syl.s0 { color: #1e88e5; } .q-word .syl.s1 { color: #e53935; }
.q-word .muet { color: #b0bec5; }
.q-calc { font-family: Fredoka, sans-serif; font-size: clamp(50px, 10vw, 84px); font-weight: 700; margin: 6px 0 18px; }
.q-choices { display: flex; gap: 16px; justify-content: center; }
.q-choice { font-family: var(--emoji), Fredoka, sans-serif; font-size: clamp(54px, 10vw, 80px); width: clamp(96px, 22vw, 150px); aspect-ratio: 1; border-radius: 28px; background: #fff; box-shadow: 0 6px 0 #e0d6c8, 0 8px 18px rgba(0,0,0,.1); font-weight: 700; color: #3e2f25; }
.q-choice.ok { background: #c8e6c9; animation: pop .4s; }
.q-choice.no { opacity: .35; animation: shake .35s; }
/* Ma Petite Ville : la page de la ville */
.town { padding: 20px 16px 40px; max-width: 1100px; margin: 0 auto; }
.town .cell.held { outline: 4px dashed var(--accent); opacity: .6; }

img.logo { display: block; margin: 0 auto 6px; border-radius: 22px; }
img.logo.wide { border-radius: 0; height: auto; max-width: 70vw; }
