/* Trousse Royale : un bureau clair aux tons pastel, des fournitures en papier et en caoutchouc. */
@font-face { font-family: "Baloo 2"; src: url("../polices/baloo-2-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("../polices/baloo-2-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../polices/nunito-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../polices/nunito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../polices/nunito-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --fond: #F1ECFB; --surf1: #FCFAFF; --surf2: #DDD3F5; --accent: #FFD23F; --texte: #2B2650;
  --encre: #2B2650; --doux: #5D5888; --danger: #B3243A; --ok: #8EE0B2; --violet: #6B3DB8; --ombre: rgba(43, 38, 80, .22);
  --j0: #FF5A5F; --j1: #FF9F1C; --j2: #FFE14D; --j3: #7BD957; --j4: #1FC8A9;
  --j5: #45B8FF; --j6: #6C86FF; --j7: #B07CFF; --j8: #FF86CB; --j9: #F2EDE0;
  --titre: "Baloo 2", "Trebuchet MS", sans-serif; --lecture: Nunito, "Segoe UI", system-ui, sans-serif;
  --rayon: 18px; --pas: clamp(12px, 2.2vw, 22px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--fond); color: var(--texte); font: 400 1rem/1.5 var(--lecture); overflow-x: hidden; }
h1, h2 { font-family: var(--titre); font-weight: 800; line-height: 1.05; margin: 0; }
h2 { font-size: 1.3rem; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--accent); color: var(--encre); padding: 12px 16px; border-radius: 12px; font-weight: 800; }
.evitement:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
#fond { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
main { position: relative; z-index: 1; }
.ecran { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: calc(var(--pas) + 56px) var(--pas) var(--pas); }

/* barre d'outils */
.barre { position: fixed; top: 10px; right: 10px; z-index: 20; display: flex; gap: 8px; }
.rond { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--encre); background: var(--surf2); color: var(--texte); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 var(--encre); }
.rond svg { width: 24px; height: 24px; }
.rond:hover { background: #CDBFEF; }
.rond:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--encre); }
body.en-jeu .barre { opacity: .55; }
body.en-jeu .barre:hover, body.en-jeu .barre:focus-within { opacity: 1; }

