:root, .ambiance-ludique {
  --c0: #FF7A7A; --c1: #4CC3E0; --c2: #FFCC3D; --c3: #57D9A0;
  --c4: #B39BFF; --c5: #FF9D57; --c6: #7FA6FF; --c7: #FF8CC6;
}
.ambiance-sobre {
  --c0: #E26D6D; --c1: #3E9CC4; --c2: #E3AC3F; --c3: #4BAE7E;
  --c4: #8C79CF; --c5: #E28A52; --c6: #5D80D2; --c7: #D46C9E;
}

.ambiance-affiche {
  --papier: #F2ECDF;
  --pois: transparent;
  --encre: #22306B;
  --encre-2: #5A6191;
  --carte: #FBF8F1;
  --krappo: #0078BF;
  --juste: #00A95C;
  --juste-pale: #D6EFE0;
  --faux: #E8403A;
  --faux-pale: #F8DCD6;
  --or: #FFE800;
  --rose: #FF48B0;
  --bord: 0px;
  --trait: 0 solid transparent;
  --ombre: 6px 6px 0 rgb(255 72 176 / .88);
  --ombre-petite: 3px 3px 0 rgb(0 120 191 / .7);
  --rayon: 3px;
  --titre: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --police: "Archivo", system-ui, sans-serif;
  --rebond: cubic-bezier(.2, .9, .25, 1.12);
  --trame: radial-gradient(rgb(255 255 255 / .2) 1.1px, transparent 1.6px);
  --c0: #FF48B0; --c1: #0078BF; --c2: #FFE800; --c3: #00A95C;
  --c4: #765BA7; --c5: #FF6C2F; --c6: #00838A; --c7: #E8403A;
}
.ambiance-ludique, .ambiance-affiche, .ambiance-sobre { font-family: var(--police); color: var(--encre); }
body.fond-affiche { background-color: #F2ECDF; }
body.fond-sobre { background-color: #F4F5F7; background-image: none; }
body.ambiance-affiche, body.fond-affiche {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .19 0 0 0 0 .42 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
body.ambiance-affiche.page-joueur::before, body.ambiance-affiche.page-ecran::before, body.fond-affiche::before,
.panneau-test.ambiance-affiche::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: multiply; animation: none;
  background:
    radial-gradient(circle at 93% 6%, rgb(255 72 176 / .8) 0 15vmax, transparent 15.1vmax),
    radial-gradient(circle at 3% 102%, rgb(0 120 191 / .75) 0 20vmax, transparent 20.1vmax),
    radial-gradient(circle at 98% 97%, rgb(255 232 0 / .95) 0 8vmax, transparent 8.1vmax);
}
body.ambiance-affiche.page-joueur::after, body.ambiance-affiche.page-ecran::after, body.fond-affiche::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 93% 6%, transparent 0 14.4vmax, rgb(255 232 0 / .7) 14.5vmax 15.4vmax, transparent 15.5vmax),
    radial-gradient(rgb(34 48 107 / .12) 1px, transparent 1.5px) 0 0 / 9px 9px;
  transform: translate(1.1vmax, .7vmax);
}
.panneau-test.ambiance-affiche::before { position: absolute; }

.ambiance-affiche :is(.sticker, .rejoindre, .carte-question, .intro-numero, .gain, .grand-rang, .logo-zone, .logo-quiz, .marque span, .code-geant span, .mon-dessin, .element-ordre.tenu, .carte-quiz, .mot, .idee, .cadre-dessin, .tuile, .choix, .jeton, .ordre-ecran li),
.ambiance-affiche [style*="--r"] { rotate: 0deg !important; }

.ambiance-affiche h1, .ambiance-affiche h2, .ambiance-affiche h3, .ambiance-affiche h4 { font-stretch: 112%; letter-spacing: -.015em; }
.ambiance-affiche :is(.pastille, .etiquette, .sur-titre, .badge, .intro-numero span, .compteur-pastille, .famille-types h3, figcaption) {
  text-transform: uppercase; letter-spacing: .07em; font-stretch: 125%;
}

