/* Loup-garou mathématique : vert du site le jour, bleu nuit pendant la nuit */
#features.lg-section { padding-top: 1em; }
.lg-section [hidden], .lg-voile[hidden] { display: none !important; }
.lg-section *:focus-visible { outline: 3px solid #f2b01e; outline-offset: 2px; }
/* Le thème donne à tous les boutons un fond vert, un texte blanc forcé et des majuscules : on l'annule pour les nôtres */
.lg-section button:not(.button) { text-transform: none; letter-spacing: 0; box-shadow: none; font-weight: 400; font-size: 1em; }
.lg-mini, .lg-lien, .lg-tuile, .lg-tuile-niv, .lg-stepper button, .lg-compte button, .lg-jeton { color: #16855a !important; }
.lg-tuile-niv, .lg-tuile { color: #666 !important; }
.lg-jeton { color: #2c3e73 !important; }
.lg-tuile.fort { color: #dfe6ff !important; }
.nuit .lg-jeton, .nuit .lg-mini, .lg-clavier button { color: #fff !important; }
.lg-section input[type="checkbox"] { -webkit-appearance: checkbox; appearance: auto; opacity: 1; position: static; z-index: auto; display: inline-block; accent-color: #16855a; margin: 0; }
.lg-choix { display: grid; gap: 1.2em; max-width: 64em; margin: 0 auto; }
.lg-boite { padding: 1.3em 1.3em 1.1em 1.3em; background: #fff; border: 2px solid #e5e5e5; border-radius: 1.2em; text-align: left; }
.lg-boite h3 { margin: 0 0 .7em 0; color: #16855a; text-align: center; }
.lg-info { margin: .6em 0 0 0; font-size: .85em; color: #666; }
.lg-info.alerte { color: #a0522d; font-weight: 700; }
.lg-centre { text-align: center; justify-content: center; }
.lg-rgpd { margin: .9em 0 0 0; text-align: center; font-size: .78em; color: #999; }
.lg-etiq { display: block; margin: 0 0 .35em 0; font-size: .82em; color: #878787; }
.lg-etiq small { font-size: 1em; }
.lg-ligne { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; margin: .5em 0 0 0; }
.lg-mini { font: inherit; font-size: .82em; padding: .35em .9em; border: 2px solid #e5e5e5; border-radius: 2em; background: #fff; color: #16855a; cursor: pointer; line-height: 1.4; }
.lg-mini:hover { border-color: #5cc79a; }
.lg-mini .icon:before { margin-right: .3em; }
.lg-lien { font: inherit; background: none; border: 0; padding: 0; color: #16855a; text-decoration: underline; cursor: pointer; }
.lg-case { display: flex; gap: .5em; align-items: center; font-size: .9em; color: #555; margin: .4em 0; }
.lg-case input[type=checkbox] { width: 1.2em; height: 1.2em; flex: none; }
.lg-section select, .lg-section textarea { font: inherit; width: 100%; padding: .45em .7em; border: 2px solid #e5e5e5; border-radius: .6em; background: #fff; color: #555; box-sizing: border-box; }
.lg-case select { width: auto; }
.lg-section textarea { resize: vertical; min-height: 5em; }

/* 1. Joueurs */
.lg-joueurs { display: grid; grid-template-columns: minmax(12em, 1fr) 2fr; gap: 1.4em; align-items: start; }
@media screen and (max-width: 736px) { .lg-joueurs { grid-template-columns: 1fr; } }
.lg-nombre { text-align: center; }
.lg-stepper { display: inline-flex; align-items: center; gap: .6em; }
.lg-stepper button, .lg-compte button { width: 2.2em; height: 2.2em; border-radius: 50%; border: 2px solid #16855a; background: #fff; color: #16855a; font: 700 1.2em/1 'Fredoka', 'Nunito', sans-serif; cursor: pointer; padding: 0; }
.lg-stepper button:disabled, .lg-compte button:disabled { opacity: .3; cursor: default; }
.lg-stepper b { font-family: 'Fredoka', 'Nunito', sans-serif; font-size: 2.6em; color: #16855a; min-width: 1.6em; display: inline-block; }
.lg-import { margin: .7em 0 0 0; padding: .8em 1em; border: 2px dashed #c6e6d6; border-radius: .9em; background: #f6fcf9; }
.lg-import-titre { margin: 0 0 .4em 0; font-weight: 700; color: #16855a; font-size: .9em; }
.lg-import select { margin-bottom: .5em; }

/* 2. Niveaux */
.lg-niveaux { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8em; }
@media screen and (max-width: 736px) { .lg-niveaux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lg-tuile-niv { font: inherit; text-align: center; padding: .7em .6em; border: 2px solid #e5e5e5; border-radius: 1em; background: #fff; cursor: pointer; line-height: 1.3; color: #666; }
.lg-tuile-niv b { display: block; font-family: 'Fredoka', 'Nunito', sans-serif; font-size: 1.7em; color: #16855a; font-weight: 600; }
.lg-tuile-niv span { font-size: .8em; }
.lg-tuile-niv:hover { border-color: #5cc79a; }
.lg-tuile-niv.actif { border-color: #16855a; box-shadow: 0 0 0 3px #d4efe3; }

/* 3. Rôles */
.lg-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6em .9em; }
@media screen and (max-width: 860px) { .lg-roles { grid-template-columns: 1fr; } }
.lg-role { display: flex; align-items: center; gap: .7em; padding: .5em .7em; border: 2px solid #e5e5e5; border-radius: .9em; background: #fff; }
.lg-role.absent { opacity: .55; }
.lg-role-ic { flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; }
.lg-role-ic .icon:before { margin: 0; }
.lg-role-txt { flex: 1; min-width: 0; line-height: 1.25; }
.lg-role-txt b { display: block; color: var(--c); font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 600; }
.lg-role-txt small { display: block; font-size: .74em; color: #888; }
.lg-compte { flex: none; display: flex; align-items: center; gap: .35em; }
.lg-compte button { width: 1.8em; height: 1.8em; font-size: 1em; }
.lg-compte b { min-width: 1.4em; text-align: center; font-family: 'Fredoka', 'Nunito', sans-serif; font-size: 1.3em; color: #444; }
.lg-options { margin-top: .8em; padding-top: .6em; border-top: 2px dashed #eee; }

/* 4. Lancer */
.lg-codes { display: grid; gap: .7em; margin-bottom: 1em; }
.lg-code > span:first-child { display: block; font-size: .82em; color: #878787; margin-bottom: .3em; }
.lg-lancer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9em; margin-top: .6em; }
@media screen and (max-width: 860px) { .lg-lancer { grid-template-columns: 1fr; } }
.lg-tuile { font: inherit; display: flex; gap: .8em; align-items: center; text-align: left; padding: .9em 1em; border: 2px solid #e5e5e5; border-radius: 1em; background: #fff; cursor: pointer; line-height: 1.3; color: #666; }
.lg-tuile > .icon { flex: none; width: 2.4em; height: 2.4em; border-radius: 50%; background: #eaf7f1; color: #16855a; display: flex; align-items: center; justify-content: center; font-size: 1.15em; }
.lg-tuile > .icon:before { margin: 0; }
.lg-tuile b { display: block; color: #16855a; font-family: 'Fredoka', 'Nunito', sans-serif; font-size: 1.1em; font-weight: 600; }
.lg-tuile small { display: block; font-size: .8em; }
.lg-tuile:hover { border-color: #5cc79a; }
.lg-tuile.fort { border-color: #2c3e73; background: #2c3e73; color: #dfe6ff; }
.lg-tuile.fort b { color: #fff; }
.lg-tuile.fort > .icon { background: #f2d56b; color: #2c3e73; }

/* Écritures mathématiques */
.lg-fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .85em; line-height: 1.1; margin: 0 .1em; }
.lg-fr span:first-child { border-bottom: .08em solid currentColor; padding: 0 .15em; }
.lg-q sup { font-size: .6em; }
.lg-commandes { display: flex; flex-wrap: wrap; gap: .6em; justify-content: center; margin: 1em 0 0 0; }
.lg-barre { display: flex; flex-wrap: wrap; gap: .6em; justify-content: center; align-items: center; margin: 0 0 1em 0; }

/* ---------- Cartes ---------- */
.lg-feuille-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1em; max-width: 52em; margin: 0 auto 1.5em auto; }
@media screen and (max-width: 736px) { .lg-feuille-cartes { grid-template-columns: 1fr; } }
.lg-carte { border: 2px dashed #9aa5c7; border-radius: .9em; overflow: hidden; background: #fff; display: flex; flex-direction: column; break-inside: avoid; }
.lg-carte-tete { display: flex; align-items: center; gap: .6em; padding: .4em .8em; background: #2c3e73; color: #fff; }
.lg-carte-tete b { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 600; }
.lg-carte-tete span { flex: 1; text-align: right; font-size: .9em; opacity: .9; }
.lg-carte-tete .icon { color: #f2d56b; }
.lg-carte-q { padding: .5em .8em .3em .8em; text-align: center; }
.lg-carte-q small { display: block; color: #888; font-size: .75em; }
.lg-q { font-family: 'Fredoka', 'Nunito', sans-serif; font-size: 1.3em; color: #2c3e73; line-height: 1.35; margin: .15em 0; }
.lg-carte-opts { list-style: none; margin: 0; padding: .2em .8em .4em .8em; display: grid; grid-template-columns: 1fr 1fr; gap: .3em .6em; }
.lg-carte-opts li { display: flex; align-items: center; gap: .5em; padding: .2em .5em; border: 1.5px solid #e3e6ef; border-radius: .6em; font-size: .85em; line-height: 1.25; }
.lg-carte-opts li b { min-width: 2.4em; text-align: center; font-family: 'Fredoka', 'Nunito', sans-serif; font-size: 1.15em; color: #333; }
.lg-carte-opts li span { color: var(--c); font-weight: 700; }
.lg-carte-pied { margin: auto 0 0 0; padding: .25em .8em .4em .8em; font-size: .68em; color: #999; text-align: center; }
.lg-fiche { max-width: 52em; margin: 0 auto 1.5em auto; padding: 1em 1.2em; border: 2px solid #e5e5e5; border-radius: 1em; background: #fff; text-align: left; }
.lg-fiche h2 { font-size: 1.3em; color: #2c3e73; margin: 0 0 .3em 0; }
.lg-fiche h3 { font-size: 1.05em; color: #2c3e73; margin: 1em 0 .3em 0; }
.lg-fiche-code { font-size: .85em; color: #666; margin: 0 0 .6em 0; }
.lg-table { width: 100%; border-collapse: collapse; font-size: .85em; }
.lg-table th, .lg-table td { border: 1px solid #ddd; padding: .25em .5em; text-align: left; vertical-align: middle; line-height: 1.3; }
.lg-table th { background: #eef1f8; color: #2c3e73; }
.lg-fiche-roles { margin: 0; padding-left: 1.2em; font-size: .85em; line-height: 1.4; }

/* ---------- Tablette ---------- */
.lg-prog { font-family: 'Fredoka', 'Nunito', sans-serif; color: #2c3e73; font-weight: 600; margin-right: auto; }
.lg-tab { max-width: 38em; margin: 0 auto; padding: 1.6em 1.4em; border-radius: 1.4em; background: #1f2b52; color: #dfe6ff; min-height: 24em; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
#vue-tablette:fullscreen { background: #141c38; padding: 2em; overflow: auto; }
#vue-tablette:fullscreen .lg-tab { max-width: 46em; }
#vue-tablette:fullscreen .lg-prog { color: #dfe6ff; }
.lg-tab h2 { color: #fff; margin: .3em 0; }
.lg-tab p { margin: .4em 0; }
.lg-tab-centre, .lg-tab-calc { text-align: center; width: 100%; }
.lg-petit { font-size: .9em; opacity: .85; }
.lg-gros { font-size: 3em; color: #7fd49c; }
.lg-jeton-grand { width: 3.2em; height: 3.2em; margin: 0 auto; border-radius: 50%; background: #f2d56b; color: #1f2b52; display: flex; align-items: center; justify-content: center; font: 600 2.2em/1 'Fredoka', 'Nunito', sans-serif; }
.lg-q-grand { font-size: 2.2em; color: #fff; margin: .3em 0 .5em 0; }
.lg-ecran { margin: 0 auto .4em auto; max-width: 9em; padding: .25em .6em; border-radius: .6em; background: #fff; color: #1f2b52; font: 600 2em/1.3 'Fredoka', 'Nunito', sans-serif; min-height: 1.3em; }
.lg-ecran i { font-size: .5em; color: #aaa; font-style: normal; font-weight: 400; vertical-align: middle; }
.lg-ecran.secoue { animation: lg-secoue .45s; }
@keyframes lg-secoue { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.lg-msg-tab { min-height: 1.6em; font-size: .92em; color: #ffd98a; margin: 0 auto .5em auto; max-width: 30em; }
.lg-clavier { display: grid; grid-template-columns: repeat(3, 4.2em); gap: .5em; justify-content: center; }
.lg-clavier button { height: 3.2em; border-radius: .8em; border: 0; background: #34457a; color: #fff; font: 600 1.4em/1 'Fredoka', 'Nunito', sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lg-clavier button:active { background: #4b5fa0; }
.lg-tab-role h2 { color: var(--c); background: #fff; display: inline-block; padding: .1em .7em; border-radius: 1em; }
.lg-role-grand { width: 3.6em; height: 3.6em; margin: .3em auto; border-radius: 50%; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.2em; box-shadow: 0 0 0 .2em rgba(255, 255, 255, .5); }
.lg-role-grand .icon:before { margin: 0; }

/* ---------- Console du meneur ---------- */
#vue-meneur { padding: 1em; border-radius: 1.4em; background: #fdf8e4; }
#vue-meneur.nuit { background: #1b2447; color: #dfe6ff; }
#vue-meneur:fullscreen { overflow: auto; border-radius: 0; padding: 1.5em; }
.lg-haut { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5em; }
.lg-phase { font-family: 'Fredoka', 'Nunito', sans-serif; font-size: 1.6em; font-weight: 600; color: #b88400; }
.nuit .lg-phase { color: #f2d56b; }
.lg-phase .icon:before { margin-right: .3em; }
.lg-points { display: flex; gap: .35em; }
.lg-points span { width: .8em; height: .8em; border-radius: 50%; background: rgba(0, 0, 0, .15); }
.nuit .lg-points span { background: rgba(255, 255, 255, .2); }
.lg-points span.fait { background: #9bc9b2; }
.lg-points span.ici { background: #f2b01e; transform: scale(1.3); }
.lg-scene { margin: .8em 0; padding: 1.2em 1.4em; border-radius: 1.2em; background: #fff; border: 2px solid #f2d56b; text-align: center; min-height: 11em; }
.nuit .lg-scene { background: #26325e; border-color: #3d4f8a; }
.lg-scene h2 { margin: 0 0 .4em 0; color: #2c3e73; font-size: 1.6em; }
.nuit .lg-scene h2 { color: #fff; }
.lg-pastille { display: inline-flex; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--c); color: #fff; align-items: center; justify-content: center; font-size: .8em; vertical-align: middle; }
.lg-pastille .icon:before { margin: 0; }
.lg-lecture { font-size: 1.45em; line-height: 1.45; margin: 0 auto; max-width: 30em; }
.nuit .lg-q-grand { color: #fff; }
.lg-scene .lg-q-grand { color: #2c3e73; }
.nuit .lg-scene .lg-q-grand { color: #fff; }
.lg-chrono { font: 600 2.4em/1.2 'Fredoka', 'Nunito', sans-serif; color: #16855a; }
.lg-chrono.urgent { color: #c0392b; }
.lg-reponse { font-size: 1.5em; color: #2c3e73; }
.lg-reponse b { font-family: 'Fredoka', 'Nunito', sans-serif; }
.lg-reponse small { display: block; font-size: .6em; color: #777; margin-top: .3em; }
.lg-indice-grand { display: inline-block; max-width: 34em; padding: .7em 1em; border-radius: 1em; background: #fff6d6; border: 2px solid #f2c26b; color: #6b4300; font-size: 1.35em; line-height: 1.4; }
.lg-nav { display: flex; justify-content: space-between; gap: .6em; flex-wrap: wrap; }
.lg-bas { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1em; margin-top: 1em; align-items: start; }
@media screen and (max-width: 980px) { .lg-bas { grid-template-columns: 1fr; } }
.lg-village h3, .lg-cadre h3 { margin: 0 0 .5em 0; font-size: 1.05em; color: #2c3e73; }
.nuit .lg-village h3, .nuit .lg-cadre h3 { color: #f2d56b; }
.lg-village h3 small { font-size: .8em; color: #888; font-weight: 400; margin-left: .4em; }
.lg-plateau { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6em, 1fr)); gap: .5em; padding: .6em; border-radius: 1em; transition: box-shadow .3s; }
.lg-plateau.appel { box-shadow: 0 0 0 3px #f2b01e, 0 0 0 8px rgba(242, 176, 30, .25); }
.lg-jeton { font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em; min-height: 4.4em; padding: .3em .2em; border-radius: .9em; border: 2px solid #c9d3ef; background: #fff; color: #2c3e73; cursor: pointer; line-height: 1.15; }
.lg-jeton b { font: 600 1.5em/1 'Fredoka', 'Nunito', sans-serif; }
.lg-jeton span { font-size: .72em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-jeton i { font-style: normal; font-size: .7em; font-weight: 700; color: var(--c); }
.lg-jeton:hover { border-color: #f2b01e; }
.lg-jeton.mort { background: #eee; border-color: var(--c); opacity: .8; }
.lg-jeton.mort b { text-decoration: line-through; color: #888; }
.nuit .lg-jeton { background: #2f3d70; border-color: #4a5c9a; color: #fff; }
.nuit .lg-jeton.mort { background: #1b2447; }
.lg-cote { display: grid; gap: .8em; }
.lg-cadre { padding: .8em 1em; border-radius: 1em; background: #fff; border: 2px solid #e5e5e5; }
.nuit .lg-cadre { background: #26325e; border-color: #3d4f8a; }
.lg-indices { margin: 0; padding: 0; list-style: none; font-size: .9em; line-height: 1.35; display: grid; gap: .4em; }
.lg-indices .lg-vide { color: #999; }
.lg-roles-jeu { margin: 0; padding: 0; list-style: none; font-size: .9em; display: grid; gap: .25em; }
.lg-roles-jeu li { color: var(--c); }
.nuit .lg-roles-jeu li { color: #fff; }
.lg-roles-jeu small { color: #999; }
.nuit .lg-mini { background: #2f3d70; border-color: #4a5c9a; color: #fff; }

/* Fenêtre */
.lg-voile { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 24, 48, .8); display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 2em 1em; }
.lg-fenetre { background: #fff; border-radius: 1.2em; padding: 1.5em 1.7em; max-width: 40em; width: 100%; box-sizing: border-box; color: #444; margin: auto 0; text-align: center; }
.lg-fenetre h2 { color: #2c3e73; margin: 0 0 .4em 0; }
.lg-revele h2 { color: var(--c); font-size: 2em; }
.lg-note { font-size: .92em; background: #f6f7fb; border-radius: .7em; padding: .4em .7em; }
.lg-victoire { margin-top: .8em; padding: .7em 1em; border-radius: 1em; font-size: 1.2em; }
.lg-victoire.village { background: #e3f6ec; color: #16855a; }
.lg-victoire.loups { background: #fbe3e1; color: #a5281b; }
.lg-tous { display: grid; grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); gap: .4em; text-align: left; font-size: .88em; }
.lg-tous span { padding: .3em .6em; border-radius: .6em; border: 2px solid var(--c); color: var(--c); font-weight: 700; }
.lg-tous span b { display: block; color: #444; font-weight: 400; }
.lg-tous span.mort { opacity: .55; }

/* ---------- Impression : cartes A4 portrait, 8 par page ---------- */
@page { size: A4 portrait; margin: 8mm; }
@media print {
	#header, #banner, #footer, .lg-pas-impr, .retours-bouton, .retours-tuile { display: none !important; }
	#features.lg-section { padding: 0 !important; }
	.container { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
	body, #page-wrapper { background: #fff !important; }
	.lg-feuille { break-after: page; page-break-after: always; margin: 0 !important; max-width: none !important; }
	.lg-feuille:last-child { break-after: auto; page-break-after: auto; }
	.lg-feuille-cartes { grid-template-columns: 1fr 1fr; grid-auto-rows: 66mm; gap: 3mm; font-size: 3.6mm; }
	.lg-fiche { border: 0; padding: 0; font-size: 3.4mm; }
	.lg-table { font-size: 3.1mm; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Ajustements par-dessus le thème (titres en majuscules, listes espacées, textes pâles la nuit) */
.lg-scene h2, .lg-fenetre h2, .lg-tab h2, .lg-fiche h2, .lg-fiche h3 { text-transform: none; letter-spacing: .02em; }
.lg-section ul li, .lg-section ol li { margin: 0; padding: 0; }
.lg-roles-jeu, .lg-indices { text-align: left; }
.lg-roles-jeu li { color: var(--c) !important; }
.nuit .lg-roles-jeu li, .nuit .lg-indices li, .nuit .lg-lecture, .nuit .lg-petit { color: #fff !important; }
.lg-jeton b, .lg-jeton span { color: #2c3e73 !important; }
.nuit .lg-jeton b, .nuit .lg-jeton span { color: #fff !important; }
.lg-jeton.mort b { color: #888 !important; }
.lg-jeton i { color: var(--c) !important; }
.lg-carte-tete b, .lg-carte-tete span { color: #fff !important; }
.lg-role-grand { border-radius: 50% !important; }
.lg-roles-jeu li b, .lg-indices li b { color: inherit !important; }

/* Énigme éclair */
.lg-q-eclair { font-family: 'Fredoka', 'Nunito', sans-serif; font-size: 4em; line-height: 1.2; color: #2c3e73; margin: .2em 0; }
.lg-barre-temps { max-width: 30em; height: .9em; margin: .6em auto 0 auto; border-radius: 1em; background: #eee; overflow: hidden; }
.lg-barre-temps span { display: block; height: 100%; background: #f2b01e; border-radius: 1em; animation: lg-vide linear forwards; }
@keyframes lg-vide { from { width: 100%; } to { width: 0; background: #c0392b; } }
.lg-temps-fini { font: 600 2.2em/1.2 'Fredoka', 'Nunito', sans-serif; color: #c0392b; margin: .3em 0; }
.lg-q-grand b { color: #16855a; }

/* Vote */
.lg-jeton.accuse { border-color: #c0392b; background: #fdeceb; box-shadow: 0 0 0 3px rgba(192, 57, 43, .35); }
.lg-suspects { display: flex; flex-wrap: wrap; gap: .5em; justify-content: center; margin: .8em 0 0 0; font-size: 1.15em; }
.lg-suspects span { padding: .2em .9em; border-radius: 2em; background: #fdeceb; color: #a5281b; border: 2px solid #eba6a2; font-weight: 700; }
.lg-suspects i { color: #999; }
.lg-urne { display: flex; flex-wrap: wrap; gap: .8em; justify-content: center; margin: .8em 0; }
.lg-urne-case { display: flex; flex-direction: column; align-items: center; gap: .3em; min-width: 11em; padding: .7em 1em; border-radius: 1em; border: 2px solid #eba6a2; background: #fff; }
.lg-urne-case > b { color: #2c3e73; }
.lg-voix { font: 600 3em/1 'Fredoka', 'Nunito', sans-serif; color: #c0392b; }
.lg-urne-btn { display: flex; gap: .4em; }
.lg-urne-btn button { min-width: 3em; height: 2.6em; border-radius: .7em; border: 2px solid #c0392b; background: #fff; color: #c0392b !important; font: 600 1.1em/1 'Fredoka', 'Nunito', sans-serif; cursor: pointer; padding: 0 .5em; }
.lg-urne-btn button:active { background: #fdeceb; }
.lg-compteur { font-size: .95em; color: #666; }
.lg-compteur.trop { color: #c0392b; font-weight: 700; }
.lg-resultats { display: grid; gap: .5em; max-width: 34em; margin: .6em auto; text-align: left; }
.lg-res { display: grid; grid-template-columns: 9em 1fr 5em; gap: .6em; align-items: center; }
.lg-res b { color: #2c3e73; }
.lg-res span { height: 1.2em; border-radius: 1em; background: #eee; overflow: hidden; }
.lg-res span i { display: block; height: 100%; background: #eba6a2; border-radius: 1em; }
.lg-res.max span i { background: #c0392b; }
.lg-res em { font-style: normal; font-weight: 700; color: #555; }
.lg-etiq-gr { margin-top: 1.2em; }

/* ---------- Jeu en groupes ---------- */
.lg-gr-puce { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: .4em; background: var(--g); color: #fff !important; font-weight: 700; text-align: center; font-size: .9em; }
.lg-carte[style*="--g"] { border-color: var(--g); }
.lg-carte[style*="--g"] .lg-carte-tete { background: var(--g); }
.lg-carte-tete em { font-style: normal; font-weight: 700; padding: 0 .5em; border-radius: .4em; background: rgba(255, 255, 255, .25); color: #fff; }
.lg-groupes-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; }
.lg-groupes-liste > div { border: 2px solid var(--g); border-radius: .8em; padding: .5em .9em; }
.lg-groupes-liste h3 { color: var(--g) !important; margin: 0 0 .3em 0; }
.lg-groupes-liste ol { margin: 0; padding-left: 1.4em; font-size: .95em; }
.lg-tab-groupes { display: grid; gap: .6em; margin-top: 1em; }
.lg-tab-groupes button { padding: .8em 1em; border-radius: .9em; border: 0; background: var(--g, #34457a); color: #fff !important; font: 600 1.2em/1.2 'Fredoka', 'Nunito', sans-serif; cursor: pointer; }
.lg-tab-groupes small { font-weight: 400; opacity: .85; font-size: .75em; }
.lg-tab-gr { display: inline-block; padding: .1em 1em; border-radius: 1em; background: var(--g); color: #fff; font-weight: 700; }
.lg-choix-meneur { display: grid; grid-template-columns: repeat(auto-fit, minmax(16em, 1fr)); gap: .8em; text-align: left; }
.lg-choix-meneur .lg-tuile[style*="--g"] > .icon { background: var(--g); color: #fff; }
.lg-plateau.multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(17em, 1fr)); gap: .8em; }
.lg-grp { border: 3px solid var(--g); border-radius: 1em; padding: .5em; background: rgba(255, 255, 255, .55); }
.nuit .lg-grp { background: rgba(255, 255, 255, .06); }
.lg-grp h4 { margin: 0 0 .4em 0; color: var(--g) !important; font-family: 'Fredoka', 'Nunito', sans-serif; font-size: 1.1em; display: flex; flex-wrap: wrap; gap: .3em .6em; align-items: baseline; }
.nuit .lg-grp h4 { color: #fff !important; }
.lg-grp h4 small { font-size: .7em; color: #888; font-weight: 400; }
.lg-grp h4 em { font-style: normal; font-size: .7em; padding: .05em .6em; border-radius: 1em; color: #fff; background: #16855a; }
.lg-grp h4 em.loups { background: #c0392b; }
.lg-grp-jetons { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.6em, 1fr)); gap: .4em; }
.lg-ind-gr { margin-bottom: .4em !important; }
.lg-ind-gr > b { color: var(--g) !important; }
.nuit .lg-ind-gr > b { color: #fff !important; }
.lg-ind-gr ol { list-style: none; margin: .2em 0 0 0; padding: 0 0 0 .6em; border-left: 3px solid var(--g); display: grid; gap: .25em; }
.lg-choix-gr button { padding: .4em 1.1em; border-radius: 2em; border: 3px solid var(--g); background: #fff; color: var(--g) !important; font: 600 1.1em/1.2 'Fredoka', 'Nunito', sans-serif; cursor: pointer; }
.lg-choix-gr button.oui { background: var(--g); color: #fff !important; }
.lg-indice-grand[style*="--g"] { border-color: var(--g); margin: .3em 0; }
@media print { .lg-groupes-liste { grid-template-columns: repeat(3, 1fr); } }
.lg-indices .lg-ind-gr > b { color: var(--g) !important; } .nuit .lg-indices .lg-ind-gr > b { color: #fff !important; }

/* Choix des calculs (comme le bingo) */
.lg-onglets { display: flex; justify-content: center; gap: .5em; flex-wrap: wrap; margin: .6em 0 .3em 0; }
.lg-onglet { padding: .35em 1.2em !important; border-radius: 2em !important; border: 2px solid #e5e5e5 !important; background: #fff !important; color: #666 !important; font: 600 1.1em/1.3 'Fredoka', 'Nunito', sans-serif !important; cursor: pointer; }
.lg-onglet.actif { background: #16855a !important; border-color: #16855a !important; color: #fff !important; }
.lg-onglet sup { font-size: .65em; }
.lg-nbc { display: inline-block; margin-left: .4em; min-width: 1.5em; padding: 0 .35em; border-radius: 1em; background: #eaf7f1; color: #16855a; font-size: .75em; font-weight: 700; }
.lg-onglet.actif .lg-nbc { background: #fff; }
.lg-liste-calc { columns: 2 22em; column-gap: 1.5em; margin-top: .4em; }
.lg-liste-calc h4 { margin: .8em 0 .3em 0; font-size: .82em; color: #16855a !important; letter-spacing: .08em; text-transform: uppercase; break-after: avoid; }
.lg-act { display: flex; align-items: center; gap: .6em; padding: .3em .6em; border-radius: .7em; border: 2px solid transparent; cursor: pointer; margin: 0; break-inside: avoid; font-size: .92em; }
.lg-act:hover { background: #f6fcf9; border-color: #e1f3ea; }
.lg-act.dans { background: #eaf7f1; border-color: #5cc79a; }
.lg-act:before, .lg-act:after { content: none !important; display: none !important; }
.lg-act input[type="checkbox"] { width: 1.2em !important; height: 1.2em !important; flex: none; }
.lg-act-titre { flex: 1; color: #444; line-height: 1.25; }
.lg-act-titre small { color: #999; }
.lg-act-t { flex: none; font-size: .75em; color: #878787; }
.lg-case:before, .lg-case:after { content: none !important; display: none !important; }

/* Les moments de maths : victimes en calcul, pouvoirs de nuit, défense de l'accusé */
.lg-annonces { display: grid; gap: .5em; justify-items: center; margin: .4em 0 .8em; }
.lg-annonce { font-size: 1.5em; line-height: 1.4; color: #444; }
.lg-annonce .lg-q { font-size: 1.15em; display: inline; }
.lg-annonce-r { color: #16855a; font-weight: 600; }
.lg-annonce .button.small { font-size: .55em; vertical-align: middle; margin-left: .4em; }
.lg-pouvoir { margin-top: .8em; padding: .7em 1em; border-radius: 1em; border: 2px dashed rgba(255, 255, 255, .45); }
.lg-pouvoir .lg-q-grand { margin: .2em 0 .4em; }
.lg-retirage { margin: 0; font-size: .85em; color: #888; }
