:root {
  --orange: #f77f00;
  --orange-fonce: #b85a00;
  --vert: #009e60;
  --vert-fonce: #0b3d2e;
  --jaune: #ffd23f;
  --encre: #142a20;
  --blanc: #fffdf7;
  --rouge: #e5484d;
  --titre: "Baloo 2", "Nunito", system-ui, sans-serif;
  --corps: "Nunito", system-ui, sans-serif;
  --haut: env(safe-area-inset-top, 0px);
  --bas: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--corps);
  color: var(--blanc);
  background: var(--vert);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, .zone:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }

/* ---------- Fond ---------- */
.fond { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #ffb347 0%, var(--orange) 26%, #2fae6b 60%, #007a4a 100%); }
.rayons { position: absolute; left: 50%; top: 38%; width: 260vmax; height: 260vmax; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.13) 0 7deg, transparent 7deg 18deg);
  animation: tourne 90s linear infinite; }
body:not([data-ecran="accueil"]) .rayons { opacity: .45; }
.confettis i { position: absolute; width: 18px; height: 11px; border-radius: 3px;
  border: 2px solid rgba(20,42,32,.35); rotate: var(--r);
  animation: flotte 8s ease-in-out infinite; }
body:not([data-ecran="accueil"]) .confettis { opacity: .35; }
@keyframes tourne { to { rotate: 360deg; } }
@keyframes flotte { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-26px) rotate(40deg); } }

/* ---------- Barre ---------- */
.barre { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--haut) + 12px) 16px 8px; pointer-events: none; }
.barre > * { pointer-events: auto; }
.bouton-retour { width: 46px; height: 46px; border-radius: 50%; background: var(--blanc); color: var(--encre);
  font-size: 34px; line-height: 40px; font-weight: 800; border: 3px solid var(--encre); box-shadow: 0 4px 0 var(--encre); }
.bouton-retour:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--encre); }
.pieces { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 6px 18px 6px 10px;
  background: var(--jaune); color: var(--encre); border: 4px solid var(--encre); border-radius: 999px;
  font: 800 1.5rem var(--titre); box-shadow: 0 4px 0 rgba(20,42,32,.4); }
