:root{--vert-eau: #cdeee6;--vert-eau-fonce: #7cc4b4;--rose-poudre: #f6d5dc;--rose-poudre-fonce: #e0a3b1;--jaune-clair: #fdf3c4;--jaune-clair-fonce: #ecd98a;--fond: #fdfaf0;--blanc: #fffdf8;--texte: #4a5560;--gris: #d9dcd6;--fete-rose: #ff5fa2;--fete-jaune: #ffc928;--fete-vert: #2fd4b5;--rayon: 1.5rem;--ombre: 0 .25rem 0 rgb(74 85 96 / 12%);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--texte);background:var(--fond)}body{margin:0;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:manipulation}#app{min-height:100dvh;display:flex;flex-direction:column}.ecran{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem;width:100%;max-width:34rem;margin:0 auto;padding:1rem;box-sizing:border-box}.titre{margin:0;font-size:2.25rem;text-align:center;color:var(--vert-eau-fonce)}.bouton{min-width:5rem;min-height:5rem;padding:.5rem 1rem;border:0;border-radius:var(--rayon);background:var(--vert-eau);color:var(--texte);font:inherit;font-size:2.25rem;font-weight:700;line-height:1;box-shadow:var(--ombre);cursor:pointer;transition:transform .15s ease}.bouton:active{transform:scale(.95)}.bouton:focus-visible{outline:.25rem solid var(--vert-eau-fonce);outline-offset:.2rem}.bouton:disabled{opacity:.45;box-shadow:none;cursor:default}.bouton--rose{background:var(--rose-poudre)}.bouton--jaune{background:var(--jaune-clair)}.dessin--plein{display:block;width:100%;height:auto}.mascotte--grande{max-width:14rem}.mascotte .pelage{stroke:#4a556038;stroke-width:1.5}.mascotte--lapin .pelage{fill:#f1e9e1}.mascotte--chat .pelage{fill:#f6d3a8}.mascotte--panda-roux .pelage{fill:#e9a27c}.mascotte--licorne .pelage{fill:#f4ecfa}.mascotte .clair{fill:var(--blanc)}.mascotte .rose{fill:var(--rose-poudre)}.mascotte .corne{fill:var(--jaune-clair-fonce)}.mascotte .criniere-1{fill:var(--rose-poudre-fonce)}.mascotte .criniere-2{fill:var(--jaune-clair-fonce)}.mascotte .criniere-3{fill:var(--vert-eau-fonce)}.mascotte .oeil,.mascotte .nez{fill:var(--texte)}.mascotte .joue{fill:var(--rose-poudre-fonce);opacity:.6}.mascotte .bouche,.mascotte .moustaches{fill:none;stroke:var(--texte);stroke-width:2.5;stroke-linecap:round}.mascotte .moustaches{stroke-width:1.5;opacity:.5}.mascotte .bouche--ouverte{fill:#e0738a;stroke-linejoin:round}.mascotte--joie{animation:saut .5s ease-in-out 2}.mascotte--encouragement{animation:balance .8s ease-in-out 1}@keyframes saut{50%{transform:translateY(-10%)}}@keyframes balance{25%{transform:rotate(-6deg)}75%{transform:rotate(6deg)}}.choix{display:grid;grid-template-columns:1fr 1fr;gap:1rem;width:100%}.choix__bouton{padding:.75rem}.choix__bouton:nth-child(4n+2){background:var(--rose-poudre)}.choix__bouton:nth-child(4n+3){background:var(--jaune-clair)}.choix__bouton:nth-child(4n){background:var(--blanc)}.carte{height:100dvh;justify-content:flex-start;gap:.75rem}.carte__plan{flex:1;min-height:0;width:100%;background:var(--vert-eau);border-radius:var(--rayon)}.carte__chemin,.carte__pointilles{fill:none;stroke:var(--jaune-clair);stroke-width:30;stroke-linecap:round}.carte__pointilles{stroke:var(--blanc);stroke-width:3;stroke-dasharray:2 10}.etape{cursor:pointer;outline:none}.etape__rond{fill:var(--rose-poudre);stroke:var(--blanc);stroke-width:4}.etape--finie .etape__rond{fill:var(--vert-eau-fonce)}.etape--courante .etape__rond{transform-box:fill-box;transform-origin:center;animation:appel 1.8s ease-in-out infinite}.etape--verrouillee{cursor:default}.etape--verrouillee .etape__rond{fill:var(--gris)}.etape:focus-visible .etape__rond{stroke:var(--texte)}.etape__lettre{font-size:24px;font-weight:700;text-anchor:middle;dominant-baseline:central;fill:var(--texte);pointer-events:none}.etape--finie .etape__lettre,.etape__cadenas{fill:var(--blanc)}.etape__cadenas path{fill:none;stroke:var(--blanc);stroke-width:3}@keyframes appel{50%{transform:scale(1.12)}}.coffre__caisse{fill:#e3c49b}.coffre__couvercle{fill:#d3ad7e}.coffre__serrure{fill:var(--jaune-clair-fonce)}.coffre__interieur{fill:#a67c4e}.coffre__lueur{fill:var(--fete-jaune)}.bouton--petit{min-width:3.5rem;min-height:3.5rem;font-size:1.75rem}.bouton--fete{background:var(--fete-jaune)}.jeu{justify-content:space-between}.jeu__barre{display:flex;align-items:center;justify-content:space-between;width:100%}.jeu__points{display:flex;gap:.5rem;margin:0;padding:0;list-style:none}.jeu__point{width:1.25rem;height:1.25rem;border-radius:50%;background:var(--gris);transition:background .3s ease}.jeu__point--fait{background:var(--vert-eau-fonce)}.jeu__scene{position:relative;display:flex;flex-direction:column;align-items:center;gap:.5rem;width:100%}.bulle{min-width:7rem;margin:0;padding:.5rem 1.5rem;border-radius:var(--rayon);background:var(--blanc);box-shadow:var(--ombre);font-size:4.5rem;font-weight:700;line-height:1.2;text-align:center}.bulle--fete{color:var(--fete-rose)}.jeu__actions{display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;min-height:12rem;justify-content:flex-end}.jeu__propositions,.jeu__commandes{display:flex;justify-content:center;gap:1rem;width:100%}.proposition{flex:1;min-height:6.5rem;font-size:3.75rem;background:var(--blanc)}.proposition:nth-child(1){background:var(--vert-eau)}.proposition:nth-child(2){background:var(--jaune-clair)}.proposition:nth-child(3){background:var(--rose-poudre)}.proposition.proposition--juste{background:var(--fete-vert);color:var(--blanc)}.sons{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;width:100%}.sons__choix{min-width:4rem;min-height:4rem;padding:0;border:.25rem solid var(--gris);border-radius:50%;background:var(--blanc);font-size:2rem;cursor:pointer}.sons__choix[aria-pressed=true]{border-color:var(--vert-eau-fonce);box-shadow:0 0 0 .2rem var(--vert-eau)}.menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr));gap:1rem;width:100%}.menu__jeu{min-height:7rem;font-size:3.25rem}.menu__jeu:nth-child(3n+2){background:var(--jaune-clair)}.menu__jeu:nth-child(3n){background:var(--rose-poudre)}.carte__jeu{font-size:2rem}.lettre-geante{padding:1rem 2rem;background:var(--jaune-clair);font-size:5rem}.lettre-geante--appel{animation:appel 1.8s ease-in-out infinite}.confettis{position:absolute;inset:0;overflow:hidden;pointer-events:none}.confettis i{position:absolute;top:-1rem;left:50%;width:.6rem;height:1rem;border-radius:.2rem;background:var(--fete-rose);animation:chute 1.3s ease-in forwards}.confettis i:nth-child(3n+1){background:var(--fete-jaune)}.confettis i:nth-child(3n+2){background:var(--fete-vert)}.confettis i:nth-child(1){left:6%;animation-delay:.1s}.confettis i:nth-child(2){left:14%;animation-delay:.35s}.confettis i:nth-child(3){left:22%}.confettis i:nth-child(4){left:31%;animation-delay:.25s}.confettis i:nth-child(5){left:39%;animation-delay:.05s}.confettis i:nth-child(6){left:47%;animation-delay:.4s}.confettis i:nth-child(7){left:55%;animation-delay:.15s}.confettis i:nth-child(8){left:63%;animation-delay:.3s}.confettis i:nth-child(9){left:71%}.confettis i:nth-child(10){left:79%;animation-delay:.2s}.confettis i:nth-child(11){left:87%;animation-delay:.45s}.confettis i:nth-child(12){left:94%;animation-delay:.1s}@keyframes chute{to{transform:translateY(22rem) rotate(300deg);opacity:0}}.lunettes{fill:#fff6;stroke:#8b80bd;stroke-width:3}.noeud{fill:#e58aa3}.chapeau{fill:#6fae9f}.echarpe{fill:#8fb8de}.fleur{fill:#f3a9c0}.fleur__coeur,.couronne{fill:var(--jaune-clair-fonce)}.couronne{stroke:#d4bd5e;stroke-width:1.5;stroke-linejoin:round}.chapeau__bande{fill:var(--jaune-clair-fonce)}.tresor{position:relative;height:100dvh}.tresor__scene{flex:1;min-height:0;width:100%;touch-action:none}.tresor__coffre,.tresor__objet{outline:none;transform-box:fill-box;transform-origin:center}.tresor__coffre--ferme{animation:balance .6s ease-in-out infinite}.tresor__objet{cursor:grab;animation:sortie .7s ease-out}.tresor__fleche{fill:none;stroke:var(--fete-rose);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:2 9;animation:clignote 1.4s ease-in-out infinite}@keyframes clignote{50%{opacity:.25}}.tresor__halo{fill:var(--fete-jaune);opacity:.45}.tresor__objet:focus-visible .tresor__halo{stroke:var(--texte);stroke-width:2}@keyframes sortie{0%{opacity:0;transform:translateY(40px) scale(.2)}70%{transform:translateY(-6px) scale(1.15)}}.vestiaire{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;width:100%}.vestiaire__bouton{width:6rem;height:6rem;padding:.75rem;background:var(--blanc)}.vestiaire__bouton--porte{background:var(--vert-eau);outline:.25rem solid var(--vert-eau-fonce)}.bouton--discret{background:none;box-shadow:none;opacity:.35}input{-webkit-user-select:text;user-select:text}.admin{justify-content:flex-start;align-items:stretch;gap:1rem}.admin__barre,.admin__pied{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem}.admin__titre{margin:0;font-size:1.5rem}.admin__code{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}.admin__code input{width:8rem;padding:.5rem;border:2px solid var(--vert-eau-fonce);border-radius:.6rem;font:inherit}.admin__bilan{display:flex;flex-wrap:wrap;gap:.5rem;margin:0}.badge--attention{background:var(--jaune-clair)}.admin__section{display:grid;gap:.75rem}.admin__section p{margin:0}.admin__soustitre{margin:.5rem 0 0;font-size:1.15rem}.admin__filtres{display:flex;flex-wrap:wrap;gap:.5rem}.admin__filtres .btn{background:var(--blanc)}.admin__filtres .btn[aria-pressed=true]{background:var(--vert-eau)}.admin__grille{display:grid;grid-template-columns:repeat(7,1fr);gap:.35rem}.admin__case{height:2.5rem;padding:0;border:0;border-radius:.6rem;background:var(--vert-eau);color:var(--texte);font:inherit;font-size:1.15rem;font-weight:700;cursor:pointer}.admin__case--manquant{background:var(--rose-poudre)}.admin__case--refaire{background:var(--jaune-clair)}.admin__case[aria-pressed=true]{outline:3px solid var(--texte);outline-offset:1px;transform:scale(1.08)}.admin__detail{display:grid;gap:.75rem;padding:.75rem;border-radius:1rem;background:var(--blanc);box-shadow:var(--ombre)}.admin__lettre{margin:0;font-size:2rem}.admin__commande{display:block;padding:.6rem;border-radius:.6rem;background:var(--blanc);overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}.admin__fichier{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.admin__texte{flex:1 1 8rem}.admin__texte small{display:block;opacity:.7}.admin__refaire{display:flex;align-items:center;gap:.25rem;min-height:2.5rem}.btn:disabled{opacity:.45;cursor:default}.btn{padding:.5rem .9rem;border:0;border-radius:.6rem;background:var(--vert-eau);color:var(--texte);font:inherit;font-weight:600;cursor:pointer}.badge{display:inline-block;padding:.25rem .75rem;border-radius:999px;font-size:.875rem;margin:0}.badge--on{background:var(--vert-eau)}.badge--off{background:var(--rose-poudre)}.update{position:fixed;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:#4a55608c}.update__carte{display:flex;flex-direction:column;align-items:center;gap:1.25rem;width:100%;max-width:26rem;padding:2rem 1.5rem;border-radius:var(--rayon);background:var(--blanc);box-shadow:0 1rem 3rem #4a556059;text-align:center}.update__icone{margin:0;font-size:4rem;line-height:1}.update__titre{margin:0;font-size:1.6rem}.update__oui{width:100%;font-size:1.5rem}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