/* boutons */
.bouton { min-height: 48px; padding: 8px 22px; border-radius: 14px; border: 3px solid var(--encre); background: var(--accent); color: var(--encre); font: 800 1.05rem var(--titre); cursor: pointer; box-shadow: 0 5px 0 var(--encre); transition: transform .08s, box-shadow .08s; }
.bouton:hover { background: #FFE072; }
.bouton:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--encre); }
.bouton.second { background: var(--surf2); color: var(--texte); }
.bouton.second:hover { background: #CDBFEF; }
.bouton.petit { min-height: 44px; padding: 4px 14px; font-size: .95rem; box-shadow: 0 4px 0 var(--encre); }
.bouton:disabled { background: #E3DFEE; color: #5D5888; cursor: not-allowed; box-shadow: 0 5px 0 var(--encre); }
.bouton[aria-pressed="true"] { background: var(--ok); }
.lien { background: none; border: 0; color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0 6px; }
.pied { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: center; margin-top: var(--pas); }
.attente { color: var(--doux); font-weight: 700; margin-right: auto; }

/* accueil */
.accueil { width: min(100%, 1080px); }
.logo { font-size: clamp(3.2rem, 13vw, 9.5rem); letter-spacing: -.02em; line-height: .86; text-shadow: 0 .06em 0 var(--encre); }
.logo span { display: block; }
.logo .surligne { width: fit-content; color: var(--encre); background: var(--accent); padding: .02em .16em 0; margin: .06em 0 0 .5em; border-radius: .12em; transform: rotate(-3deg); text-shadow: none; box-shadow: 0 .07em 0 var(--encre); }
.accroche { max-width: 34em; margin-top: clamp(22px, 4vw, 40px); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 22px); margin-top: clamp(22px, 4vw, 40px); }
.note { text-align: left; min-height: 124px; padding: 18px 18px 16px; border: 0; border-radius: 6px 6px 22px 6px; color: var(--encre); cursor: pointer; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; box-shadow: 0 8px 0 var(--ombre); transition: transform .12s; position: relative; }
.note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; background: linear-gradient(135deg, rgba(16, 18, 42, .22) 50%, transparent 50%); border-radius: 0 0 22px 0; }
.note strong { font: 800 clamp(1.25rem, 2.3vw, 1.6rem)/1.1 var(--titre); }
.note span { font-weight: 700; font-size: .95rem; }
.note.jaune { background: #FFE98A; transform: rotate(-1.5deg); }
.note.rose { background: #FFB3D9; transform: rotate(1deg); }
.note.bleu { background: #A8DCFF; transform: rotate(-.6deg); }
.note:hover, .note:focus-visible { transform: rotate(0) translateY(-4px); }
.profil-rappel { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: clamp(20px, 3vw, 34px); font-weight: 700; }
.profil-rappel canvas { width: 48px; height: 48px; }
.note-tactile { margin-top: 14px; padding: 12px 16px; background: var(--surf1); border-left: 6px solid var(--accent); border-radius: 10px; max-width: 40em; }

/* feuilles (profil, rejoindre) */
.feuille { width: min(100%, 980px); background: var(--surf1); border: 3px solid var(--encre); border-radius: var(--rayon); padding: clamp(18px, 3.4vw, 36px); box-shadow: 0 10px 0 var(--ombre); }
.feuille.etroite { width: min(100%, 520px); }
.feuille h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: var(--pas); }
.feuille h2 { margin: 18px 0 8px; }
label { display: block; font-weight: 800; margin: 12px 0 6px; }
input[type="text"] { width: 100%; min-height: 50px; padding: 8px 14px; border-radius: 12px; border: 3px solid var(--encre); background: var(--texte); color: var(--encre); font-weight: 800; font-size: 1.1rem; }
input[type="text"]::placeholder { color: #5A5F80; opacity: 1; }
.code-saisie { font: 800 2.2rem var(--titre) !important; letter-spacing: .3em; text-align: center; text-transform: uppercase; }
.erreur { color: var(--danger); font-weight: 800; margin-top: 8px; }
.etat-connexion { min-height: 1.5em; margin-top: 10px; color: var(--doux); font-weight: 700; }
.profil-grille { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: var(--pas) calc(var(--pas) * 1.5); align-items: start; }
.profil-apercu canvas { width: 100%; max-width: 220px; aspect-ratio: 1; display: block; margin: 0 auto; background: radial-gradient(circle at 50% 60%, var(--surf2), transparent 70%); border-radius: 50%; }
.profil-choix h2:first-child { margin-top: 0; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix button { width: 54px; height: 54px; padding: 0; border-radius: 14px; border: 3px solid transparent; background: var(--surf2); cursor: pointer; display: grid; place-items: center; }
.choix button canvas { width: 40px; height: 40px; pointer-events: none; }
.choix button[aria-checked="true"] { border-color: var(--accent); background: #FFF3C4; box-shadow: 0 0 0 2px var(--encre) inset; }

/* salon */
.salon { width: min(100%, 1280px); display: flex; flex-direction: column; gap: var(--pas); }
.salon-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.salon-tete h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.code-bloc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--surf1); border: 3px solid var(--encre); border-radius: var(--rayon); padding: 8px 14px; }
.code-libelle { font-weight: 800; color: var(--doux); }
.code { font: 800 clamp(2.2rem, 7vw, 3.6rem)/1 var(--titre); letter-spacing: .14em; color: var(--accent); user-select: all; }
.salon-corps { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--pas); align-items: start; }
.salon-gauche h2, .carte h2 { margin-bottom: 10px; }
.places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.place { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 8px 10px; background: var(--surf1); border: 3px solid var(--encre); border-radius: 16px; min-width: 0; }
.place canvas { width: 52px; height: 52px; flex: none; }
.place.libre { border-style: dashed; border-color: #A99BD6; background: transparent; color: var(--doux); font-weight: 700; justify-content: center; }
.place.moi { border-color: var(--accent); }
.place.absent { opacity: .55; }
.place-txt { min-width: 0; flex: 1; }
.place-nom { font-weight: 800; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.place-info { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .88rem; font-weight: 700; color: var(--doux); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 8px; background: var(--accent); color: var(--encre); font-weight: 800; font-size: .8rem; }
.badge.hote { background: var(--j8); }
.badge.pret { background: var(--ok); }
.lat { white-space: nowrap; }
.lat::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 5px; background: var(--ok); border-radius: 50%; }
.lat.moyen::before { background: var(--accent); border-radius: 2px; }
.lat.mauvais::before { background: var(--j0); border-radius: 0; transform: rotate(45deg); }
.place select, .bots select, .carte select { min-height: 44px; border-radius: 10px; border: 3px solid var(--encre); background: var(--surf2); color: var(--texte); font-weight: 800; padding: 0 8px; max-width: 100%; }
.croix { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 3px solid var(--encre); background: var(--surf2); color: var(--texte); font-weight: 800; font-size: 1.2rem; cursor: pointer; }
.croix:hover { background: #FFC2CB; }
.bots { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.bots label { margin: 0; }
.carte { background: var(--surf1); border: 3px solid var(--encre); border-radius: var(--rayon); padding: 14px 16px; }
.carte + .carte { margin-top: var(--pas); }
.reglage { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 48px; }
.reglage label { margin: 0; }
.reglage input[type="checkbox"], .jeux-liste input[type="checkbox"] { width: 26px; height: 26px; accent-color: var(--accent); flex: none; }
.pasapas { display: flex; align-items: center; gap: 8px; }
.pasapas output { min-width: 2ch; text-align: center; font: 800 1.3rem var(--titre); }
.pasapas button, .ordre-b { width: 44px; height: 44px; border-radius: 12px; border: 3px solid var(--encre); background: var(--surf2); color: var(--texte); font-weight: 800; font-size: 1.2rem; cursor: pointer; }
.jeux-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.jeux-liste li { display: flex; align-items: center; gap: 8px; min-height: 46px; }
.jeux-liste label { margin: 0; flex: 1; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; min-width: 0; }
.jeux-liste small { color: var(--doux); font-weight: 700; white-space: nowrap; }
.lecture-seule { color: var(--doux); font-weight: 700; }
.chat-fil { height: 150px; overflow-y: auto; background: var(--encre); border-radius: 12px; padding: 8px 12px; font-size: .95rem; overflow-wrap: anywhere; }
.chat-fil p + p { margin-top: 4px; }
.chat-fil b { font-weight: 800; }
.chat-fil .sys { color: var(--doux); font-style: italic; }
.chat-saisie { display: flex; gap: 8px; margin-top: 10px; }
.chat-saisie input { min-height: 44px; font-size: 1rem; font-weight: 700; }
.pied.collant { margin-top: 0; padding-top: 4px; }

/* jeu */
.ecran.jeu { padding: 0; background: #CFC4EC; }
#scene { width: 100vw; height: 100vh; height: 100dvh; display: grid; place-items: center; }
#cadre { position: relative; width: min(100vw, calc(100dvh * 16 / 9)); aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; background: var(--fond); }
#jeu { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; inset: 0 0 auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: 1cqw 1.2cqw; pointer-events: none; font-weight: 800; font-size: max(12px, 1.25cqw); }
.hud-gauche { display: flex; flex-direction: column; text-shadow: 0 2px 0 var(--encre); }
.hud-gauche span:first-child { color: var(--doux); }
.hud-temps { font: 800 max(20px, 3.4cqw)/1 var(--titre); background: var(--encre); padding: .35cqw 1.4cqw .1cqw; border-radius: 1.2cqw; min-width: 3ch; text-align: center; }
.hud-temps.presse { color: var(--j0); }
.hud-droite { display: flex; justify-content: flex-end; align-items: center; gap: 1cqw; padding-right: max(112px, 9cqw); }
.hud-droite .bouton { pointer-events: auto; }
.bandeau { position: absolute; left: 50%; bottom: 3cqw; transform: translateX(-50%); background: var(--encre); border: 3px solid var(--accent); border-radius: 14px; padding: 8px 16px; font-weight: 800; text-align: center; max-width: 92%; font-size: max(13px, 1.3cqw); }
.voile { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(43, 38, 80, .5); padding: 2cqw; overflow: auto; }
.voile.clair { background: rgba(43, 38, 80, .15); pointer-events: none; }
.voile.bas { background: none; align-items: end; }
.fiche { width: min(92%, 760px); background: var(--surf1); border: 3px solid var(--encre); border-radius: var(--rayon); padding: clamp(12px, 2.4cqw, 30px); box-shadow: 0 10px 0 var(--ombre); font-size: clamp(13px, 1.45cqw, 19px); }
.fiche.large { width: min(96%, 900px); }
.fiche h2 { font-size: clamp(1.5rem, 4.4cqw, 3.4rem); color: var(--accent); }
.fiche-manche { color: var(--doux); font-weight: 800; }
.fiche-regle { font-weight: 700; font-size: 1.2em; margin-top: .5em; max-width: 34em; }
.fiche-info { color: var(--doux); font-weight: 700; margin-top: .9em; }
.touches { display: flex; flex-wrap: wrap; gap: .6em 1.6em; margin-top: 1em; }
.touche-groupe { display: flex; align-items: center; gap: .6em; font-weight: 700; }
.touche-groupe .cles { display: flex; gap: .25em; align-items: center; flex-wrap: wrap; }
kbd { display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; padding: 0 .5em; border-radius: .5em; background: var(--texte); color: var(--encre); border: 2px solid var(--encre); box-shadow: 0 .22em 0 var(--encre); font: 800 .95em var(--lecture); }
.decompte { position: absolute; right: 5cqw; bottom: 4cqw; font: 800 clamp(4rem, 17cqw, 15rem)/1 var(--titre); color: var(--accent); text-shadow: 0 .06em 0 var(--encre); }
.decompte.pop { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.grand-mot { font: 800 clamp(3rem, 12cqw, 11rem)/1 var(--titre); color: var(--accent); text-shadow: 0 .06em 0 var(--encre); transform: rotate(-4deg); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.3) rotate(-4deg); opacity: 0; } }
.classement { list-style: none; margin: .8em 0 0; padding: 0; display: grid; gap: .35em; }
.classement li { display: grid; grid-template-columns: 2.4em 2.6em 1fr auto auto; align-items: center; gap: .7em; background: var(--surf2); border-radius: .8em; padding: .25em .9em .25em .5em; font-weight: 800; min-height: 2.9em; }
.classement canvas { width: 2.5em; height: 2.5em; }
.classement .rang { font: 800 1.35em var(--titre); text-align: center; }
.classement li.moi { outline: 3px solid var(--accent); }
.classement .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classement .gain { color: var(--ok); }
.classement .total { font: 800 1.35em var(--titre); min-width: 2.2ch; text-align: right; }
.classement.compact { grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); font-size: .86em; gap: .3em .5em; }
.classement.compact li { grid-template-columns: 2.1em 2.2em 1fr auto; min-height: 2.5em; gap: .45em; }
.classement.compact li > span:empty { display: none; }
.classement.compact canvas { width: 2.1em; height: 2.1em; }
.classement.dense { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); font-size: .92em; }
.classement li.entre { animation: glisse .45s both cubic-bezier(.2, 1.2, .4, 1); }
@keyframes glisse { from { transform: translateX(-40px); opacity: 0; } }
.podium-fiche { margin-bottom: .6cqw; background: rgba(252, 250, 255, .97); padding: clamp(10px, 1.5cqw, 20px) clamp(12px, 2cqw, 26px); }
.podium-fiche h2 { font-size: clamp(1.3rem, 3cqw, 2.4rem); }
.podium-fiche .pied { margin-top: .7em; }
.prix { list-style: none; margin: .6em 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11em, 1fr)); gap: .5em; font-size: .86em; }
.prix li { background: var(--encre); border-radius: .8em; padding: .4em .8em; font-weight: 700; }
.prix b { display: block; color: var(--accent); font: 800 1.15em var(--titre); }

/* dialogues, annonces */
dialog { background: var(--surf1); color: var(--texte); border: 3px solid var(--encre); border-radius: var(--rayon); padding: 22px 24px; width: min(92vw, 460px); box-shadow: 0 10px 0 var(--ombre); }
dialog::backdrop { background: rgba(43, 38, 80, .45); }
dialog h2 { font-size: 1.7rem; color: var(--accent); margin-bottom: 10px; }
input[type="range"] { width: 100%; height: 44px; accent-color: var(--accent); }
.annonces { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; display: grid; gap: 8px; width: min(92vw, 520px); pointer-events: none; }
.annonces p { background: var(--encre); border: 3px solid var(--accent); border-radius: 14px; padding: 10px 16px; font-weight: 800; text-align: center; }
.sans-script { position: relative; z-index: 5; padding: 30px; text-align: center; font-weight: 800; }

@media (max-width: 900px) {
  .salon-corps { grid-template-columns: 1fr; }
  .profil-grille { grid-template-columns: 1fr; }
  .profil-apercu canvas { max-width: 200px; }
}
@media (max-width: 720px) {
  .actions { grid-template-columns: 1fr; }
  .note { min-height: 96px; transform: none !important; }
  .places { grid-template-columns: 1fr; }
  .pied .bouton { flex: 1 1 auto; }
  .hud-droite { padding-right: 0; padding-top: 52px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .ecran { align-items: flex-start; }
  .logo { font-size: clamp(2.4rem, 16vh, 5rem); }
  .logo span { display: inline-block; }
  .logo .surligne { margin: 0 0 0 .2em; }
  .note { min-height: 80px; }
  .profil-apercu canvas { max-width: 130px; }
  .chat-fil { height: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ----- thème clair pastel : textes et pastilles ----- */
.logo { color: var(--encre); text-shadow: 0 .06em 0 #C9B8F2; }
.lien { color: var(--violet); }
.code, .fiche h2, dialog h2, .prix b { color: var(--violet); }
.choix button[aria-checked="true"] { border-color: var(--violet); }
.place.moi, .classement li.moi { border-color: var(--violet); outline-color: var(--violet); }
:focus-visible { outline-color: var(--violet); }
.note-tactile { border-left-color: var(--violet); }
.classement .gain { color: #1E7D4C; }
.chat-fil { background: #EFE9FB; border: 2px solid var(--surf2); }
.prix li { background: #EFE9FB; }
.hud-gauche { text-shadow: 0 0 6px #fff, 0 0 6px #fff; }
.hud-temps, .bandeau, .annonces p { color: #FFFFFF; }
.hud-temps.presse { color: #FF9AA0; }
.hud-lat { background: rgba(252, 250, 255, .85); padding: 2px 8px; border-radius: 10px; }
.hud-lat:empty { display: none; }
.decompte, .grand-mot { color: var(--accent); text-shadow: 0 .06em 0 var(--encre), 0 0 .2em rgba(43, 38, 80, .5); -webkit-text-stroke: .03em var(--encre); }
.lat.mauvais::before { background: #D9363E; }
.lat.moyen::before { background: #E0A800; }
.lat::before { background: #2E9E62; }
kbd { background: #FFFFFF; color: var(--encre); }

/* ----- le décompte a sa place réservée dans la fiche : il ne recouvre plus les instructions ----- */
.fiche-pres { position: relative; padding-right: clamp(90px, 17cqw, 230px); width: min(94%, 900px); }
.fiche-pres .decompte { position: absolute; right: clamp(10px, 2cqw, 28px); top: 50%; bottom: auto; transform: translateY(-50%); width: clamp(70px, 13cqw, 180px); text-align: center; font-size: clamp(3.4rem, 12cqw, 10rem); }
.fiche-pres .decompte.pop { animation: popc .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes popc { from { transform: translateY(-50%) scale(.3); opacity: 0; } }
.fiche-pres .decompte:empty::before { content: "…"; opacity: .25; }
.touche-groupe { flex-wrap: wrap; row-gap: .25em; }
.touche-groupe > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.fiche-regle { overflow-wrap: anywhere; }
.fiche-astuce { margin-top: .8em; padding: .5em .8em; background: #FFF3C4; border-radius: .7em; font-weight: 700; }
.fiche-astuce:empty { display: none; }
/* ----- aucune barre de défilement visible (le défilement reste possible à la molette, au doigt et au clavier) ----- */
html { scrollbar-width: none; -ms-overflow-style: none; overflow-x: hidden; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .voile::-webkit-scrollbar, .chat-fil::-webkit-scrollbar { width: 0; height: 0; display: none; }
.voile, .chat-fil { scrollbar-width: none; }
body.en-jeu { overflow: hidden; height: 100dvh; }
/* ----- saisie de mot (jeu de dessin) ----- */
.saisie { position: absolute; left: 50%; bottom: 2.2cqw; transform: translateX(-50%); display: flex; gap: 8px; width: min(90%, 560px); z-index: 3; }
.saisie input { min-height: 48px; }
/* champs de saisie lisibles sur le thème clair */
input[type="text"] { background: #FFFFFF; color: var(--encre); }
input[type="text"]::placeholder { color: #6A668A; }
