/* LES LUCIOLES (jeu d'indices en équipe). Mise en page DA §2 : bande de scène, pastille « qui joue », jardin de nuit (bleu nuit chaud / violet doux,
   points de lumière pixel) où seul le milieu défile, barre du bas fixe (2 boutons au plus). Les cartes restent crème, bordure brune, ombre basse.
   Pas de pointillé, pas de gris froid, rien ne bouge, pas de chrono. */
.sv:has(.lu-ecran) { overflow: hidden; }
.dv-sv .dv-jeu:has(.lu-ecran) { flex: 1 1 0; min-height: 0; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; display: flex; flex-direction: column; }
.lu-ecran { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.lu-ecran > * { min-width: 0; }

/* bande de scène : le compagnon, petit, et sa bulle */
.lu-bande { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; background: #fbefd6; border: 2px solid var(--t2, #6b4a3a); border-radius: 16px; box-sizing: border-box; }
.lu-tete { flex: none; width: 48px; height: 48px; background-size: contain; background-repeat: no-repeat; background-position: center bottom; image-rendering: pixelated; }
.lu-bulle { flex: 1 1 0; min-width: 0; margin: 0; padding: 7px 12px; background: #fffdf6; border: 2px solid var(--t2, #6b4a3a); border-radius: 16px; color: var(--t, #3a2a22); font-weight: 600; font-size: 15px; line-height: 19px; overflow-wrap: anywhere; min-height: 36px; display: flex; align-items: center; box-sizing: border-box; }

/* pastille « qui joue » */
.lu-qui { flex: none; display: grid; gap: 1px; justify-items: center; margin: 0; padding: 5px 14px 7px; background: #fffdf6; border: 3px solid var(--t2, #6b4a3a); border-radius: 16px; box-shadow: inset 0 -3px 0 var(--c, #f3e1c0), 0 3px 0 rgba(0, 0, 0, .12); color: var(--t, #3a2a22); text-align: center; }
.lu-qui[data-moi="1"] { background: var(--j, #e9c36a); }
.lu-qui strong { font-weight: 700; font-size: 16px; line-height: 20px; overflow-wrap: anywhere; }
.lu-sous { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 12px; font-weight: 600; font-size: 13px; line-height: 17px; }
.lu-pt-luc { display: inline-flex; align-items: center; gap: 4px; }
.lu-pt-luc img { width: 16px; height: 16px; image-rendering: pixelated; }

/* jardin de nuit : seul le milieu défile */
.lu-nuit { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; border: 2px solid var(--t2, #6b4a3a); border-radius: 16px; background: linear-gradient(#2f2a55 0%, #46346a 55%, #6b406e 100%); box-sizing: border-box; }
.lu-nuit::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 2px; pointer-events: none;
  box-shadow: 28px 14px 0 #f8e9a0, 96px 40px 0 #fff3c6, 160px 12px 0 #f8e9a0, 236px 34px 0 #ffd9e0, 300px 16px 0 #f8e9a0, 52px 96px 0 #ffd9e0, 210px 88px 0 #fff3c6,
    340px 70px 0 #f8e9a0, 18px 170px 0 #fff3c6, 130px 150px 0 #f8e9a0, 280px 160px 0 #ffd9e0, 360px 210px 0 #fff3c6, 70px 240px 0 #f8e9a0, 190px 250px 0 #ffd9e0,
    28px 14px 0 1px #f8e9a066, 236px 34px 0 1px #ffd9e066; }
.lu-defile { position: absolute; inset: 0; overflow-y: auto; padding: 12px; display: grid; gap: 10px; align-content: start; scrollbar-width: thin; scrollbar-color: #f8e9a0 transparent; }
.lu-defile:focus-visible { outline: 3px solid #fffdf6; outline-offset: -5px; }
.lu-reste { flex: none; align-self: center; margin: 0; padding: 2px 14px 3px; max-width: 100%; white-space: nowrap; background: #fffdf6; border: 2px solid var(--t2, #6b4a3a); border-radius: 8px; color: var(--t, #3a2a22); font-weight: 700; font-size: 13px; line-height: 17px; }
.lu-reste[hidden], .lu-regles[hidden] { display: none; }

/* indices donnés */
.lu-indices { display: flex; flex-wrap: wrap; gap: 8px; }
.lu-indice { display: grid; gap: 2px; justify-items: start; margin: 0; padding: 7px 16px 9px; background: #fffdf6; border: 3px solid var(--t2, #6b4a3a); border-radius: 16px; box-shadow: inset 0 -3px 0 var(--c, #f3e1c0), 0 3px 0 #1e0f0a40; color: var(--t, #3a2a22); min-width: 0; }
.lu-indice small { font-size: 12px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.lu-indice strong { font-size: 22px; line-height: 26px; overflow-wrap: anywhere; }

/* cartes : icône pixel 32 px, mot, étiquette ; chaque chose a sa place fixe */
.lu-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lu-carte { display: grid; grid-template-rows: 32px auto 12px; justify-items: center; align-items: center; gap: 1px; min-width: 0; min-height: 72px; padding: 5px 4px 4px; background: #fffdf6; color: var(--t, #3a2a22); border: 2px solid var(--t2, #6b4a3a); border-radius: 16px; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); font: inherit; cursor: pointer; box-sizing: border-box; }
.lu-carte:disabled { cursor: default; }
.lu-carte:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.lu-ico { display: grid; place-items: center; width: 32px; height: 32px; }
.lu-ico img { width: 32px; height: 32px; image-rendering: pixelated; }
.lu-mot { max-width: 100%; text-align: center; font-weight: 700; font-size: 14px; line-height: 16px; overflow-wrap: anywhere; hyphens: auto; }
.lu-lib { height: 12px; font-size: 11px; line-height: 12px; font-weight: 700; letter-spacing: .02em; }
/* carte retournée : la luciole brille, l'orage est bleu-gris chaud, la brume voile la carte ; l'étiquette est toujours écrite */
.lu-carte[data-etat="retournee"][data-role="luciole"] { background: #ffe9a8; border-color: #b9842a; box-shadow: 0 0 0 3px #f8e9a0, 0 0 14px 4px #f6d86a; }
.lu-carte[data-etat="retournee"][data-role="orage"] { background: #d7d9e8; border-color: #4f4a78; }
.lu-carte[data-etat="retournee"][data-role="brume"] { background: #efe6da; box-shadow: inset 0 0 0 40px #fffdf666, 0 3px 0 rgba(0, 0, 0, .25); }
.lu-carte[data-etat="retournee"][data-role="brume"] .lu-mot { opacity: .6; }
.lu-carte[data-etat="attente"] { background: var(--jc, #bfe0dc); }
/* ce que seul le Veilleur voit : fine barre colorée en bas + étiquette */
.lu-carte[data-etat="secret"][data-role="luciole"] { box-shadow: inset 0 -6px 0 #f1c24a, 0 3px 0 rgba(0, 0, 0, .25); }
.lu-carte[data-etat="secret"][data-role="orage"] { box-shadow: inset 0 -6px 0 #6d6aa6, 0 3px 0 rgba(0, 0, 0, .25); }
.lu-carte[data-etat="secret"][data-role="brume"] { box-shadow: inset 0 -6px 0 #d9c7ab, 0 3px 0 rgba(0, 0, 0, .25); }
.lu-carte:focus-visible, .lu-chip:focus-visible { outline: 3px solid var(--t, #3a2a22); outline-offset: 2px; }

/* panneau crème : textes, choix, issue (lisible sur la nuit) */
.lu-panneau { display: grid; gap: 8px; margin: 0; padding: 10px 12px; background: #fffdf6; border: 2px solid var(--t2, #6b4a3a); border-radius: 16px; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); color: var(--t, #3a2a22); font-weight: 600; font-size: 14px; line-height: 19px; }
.lu-note { margin: 0; overflow-wrap: anywhere; }
.lu-note.strong { font-weight: 700; }
.lu-issue { margin: 0; padding: 8px 10px; background: var(--jc, #ffe9a8); border: 2px solid var(--t2, #6b4a3a); border-radius: 10px; font-weight: 700; font-size: 15px; line-height: 19px; text-align: center; }
.lu-main { display: flex; flex-wrap: wrap; gap: 8px; }
.lu-chip { min-height: 48px; padding: 8px 14px; background: #fffdf6; color: var(--t, #3a2a22); border: 2px solid var(--t2, #6b4a3a); border-radius: 16px; box-shadow: inset 0 -3px 0 var(--c, #f3e1c0), 0 3px 0 #1e0f0a40; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 19px; cursor: pointer; overflow-wrap: anywhere; }
.lu-chip:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .18); }

/* barre du bas fixe : Règles à gauche, l'action du tour (couleur du thème) à droite */
.lu-barre { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 0; }
@media (max-width: 380px) { .lu-mot { font-size: 13px; } .lu-carte { min-height: 70px; } .lu-bulle { font-size: 14px; } }

/* boutons : mêmes coins que les cartes du carnet (16 px), bordure brune, ombre basse */
.lu-btn { appearance: none; box-sizing: border-box; min-height: 48px; min-width: 44px; padding: 0 20px 2px; border: 3px solid var(--t2, #6b4a3a); border-radius: 16px; background: var(--p, #fffdf6); color: var(--t, #3a2a22); box-shadow: inset 0 -3px 0 var(--c, #f3e1c0), 0 3px 0 #1e0f0a40; font-weight: 700; font-size: 17px; line-height: 1.15; font-family: inherit; cursor: pointer; }
.lu-btn-p { background: var(--j, #e9c36a); box-shadow: inset 0 -3px 0 var(--jo, #c99a3e), 0 3px 0 #1e0f0a40; }
.lu-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #1e0f0a40; }
.lu-btn:focus-visible { outline: 3px solid var(--t, #3a2a22); outline-offset: 2px; }
.lu-btn[hidden] { display: none; }
.lu-regles .lu-btn { justify-self: start; }
.lu-barre > .lu-btn:last-child:not(:first-child) { margin-left: auto; }

/* écran jeu / guide : l'un ou l'autre */
.lu-jeu { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.lu-jeu[hidden], .lu-etape[hidden] { display: none; }
.lu-defile-guide { display: grid; align-content: center; justify-items: center; }
.lu-etape { display: grid; gap: 14px; justify-items: center; text-align: center; width: 100%; }
.lu-etape-n { padding: 2px 12px 3px; background: #fffdf6; border: 2px solid var(--t2, #6b4a3a); border-radius: 8px; color: var(--t, #3a2a22); font-size: 12px; line-height: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lu-etape-t { margin: 0; padding: 10px 14px; background: #fffdf6; border: 3px solid var(--t2, #6b4a3a); border-radius: 16px; box-shadow: inset 0 -3px 0 var(--c, #f3e1c0), 0 3px 0 #1e0f0a40; color: var(--t, #3a2a22); font-weight: 700; font-size: 17px; line-height: 22px; }
.lu-demo-rang { display: grid; grid-template-columns: repeat(3, 92px); gap: 8px; justify-content: center; }
.lu-demo-rang:has(.lu-indice) { grid-template-columns: auto; }
.lu-demo-col { display: grid; gap: 12px; justify-items: center; }
.lu-demo { cursor: default; }