.ambiance-affiche .sticker { background: var(--carte); box-shadow: var(--ombre); }
.ambiance-affiche .bouton {
  background: var(--encre); color: var(--carte); border: 0; border-radius: 2px;
  box-shadow: 4px 4px 0 var(--rose); font-size: .88em; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; font-stretch: 100%;
}
.ambiance-affiche .bouton:hover { background: var(--krappo); }
.ambiance-affiche .bouton:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--rose); }
.ambiance-affiche .bouton.secondaire { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.ambiance-affiche .bouton.secondaire:hover { background: rgb(255 232 0 / .55); }
.ambiance-affiche .bouton.fantome { background: transparent; color: var(--encre); box-shadow: none; }
.ambiance-affiche .bouton.attention { background: var(--rose); color: var(--carte); box-shadow: 4px 4px 0 var(--encre); }
.ambiance-affiche .champ, .ambiance-affiche .champ-code {
  border: 0; border-bottom: 3px solid var(--encre); border-radius: 0; background: rgb(255 255 255 / .6);
}
.ambiance-affiche .champ:focus, .ambiance-affiche .champ-code:focus { border-bottom-color: var(--rose); box-shadow: none; background: #fff; }
.ambiance-affiche .segment { background: transparent; border: 2px solid var(--encre); border-radius: 3px; }
.ambiance-affiche .segment input:checked + span { background: var(--encre); color: var(--carte); }
.ambiance-affiche .segment span { border-radius: 1px; }
.ambiance-affiche .badge { background: transparent; border: 1.5px solid var(--encre); border-radius: 2px; }
.ambiance-affiche .rond { border: 2px solid var(--encre); background: var(--carte); }
.ambiance-affiche .toast { background: var(--encre); box-shadow: 4px 4px 0 var(--rose); border-radius: 2px; }
.ambiance-affiche .dialogue { border: 0; border-radius: 3px; background: var(--carte); box-shadow: 10px 10px 0 var(--rose); }

.ambiance-affiche :is(.choix, .tuile, .barre-remplie, .mini-tuile, .jauge i, .socle, .carte-mystere, .carte-lien.lie, .boite-choix[aria-pressed="true"], .gros-buzzer) {
  background-color: var(--c, var(--rose)); background-image: var(--trame); background-size: 7px 7px;
}
.ambiance-affiche :is(.choix, .tuile, .mini-tuile, .carte-lien.lie, .boite-choix[aria-pressed="true"]) { color: var(--carte); }
.ambiance-affiche :is(.choix, .tuile, .mini-tuile, .carte-lien.lie, .boite-choix, .element-tri)[style*="var(--c2)"] { color: var(--encre); }
.ambiance-affiche :is(.choix, .tuile, .mini-tuile) {
  border: 0; border-radius: 3px;
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--c) 50%, var(--encre));
}
.ambiance-affiche .choix:active { transform: translate(5px, 5px); box-shadow: 1px 1px 0 color-mix(in srgb, var(--c) 50%, var(--encre)); }
.ambiance-affiche .choix[aria-pressed="true"] { outline: 3px solid var(--carte); outline-offset: -9px; }
.ambiance-affiche .pastille-forme { background: transparent; border: 0; width: 2em; height: 2em; }
.ambiance-affiche .pastille-forme .forme { width: 100%; height: 100%; color: currentColor; }

