/* Kaletalio · jeux du lot 1 (cases 1 à 8) : memory, mot, pendu, simon, motsmeles, attrape, labyrinthe, taquin */
.kj-manche{margin:2px 0 6px;font:800 .8rem/1.3 'Montserrat','Nunito',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#8F4A08;text-align:center}
.kj-note-g{margin:6px 0;color:var(--kj-muted);font-size:.9rem;font-weight:600}
.kj-reste{margin:4px 0 0;font-weight:800;color:var(--kj-brique)}

/* Memory : cartes image + mot */
.kj-memgrid[data-n="8"] .kj-mc,.kj-memgrid[data-n="10"] .kj-mc{aspect-ratio:1/1;min-height:70px}
.kj-mc .kj-mc-img{width:100%;height:100%;object-fit:cover;border-radius:8px;opacity:0;pointer-events:none;-webkit-user-drag:none}
.kj-mci-img.is-open,.kj-mci-img.is-ok,.kj-mci-img.is-hint{background:#FFFAF2;padding:2px}
.kj-mc.is-open .kj-mc-img,.kj-mc.is-ok .kj-mc-img,.kj-mc.is-hint .kj-mc-img{opacity:1}
.kj-mc.is-hint{background:#fff;color:var(--kj-ink);border-color:var(--kj-or);box-shadow:0 0 0 3px #FFD36B}
.kj-mc.is-open .kj-mc-t,.kj-mc.is-ok .kj-mc-t,.kj-mc.is-hint .kj-mc-t{color:inherit}
.kj-mc .kj-mc-t{font-size:1rem}
.kj-tot{font-weight:800}

/* Mot (Wordle) : mode d'emploi */
.kj-aide-mot{margin:0 0 8px;padding:8px 12px;border-radius:14px;background:#FFF9EC;border:2px solid var(--kj-ligne)}
.kj-aide-mot summary{cursor:pointer;font-weight:800;min-height:32px;display:flex;align-items:center}
.kj-wex{margin:4px 0;justify-content:flex-start}
.kj-wex .kj-wt{width:38px;height:38px;font-size:1.1rem}
.kj-legende{list-style:none;margin:8px 0;padding:0;display:grid;gap:4px;font-size:.9rem}
.kj-pastille{display:inline-block;width:16px;height:16px;border-radius:4px;vertical-align:-3px;margin-right:4px;border:2px solid transparent}
.kj-pastille.is-ok{background:var(--kj-ok)}.kj-pastille.is-pr{background:var(--kj-or)}.kj-pastille.is-no{background:#9a8a7a}

/* Pendu : la bougie */
.kj-pendu-haut{display:flex;gap:12px;align-items:center;justify-content:center;margin:6px 0}
.kj-pendu-haut > div{flex:1;min-width:0}
.kj-bougie{width:96px;height:auto;flex:0 0 96px}
.kj-pl-esp{display:inline-block;width:18px}
.kj-pl.is-signe{border-bottom-color:transparent;min-width:14px;color:var(--kj-lagon)}

/* Mots mêlés */
.kj-ms.is-hint{background:#FFE9A8;border-color:var(--kj-brique);box-shadow:0 0 0 3px #FFD36B;animation:kjring2 1s ease-in-out infinite}
@keyframes kjring2{50%{transform:scale(1.12)}}
.kj-msgrid[data-n="10"]{max-width:350px;gap:2px}
.kj-msgrid[data-n="10"] .kj-ms{min-height:30px;font-size:.92rem;border-radius:6px}
.kj-fr{font-weight:800}

/* Taquin : image complète (indice) */
.kj-tq-full{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:3;border-radius:10px;border:0;pointer-events:none}

@media(max-width:380px){
  .kj-bougie{width:78px;flex-basis:78px}
  .kj-msgrid[data-n="10"] .kj-ms{min-height:27px;font-size:.84rem}
  .kj-wex .kj-wt{width:34px;height:34px}
}
