/* Amselya — Tugniwin, l'imagier des tout-petits (assets/js/tugniwin.js).
   Le jeu tient dans l'écran (--dispo, calculée par le script), gros boutons, couleurs franches. */
.tg { box-sizing: border-box; max-width: 56rem; margin: 0 auto; padding: .6rem .75rem 1rem; }
.tg *, .tg *::before, .tg *::after { box-sizing: border-box; }
.tg-cadre {
  --vert: #1F7A3D; --bleu: #1565A8; --jaune: #F2B705; --encre: #1B2A22; --creme: #FFFDF8; --sable: #EADFC8; --rouge: #D4342A;
  position: relative; display: flex; flex-direction: column; min-height: var(--dispo, 560px); height: var(--dispo, auto);
  padding: .8rem; border-radius: 22px; background: var(--creme); border: 3px solid var(--sable);
  color: var(--encre); font-weight: 700; overflow: hidden;
}
.tg-chargement { margin: auto; font-weight: 800; }
.tg-ecran { display: flex; flex-direction: column; gap: .7rem; flex: 1; min-height: 0; }
.tg-centre { align-items: center; justify-content: center; text-align: center; }
.tg [hidden] { display: none !important; }
.tg button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tg button:focus-visible, .tg a:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }

/* Titre et accueil */
.tg-titre { text-align: center; }
.tg-titre__nom { margin: 0; font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 900; color: var(--vert); letter-spacing: .02em; line-height: 1.05; }
.tg-titre__sous { display: flex; justify-content: center; gap: .6rem; margin: .3rem 0 0; font-size: 1.6rem; }
.tg-titre__sous .tg-emoji { width: 2.2rem; height: 2.2rem; }
.tg-langues { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; }
.tg-langues__titre { font-size: .85rem; color: #6B5A3C; }
.tg-puce {
  min-height: 2.6rem; padding: 0 1rem; border: 2px solid #D4BC8C; border-radius: 999px; background: #fff; font-weight: 800;
}
.tg-puce[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); color: #fff; }
.tg-puce.est-bloque { color: #8A7A5C; background: #F6F1E6; }
.tg-jeux { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; flex: 1; min-height: 0; }
.tg-jeu {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: 1rem .7rem;
  border: 0; border-radius: 22px; color: #fff !important; text-align: center; box-shadow: 0 10px 22px -14px rgba(0,0,0,.6);
  transition: transform .12s;
}
.tg-jeu--qui { background: linear-gradient(160deg, #2E9B52, #1F7A3D); }
.tg-jeu--sek { background: linear-gradient(160deg, #2B83CC, #1565A8); }
.tg-jeu:active { transform: scale(.97); }
.tg-jeu__icones { font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1; }
.tg-jeu__nom { font-size: clamp(1.3rem, 4.5vw, 1.9rem); font-weight: 900; }
.tg-jeu__desc { font-size: .9rem; font-weight: 700; opacity: .95; line-height: 1.3; }
.tg-jeu__chrono { margin-top: .2rem; padding: .2rem .7rem; border-radius: 999px; background: rgba(255,255,255,.2); font-size: .82rem; }
.tg-limite { margin: 0; text-align: center; font-size: .8rem; color: #6B5A3C; }

/* En-tête des écrans */
.tg-tete, .tg-partie__haut { display: flex; align-items: center; gap: .5rem; }
.tg-tete__titre { flex: 1; margin: 0; font-size: 1.3rem; font-weight: 900; text-align: center; }
.tg-tete__retour, .tg-tete__son {
  flex: none; min-width: 2.6rem; min-height: 2.6rem; padding: 0 .8rem; border: 2px solid #D4BC8C; border-radius: 999px; background: #fff; font-weight: 800;
}
.tg-tete__son { padding: 0; font-size: 1.2rem; }

/* Réglages */
.tg-etiquette { margin: .2rem 0 0; font-size: .9rem; color: #6B5A3C; }
.tg-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .5rem; overflow-y: auto; min-height: 0; flex: 0 1 auto; padding: .15rem; }
.tg-cat {
  display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .4rem; border: 3px solid var(--sable); border-radius: 16px; background: #fff; text-align: center;
}
.tg-cat[aria-pressed="true"] { border-color: var(--vert); background: #F1FBF4; }
.tg-cat__icone { width: 2.8rem; height: 2.8rem; font-size: 2rem; }
.tg-cat__kab { font-weight: 900; font-size: 1.05rem; }
.tg-cat__nom { font-size: .78rem; color: #6B5A3C; }
.tg-niveaux { display: flex; flex-wrap: wrap; gap: .4rem; }
.tg-option { display: flex; align-items: center; gap: .5rem; font-size: .9rem; cursor: pointer; }
.tg-option input { width: 1.3rem; height: 1.3rem; accent-color: var(--vert); }
.tg-bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 3rem; padding: 0 1.4rem;
  border: 0; border-radius: 999px; background: var(--jaune); color: var(--encre) !important; font-weight: 900; font-size: 1.05rem; text-decoration: none;
}
.tg-bouton--grand { min-height: 3.6rem; font-size: 1.3rem; margin-top: auto; }
.tg-bouton--clair { background: #fff; border: 2px solid #D4BC8C; }
.tg-bouton[aria-disabled="true"] { opacity: .65; }
.tg-attente { margin: auto; font-size: 2rem; }
.tg-message { margin: 0; font-size: 1.05rem; text-align: center; }

/* Partie */
.tg-partie { gap: .55rem; }
.tg-rang { font-weight: 900; }
.tg-etoiles { font-weight: 900; color: #9A6B00; }
.tg-chrono { flex: 1; display: flex; align-items: center; gap: .45rem; min-width: 6rem; }
.tg-chrono__piste { flex: 1; height: .8rem; border-radius: 999px; background: #EFE6D3; overflow: hidden; }
.tg-chrono__barre {
  display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--vert);
  transform-origin: left center; transform: scaleX(var(--part, 1));
}
[dir="rtl"] .tg-chrono__barre { transform-origin: right center; }
.tg-chrono.est-presse .tg-chrono__barre { background: var(--rouge); }
.tg-chrono__reste { min-width: 1.6rem; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.tg-chrono.est-presse .tg-chrono__reste { color: var(--rouge); }
.tg-consigne { margin: 0; text-align: center; font-size: clamp(1.2rem, 4vw, 1.6rem); font-weight: 900; color: var(--vert); }
.tg-partie--sek .tg-consigne { color: var(--bleu); }

/* Images */
.tg-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; }
.tg-image img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
/* Émojis dessinés (Noto Emoji, assets/tugniwin-emojis/) */
.tg-emoji { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.tg-emoji img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.tg-image__emoji { width: 82%; height: 82%; font-size: min(18vw, 7rem); }
.tg-image__emoji.est-texte { width: auto; height: auto; }
.tg-image--grande .tg-image__emoji.est-texte { font-size: min(32vw, 30vh, 11rem); }
.tg-image--mini { width: 2.8rem; height: 2.8rem; flex: none; }
.tg-image--mini .tg-image__emoji { width: 100%; height: 100%; font-size: 2rem; }

/* « D acu-t wagi ? » : grande image, trois noms */
.tg-sujet {
  flex: 1 1 40%; min-height: 8rem; display: flex; align-items: center; justify-content: center; padding: .5rem;
  border-radius: 22px; background: #fff; border: 3px solid var(--sable);
}
.tg-noms { display: flex; flex-direction: column; gap: .5rem; }
.tg-nom-ligne { display: flex; gap: .45rem; align-items: stretch; }
.tg-nom {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 3.6rem; padding: .35rem .8rem;
  border: 3px solid var(--sable); border-radius: 18px; background: #fff; text-align: center; line-height: 1.15;
  transition: transform .1s, background-color .15s, border-color .15s;
}
.tg-nom:active { transform: scale(.98); }
.tg-nom__kab { font-size: clamp(1.25rem, 4.6vw, 1.7rem); font-weight: 900; }
.tg-nom__trad { font-size: .85rem; color: #6B5A3C; }
.tg-nom__ecouter { flex: none; width: 3.6rem; border: 3px solid var(--sable); border-radius: 18px; background: #fff; font-size: 1.4rem; }

/* « Sekned ! » : le mot, trois images */
.tg-mot { display: flex; align-items: center; justify-content: center; gap: .7rem; }
.tg-mot__ecouter {
  flex: none; width: 4rem; height: 4rem; border: 0; border-radius: 50%; background: var(--bleu); color: #fff !important; font-size: 1.8rem;
  box-shadow: 0 8px 18px -10px rgba(21,101,168,.9);
}
.tg-mot__textes { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.tg-mot__kab { font-size: clamp(1.8rem, 7vw, 2.8rem); font-weight: 900; }
.tg-mot__trad { font-size: .95rem; color: #6B5A3C; }
.tg-images { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.tg-carte {
  min-height: 0; padding: .5rem; border: 4px solid var(--sable); border-radius: 22px; background: #fff;
  transition: transform .1s, border-color .15s, background-color .15s;
}
.tg-carte:active { transform: scale(.97); }
@media (max-width: 520px) and (min-aspect-ratio: 1/1.25) { .tg-images { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) and (max-aspect-ratio: 1/1.25) {
  /* Téléphone en hauteur : une image en haut, deux dessous. */
  .tg-images { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .tg-carte:first-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - .3rem); }
}

/* Juste / faux */
.tg-nom.est-juste, .tg-carte.est-juste { border-color: #2EB872; background: #E4F8EC; animation: tg-saut .5s ease; }
.tg-nom.est-faux, .tg-carte.est-faux { border-color: var(--rouge); background: #FDE7E5; opacity: .55; animation: tg-zzz .4s linear; cursor: default; }
.tg-nom.est-montre, .tg-carte.est-montre { border-color: #2EB872; background: #E4F8EC; animation: tg-pouls 1s ease 2; opacity: 1; }
.tg-nom:disabled:not(.est-juste):not(.est-faux):not(.est-montre), .tg-carte:disabled:not(.est-juste):not(.est-faux):not(.est-montre) { opacity: .45; cursor: default; }
.tg-retour { min-height: 2.6rem; margin: 0; padding: .45rem .7rem; border-radius: 14px; text-align: center; font-size: 1.05rem; font-weight: 800; }
.tg-retour:empty { visibility: hidden; }
.tg-retour.est-bravo { background: #E4F8EC; color: #0B5A33; }
.tg-retour.est-faux { background: #FDE7E5; color: #A3231A; }
@keyframes tg-zzz { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes tg-saut { 40% { transform: scale(1.06); } }
@keyframes tg-pouls { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .tg-nom, .tg-carte, .tg-jeu { animation: none !important; transition: none; } }

/* Fin */
.tg-fin { align-items: center; text-align: center; overflow-y: auto; }
.tg-fin__titre { margin: 0; font-size: 1.6rem; font-weight: 900; color: var(--vert); }
.tg-fin__etoiles { margin: 0; font-size: 2.6rem; color: var(--jaune); letter-spacing: .15em; line-height: 1; }
.tg-fin__chiffres { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.tg-chiffre { display: flex; flex-direction: column; min-width: 8.5rem; margin: 0; padding: .7rem 1rem; border-radius: 18px; background: #fff; border: 3px solid var(--sable); }
.tg-chiffre__val { font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.tg-chiffre__nom { font-size: .85rem; color: #6B5A3C; }
.tg-revoir { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.tg-revoir__mot { display: flex; align-items: center; gap: .5rem; padding: .3rem .7rem .3rem .3rem; border: 2px solid var(--sable); border-radius: 14px; background: #fff; }
.tg-revoir__textes { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.tg-revoir__textes small { font-size: .78rem; color: #6B5A3C; }
.tg-fin__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: auto; }
.tg-fin__actions .tg-bouton--grand { margin-top: 0; }

/* Fenêtre « Jeux illimités » */
.tg-offre { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(27,42,34,.55); }
.tg-offre__carte {
  position: relative; width: min(100%, 26rem); max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem;
  padding: 1.2rem 1.1rem 1rem; border-radius: 18px; background: #FFFDF8; border: 3px solid var(--jaune); box-shadow: 0 20px 40px -18px rgba(0,0,0,.6);
}
.tg-offre__fermer { position: absolute; top: .4rem; right: .4rem; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: transparent; font-size: 1.4rem; }
[dir="rtl"] .tg-offre__fermer { right: auto; left: .4rem; }
.tg-offre__titre { margin: 0; font-size: 1.2rem; font-weight: 900; }
.tg-offre__txt, .tg-offre__petit, .tg-offre__compte { margin: 0; line-height: 1.4; }
.tg-offre__petit, .tg-offre__compte { font-size: .82rem; color: #6B5A3C; }
.tg-offre__prix { margin: 0; font-size: 1.6rem; font-weight: 900; color: var(--vert); }
.tg-offre__cgv { display: flex; gap: .5rem; align-items: flex-start; font-size: .82rem; line-height: 1.4; cursor: pointer; }
.tg-offre__cgv input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .1rem; accent-color: var(--vert); }
.tg-offre__cgv.est-manque { color: var(--rouge); }
.tg-offre__cgv a, .tg-offre__compte a { color: #1565A8; }
.tg-offre__erreur { margin: 0; font-size: .85rem; color: var(--rouge); }
.tg-offre__erreur:empty { display: none; }
.tg-offre__bientot { margin: 0; font-weight: 900; }

/* Petits écrans */
@media (max-width: 560px) {
  .tg { padding: .4rem .4rem .6rem; }
  .tg-cadre { padding: .55rem; border-radius: 18px; }
  .tg-jeux { grid-template-columns: 1fr; }
  .tg-jeu { flex-direction: row; flex-wrap: wrap; text-align: start; justify-content: flex-start; }
  .tg-jeu__icones { flex: none; }
  .tg-jeu__nom { flex: 1; }
  .tg-jeu__desc, .tg-jeu__chrono { flex-basis: 100%; }
  .tg-jeu__chrono { flex-basis: auto; }
}
@media (max-height: 620px) { .tg-titre__sous { display: none; } .tg-sujet { min-height: 6rem; } }

/* Dans l'application installée ou dans un cadre : pas de marge autour. */
.tg--integre { padding: .5rem; max-width: none; }

/* Page du jeu figée comme le Jeu des mots : pas de pied de page, rien ne défile hors du cadre. */
.sm-bas { display: none; }
.tg-cadre { height: var(--dispo, auto); max-height: var(--dispo, none); }
.tg-cats, .tg-fin, .tg-offre__carte { overscroll-behavior: contain; }

/* Le thème colore les boutons au survol : on garde les couleurs du jeu. */
.tg .tg-cat:hover, .tg .tg-cat:focus, .tg .tg-cat:active { background: #fff; color: var(--encre); border-color: #C9B78F; }
.tg .tg-cat[aria-pressed="true"]:hover, .tg .tg-cat[aria-pressed="true"]:focus { background: #F1FBF4; border-color: var(--vert); }
.tg .tg-puce:hover, .tg .tg-puce:focus { background: #fff; color: var(--encre); border-color: #B89F6E; }
.tg .tg-puce[aria-pressed="true"]:hover, .tg .tg-puce[aria-pressed="true"]:focus { background: var(--vert); color: #fff; border-color: var(--vert); }
.tg .tg-puce.est-bloque:hover { background: #F6F1E6; color: #8A7A5C; }
.tg .tg-jeu--qui:hover, .tg .tg-jeu--qui:focus { background: linear-gradient(160deg, #34A85B, #1F7A3D); color: #fff; }
.tg .tg-jeu--sek:hover, .tg .tg-jeu--sek:focus { background: linear-gradient(160deg, #3390D8, #1565A8); color: #fff; }
.tg .tg-nom:hover, .tg .tg-nom:focus, .tg .tg-carte:hover, .tg .tg-carte:focus,
.tg .tg-nom__ecouter:hover, .tg .tg-nom__ecouter:focus, .tg .tg-revoir__mot:hover, .tg .tg-revoir__mot:focus,
.tg .tg-tete__retour:hover, .tg .tg-tete__retour:focus, .tg .tg-tete__son:hover, .tg .tg-tete__son:focus,
.tg .tg-bouton--clair:hover, .tg .tg-bouton--clair:focus { background: #fff; color: var(--encre); }
.tg .tg-nom:hover:not(:disabled), .tg .tg-carte:hover:not(:disabled) { border-color: #C9B78F; }
.tg .tg-nom.est-juste, .tg .tg-carte.est-juste, .tg .tg-nom.est-montre, .tg .tg-carte.est-montre { background: #E4F8EC; }
.tg .tg-nom.est-faux, .tg .tg-carte.est-faux { background: #FDE7E5; }
.tg .tg-bouton:hover, .tg .tg-bouton:focus { background: #FFC51F; color: var(--encre); }
.tg .tg-mot__ecouter:hover, .tg .tg-mot__ecouter:focus { background: #1A72BD; color: #fff; }
.tg .tg-offre__fermer:hover, .tg .tg-offre__fermer:focus { background: transparent; color: var(--encre); }
.tg .tg-bouton.tg-bouton--clair:hover, .tg .tg-bouton.tg-bouton--clair:focus { background: #fff; }

/* ======================= Accueil (version 2 : photos, aperçu des deux jeux) ======================= */
.tg-accueil { gap: .8rem; }
.tg-heros {
  position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: .1rem;
  margin: -.8rem -.8rem 0; padding: 1.1rem .8rem .9rem; border-radius: 19px 19px 26px 26px;
  background: radial-gradient(120% 90% at 50% 0%, #FFF4D1 0%, #FDEBC8 45%, #F7E1B5 100%);
}
.tg-lg { position: absolute; top: .6rem; inset-inline-end: .6rem; display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.tg .tg-lg__b { min-width: 2.2rem; height: 2rem; padding: 0 .55rem; border: 0; border-radius: 999px; background: transparent; color: #6B5A3C; font-weight: 900; font-size: .85rem; }
.tg .tg-lg__b:hover, .tg .tg-lg__b:focus { background: rgba(31,122,61,.12); color: var(--encre); }
.tg .tg-lg__b[aria-pressed="true"] { background: var(--vert); color: #fff; }
.tg-heros__photos { display: flex; justify-content: center; margin: .5rem 0 .35rem; }
.tg-ph { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.tg-ph img { width: 100%; height: 100%; object-fit: cover; }
.tg-ph .tg-emoji { width: 78%; height: 78%; }
.tg-heros__ph {
  width: clamp(3.2rem, 15vw, 4.6rem); height: clamp(3.2rem, 15vw, 4.6rem); margin-inline: -.35rem; border-radius: 50%;
  border: 4px solid #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); animation: tg-flotte 3.2s ease-in-out infinite;
}
.tg-heros__ph--1 { animation-delay: .4s; transform: rotate(-6deg); }
.tg-heros__ph--2 { width: clamp(3.8rem, 18vw, 5.4rem); height: clamp(3.8rem, 18vw, 5.4rem); z-index: 2; animation-delay: .8s; }
.tg-heros__ph--3 { animation-delay: 1.2s; transform: rotate(6deg); }
.tg-heros__ph--4 { animation-delay: 1.6s; }
@keyframes tg-flotte { 50% { translate: 0 -5px; } }
.tg-heros__nom { margin: 0; font-size: clamp(2.2rem, 9vw, 3.2rem); font-weight: 900; line-height: 1; color: var(--vert); letter-spacing: .01em; text-shadow: 0 2px 0 #fff; }
.tg-heros__sous { margin: .2rem 0 0; font-size: .95rem; font-weight: 800; color: #8A5A00; }

.tg-jeux { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; flex: 1; min-height: 0; }
.tg .tg-jeu {
  position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .6rem;
  padding: .8rem; border: 0; border-radius: 22px; text-align: start; color: #fff; overflow: hidden;
  box-shadow: 0 12px 24px -16px rgba(0,0,0,.7), inset 0 -6px 0 rgba(0,0,0,.15);
}
.tg-jeu__textes { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.tg .tg-jeu__nom { font-size: clamp(1.3rem, 4.6vw, 1.7rem); font-weight: 900; line-height: 1.1; }
.tg .tg-jeu__desc { font-size: .85rem; font-weight: 700; opacity: .95; line-height: 1.25; }
.tg .tg-jeu__chrono { align-self: flex-start; margin-top: .15rem; padding: .15rem .6rem; border-radius: 999px; background: rgba(255,255,255,.22); font-size: .78rem; font-weight: 800; }
.tg-jeu__go {
  position: absolute; bottom: .7rem; inset-inline-end: .7rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--jaune); color: var(--encre); font-size: 1rem; box-shadow: 0 4px 10px -4px rgba(0,0,0,.5);
}
[dir="rtl"] .tg-jeu__go { transform: scaleX(-1); }
/* Aperçus */
.tg-mini { display: flex; align-items: center; gap: .5rem; padding: .5rem; border-radius: 16px; background: rgba(255,255,255,.95); color: var(--encre); }
.tg-mini__ph { flex: none; width: 4.4rem; height: 4.4rem; border-radius: 12px; }
.tg-mini__ph img { object-fit: contain; }
.tg-mini__noms { flex: 1; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.tg-mini__nom { padding: .15rem .4rem; border: 2px solid #EADFC8; border-radius: 8px; font-size: .78rem; font-weight: 900; text-align: center; white-space: nowrap; }
.tg-mini__nom.est-juste { border-color: #2EB872; background: #E4F8EC; color: #0B5A33; }
.tg-mini--sek { flex-direction: column; align-items: stretch; }
.tg-mini__haut { display: flex; align-items: center; justify-content: center; gap: .4rem; }
.tg-mini__hp { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--bleu); color: #fff; font-size: .8rem; }
.tg-mini__mot { font-weight: 900; font-size: 1.05rem; }
.tg-mini__trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.tg-mini__vg { aspect-ratio: 1; border: 2px solid #EADFC8; border-radius: 10px; }
.tg-mini__vg img { object-fit: contain; }
.tg-mini__vg.est-juste { border-color: #2EB872; box-shadow: 0 0 0 2px #2EB872; }
.tg-limite { margin-top: auto; }

/* Téléphone : cartes l'une sous l'autre, aperçu à gauche, textes à droite. */
@media (max-width: 560px) {
  .tg-jeux { grid-template-columns: 1fr; gap: .65rem; }
  .tg .tg-jeu { flex-direction: row; align-items: center; padding: .65rem; gap: .7rem; }
  .tg-mini { flex: none; width: 44%; }
  .tg-mini__ph { width: 3.6rem; height: 3.6rem; }
  .tg-mini__nom { font-size: .72rem; }
  .tg .tg-jeu__desc { font-size: .8rem; }
  .tg-jeu__go { width: 2.2rem; height: 2.2rem; bottom: .55rem; }
}
@media (max-height: 700px) { .tg-heros__photos { display: none; } }
@media (prefers-reduced-motion: reduce) { .tg-heros__ph { animation: none; } }
/* Ajustements accueil v2 */
.tg-lg { position: static; margin-top: .55rem; }
.tg-jeux { flex: none; align-items: start; }
.tg-accueil { justify-content: flex-start; }
.tg .tg-jeu { min-height: 13rem; }
.tg-mini--sek .tg-mini__trois { max-width: 15rem; margin-inline: auto; width: 100%; }
@media (max-width: 560px) {
  .tg .tg-jeu { flex-wrap: nowrap; min-height: 0; }
  .tg-heros { padding-top: .8rem; }
}
.tg-jeux { margin-block: auto; align-items: stretch; }
.tg-limite { margin-top: 0; }
@media (max-width: 560px) {
  .tg-jeux { gap: .9rem; }
  .tg .tg-jeu { padding: .8rem; }
  .tg-mini__ph { width: 4.4rem; height: 4.4rem; }
  .tg-mini__nom { font-size: .8rem; padding: .25rem .4rem; }
}
/* Traductions cachées pendant la question ; bouton d'aide « 💡 Traduire ». */
.tg-cache { display: none !important; }
.tg-aide-ligne { flex: none; display: flex; justify-content: center; }
.tg .tg-aide {
  min-height: 2.4rem; padding: 0 1.1rem; border: 2px dashed #D4BC8C; border-radius: 999px; background: #FFF8E6; color: #6B5A3C;
  font-weight: 900; font-size: .92rem;
}
.tg .tg-aide:hover, .tg .tg-aide:focus { background: #FFF1CC; color: var(--encre); }
.tg .tg-aide.est-utilisee, .tg .tg-aide:disabled { opacity: .55; cursor: default; background: #FFF8E6; }