.ambiance-affiche .bandeau-joueur { background: var(--carte); border-bottom: 3px solid var(--encre); }
.ambiance-affiche .bandeau-joueur .score { background: var(--or); border: 0; border-radius: 2px; }
.ambiance-affiche .cle-reprise { border: 1.5px solid var(--encre); border-radius: 2px; background: transparent; }
.ambiance-affiche .barre-temps { background: var(--carte); border-bottom: 3px solid var(--encre); }
.ambiance-affiche .barre-temps i { background: var(--rose); }
.ambiance-affiche .carte-entree { background: var(--carte); border: 0; border-radius: 3px; box-shadow: var(--ombre); }
.ambiance-affiche .grand-avatar { background: var(--carte); border: 0; box-shadow: 6px 6px 0 var(--or); }
.ambiance-affiche .question-texte { text-wrap: balance; }
.ambiance-affiche .element-ordre, .ambiance-affiche .carte-lien, .ambiance-affiche .element-tri, .ambiance-affiche .note, .ambiance-affiche .indices-joueur li, .ambiance-affiche .indices-ecran li, .ambiance-affiche .file-buzz li {
  background: var(--carte); border: 0; border-radius: 2px; box-shadow: 4px 4px 0 rgb(0 120 191 / .55);
}
.ambiance-affiche .element-ordre.tenu { background: var(--or); box-shadow: 8px 8px 0 var(--rose); }
.ambiance-affiche .carte-lien.choisi { outline: 3px solid var(--rose); outline-offset: 2px; }
.ambiance-affiche .carte-lien.cible { box-shadow: inset 0 0 0 2px var(--encre); }
.ambiance-affiche .pastille-num, .ambiance-affiche .indices-joueur .num, .ambiance-affiche .indices-ecran .num { background: var(--rose); color: var(--carte); border: 0; }
.ambiance-affiche .indices-joueur li.cache, .ambiance-affiche .indices-ecran li.cache { background: transparent; box-shadow: inset 0 0 0 2px rgb(34 48 107 / .3); }
.ambiance-affiche .boite-choix { border: 2px solid var(--encre); border-radius: 2px; background: var(--carte); }
.ambiance-affiche .element-tri.range { background: color-mix(in srgb, var(--c) 22%, var(--carte)); }
.ambiance-affiche .gros-buzzer { --c: var(--rose); border: 0; box-shadow: 0 12px 0 var(--encre); -webkit-text-stroke: 0; color: var(--carte); text-shadow: 4px 4px 0 rgb(0 120 191 / .7); }
.ambiance-affiche .cadenas .corps { background: var(--or); border: 0; box-shadow: 5px 5px 0 var(--rose); }
.ambiance-affiche .cadenas .anse { border-color: var(--encre); }
.ambiance-affiche .carte-mystere { --c: var(--rose); border: 0; box-shadow: 8px 8px 0 var(--krappo); }
.ambiance-affiche .carte-mystere span { border: 0; background: var(--carte); }
.ambiance-affiche div.gain, .ambiance-affiche .grand-rang { background: var(--or); border: 0; border-radius: 2px; box-shadow: 6px 6px 0 var(--rose); }
.ambiance-affiche .explication { background: rgb(255 232 0 / .28); border: 0; border-left: 6px solid var(--or); border-radius: 0; box-shadow: none; }
.ambiance-affiche .puce { border: 0; border-radius: 2px; background: color-mix(in srgb, var(--c, var(--or)) 35%, var(--carte)); }
.ambiance-affiche .resultat-libre { background: var(--carte); border: 0; box-shadow: var(--ombre); border-radius: 3px; }
.ambiance-affiche .mini-podium li { background: var(--carte); border: 0; border-left: 6px solid var(--rose); border-radius: 0; box-shadow: none; }
.ambiance-affiche .carte-pin { border: 0; background: var(--carte); box-shadow: inset 0 0 0 2px var(--encre); border-radius: 2px; }

.ambiance-affiche .intro-numero { background: none; box-shadow: none; padding: 0; animation-name: imprime; }
.ambiance-affiche .intro-numero span { color: var(--encre); }
.ambiance-affiche .intro-numero b { font-size: 4.2em; font-stretch: 125%; color: var(--rose); text-shadow: .06em .05em 0 rgb(0 120 191 / .7); }
@keyframes imprime { from { opacity: 0; transform: translateY(-14px); filter: blur(3px); } }
.ambiance-affiche .lecture-barre { background: transparent; border: 0; border-bottom: 3px solid var(--encre); border-radius: 0; height: 12px; }
.ambiance-affiche .lecture-barre i { background: var(--rose) var(--trame); background-size: 7px 7px; }

