/*
 * COLLECTION-LIEU-01 — La Collection comme lieu de jeu : la galerie FAB-10 en plein écran, deux ailes sous leurs enseignes
 * suspendues, jetons posés sur la salle, bulles, feuilles qui glissent, révélation d'une carte obtenue.
 * L'écran reprend le socle de l'académie ACAD-01 (.fe-acad, .fe-feuille : ecrans/fable-ecrans.css), la salle
 * (galerie3d/galerie.css), les bulles de l'Arène (.al-bulle : arene/lieu.css), le rail et le paysage (interface/paysage.css) ;
 * ce fichier n'ajoute que ce qui est propre à la galerie. Palette et matières : interface commune (bleu nuit, laiton, rouge).
 */
@property --cl-tour { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ── La salle remplit l'écran ── */
.cl { background: #070b26; }
.cl-scene > .g3[data-plein] { position: absolute; inset: 0; width: auto; height: auto; min-height: 0; border: 0; border-radius: 0; box-shadow: none; touch-action: none; }
.cl .g3-ombre { background: linear-gradient(180deg, rgba(5, 8, 30, .82) 0, rgba(5, 8, 30, .5) calc(var(--acad-haut) + 24px), rgba(5, 8, 30, 0) calc(var(--acad-haut) + 120px)), linear-gradient(0deg, rgba(5, 8, 30, .82) 0, rgba(5, 8, 30, 0) 96px), radial-gradient(120% 90% at 50% 45%, transparent 62%, rgba(4, 6, 24, .5) 100%); }

/* Bandeau du haut : les enseignes à gauche, les jetons à droite ; le mur reste saisissable entre les deux. */
.cl .g3-haut { align-items: flex-start; justify-content: space-between; gap: 8px 12px; padding: calc(var(--acad-haut) + 2px) calc(var(--cl-feuille, 0px) + max(10px, env(safe-area-inset-right, 0px))) 22px calc(var(--acad-gauche, 0px) + 12px); pointer-events: none; }
.cl .g3-haut > * { pointer-events: auto; }
.cl .g3-haut .guide-help { margin-top: 10px; width: 44px; height: 44px; }
.cl .g3-pied { padding: 4px calc(var(--cl-feuille, 0px) + 12px) calc(9px + var(--acad-bas, 0px)) calc(var(--acad-gauche, 0px) + 12px); }
.cl .g3 .g3-fleche { top: calc(50% + (var(--g3-haut, 0px) - var(--g3-bas, 0px)) / 2); }
.cl .g3-fleche--g { left: calc(var(--acad-gauche, 0px) + 10px); }
.cl .g3-fleche--d { right: calc(var(--cl-feuille, 0px) + 10px); }
.cl .g3[data-variante] .g3-piece { cursor: pointer; }
.cl .g3-marque--nouveau { color: #fff; background: linear-gradient(180deg, #d8323a, #b3232b 55%, #8f1a22); border-color: #5a0d12; letter-spacing: .02em; }
.cl .g3[data-mode="repli"] .g3-pieces { padding-left: calc(var(--acad-gauche, 0px) + 62px); padding-right: calc(var(--cl-feuille, 0px) + 62px); }

/* ── Les deux ailes : enseignes de laiton suspendues à leurs chaînes ── */
.cl-ailes { display: flex; align-items: flex-start; gap: 10px 14px; pointer-events: none !important; }
.cl-aile { position: relative; display: grid; justify-items: center; pointer-events: none; }
.cl-aile > * { pointer-events: auto; }
.cl-enseigne { position: relative; display: block; margin: 0; padding: 10px 0 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transform-origin: 50% 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* Deux chaînes : maillons dessinés, accrochés à la corniche. */
.cl-enseigne::before, .cl-enseigne::after { content: ""; position: absolute; top: 0; width: 4px; height: 12px; border-radius: 2px; background: repeating-linear-gradient(180deg, #f6d77a 0 3px, #6e4d0e 3px 5px); box-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.cl-enseigne::before { left: 22px; } .cl-enseigne::after { right: 22px; }
.cl-enseigne-plaque {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px 4px 5px; white-space: nowrap;
  font: 700 1rem/1.1 var(--fi-titre); letter-spacing: .02em; color: var(--fi-or-clair); border-radius: 9px; border: 2px solid var(--fi-or-profond);
  background: var(--fi-grain), linear-gradient(180deg, #2a3674, #10173f); box-shadow: 0 5px 12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: transform var(--fi-vite) var(--fi-courbe), border-color var(--fi-vite);
}
.cl-enseigne-plaque > i { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; font-style: normal; color: var(--fi-or-clair); border: 1px solid var(--fi-or-profond); background: radial-gradient(circle at 35% 28%, #4a3a12, #241a06 72%); }
.cl-enseigne-plaque > i .fi-ico { width: 19px; height: 19px; display: block; }
.cl-enseigne-plaque > b { min-width: 24px; padding: 2px 7px; border-radius: 7px; text-align: center; font: 800 .8125rem/1.25 var(--fi-corps); color: var(--fi-encre); background: var(--fi-or); font-variant-numeric: tabular-nums; }
.cl-enseigne:hover .cl-enseigne-plaque { border-color: var(--fi-or-clair); }
.cl-enseigne:active .cl-enseigne-plaque { transform: translateY(2px); }
.cl-enseigne:focus-visible { outline: none; }
.cl-enseigne:focus-visible .cl-enseigne-plaque { outline: 3px solid var(--fi-focus); outline-offset: 3px; }
/* L'aile où l'on se trouve : plaque de laiton éclairée, médaillon rouge des bannières. */
.cl-enseigne[aria-selected="true"] { cursor: default; animation: cl-balance .9s var(--fi-courbe) both; }
.cl-enseigne[aria-selected="true"] .cl-enseigne-plaque { color: var(--fi-encre); border-color: #6e4d0e; text-shadow: 0 1px 0 rgba(255, 246, 207, .6);
  background: linear-gradient(180deg, #fff6d2 0%, #e9c463 40%, #c2932f 100%); box-shadow: 0 0 22px rgba(255, 214, 122, .5), 0 5px 12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 3px rgba(90, 60, 6, .45); }
.cl-enseigne[aria-selected="true"] .cl-enseigne-plaque > i { color: #fff; border-color: #5a0d12; background: radial-gradient(circle at 35% 28%, var(--fi-rouge), var(--fi-rouge-profond)); }
.cl-enseigne[aria-selected="true"] .cl-enseigne-plaque > b { color: var(--fi-or-clair); background: var(--fi-encre); }
@keyframes cl-balance { 0% { transform: rotate(-3.5deg); } 38% { transform: rotate(2deg); } 70% { transform: rotate(-.8deg); } 100% { transform: rotate(0); } }

/* Bulles : accrochées sous l'enseigne, elles ne poussent pas le mur vers le bas. */
.cl-bulles { position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%); z-index: 1; display: flex; gap: 6px; width: max-content; pointer-events: none; }
.cl-bulles:empty { display: none; }
.cl-bulles > * { pointer-events: auto; }
.cl-bulle.al-bulle { min-height: 32px; font-size: .78125rem; }
.cl-bulle .fe-rebours { font-variant-numeric: tabular-nums; }
.cl-bulles .cl-bulle:first-child::after { content: ""; position: absolute; left: 50%; top: -8px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: #fff6cf; border-left: 2px solid var(--fi-or-profond); border-top: 2px solid var(--fi-or-profond); border-top-left-radius: 3px; }
.cl-bulles .cl-bulle[data-genre="alerte"]:first-child::after { background: #d8323a; border-color: #5a0d12; }
.cl-bulles .cl-bulle[data-genre="temps"]:first-child::after, .cl-bulles .cl-bulle[data-genre="calme"]:first-child::after { background: #2c3870; border-color: var(--fi-or); }
.cl-bulle[data-genre="action"], .cl-bulle[data-genre="alerte"] { animation: al-bulle 2.6s ease-in-out infinite; }
/* L'aile de gauche aligne ses bulles sur son bord : elles ne passent jamais sous le rail. */
.cl-aile:first-child > .cl-bulles { left: 0; transform: none; }
.cl-aile:first-child > .cl-bulles .cl-bulle:first-child::after { left: 38px; }

/* ── Jetons posés sur la salle ── */
.cl-outils { display: flex; align-items: center; gap: 6px; margin: 10px 0 0 auto; pointer-events: none !important; }
.cl-outils > * { pointer-events: auto; flex: none; }
.cl-jeton.fe-acad-jeton { position: relative; padding-right: 12px; }
.cl-jeton > svg { width: 32px; height: 32px; padding: 6px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #4a3a12, #241a06 72%); color: var(--fi-or-clair); border: 1px solid var(--fi-or-profond); }
.cl-jeton .fe-acad-nom { display: inline; }
.cl-jeton.actif > svg { background: radial-gradient(circle at 35% 28%, var(--fi-rouge), var(--fi-rouge-profond)); color: #fff; }
.cl-jeton.appel::after { content: ""; position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--fi-rouge); border: 2px solid #fff6cf; }
.cl-jeton:focus-visible { outline: 3px solid var(--fi-focus); outline-offset: 2px; }
.cl-compte { padding: 1px 6px; border-radius: 6px; font: 800 .75rem/1.3 var(--fi-corps); color: var(--fi-encre); background: var(--fi-or); font-variant-numeric: tabular-nums; }
.cl-outils .fe-info { width: 44px; height: 44px; }
.cl-resume { padding: 3px 6px 3px 12px; border-radius: 16px; background: rgba(10, 16, 54, .88); border: 1px solid var(--fi-or-profond); }
.cl-resume[hidden] { display: none; }
.cl-tout { position: relative; margin: 0 0 0 4px; padding: 4px 10px; border: 0; border-radius: 12px; cursor: pointer; font: 700 .8125rem/1.2 var(--fi-corps); color: var(--fi-encre); background: linear-gradient(180deg, #fff3c4, #e3b84f); }
.cl-tout::before { content: ""; position: absolute; inset: -9px -4px; }
.cl-tout:focus-visible { outline: 3px solid var(--fi-focus); outline-offset: 2px; }

/* ── Feuilles : à droite dès que la largeur le permet (le rail et le paysage du téléphone sont dans paysage.css) ── */
@media (min-width: 900px) {
  .cl .fe-feuille-hote { place-items: stretch end; grid-template-rows: minmax(0, 1fr); padding-top: var(--acad-haut); }
  .cl .fe-feuille { width: min(430px, 36%); height: auto; min-height: 0; max-height: none; border-bottom-width: 0; border-right-width: 0; border-image-width: 16px 0 0 16px; animation-name: paysage-glisse; }
  .cl .fe-feuille--grande { width: min(1180px, calc(100% - 24px)); justify-self: center; border-right-width: 16px; border-image-width: 16px 16px 0 16px; animation-name: fi-monte; }
  .cl .fe-feuille .fi-tiroir-poignee { display: none; }
  .cl .fe-feuille .fi-panneau-titre { justify-content: space-between; }
}
.cl .fe-feuille .fi-panneau-titre > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.cl .fe-feuille-voile[hidden] { display: none; }
.cl .fe-feuille-hote .fe-feuille.fe-feuille--grande { align-self: end; max-height: 100%; }
/* La feuille latérale laisse la salle, ses enseignes et ses jetons en vue. */
@media (min-width: 900px), (orientation: landscape) and (max-height: 540px) { .cl.cl--fiche .fe-acad-hud { opacity: 1; visibility: visible; } }

/* Feuille ouverte sur un écran moyen : les jetons gardent leur médaillon, leur nom se retire (il reste lu et en info-bulle). */
@media (min-width: 900px) and (max-width: 1560px) {
  .cl.cl--fiche .cl-jeton .fe-acad-nom { display: none; }
  .cl.cl--fiche .cl-jeton.fe-acad-jeton { padding: 4px 5px; border-radius: 24px; }
  .cl.cl--fiche .cl-jeton .cl-compte { position: absolute; right: -4px; bottom: -3px; font-size: .625rem; padding: 0 4px; border: 1px solid #6e4d0e; }
}

/* Fiche d'un combattant, d'une carte Effet, du tri. */
.cl-fiche { display: grid; gap: 10px; min-width: 0; }
.cl-fiche-tete { display: grid; grid-template-columns: minmax(92px, 38%) minmax(0, 1fr); gap: 14px; align-items: center; }
.cl-fiche-identite { display: grid; gap: 7px; justify-items: start; min-width: 0; }
.cl-fiche-identite p { margin: 0; }
.cl-zoom.fe-zoom { border-radius: 13px; }
.cl-zoom:focus-visible { outline: 3px solid var(--fi-focus); outline-offset: 3px; }
.cl-entrainement { margin: 0; color: var(--fi-texte); }
.cl-entrainement b { color: var(--fi-or-clair); }
.cl-fiche--effet .fe-effet { grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); }
.cl-fiche--effet > p { margin: 0; }
.cl-tri, .cl-escouades, .cl-chef { display: grid; gap: 10px; min-width: 0; }
.cl-tri .fe-recherche { max-width: none; }
/* Les escouades arrivent avec leur propre panneau : dans la feuille, il se fond (un seul cadre, un seul titre). */
.cl-escouades > .fi-panneau { margin: 0; padding: 0; border: 0; border-image: none; background: none; box-shadow: none; }
.cl-escouades > .fi-panneau::before, .cl-escouades > .fi-panneau::after { content: none; }
.cl-escouades > .fi-panneau > .fi-panneau-titre { min-height: 0; margin: 0 0 4px; padding: 0; border: 0; background: none; box-shadow: none; justify-content: flex-end; }
.cl-escouades > .fi-panneau > .fi-panneau-titre::before, .cl-escouades > .fi-panneau > .fi-panneau-titre::after { content: none; }
.cl-escouades > .fi-panneau > .fi-panneau-titre > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cl-escouades > .fi-panneau > .fi-panneau-corps { padding: 0; }
.cl-tri .fe-sous-titre:first-of-type { margin-top: 4px; padding-top: 0; border-top: 0; }

/* ── Cadre de rareté animé : un éclat de lumière court sur le liseré (un, deux ou trois éclats selon la rareté) ── */
.cl-cadre { position: relative; display: block; padding: 3px; border-radius: 13px; --cl-p: 360deg; --cl-duree: 9s; --cl-halo: 8px;
  background: repeating-conic-gradient(from var(--cl-tour), color-mix(in srgb, var(--rc, #e3b84f) 62%, #0c1233) 0 calc(var(--cl-p) * .7), #fff calc(var(--cl-p) * .84), var(--rc, #e3b84f) calc(var(--cl-p) * .92), color-mix(in srgb, var(--rc, #e3b84f) 62%, #0c1233) var(--cl-p));
  box-shadow: 0 0 var(--cl-halo) color-mix(in srgb, var(--rc, #e3b84f) 70%, transparent), 0 8px 14px rgba(0, 0, 0, .55);
  animation: cl-tour var(--cl-duree) linear infinite; }
.cl-cadre > .fe-carte { display: block; box-shadow: none; }
.cl-cadre[data-rarete="COMMON"] { --cl-duree: 14s; --cl-halo: 6px; }
.cl-cadre[data-rarete="SPECIAL"] { --cl-duree: 9s; --cl-halo: 9px; }
.cl-cadre[data-rarete="RARE"] { --cl-duree: 6.5s; --cl-halo: 13px; }
.cl-cadre[data-rarete="ULTRA_RARE"] { --cl-p: 180deg; --cl-duree: 6s; --cl-halo: 18px; }
.cl-cadre[data-rarete="MEGA_RARE"] { --cl-p: 120deg; --cl-duree: 5s; --cl-halo: 24px; animation: cl-tour var(--cl-duree) linear infinite, cl-halo 2.4s ease-in-out infinite; }
.cl-cadre[data-rarete="CHEF"] { --cl-p: 180deg; --cl-duree: 8s; --cl-halo: 16px; }
.cl-cadre[data-rarete="EFFET"] { --cl-duree: 7.5s; --cl-halo: 12px; }
@keyframes cl-tour { to { --cl-tour: 360deg; } }
@keyframes cl-halo { 50% { box-shadow: 0 0 calc(var(--cl-halo) * 1.7) color-mix(in srgb, var(--rc) 90%, transparent), 0 8px 14px rgba(0, 0, 0, .55); } }

/* ── Révélation d'une carte obtenue ── */
.cl-revelation { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; overflow: hidden; padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(70% 80% at 50% 50%, rgba(18, 28, 84, .9), rgba(4, 7, 22, .96) 72%); animation: fi-fondu .25s both; cursor: pointer; }
.cl-revelation:focus { outline: none; }
.cl-revelation[data-etat="finie"] { cursor: default; }
.cl-rev-rayons { position: absolute; left: 50%; top: 50%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc, #e3b84f) 24%, transparent) 0 5deg, transparent 9deg 20deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, .5) 30%, transparent 62%); mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, .5) 30%, transparent 62%);
  transition: opacity .5s ease; }
.cl-revelation[data-etat="finie"] .cl-rev-rayons { opacity: 1; animation: cl-rayons 48s linear infinite; }
@keyframes cl-rayons { to { transform: rotate(360deg); } }
.cl-rev-scene { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 44px); max-width: 100%; }
.cl-rev-carte { flex: none; height: min(64vh, 440px); aspect-ratio: 86 / 117; perspective: 1100px; }
.cl-rev-tourne { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: cl-rev-tourne 1.25s cubic-bezier(.2, .8, .2, 1) both; }
.cl-rev-recto, .cl-rev-verso { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cl-rev-verso { transform: rotateY(180deg); display: grid; }
.cl-rev-verso .fe-dos { width: 100%; height: 100%; }
.cl-rev-recto.cl-cadre { padding: 4px; border-radius: 15px; }
.cl-rev-recto > .fe-carte { height: 100%; width: 100%; padding: 0; }
.cl-rev-recto > .fe-carte > img, .cl-rev-recto > .fe-carte picture, .cl-rev-recto > .fe-carte .fe-portrait, .cl-rev-recto > .fe-carte .fe-carte-sans { width: 100%; height: 100%; border-radius: 11px; }
@keyframes cl-rev-tourne {
  0% { transform: translateY(70vh) rotateY(180deg) scale(.7); }
  42% { transform: translateY(0) rotateY(180deg) scale(1); }
  56% { transform: translateY(-2%) rotateY(180deg) scale(1.05); }
  100% { transform: translateY(0) rotateY(0deg) scale(1); }
}
.cl-revelation[data-etat="finie"] .cl-rev-tourne { animation: none; transform: none; }
/* L'éclair du retournement : la carte se montre dans la lumière de sa rareté. */
.cl-revelation::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(42% 60% at 50% 50%, #fff, color-mix(in srgb, var(--rc, #e3b84f) 70%, transparent) 46%, transparent 76%); animation: cl-rev-eclair 1.5s ease-out both; }
@keyframes cl-rev-eclair { 0%, 66% { opacity: 0; } 76% { opacity: .85; } 100% { opacity: 0; } }
.cl-revelation[data-etat="finie"]::after { animation: none; }
.cl-rev-texte { display: grid; gap: 8px; justify-items: start; min-width: 0; max-width: min(46vw, 400px); opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity .35s ease, transform .35s var(--fi-courbe), visibility 0s .35s; }
.cl-revelation[data-etat="finie"] .cl-rev-texte { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.cl-rev-sur { margin: 0; padding: 3px 12px; border-radius: 6px; font: 800 .875rem/1.3 var(--fi-corps); color: #fff; background: linear-gradient(180deg, #d8323a, #8f1a22); border: 1px solid #5a0d12; }
.cl-revelation .cl-rev-titre { margin: 0; font: 700 clamp(1.6rem, 5.4vh + .6rem, 2.9rem)/1.05 var(--fi-titre); letter-spacing: .01em; text-transform: none; color: var(--fi-or-clair); text-shadow: 0 2px 0 #3d2a05, 0 0 24px color-mix(in srgb, var(--rc, #e3b84f) 60%, transparent); overflow-wrap: anywhere; }
.cl-rev-detail { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0; font-size: 1rem; }
.cl-rev-note { margin: 0; font-size: 1rem; line-height: 1.4; color: var(--fi-texte); }
.cl-rev-actions { margin: 6px 0 0; justify-content: flex-start; }
.cl-rev-passer { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: max(10px, env(safe-area-inset-top, 0px)); min-height: 44px; }
.cl-revelation[data-etat="finie"] .cl-rev-passer { display: none; }
@media (max-aspect-ratio: 1 / 1) {
  .cl-rev-scene { flex-direction: column; }
  .cl-rev-carte { height: min(46vh, 440px); }
  .cl-rev-texte { justify-items: center; text-align: center; max-width: 100%; transform: translateY(14px); }
  .cl-rev-actions { justify-content: center; }
}

/* ── Écran étroit resté vertical : les jetons passent sous les enseignes ── */
@media (max-width: 699px) and (orientation: portrait) {
  .cl .g3-haut { flex-wrap: wrap; row-gap: 8px; }
  .cl-ailes { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cl-aile { min-width: 0; gap: 8px; }
  .cl-enseigne, .cl-enseigne-plaque { width: 100%; }
  .cl-enseigne-plaque { gap: 4px; padding-inline: 4px; font-size: .875rem; white-space: normal; }
  .cl-enseigne-plaque > i { width: 24px; height: 24px; }
  .cl-enseigne-plaque > b { margin-inline-start: auto; flex: none; }
  .cl-ailes .cl-aile > .cl-bulles {
    position: static;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    transform: none;
  }
  .cl-bulle.al-bulle { min-width: 40px; min-height: 40px; max-width: 100%; white-space: normal; }
  .cl-outils { margin: 0; flex-wrap: wrap; }
  .cl-jeton .fe-acad-nom { display: none; }
  .cl-jeton.fe-acad-jeton { padding: 4px 5px; border-radius: 24px; }
}

/* ── Téléphone tenu à l'horizontale : la hauteur est rare ── */
@media (orientation: landscape) and (max-height: 540px) {
  .cl .g3-haut { padding-top: calc(var(--acad-haut) + 0px); padding-bottom: 14px; gap: 6px 8px; }
  .cl-enseigne { padding-top: 7px; }
  .cl-enseigne::before, .cl-enseigne::after { height: 9px; }
  .cl-enseigne-plaque { min-height: 40px; gap: 6px; padding: 3px 8px 3px 4px; font-size: .875rem; }
  .cl-enseigne-plaque > i { width: 28px; height: 28px; } .cl-enseigne-plaque > i .fi-ico { width: 17px; height: 17px; }
  .cl-enseigne::before { left: 16px; } .cl-enseigne::after { right: 16px; }
  .cl-enseigne { position: relative; } .cl-enseigne > .cl-enseigne-plaque::before { content: ""; position: absolute; inset: -4px 0; } /* cible tactile de 44 px */
  .cl-outils { margin-top: 7px; gap: 5px; }
  .cl-jeton .fe-acad-nom { display: none; }
  .cl-jeton.fe-acad-jeton { min-height: 44px; padding: 4px 5px; border-radius: 24px; }
  .cl-jeton .cl-compte { position: absolute; right: -4px; bottom: -3px; font-size: .625rem; padding: 0 4px; border: 1px solid #6e4d0e; }
  .cl .g3-haut .guide-help { margin-top: 7px; }
  .cl-bulles { top: calc(100% + 7px); }
  .cl-bulle.al-bulle { min-height: 30px; font-size: .75rem; padding: 3px 10px 3px 4px; }
  /* Feuille ouverte : la salle est étroite, les jetons se retirent (les enseignes restent). */
  .cl.cl--fiche .cl-outils, .cl.cl--fiche .g3-haut .guide-help { display: none; }
  .cl.cl--fiche .cl-aile:not(:first-child) > .cl-bulles { display: none; }
  .cl .g3-plaque { min-height: 24px; font-size: .8125rem; padding: 2px 16px; }
  .cl .g3-pied { gap: 3px; padding-bottom: 5px; }
  .cl-fiche { gap: 8px; }
  .cl-fiche-tete { grid-template-columns: minmax(84px, 34%) minmax(0, 1fr); gap: 10px; }
  .cl-revelation .cl-rev-titre { font-size: clamp(1.3rem, 7vh, 2.2rem); }
  .cl-rev-note { font-size: .9375rem; }
}
/* Très petite hauteur (barre du navigateur, 645 × 250) : plus de plaques sous les cartes, la plaque du bas s'efface. */
@media (orientation: landscape) and (max-height: 300px) {
  .cl .g3-cartel { display: none; }
  .cl .g3-plaque { display: none; }
  .cl .g3-haut { padding-bottom: 8px; }
  .cl-enseigne-plaque { font-size: .8125rem; }
  .cl-bulles .cl-bulle + .cl-bulle { display: none; }
  .cl-aile:has(.cl-enseigne[aria-selected="false"]) > .cl-bulles { display: none; } /* une seule bulle : celle de l'aile où l'on est */
  .cl.cl--fiche .cl-bulles { display: none; }
  .cl.cl--fiche .cl-enseigne-plaque > b { display: none; }
  .cl-rev-carte { height: 78vh; }
  .cl-enseigne-plaque { padding-left: 8px; }
  .cl-enseigne-plaque > i { display: none; }
  .cl-enseigne[aria-selected="false"] .cl-enseigne-plaque > b { display: none; }
  .cl-ailes { gap: 6px; } .cl-outils { gap: 3px; }
  .cl .g3-haut { gap: 4px; padding-left: calc(var(--acad-gauche, 0px) + 8px); padding-right: max(6px, env(safe-area-inset-right, 0px)); }
  .cl .g3-haut .guide-help { margin-left: 0; }
  .cl-rev-note { display: none; }
  .cl-rev-texte { gap: 5px; }
}

/* ── Mouvement réduit : rien ne tourne ni ne se balance ── */
.fe-calme .cl-cadre, .fe-calme .cl-enseigne[aria-selected="true"], .fe-calme .cl-bulle { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .cl-cadre, .cl-enseigne[aria-selected="true"], .cl-bulle, .cl-revelation, .cl-revelation::after, .cl-rev-tourne, .cl-revelation[data-etat="finie"] .cl-rev-rayons { animation: none !important; }
  .cl-rev-texte { transition: none; }
}