.pieces .piece { font-size: 1.4rem; }
.pieces.bump { animation: bump .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes bump { 40% { transform: scale(1.25) rotate(-6deg); } }

/* ---------- Écrans ---------- */
.ecran { display: none; width: min(100%, 560px); margin: 0 auto;
  padding: 4px 18px calc(var(--bas) + 28px); }
.ecran.actif { display: block; animation: apparait .35s ease-out; }
@keyframes apparait { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Accueil ---------- */
.ecran-accueil.actif { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.logo { position: relative; width: min(74vw, 300px); margin-top: -8px; animation: rebond 3.5s ease-in-out infinite; }
.logo-carte svg { width: 100%; display: block; overflow: visible; }
.logo h1 { position: absolute; inset: 22% 0 auto; margin: 0; color: var(--encre); line-height: .9; font-family: var(--titre); }
.logo h1 span { display: block; font-size: clamp(2rem, 9vw, 2.7rem); font-weight: 800;
  -webkit-text-stroke: 6px #fff; paint-order: stroke fill; }
.logo h1 small { display: block; font-size: clamp(1.15rem, 5vw, 1.45rem); font-weight: 800;
  -webkit-text-stroke: 5px #fff; paint-order: stroke fill; }
@keyframes rebond { 50% { transform: translateY(-8px) rotate(-1.5deg); } }

.accroche { margin: 0; font: 800 1.2rem/1.35 var(--titre); text-shadow: 0 2px 0 rgba(20,42,32,.45); max-width: 26ch; }
.piece { display: inline-block; }

.modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.mode { padding: 10px 22px; border-radius: 999px; background: var(--blanc); color: var(--encre);
  border: 4px solid var(--encre); font: 800 1.15rem var(--titre); box-shadow: 0 5px 0 var(--encre);
  transition: transform .12s, background .2s; }
.mode:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--encre); }
.mode.selectionne { background: var(--jaune); }
.mode-large { flex-basis: 100%; max-width: 330px; }
.mode.verrouille { color: #4a5a52; }
.mode.secoue { animation: secoue .45s; }
@keyframes secoue { 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }
.message { min-height: 1.3em; margin: -4px 0 0; font-weight: 800; color: var(--blanc); text-shadow: 0 1px 0 rgba(0,0,0,.4); max-width: 30ch; }

.jouer { width: min(100%, 320px); padding: 16px 20px; margin-top: 8px; border-radius: 999px;
  background: linear-gradient(#ffc04d, var(--orange)); color: var(--encre);
  border: 5px solid #fff; font: 800 2.1rem var(--titre); letter-spacing: .04em;
  box-shadow: 0 9px 0 var(--orange-fonce), 0 16px 26px rgba(0,0,0,.25); transition: transform .12s, box-shadow .12s; }
.jouer:active { transform: translateY(7px); box-shadow: 0 2px 0 var(--orange-fonce), 0 6px 12px rgba(0,0,0,.25); }
.secondaire { width: min(100%, 360px); padding: 13px 18px; border-radius: 999px; background: rgba(0,90,55,.88);
  color: #fff; border: 4px solid #fff; font: 800 1.15rem var(--titre); }
.secondaire:active { transform: scale(.97); }
.installer { margin-top: 6px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.18);
  border: 2px dashed rgba(255,255,255,.75); font-weight: 800; }

/* ---------- Jeu ---------- */
.progression { height: 12px; border-radius: 99px; background: rgba(11,61,46,.45); overflow: hidden; border: 2px solid rgba(255,255,255,.6); }
.progression-barre { height: 100%; background: var(--jaune); transform-origin: left; transform: scaleX(0); transition: transform .4s ease; }
.jeu-entete { display: flex; justify-content: space-between; margin: 8px 2px; font-weight: 800; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.serie { color: var(--jaune); }

.question { background: var(--blanc); color: var(--encre); border: 4px solid var(--encre); border-radius: 22px;
  padding: 14px 18px; box-shadow: 0 6px 0 var(--encre); }
.question.entree { animation: entree .4s cubic-bezier(.2,1.4,.5,1); }
@keyframes entree { from { opacity: 0; transform: scale(.92) translateY(10px); } }
.question h2 { margin: 6px 0 2px; font: 800 1.55rem/1.15 var(--titre); }
.question p { margin: 0; color: #43554c; font-weight: 600; }
.etiquette { display: inline-block; padding: 2px 12px; border-radius: 99px; background: var(--c); color: #fff;
  font-size: .8rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }

.carte-cadre { margin: 14px auto 0; padding: 10px; border-radius: 26px; background: rgba(255,253,247,.18);
  border: 3px solid rgba(255,255,255,.55); backdrop-filter: blur(3px); max-width: 470px; }
.carte { width: 100%; display: block; overflow: visible; touch-action: manipulation; }
.carte-ombre { fill: rgba(11,61,46,.45); }
.carte-bord { fill: none; stroke: var(--encre); stroke-width: 3.5; stroke-linejoin: round; pointer-events: none; }
.zone path { fill: #fdf3df; stroke: rgba(20,42,32,.35); stroke-width: 1.5; stroke-dasharray: 4 3; transition: fill .2s; }
.zone:nth-child(odd) path { fill: #f6e6c6; }
.zone text { font: 800 12.5px var(--titre); fill: var(--encre); text-anchor: middle; dominant-baseline: middle; pointer-events: none;
  paint-order: stroke; stroke: rgba(255,253,247,.85); stroke-width: 3px; }
.interactive .zone { cursor: pointer; }
@media (hover: hover) { .interactive .zone:hover path { fill: var(--jaune); } }
.interactive .zone:active path { fill: var(--jaune); }
.zone.indice path { fill: #ffe08a; }
.zone.juste path { fill: #44c787; animation: pulse .6s ease; }
.zone.faux path { fill: #ff8a80; animation: pulse .6s ease; }
@keyframes pulse { 50% { opacity: .55; } }

.repere circle { fill: var(--encre); stroke: #fff; stroke-width: 2.5; }
.repere .repere-halo { fill: rgba(247,127,0,.35); stroke: none; animation: halo 1.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.repere text { font: 800 14px var(--titre); fill: var(--encre); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
@keyframes halo { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.repere-mini .repere-halo { display: none; }
.repere-mini circle { stroke-width: 1.5; }
.g-akan circle { fill: #f77f00; } .g-krou circle { fill: #1f8a5b; } .g-mandeSud circle { fill: #7b4fd6; }
.g-mandeNord circle { fill: #d63b4f; } .g-gur circle { fill: #c99a00; }

.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.choix button { padding: 14px 10px; border-radius: 18px; background: var(--blanc); color: var(--encre);
  border: 4px solid var(--encre); border-left: 12px solid var(--c); box-shadow: 0 5px 0 var(--encre);
  font: 800 1.08rem var(--titre); }
.choix button:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--encre); }
.choix button.juste { background: #b7f0cf; }
.choix button.faux { background: #ffc9c4; }
.choix button:disabled:not(.juste):not(.faux) { opacity: .55; }

.retour { margin-top: 14px; padding: 14px 18px; border-radius: 22px; border: 4px solid var(--encre); color: var(--encre);
  box-shadow: 0 6px 0 var(--encre); animation: entree .35s cubic-bezier(.2,1.4,.5,1); }
.retour.ok { background: #d8f8e5; }
.retour.ko { background: #ffe4df; }
.retour-titre { display: flex; justify-content: space-between; align-items: center; font: 800 1.5rem var(--titre); }
.gain { padding: 2px 12px; border-radius: 99px; background: var(--jaune); border: 3px solid var(--encre); font-size: 1.05rem; }
.retour p { margin: 6px 0 0; font-weight: 600; }
.correction b { color: #b3261e; }
.suivant { margin-top: 12px; width: 100%; padding: 12px; border-radius: 999px; background: var(--vert-fonce); color: #fff;
  font: 800 1.15rem var(--titre); box-shadow: 0 4px 0 #04201a; }
.suivant:active { transform: translateY(3px); box-shadow: 0 1px 0 #04201a; }

/* ---------- Résultats ---------- */
.ecran-resultats.actif { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.score-carte { width: 100%; padding: 22px 18px 18px; background: var(--blanc); color: var(--encre); border: 4px solid var(--encre);
  border-radius: 28px; box-shadow: 0 8px 0 var(--encre); }
.score-anneau { --p: 0; width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--vert) calc(var(--p) * 360deg), #f1e3c4 0); border: 4px solid var(--encre); }
.score-anneau span { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--blanc);
  font: 800 1.4rem var(--titre); border: 4px solid var(--encre); }
.score-anneau b { font-size: 2.6rem; line-height: 1; }
.score-carte h2 { margin: 14px 0 0; font: 800 1.7rem/1.1 var(--titre); }
.record { margin: 6px 0 0; font-weight: 800; color: var(--orange-fonce); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stats div { padding: 10px 4px; border-radius: 16px; background: #fbefd6; }
.stats b { display: block; font: 800 1.5rem var(--titre); }
.stats span { font-size: .78rem; font-weight: 800; color: #5d6b63; }
.ecran-resultats h3 { margin: 6px 0 0; font: 800 1.3rem var(--titre); text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.a-revoir, .peuples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.a-revoir button, .peuples button { display: flex; flex-direction: column; align-items: flex-start; padding: 7px 14px;
  border-radius: 14px; background: var(--blanc); color: var(--encre); border: 3px solid var(--encre); border-left: 9px solid var(--c);
  font-weight: 800; text-align: left; }
.a-revoir small, .peuples small { font-size: .72rem; color: #5d6b63; }
.a-revoir button:active, .peuples button:active { transform: scale(.96); }

/* ---------- Fiches ---------- */
.ecran-fiches h2 { margin: 0; font: 800 2rem var(--titre); text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.sous-titre { margin: 0; font-weight: 700; }
.carte-cadre.petite { max-width: 340px; }
.groupe { margin-top: 16px; padding: 14px; border-radius: 22px; background: rgba(255,253,247,.94); color: var(--encre);
  border: 4px solid var(--encre); border-top: 12px solid var(--c); box-shadow: 0 6px 0 var(--encre); }
.groupe header { display: flex; justify-content: space-between; align-items: baseline; }
.groupe h3 { margin: 0; font: 800 1.4rem var(--titre); }
.groupe header span { font-weight: 800; font-size: .85rem; color: #5d6b63; }
.groupe > p { margin: 2px 0 10px; font-weight: 600; color: #43554c; }
.groupe .peuples { justify-content: flex-start; }

.fiche { width: min(92vw, 440px); max-height: 88vh; padding: 18px 20px 20px; border: 4px solid var(--encre); border-radius: 26px;
  border-top: 14px solid var(--c); background: var(--blanc); color: var(--encre); box-shadow: 0 10px 0 var(--encre); }
.fiche[open] { animation: entree .35s cubic-bezier(.2,1.4,.5,1); }
.fiche::backdrop { background: rgba(11,61,46,.6); backdrop-filter: blur(3px); }
.fiche h2 { margin: 6px 0 0; font: 800 2rem/1 var(--titre); }
.fiche .fermer { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: #f1e3c4; font-weight: 800; }
.fiche .carte-cadre.mini { max-width: 230px; background: #e9f6ef; border-color: #cfe7da; }
.fiche dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 14px 0 0; }
.fiche dl div { display: contents; }
.fiche dt { font-weight: 800; color: #5d6b63; }
.fiche dd { margin: 0; font-weight: 800; }
.fiche > p { margin: 12px 0 0; line-height: 1.5; font-weight: 600; }

.ios-aide { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bas) + 14px); z-index: 20; display: flex; gap: 10px;
  align-items: center; padding: 14px 16px; border-radius: 20px; background: var(--blanc); color: var(--encre);
  border: 4px solid var(--encre); box-shadow: 0 6px 0 var(--encre); animation: entree .3s; }
.ios-aide p { margin: 0; font-weight: 700; }
.ios-aide button { font-weight: 800; font-size: 1.2rem; }

/* ---------- Son, chrono, révision ---------- */
.bouton-son { margin-left: auto; margin-right: 10px; width: 46px; height: 46px; border-radius: 50%; background: var(--blanc);
  border: 3px solid var(--encre); box-shadow: 0 4px 0 var(--encre); font-size: 1.3rem; }
.bouton-son:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--encre); }
.bouton-son + .pieces { margin-left: 0; }

.interrupteur { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 10px; border-radius: 18px;
  background: rgba(0,90,55,.75); border: 3px solid rgba(255,255,255,.8); text-align: left; font-weight: 800; }
.interrupteur small { display: block; font-size: .78rem; opacity: .85; }
.interrupteur-curseur { flex: none; position: relative; width: 50px; height: 28px; border-radius: 99px; background: #6d7f76;
  border: 3px solid var(--encre); transition: background .2s; }
.interrupteur-curseur::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--encre); transition: translate .2s; }
.interrupteur[aria-checked="true"] .interrupteur-curseur { background: var(--jaune); }
.interrupteur[aria-checked="true"] .interrupteur-curseur::after { translate: 22px 0; }

.revoir { width: min(100%, 360px); padding: 12px 18px; border-radius: 999px; background: var(--blanc); color: var(--encre);
  border: 4px solid var(--encre); box-shadow: 0 5px 0 var(--encre); font: 800 1.15rem var(--titre); }
.revoir b { display: inline-block; min-width: 1.7em; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--rouge); color: #fff; }
.revoir:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--encre); }
.raccourcis { display: flex; gap: 10px; width: min(100%, 360px); }
.raccourcis .secondaire { flex: 1; padding: 11px 8px; }
.raccourcis b { font-size: .85rem; opacity: .85; }

.chrono { position: relative; height: 26px; margin: 0 0 10px; border-radius: 99px; overflow: hidden;
  background: rgba(11,61,46,.55); border: 3px solid var(--encre); }
.chrono-barre { position: absolute; inset: 0; background: linear-gradient(90deg, var(--vert), #44c787); transform-origin: left; transition: transform .1s linear; }
.chrono.urgent .chrono-barre { background: linear-gradient(90deg, var(--rouge), var(--orange)); }
.chrono span { position: relative; display: block; text-align: center; font: 800 .95rem/20px var(--titre); text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.chrono.urgent span { animation: bump .5s infinite; }

.question.secoue { animation: secoue .45s; }
.choix.deux button { font-size: 1.3rem; }
.choix kbd { display: none; margin-right: 8px; padding: 0 6px; border-radius: 6px; background: #f1e3c4; font: 800 .8rem var(--corps); vertical-align: middle; }
@media (hover: hover) and (pointer: fine) { .choix kbd { display: inline-block; } }

/* ---------- Publication ---------- */
.publier { width: 100%; padding: 14px 16px; border-radius: 22px; background: rgba(255,253,247,.95); color: var(--encre);
  border: 4px solid var(--encre); box-shadow: 0 6px 0 var(--encre); text-align: left; }
.publier h3 { margin: 0; font: 800 1.3rem var(--titre); text-shadow: none; }
.champs { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 8px; }
.champs label { display: flex; flex-direction: column; gap: 3px; font-weight: 800; font-size: .85rem; }
.champs small { font-weight: 600; color: #5d6b63; }
.champs input { width: 100%; padding: 9px 12px; border-radius: 12px; border: 3px solid var(--encre); background: #fff;
  font: 800 1rem var(--corps); color: var(--encre); }
.champs input:focus { outline: 3px solid var(--jaune); outline-offset: 1px; }
.message-form { min-height: 1.2em; margin: 8px 0 0; font-weight: 800; }
.message-form.erreur { color: #b3261e; }
.rang { margin: 6px 0 0; font-weight: 700; }
.rang b { font: 800 1.4rem var(--titre); color: var(--orange-fonce); }

/* ---------- Classement ---------- */
.ecran-classement h2, .ecran-succes h2 { margin: 0; font: 800 2rem var(--titre); text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.onglets { display: flex; gap: 6px; margin-top: 14px; padding: 5px; border-radius: 999px; background: rgba(11,61,46,.55); border: 3px solid var(--encre); }
.onglets button { flex: 1; padding: 8px 4px; border-radius: 999px; font: 800 1rem var(--titre); }
.onglets button[aria-selected="true"] { background: var(--jaune); color: var(--encre); box-shadow: 0 3px 0 var(--encre); }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filtre { padding: 6px 14px; border-radius: 999px; border: 3px solid #fff; font-weight: 800; background: rgba(0,90,55,.7); }
.filtre[aria-pressed="true"] { background: #fff; color: var(--encre); }
.tableau { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.tableau li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: var(--blanc);
  color: var(--encre); border: 3px solid var(--encre); box-shadow: 0 4px 0 var(--encre); animation: entree .35s both; }
.tableau li:nth-child(-n+3) { background: #fff4cc; }
.tableau li.moi { outline: 4px solid var(--orange); }
.tableau li.chargement, .tableau li.vide { justify-content: center; font-weight: 800; }
.rang-num { width: 2em; text-align: center; font: 800 1.3rem var(--titre); }
.joueur { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.joueur b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; }
.joueur small, .points small { font-size: .75rem; font-weight: 800; color: #5d6b63; }
.points { display: flex; flex-direction: column; align-items: flex-end; }
.points b { font: 800 1.2rem var(--titre); }

/* ---------- Succès ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; border-radius: 20px; text-align: center;
  background: rgba(255,253,247,.55); color: var(--encre); border: 3px dashed rgba(20,42,32,.5); }
.badge.obtenu { background: var(--blanc); border: 4px solid var(--encre); box-shadow: 0 5px 0 var(--encre); }
.badge-icone { font-size: 2.3rem; filter: grayscale(1); opacity: .6; }
.badge.obtenu .badge-icone { filter: none; opacity: 1; animation: rebond 3s ease-in-out infinite; }
.badge b { font: 800 1.1rem var(--titre); }
.badge small { font-weight: 700; color: #43554c; line-height: 1.25; }
.badge em { margin-top: 4px; font-size: .72rem; font-weight: 800; color: var(--vert); font-style: normal; }

.peuples button.vu::after { content: "✓"; position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--vert); color: #fff; font-size: .75rem; display: grid; place-items: center; border: 2px solid var(--encre); }
.peuples button { position: relative; }

/* ---------- Toasts et confettis ---------- */
.toasts { position: fixed; top: calc(var(--haut) + 70px); left: 0; right: 0; z-index: 30; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 18px; background: var(--jaune); color: var(--encre);
  border: 4px solid var(--encre); box-shadow: 0 5px 0 var(--encre); font-weight: 700; animation: toast 3.6s cubic-bezier(.2,1.4,.5,1) both; }
.toast b { display: block; font: 800 1.05rem var(--titre); }
.toast-icone { font-size: 2rem; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-20px) scale(.8); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
.pluie { position: fixed; inset: 0; z-index: 25; pointer-events: none; overflow: hidden; }
.pluie i { position: absolute; top: -20px; width: 12px; height: 8px; border-radius: 2px; border: 1.5px solid rgba(20,42,32,.4);
  animation: tombe linear both; }
@keyframes tombe { to { transform: translate(var(--x), 105vh) rotate(var(--r)); } }

@media (min-width: 900px) {
  .ecran-jeu.actif { display: grid; width: min(100%, 980px); grid-template-columns: 1fr 1.1fr; gap: 0 26px; align-items: start; }
  .progression, .jeu-entete { grid-column: 1 / -1; }
  .ecran-jeu .question, .ecran-jeu .choix, .ecran-jeu .retour { grid-column: 1; }
  .ecran-jeu .carte-cadre { grid-column: 2; grid-row: 3 / span 3; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