.ambiance-affiche .barre-ecran { background: var(--carte); border-top: 0; box-shadow: 0 -3px 0 var(--encre); }
.ambiance-affiche .barre-haut { background: var(--carte); border-bottom: 0; box-shadow: 0 3px 0 var(--encre); }
.ambiance-affiche .pastille { background: transparent; border: 2px solid var(--encre); border-radius: 2px; font-size: .8em; }
.ambiance-affiche .pastille.progression { background: var(--encre); color: var(--carte); }
.ambiance-affiche .pastille.double { background: var(--or); }
.ambiance-affiche .compteur-pastille { background: var(--carte); border: 2px solid var(--encre); border-radius: 2px; }
.ambiance-affiche .jauge-mini { border: 0; border-radius: 0; background: rgb(34 48 107 / .15); }
.ambiance-affiche .jauge-mini i { background: var(--rose); }
.ambiance-affiche .carte-question, .ambiance-affiche .question-texte-ecran { text-align: center; }
.ambiance-affiche .carte-question h1 {
  display: inline; background: linear-gradient(transparent 56%, rgb(255 232 0 / .9) 56% 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .15em;
}
.ambiance-affiche .chrono { filter: drop-shadow(4px 4px 0 rgb(0 120 191 / .75)); }
.ambiance-affiche .chrono-fond { fill: var(--carte); stroke: none; }
.ambiance-affiche .chrono-arc { stroke: var(--rose); stroke-linecap: butt; }
.ambiance-affiche .sans-chrono { background: var(--carte); border: 0; box-shadow: var(--ombre); border-radius: 50%; }
.ambiance-affiche .synthese-direct, .ambiance-affiche .synthese-finale { background: var(--carte); border: 0; border-radius: 3px; box-shadow: var(--ombre); }
.ambiance-affiche .consigne-ecran { font-stretch: 112%; }
.ambiance-affiche .ordre-ecran li, .ambiance-affiche .jeton, .ambiance-affiche .paires-ecran li { background: var(--carte); border: 0; border-radius: 2px; box-shadow: 4px 4px 0 rgb(0 120 191 / .55); }
.ambiance-affiche .paires-ecran ul:first-child li, .ambiance-affiche .boite { background: color-mix(in srgb, var(--c) 30%, var(--carte)); border: 0; border-top: 6px solid var(--c); border-radius: 2px; box-shadow: none; }
.ambiance-affiche .zone-cadre { box-shadow: 6px 6px 0 var(--rose); border-radius: 2px; }
.ambiance-affiche .zone-cible { border-color: var(--carte); background: rgb(0 169 92 / .5); box-shadow: 0 0 0 3px var(--juste); }

.ambiance-affiche .rejoindre { background: var(--carte); border: 0; box-shadow: var(--ombre); }
.ambiance-affiche .code-geant span { border: 0; border-radius: 2px; background: var(--or) var(--trame); background-size: 7px 7px; box-shadow: 5px 5px 0 rgb(0 120 191 / .7); }
.ambiance-affiche .code-geant span:nth-child(even) { background-color: var(--rose); color: var(--carte); }
.ambiance-affiche .qr { border: 0; box-shadow: inset 0 0 0 2px var(--encre); }
.ambiance-affiche .salle-compteur { background: transparent; border: 2px solid var(--encre); border-radius: 2px; box-shadow: none; }
.ambiance-affiche .bulle-joueur { background: var(--carte); border: 0; border-radius: 2px; box-shadow: 4px 4px 0 var(--c); }
.ambiance-affiche .bulle-joueur .avatar { border: 0; background: color-mix(in srgb, var(--c) 30%, var(--carte)); border-radius: 2px; }

.ambiance-affiche .barre-remplie { border: 0; border-radius: 1px; box-shadow: 5px 0 0 color-mix(in srgb, var(--c) 45%, var(--encre)); }
.ambiance-affiche .barre-pied { background: var(--carte); border: 0; border-bottom: 4px solid var(--c); border-radius: 0; }
.ambiance-affiche .barre-pied .pastille-forme { color: var(--c); }
.ambiance-affiche .tampon { border: 0; border-radius: 2px; background: var(--juste); color: var(--carte); box-shadow: 3px 3px 0 var(--encre); }
.ambiance-affiche .groupes li, .ambiance-affiche .ordre-res li, .ambiance-affiche .paires-res li { background: var(--carte); border: 0; border-radius: 2px; box-shadow: 4px 4px 0 rgb(0 120 191 / .45); }
.ambiance-affiche .ordre-res .rang { border: 0; background: var(--juste); color: var(--carte); border-radius: 2px; }
.ambiance-affiche .solution strong { border: 0; background: linear-gradient(transparent 50%, rgb(255 232 0 / .9) 50%); }
.ambiance-affiche .mot { color: color-mix(in srgb, var(--c) 82%, var(--encre)); font-stretch: 118%; }
.ambiance-affiche .idee { background: color-mix(in srgb, var(--c) 20%, var(--carte)); border: 0; border-top: 6px solid var(--c); border-radius: 0; box-shadow: none; }
.ambiance-affiche .cadre-dessin { border: 0; box-shadow: 5px 5px 0 var(--c, var(--rose)); }
.ambiance-affiche .reglette { border-bottom-color: var(--encre); }
.ambiance-affiche .reglette-point { border: 0; background: var(--rose); }
.ambiance-affiche .tampon-fin { background: rgb(242 236 223 / .6); }
.ambiance-affiche .tampon-fin span { color: var(--rose); border-color: var(--rose); border-radius: 3px; rotate: -4deg; text-transform: uppercase; font-stretch: 125%; background: rgb(251 248 241 / .9); text-shadow: 3px 3px 0 rgb(0 120 191 / .45); }

.ambiance-affiche .ecran-resultat.suspense.monte:not(.revele) .synthese-finale { animation: presse .14s steps(2) infinite; }
@keyframes presse { 50% { transform: translate(1px, -1px); } }
.ambiance-affiche .synthese.revele .juste { animation: calage .9s cubic-bezier(.2, .9, .2, 1); }
.ambiance-affiche .synthese.revele .barre.juste .barre-remplie { animation: calage-barre .9s cubic-bezier(.2, .9, .2, 1); }
@keyframes calage { from { transform: translate(-8px, 6px); filter: drop-shadow(14px -10px 0 rgb(255 72 176 / .8)); } }
@keyframes calage-barre { from { box-shadow: 22px -16px 0 var(--rose); } }
.ambiance-affiche .synthese.revele .terne { opacity: .28; filter: grayscale(1); }

.ambiance-affiche .liste-classement li { background: var(--carte); border: 0; border-left: 10px solid var(--c); border-radius: 0; box-shadow: none; }
.ambiance-affiche .liste-classement li:first-child { background: rgb(255 232 0 / .35); }
.ambiance-affiche .jauge { border: 0; border-radius: 0; background: rgb(34 48 107 / .1); }
.ambiance-affiche .liste-classement .monte { border: 0; border-radius: 2px; background: var(--juste); color: var(--carte); }
.ambiance-affiche .podium-joueur { background: var(--carte); box-shadow: 6px 6px 0 var(--c, var(--rose)); }
.ambiance-affiche .socle { border: 0; border-radius: 0; }
.ambiance-affiche .marche.p1 { --c: var(--or); }
.ambiance-affiche .marche.p2 { --c: var(--krappo); }
.ambiance-affiche .marche.p3 { --c: var(--rose); }
.ambiance-affiche .socle span { border: 0; background: var(--carte); border-radius: 0; }
.ambiance-affiche .confettis i, .ambiance-affiche .etincelles i { border: 0; mix-blend-mode: multiply; }
.ambiance-affiche .demande { background: var(--carte); }

.ambiance-affiche .panneau-question, .ambiance-affiche .bloc { background: var(--carte); border: 0; border-radius: 3px; box-shadow: var(--ombre); }
.ambiance-affiche .vignette { background: var(--carte); border: 0; border-radius: 2px; }
.ambiance-affiche .vignette.active { background: var(--encre); color: var(--carte); box-shadow: 4px 4px 0 var(--rose); }
.ambiance-affiche .vignette.active .duree { color: var(--carte); }
.ambiance-affiche .type-actuel { background: var(--or); border: 0; border-radius: 2px; box-shadow: 3px 3px 0 var(--rose); }
.ambiance-affiche .choix-ligne { background: var(--carte); border: 0; border-left: 8px solid var(--c); border-radius: 0; box-shadow: 0 0 0 1.5px rgb(34 48 107 / .2); }
.ambiance-affiche .choix-ligne .pastille { border: 0; border-radius: 2px; background: var(--c) var(--trame); background-size: 7px 7px; color: var(--carte); }
.ambiance-affiche .choix-ligne.bonne { background: var(--juste-pale); }
.ambiance-affiche .bascule-bonne { border: 2px solid var(--encre); border-radius: 2px; }
.ambiance-affiche .bascule-bonne[aria-pressed="true"] { background: var(--juste); color: var(--carte); border-color: var(--juste); }
.ambiance-affiche .bloc-media.sans-media { border: 2px dashed rgb(34 48 107 / .4); border-radius: 2px; }
.ambiance-affiche .barre-editeur .champ-titre { background: rgb(255 232 0 / .35); border-radius: 0; font-stretch: 112%; }
.ambiance-affiche .type-carte { border: 0; border-radius: 2px; background: var(--carte); box-shadow: inset 0 0 0 2px rgb(34 48 107 / .25); }
.ambiance-affiche .type-carte:hover, .ambiance-affiche .type-carte.actif { background: rgb(255 232 0 / .3); box-shadow: 4px 4px 0 var(--rose); }

.ambiance-sobre .panneau-question, .ambiance-sobre .bloc { border: 1.5px solid #D9DEE4; box-shadow: var(--ombre); }
.ambiance-sobre .vignette { border: 1.5px solid #D9DEE4; }
.ambiance-sobre .vignette.active { background: #EEF8FB; border-color: #1E8FB3; box-shadow: none; }
.ambiance-sobre .type-actuel { background: #EEF8FB; border: 1.5px solid #B9DDEA; box-shadow: none; }
.ambiance-sobre .choix-ligne { border: 1.5px solid #D9DEE4; }
.ambiance-sobre .choix-ligne .pastille { border: 0; }
.ambiance-sobre .segment { border: 1.5px solid #D9DEE4; }
.ambiance-sobre .segment input:checked + span { background: #1E8FB3; color: #fff; }
.ambiance-sobre .barre-haut { border-bottom: 1.5px solid #D9DEE4; }
.ambiance-sobre .barre-editeur .champ-titre { background: #F4F5F7; }
.ambiance-sobre .dialogue { border: 1px solid #D9DEE4; box-shadow: 0 20px 60px rgb(16 24 40 / .2); border-radius: 14px; }
.ambiance-sobre .type-carte { border: 1.5px solid #D9DEE4; }

.choix-design { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: .4em 0 .8em; }
.carte-design { position: relative; display: grid; gap: 8px; padding: 8px; border-radius: 14px; cursor: pointer; background: #fff; border: 2px solid #DDD6C8; color: #1C1B29; transition: transform .2s; font-family: "Nunito", system-ui, sans-serif; text-transform: none; letter-spacing: 0; }
.carte-design:hover { transform: translateY(-2px); }
.carte-design input { position: absolute; opacity: 0; pointer-events: none; }
.carte-design.choisi { border-color: #1C1B29; box-shadow: 0 0 0 3px #2BB2D4; }
.carte-design:has(input:focus-visible) { outline: 3px solid #2BB2D4; outline-offset: 3px; }
.carte-design.choisi::after { content: "✓"; position: absolute; top: 4px; right: 8px; font-weight: 900; color: #1C1B29; background: #2BB2D4; border-radius: 50%; width: 1.5em; height: 1.5em; display: grid; place-items: center; }
.mini-ecran {
  aspect-ratio: 16 / 10; border-radius: 8px; padding: 10px; overflow: hidden; position: relative; isolation: isolate;
  display: grid; gap: 8px; align-content: center; background-color: var(--papier); color: var(--encre); font-family: var(--police);
}
.mini-question { font-family: var(--titre); font-weight: 800; text-align: center; font-size: .78em; padding: 5px 6px; background: var(--carte); border-radius: var(--rayon); }
.mini-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini-tuile { display: flex; align-items: center; gap: 4px; padding: 6px 5px; font-size: .66em; font-weight: 800; background: var(--c); border-radius: var(--rayon); min-width: 0; }
.mini-tuile span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-tuile .pastille-forme { width: 1.7em; height: 1.7em; border-width: 1.5px; }
.mini-tuile .lettre { width: 1.6em; height: 1.6em; border-radius: 4px; }
.legende-design { display: grid; gap: 2px; padding: 0 4px 4px; }
.legende-design small { color: #5E5A6E; line-height: 1.3; }
.carte-design.ambiance-ludique .mini-ecran { background-image: radial-gradient(rgb(28 27 41 / .1) 1px, transparent 1.2px); background-size: 12px 12px; }
.carte-design.ambiance-ludique :is(.mini-question, .mini-tuile) { border: 2px solid #1C1B29; box-shadow: 3px 3px 0 #1C1B29; }
.carte-design.ambiance-ludique .mini-tuile:nth-child(odd) { rotate: -1.5deg; }
.carte-design.ambiance-ludique .mini-tuile:nth-child(even) { rotate: 1.5deg; }
.carte-design.ambiance-sobre :is(.mini-question, .mini-tuile) { background: #fff; border: 1px solid #D9DEE4; box-shadow: none; }
.carte-design.ambiance-sobre .mini-tuile .lettre { background: var(--c); }
.carte-design.ambiance-affiche .mini-ecran::before { content: ""; position: absolute; inset: 0; z-index: -1; mix-blend-mode: multiply;
  background: radial-gradient(circle at 96% 4%, rgb(255 72 176 / .85) 0 26%, transparent 26.5%), radial-gradient(circle at 0% 105%, rgb(0 120 191 / .75) 0 30%, transparent 30.5%); }
.carte-design.ambiance-affiche .mini-question { background: linear-gradient(transparent 55%, rgb(255 232 0 / .9) 55% 90%, transparent 90%); }
.carte-design.ambiance-affiche .mini-tuile { box-shadow: 3px 3px 0 color-mix(in srgb, var(--c) 50%, var(--encre)); }

.couverture.sans.ambiance-affiche {
  background-color: #F2ECDF; background-size: auto;
  background-image: radial-gradient(circle at 85% 20%, rgb(255 72 176 / .85) 0 38px, transparent 39px), radial-gradient(circle at 15% 110%, rgb(0 120 191 / .8) 0 70px, transparent 71px), radial-gradient(circle at 60% 80%, rgb(255 232 0 / .9) 0 22px, transparent 23px);
}
.couverture.sans.ambiance-sobre { background-color: #E9EDF1; background-image: linear-gradient(90deg, #D5DCE3 1px, transparent 1px), linear-gradient(#D5DCE3 1px, transparent 1px); background-size: 24px 24px; }
.couverture .badge { color: #1C1B29; }

.bouton.tester { background: var(--juste); }
.panneau-test { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background-color: var(--papier); color: var(--encre); font-family: var(--police); isolation: isolate; animation: monte .3s var(--rebond); }
.barre-test { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 10px 16px; background: var(--carte); box-shadow: 0 3px 0 var(--encre); position: relative; z-index: 1; }
.titre-test { display: flex; gap: .6em; align-items: baseline; margin-right: auto; }
.titre-test strong { font-family: var(--titre); font-size: 1.2em; }
.etat-test { color: var(--encre-2); font-size: .9em; }
.ligne-test { display: flex; gap: .5em; align-items: center; font-weight: 800; }
.ligne-test select { max-width: 16em; }
.scene-test { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 22px; padding: 18px; }
.vue-test { margin: 0; display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
.vue-test figcaption { font-weight: 800; font-size: .82em; color: var(--encre-2); }
.mire { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.mire iframe { border: 0; transform-origin: top left; position: absolute; top: 4px; background: #fff; display: block; }
.mire-ecran iframe { left: calc(50% - var(--l, 0px) / 2); box-shadow: 0 0 0 3px #1C1B29; border-radius: 4px; }
.coque { position: absolute; top: 4px; left: calc(50% - var(--l, 0px) / 2 - 9px); width: calc(var(--l, 0px) + 18px); height: calc(var(--h, 0px) + 18px); background: #1C1B29; border-radius: 30px; padding: 9px; overflow: hidden; }
.coque iframe { position: static; border-radius: 22px; }
@media (max-width: 900px) {
  .scene-test { grid-template-columns: 1fr; grid-template-rows: minmax(0, 2fr) minmax(0, 3fr); }
}

.ambiance-affiche :is(.bandeau-copie, .jeton-mot, .annonce-ajustement, .trou-res, .ligne-points) { border: 0; border-radius: 2px; box-shadow: 4px 4px 0 rgb(0 120 191 / .55); }
.ambiance-affiche .ligne-points.choisi { background: var(--or); }
.ambiance-affiche .phrase-trous .trou { border-radius: 2px; }
.ambiance-affiche .annonce-ajustement { box-shadow: 6px 6px 0 var(--rose); }
.ambiance-sobre :is(.bandeau-copie, .jeton-mot, .annonce-ajustement, .trou-res) { border: 1.5px solid #D9DEE4; box-shadow: var(--ombre-petite); }
.ambiance-sobre .ligne-points { border: 1.5px solid #D9DEE4; }
.ambiance-sobre .ligne-points.choisi { background: #E3F3F9; border-color: #1E8FB3; }
.ambiance-sobre .annonce-ajustement { animation-timing-function: ease-out; }
