/*
 * Cardkun — écran de jeu « Arcade vive » (index.html).
 * Une scène fixe de 1280 × 720 px (#ecran), mise à l'échelle de la fenêtre par js/ui.js (ui.ajusterEchelle) ;
 * les tailles ci-dessous sont donc des pixels de la scène. Mise en page reprise de la maquette de
 * docs/style/planche.css ; composants partagés (fenêtres, boutons, cartes .tcg…) : css/theme.css.
 */

/* ------------------------------------------------------------------ cadre et mise à l'échelle */

html { height: 100%; overflow: hidden; }

body.jeu {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #05040c; /* bandes sombres autour de la scène */
  /* tout l'écran de jeu en police pixel, à 12 px (grille de Silkscreen) ; la planche et l'atelier gardent la police ronde */
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
}
/* toasts et infobulles du thème partagé (14 et 13 px ailleurs) */
.jeu .toast, .jeu .infobulle { font-size: var(--tp-s); }

.cadre-jeu {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* le panneau de debug prend sa place à droite : la scène se réduit pour rester entièrement visible */
body.jeu.debug-ouvert .cadre-jeu { right: var(--largeur-debug); } /* classe posée par js/debug.js */
body.jeu { --largeur-debug: 380px; }

.ecran {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 720px;
  transform-origin: 0 0;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 282px;
  grid-template-rows: 66px minmax(0, 1fr) 62px;
  grid-template-areas: 'entete entete entete' 'gauche scene droite' 'dock dock dock';
  gap: 10px;
  padding: 0 12px 10px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, #2b1d66 0%, transparent 70%),
    linear-gradient(180deg, #120c2a, #0b0819);
  box-shadow: 0 0 0 var(--px) var(--trait), 0 0 60px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------ textes communs */

.etiquette.petit, .petit { font-size: 12px; }
.discret { color: var(--texte-doux); }
.erreur { color: #ff6b78; }
.nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chrono { font-family: var(--police-pixel); font-size: var(--tp-s); color: var(--violet); font-variant-numeric: tabular-nums; }
.cote { font-family: var(--police-pixel); font-size: var(--tp-s); }
.vide-fenetre { margin: 2px 0 8px; font-size: var(--tp-s); color: var(--texte-doux); line-height: 1.3; }

/* bouton : état « actif » (vitesse de debug choisie) */
.btn.actif { --c: var(--cyan); --c-ombre: #0b8fb0; --c-texte: var(--trait); }

/* ------------------------------------------------------------------ en-tête */

.ecran__entete {
  grid-area: entete;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 -12px;
  padding: 0 14px 0 18px;
  background: linear-gradient(180deg, #2a1f5a, #1a1340);
  box-shadow: 0 var(--px) 0 0 var(--trait), 0 6px 0 0 rgba(0, 0, 0, 0.35);
  min-width: 0;
}

.ecran__entete .logo { font-size: var(--tp-l); flex: none; }
.ecran__entete .bloc { display: flex; flex-direction: column; line-height: 1.05; flex: none; }
.ecran__entete .pieces { gap: 6px; }
.ecran__entete .pieces .montant { min-width: 2ch; }
.ecran__entete .total { font-family: var(--police-pixel); font-size: var(--tp-m); color: var(--texte); }
.ecran__entete .btn { flex: none; margin-top: 0; margin-bottom: calc(var(--px) * 2); }

.ecran__entete .pieces.long { font-size: var(--tp-l); }

/* portefeuille (phase idle) : « 85 / 100 », une fine jauge dessous ; plein (≥ 98 %), il rougeoie */
.ecran__entete .pieces .plafond { font-size: var(--tp-s); color: var(--texte-doux); align-self: flex-end; margin-bottom: 4px; }
.jauge-portefeuille { display: block; height: 4px; margin-top: 2px; background: var(--trait); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.jauge-portefeuille > i { display: block; height: 100%; width: var(--valeur, 0%); background: var(--jaune); }
.bloc-pieces.plein .jauge-portefeuille > i { background: #ff4d5e; box-shadow: 0 0 6px #ff4d5e; }
.bloc-pieces.plein .plafond { color: #ff6b78; }
/* bac à doublons : « 12/15 », rouge quand il est presque plein */
.bloc-bac .valeur { font-family: var(--police-pixel); font-size: var(--tp-m); color: var(--texte); }
.bloc-bac.presque-plein .valeur { color: #ff4d5e; text-shadow: 0 0 6px rgba(255, 77, 94, 0.6); }
.alerte-vitesse { padding: 3px 8px; background: var(--orange); box-shadow: 0 0 0 var(--px) var(--trait), 0 0 12px var(--orange); }
.alerte-vitesse .etiquette { color: var(--trait); }
.alerte-vitesse .valeur { font-family: var(--police-pixel); font-size: var(--tp-m); font-weight: 700; color: var(--trait); }

/* bandeau des événements de marché : défile quand il y en a (pause au survol), calme sinon */
.bandeau-evenements { flex: 1; min-width: 130px; }
.bandeau-evenements .evenement b { font-weight: 700; }
.bandeau-evenements .hausse, .bandeau-evenements .baisse { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bandeau-evenements .chrono { color: inherit; }
.bandeau-evenements .separateur { font-style: normal; padding: 0 18px; }
.bandeau-evenements:hover > span { animation-play-state: paused; }
.bandeau-evenements.calme {
  --c: var(--panneau-creux);
  color: var(--texte-doux);
  box-shadow: inset 0 0 0 2px var(--panneau-haut);
}
.bandeau-evenements.calme > span { display: block; animation: none; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ colonnes */

.ecran__gauche, .ecran__droite {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}
.ecran__gauche { grid-area: gauche; }
.ecran__droite { grid-area: droite; }
.ecran__gauche .fenetre, .ecran__droite .fenetre { margin-top: 14px; padding: 20px 12px 10px; }
/* lien d'une fenêtre vers son panneau complet, sur la ligne du titre */
.fenetre__lien.btn { position: absolute; top: -10px; right: 8px; z-index: 1; margin: 0; padding: 3px 8px 4px; }

/* boutique */
.ligne-booster {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas: 'sprite nom nom' 'sprite prix bouton';
  align-items: center;
  gap: 0 8px;
  padding: 3px 0;
}
.ligne-booster + .ligne-booster { border-top: 2px solid rgba(255, 255, 255, 0.06); }
.ligne-booster > .booster-sprite { grid-area: sprite; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45)); }
.ligne-booster .nom {
  grid-area: nom;
  min-width: 0;
  font-family: var(--police-pixel);
  font-weight: 500;
  font-size: var(--tp-s);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ligne-booster .prix { grid-area: prix; display: flex; align-items: center; gap: 4px; font-family: var(--police-pixel); color: var(--jaune); font-size: var(--tp-s); }
.ligne-booster .btn { grid-area: bouton; margin-top: 2px; }
/* commande du Livreur (phase idle, étape C) : une case par booster débloqué, à droite du nom */
.ligne-booster { position: relative; }
.ligne-booster .commande { position: absolute; left: 0; top: 3px; z-index: 1; display: flex; cursor: pointer; opacity: 0.6; }
.ligne-booster .commande.cochee { opacity: 1; }
.ligne-booster .commande input { margin: 0; width: 12px; height: 12px; accent-color: var(--jaune); cursor: pointer; }
.ligne-booster .progression { grid-column: 2 / -1; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 0; }
.ligne-booster .progression .jauge { flex: 1; height: 12px; }
.ligne-booster.verrouille { opacity: 0.6; }
.ligne-booster.verrouille .booster-sprite { filter: grayscale(1) brightness(0.6); }
/* Tirelire cochon (booster à épargne) : jauge « 62 % pleine » sous le nom ; --plein (0 à 1) : le cochon s'alourdit, s'écrase
   un peu sur sa ligne ; pleine à craquer (classe `pleine`), il tangue (rien en animations réduites) */
.ligne-booster.a-epargne { grid-template-areas: 'sprite nom nom' 'sprite epargne epargne' 'sprite prix bouton'; }
.ligne-booster .epargne-booster { grid-area: epargne; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 1px 0 2px; }
.jauge-epargne { display: block; flex: 1; height: 6px; background: var(--trait); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.jauge-epargne > i { display: block; height: 100%; width: var(--valeur, 0%); background: #ffb3bd; }
.ligne-booster.pleine .jauge-epargne > i { background: var(--jaune); box-shadow: 0 0 6px var(--jaune); }
.epargne-texte { font-family: var(--police-pixel); font-size: 10px; text-transform: uppercase; color: #ffb3bd; white-space: nowrap; }
.ligne-booster.pleine .epargne-texte { color: var(--jaune); }
.ligne-booster.a-epargne > .booster-sprite {
  transform-origin: 50% 100%;
  scale: calc(1 + 0.12 * var(--plein, 0)) calc(1 - 0.08 * var(--plein, 0));
  translate: 0 calc(2px * var(--plein, 0));
}
.ligne-booster.pleine > .booster-sprite { animation: tirelire-lourde 2.4s steps(4) infinite; }
@keyframes tirelire-lourde {
  0%, 70%, 100% { rotate: 0deg; }
  78% { rotate: -5deg; }
  86% { rotate: 4deg; }
  94% { rotate: -2deg; }
}

/* équipe : employés (main, nom, statut et salaire, Pause / Reprendre) */
.ligne-auto { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--tp-s); line-height: 1.15; min-height: 34px; }
.ligne-auto + .ligne-auto { border-top: 2px solid rgba(255, 255, 255, 0.06); }
.ligne-auto__texte { min-width: 0; flex: 1; }
.ligne-employe { gap: 6px; }
.ligne-employe > .main-sprite { flex: none; width: 24px; height: auto; margin: 1px 0; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.45)); }
.ligne-employe.non-achete > .main-sprite { filter: grayscale(1) brightness(0.6); }
.ligne-employe.pause > .main-sprite { filter: grayscale(0.8) brightness(0.7); }
.ligne-auto.ligne-employe .nom { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; } /* le salaire passe à la ligne s'il ne tient pas */
.ligne-employe .salaire { margin-left: auto; white-space: nowrap; color: #ff9aa5; font-size: var(--tp-s); font-variant-numeric: tabular-nums; }
.ligne-employe .salaire.discret { color: var(--texte-doux); text-decoration: line-through; }
/* Vendeur réglable (demande de l'auteur) : sa ligne et sa main s'ouvrent sur ses réglages */
.ligne-employe.cliquable { cursor: pointer; }
.ligne-employe.cliquable:hover, .ligne-employe.cliquable:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.main-employe.main-vendeur.repos { cursor: pointer; }
.vendeur-entete { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.vendeur-entete > div { flex: 1; }
.vendeur-apercu { margin: 6px 0 12px; }
.reglages-vendeur { display: grid; gap: 10px; max-width: 640px; }
.reglage-vendeur { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 4px 12px; }
.reglage-vendeur__titre { font-family: var(--police-pixel); font-size: var(--tp-s); color: var(--jaune); }
.reglage-vendeur__aide { grid-column: 2; }
.reglage-vendeur__cases { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ligne-employe .nombre-employes { color: var(--jaune); font-family: var(--police-pixel); font-size: var(--tp-s); }
.equipe-liste { min-height: 0; overflow-y: auto; margin-right: -6px; padding-right: 6px; }
.ligne-auto .nom { display: block; }
.ligne-auto .statut { display: block; color: var(--texte-doux); font-size: var(--tp-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-auto .btn { flex: none; margin-top: 2px; margin-bottom: calc(var(--px) * 2); }
.ligne-auto.non-achete .nom { color: var(--texte-doux); }

/* marché (résumé) */
.offre-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 6px;
  align-items: center;
  margin: 0 0 6px;
  padding: 4px 6px;
  font-size: var(--tp-s);
  background: rgba(255, 62, 165, 0.12);
  box-shadow: inset 2px 0 0 var(--rose);
}
.offre-mini .etiquette { color: var(--rose); }
.offre-mini .nom { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offre-mini .hausse { font-family: var(--police-pixel); font-size: var(--tp-s); }
.ligne-marche { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; gap: 2px 6px; align-items: center; padding: 3px 0; font-size: var(--tp-s); }
.ligne-marche + .ligne-marche { border-top: 2px solid rgba(255, 255, 255, 0.06); }
.ligne-marche .nom { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-marche .fleche { text-align: center; }
.ligne-marche .courbe { grid-column: 1 / -1; overflow: hidden; font-size: 13px; letter-spacing: -1px; }

/* expertise (résumé) */
.emplacement-expertise { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; font-size: var(--tp-s); padding: 3px 0 5px; }
.emplacement-expertise .nom { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emplacement-expertise .jauge { grid-column: 1 / -1; height: 12px; }
.fenetre-expertise > .etiquette { margin-top: 4px; }
/* modules (résumé, colonne droite) : une ligne cliquable par module installé */
.resume-module { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; font-size: var(--tp-s); padding: 3px 4px 5px; margin: 0 -4px; cursor: pointer; }
.resume-module + .resume-module { border-top: 2px solid rgba(255, 255, 255, 0.06); }
.resume-module:hover, .resume-module:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.resume-module .nom { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-module .valeur { color: var(--jaune); white-space: nowrap; font-variant-numeric: tabular-nums; }
.resume-module.pret .valeur { color: var(--vert); }
.resume-module .detail { grid-column: 1 / -1; min-width: 0; color: var(--texte-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-module .jauge { grid-column: 1 / -1; height: 12px; }
.dernier-resultat { margin-top: 6px; font-size: var(--tp-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* mini-courbe en blocs ▁▂▃▄▅▆▇█ : une police à chasse fixe qui les dessine (les autres les remplacent par des glyphes larges) */
.courbe {
  font-family: 'Cascadia Mono', 'Consolas', 'DejaVu Sans Mono', Menlo, monospace;
  font-size: 15px;
  line-height: 1;
  font-weight: normal;
  color: var(--texte-doux);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ la table (scène centrale) */

/* La table de jeu : un tapis où les boosters et les cartes sont posés en position absolue (positions tirées par js/ui.js ;
   géométrie : TABLE dans js/ui.js, à garder en accord avec ces règles). Calques, de bas en haut : effets (rayons d'une
   légendaire), titre discret, cartes, boosters fermés, boutons du coin. */
.ecran__scene {
  grid-area: scene;
  position: relative;
  min-height: 0;
  min-width: 0;
  border-radius: 6px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.018) 0 6px, transparent 6px 12px),
    radial-gradient(ellipse 85% 75% at 50% 45%, rgba(54, 36, 128, 0.55), rgba(12, 9, 28, 0.55) 80%);
  box-shadow: inset 0 0 0 3px rgba(41, 230, 255, 0.1), inset 0 0 50px rgba(0, 0, 0, 0.45);
}

.scene__projecteur {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 50% 48%, rgba(41, 230, 255, 0.12), transparent 70%);
  pointer-events: none;
}

/* titre de la table : retiré (choix de l'auteur), la zone reste vide */
.scene__titre { position: absolute; top: 6px; left: 10px; pointer-events: none; }

/* cartes et boosters : deux calques qui couvrent la table sans capter les clics (seuls leurs objets les captent) */
.table__cartes, .table__boosters { position: absolute; inset: 0; pointer-events: none; }
.table__cartes { z-index: 1; }
.table__boosters { z-index: 2; }
.table__cartes > .emplacement, .table__boosters > .booster-table { pointer-events: auto; }

/* boutons « Ranger » et « Doublons » (coin inférieur droit, TABLE.coin) */
.scene__actions { position: absolute; right: 8px; bottom: 4px; z-index: 3; display: flex; gap: 8px; align-items: center; }
.scene__actions .btn { margin-bottom: calc(var(--px) * 2); }

/* emplacement : une carte .tcg et, dessous, ce que l'interface affiche (ui.emplacementTcg : table, inventaire, albums…) */
.emplacement { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.infos-carte { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.sous-carte { flex-wrap: wrap; row-gap: 0; column-gap: 8px; margin-top: 2px; }
.sous-carte > span { white-space: nowrap; }
.carte-statut { font-size: var(--tp-s); line-height: 1.2; color: var(--texte-doux); text-align: center; }
.carte-album { font-size: var(--tp-s); font-weight: 600; line-height: 1.2; color: var(--cyan); text-align: center; }
.carte-actions { display: flex; flex-wrap: wrap; justify-content: center; }
.emplacement .carte-actions .btn { margin: 1px 1px calc(var(--px) * 2 + 1px); }
.emplacement .carte-actions .btn.carre { padding: 3px 3px 2px; }

/* carte nouvelle pour l'album : liseré cyan */
.emplacement.nouvelle .tcg.revelee .tcg__recto { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* mode compact (table, grille de l'inventaire) : peu d'infos dessous, actions au survol ou au focus clavier */
.emplacement.compact .infos-carte { min-height: 18px; }
.emplacement.compact .carte-statut, .emplacement.compact .carte-album { max-width: 100%; font-size: var(--tp-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emplacement.compact .carte-album { display: none; }
.emplacement.compact .carte-actions {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  width: max-content;
  transform: translateX(-50%);
  padding: 2px 2px 0;
  background: rgba(7, 5, 15, 0.85);
  box-shadow: 0 0 0 2px var(--trait);
  opacity: 0;
  pointer-events: none;
}
/* (au focus clavier seulement : une carte cliquée à la souris, qui garde le focus, ne garde pas ses actions affichées) */
.emplacement.compact:hover .carte-actions, .emplacement.compact:has(:focus-visible) .carte-actions { opacity: 1; pointer-events: auto; }

/* carte posée sur la table : position (left, top) et rotation (rotate) en style en ligne ; elle tourne autour de son
   centre (--lc : largeur de la carte) ; survolée, elle passe au premier plan (des cartes : les boosters restent au-dessus) */
.carte-table { position: absolute; transform-origin: 50% calc(var(--lc) * 0.7); }
.carte-table:hover, .carte-table:has(:focus-visible) { z-index: 5; }
.carte-table.cachee .infos-carte { display: none; } /* face cachée : rien dessous (et rien qui capte les clics) */
.carte-table .infos-carte { min-height: 0; }
.carte-table .sous-carte { flex-wrap: nowrap; gap: 6px; margin-top: 0; font-size: 12px; text-shadow: 0 2px 0 var(--trait); }
.carte-table .marque-nouvelle { display: inline-flex; filter: drop-shadow(0 0 4px var(--cyan)); }
.carte-table .carte-statut { color: var(--violet); text-shadow: 0 2px 0 var(--trait); }
.carte-table.bloquee .tcg { filter: saturate(0.55) brightness(0.85); }
/* actions au survol en haut de la carte : une carte qu'on vient de retourner (le pointeur est encore dessus) garde son nom visible */
.emplacement.carte-table .carte-actions { bottom: auto; top: 4px; }
/* carte face cachée : cliquable, se soulève au survol */
.carte-table .tcg:not(.revelee) { cursor: pointer; }
.carte-table .tcg:not(.revelee):hover .tcg__pivot, .carte-table .tcg:not(.revelee):focus-visible .tcg__pivot { transform: translateY(-6px) rotate(-2deg); }
.carte-table .tcg:focus-visible { outline: 3px solid var(--jaune); outline-offset: 4px; }

/* booster fermé (TABLE.booster : 100 × 140 px, jauge de vie de 18 px au-dessus) : jauge, ombre, corps (sprite, fissures).
   Seul le corps s'anime (atterrissage, coups : Game.effets) ; la zone cliquable reste immobile. Sur une table chargée
   (ui.vue.table.taillesBoosters), le style en ligne pose --bl / --bh : 80 × 112 ou 60 × 84 px. */
.booster-table {
  position: absolute;
  width: var(--bl, 100px);
  height: calc(var(--bh, 140px) + 18px);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  outline: none;
}
.booster-table:focus-visible .booster-table__corps { outline: 3px solid var(--jaune); outline-offset: 4px; }
.booster-table__ombre {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -7px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
}
.booster-table__corps {
  position: absolute;
  left: 0;
  top: 18px;
  width: var(--bl, 100px);
  height: var(--bh, 140px);
  rotate: var(--r, 0deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 12px rgba(41, 230, 255, 0.22));
}
.booster-table__corps > img { position: absolute; left: 0; top: 0; display: block; }
.booster-table:hover .booster-table__corps { filter: drop-shadow(0 0 14px rgba(255, 225, 77, 0.55)); }
/* il se déchire : jauge masquée, ombre qui s'efface ; les clics s'y perdent sans effet */
.booster-table.ouvre { cursor: default; }
.booster-table.ouvre .vie { visibility: hidden; }
.booster-table.ouvre .booster-table__ombre { opacity: 0; transition: opacity 0.5s; }

/* jauge de vie pixel : un segment par point de vie (--seg : largeur), verte, jaune puis rouge ; au-delà de
   TABLE.segmentsMax, un segment vaut plusieurs points de vie et celui qu'on entame se vide en partie (.partiel, --part).
   Un segment perdu ou entamé clignote un instant. */
.vie {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--trait);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.vie { --c-vie: var(--vert); }
.vie.moyenne { --c-vie: var(--jaune); }
.vie.faible { --c-vie: #ff4d5e; }
.vie i { display: block; width: var(--seg, 8px); height: 8px; background: #2d2650; }
.vie i.plein, .vie i.partiel { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.4); }
.vie i.plein { background: var(--c-vie); }
.vie i.partiel { background: linear-gradient(90deg, var(--c-vie) var(--part), #2d2650 var(--part)); }
.vie i:not(.plein) { animation: perte-vie 0.32s steps(4); }
@keyframes perte-vie { from { background: #ffffff; } }

/* bulle du message d'un Booster Douteux vide : là où il s'est ouvert (bas de la bulle au point donné), sans capter les clics */
.bulle-table {
  position: absolute;
  z-index: 3;
  width: max-content;
  max-width: 250px;
  padding: 8px 12px;
  translate: -50% -100%;
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
  line-height: 1.25;
  text-align: center;
  color: var(--trait);
  background: #fff7d6;
  box-shadow: 0 0 0 3px var(--trait), 0 6px 0 3px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.bulle-table::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 12px;
  height: 12px;
  translate: -50% 0;
  rotate: 45deg;
  background: #fff7d6;
  box-shadow: 3px 3px 0 0 var(--trait);
}

/* boutique : table pleine ou booster en recharge, le bouton « Acheter » a l'air éteint mais reste cliquable (le refus
   s'affiche) ; en recharge, il montre le temps restant et une jauge (--recharge : part écoulée) */
.ligne-booster .btn.plein, .ligne-booster .btn.recharge { --c: #3a3360; --c-ombre: #2a2448; --c-texte: #8079a6; cursor: not-allowed; }
.ligne-booster .btn.recharge { position: relative; min-width: 64px; font-variant-numeric: tabular-nums; }
.ligne-booster .btn.recharge::after {
  content: '';
  position: absolute;
  left: 3px;
  bottom: 2px;
  height: 3px;
  width: max(0px, calc(var(--recharge, 0%) - 6px));
  background: var(--cyan);
}

/* pochette gratuite (coin supérieur gauche de la table, TABLE.pochette) : sprite dans un anneau qui montre sa recharge
   (--p) ; prête, elle brille ; un clic la prend, ou la tapote pendant la recharge */
.scene__pochette { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pochette-table {
  position: absolute;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  outline: none;
}
.pochette-table__anneau {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) var(--p, 0%), rgba(255, 255, 255, 0.08) 0);
  box-shadow: 0 0 0 3px var(--trait);
}
.pochette-table__corps {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #1a1340;
}
.pochette-table__corps > img { display: block; }
.pochette-table__etat { font-family: var(--police-pixel); font-size: var(--tp-s); color: var(--texte-doux); text-shadow: 0 2px 0 var(--trait); }
.pochette-table.prete .pochette-table__anneau { background: var(--jaune); box-shadow: 0 0 0 3px var(--trait), 0 0 16px rgba(255, 225, 77, 0.65); }
.pochette-table.prete .pochette-table__etat { color: var(--jaune); }
.pochette-table:hover .pochette-table__corps > img { transform: translateY(-3px) rotate(-6deg); }
.pochette-table:focus-visible .pochette-table__anneau { outline: 3px solid var(--jaune); outline-offset: 3px; }

/* ------------------------------------------------------------------ notifications (toasts) */

/* En bas de la colonne droite, juste au-dessus du dock : sous les fenêtres Marché et Expertise quand on voit la scène, dans
   le coin inférieur droit d'un panneau ouvert (ses contenus défilent) ; jamais sur les cartes de la scène. Opaques, bordés,
   deux lignes au plus ; ils glissent depuis la droite en entrant. */
.ecran__toasts {
  grid-area: droite;
  align-self: end;
  justify-self: stretch;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 4px 4px;
  pointer-events: none;
}
.ecran__toasts .toast {
  display: block;
  padding: 6px 10px 6px 14px;
  font-size: var(--tp-s);
  line-height: 1.25;
  opacity: 1;
  background: var(--panneau-haut);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--trait),
    0 var(--px) 0 0 var(--trait),
    calc(var(--px) * -1) 0 0 0 var(--trait),
    var(--px) 0 0 0 var(--trait),
    inset calc(var(--px) * 2) 0 0 0 var(--c),
    0 6px 14px rgba(0, 0, 0, 0.55);
  animation: toast-glisse 0.22s steps(4);
}
.ecran__toasts .toast__texte { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@keyframes toast-glisse { from { transform: translateX(60px); } }

/* ------------------------------------------------------------------ animations de la scène (js/spectacle.js) */

/* calque sous les cartes (rayons d'une légendaire) : il ne défile pas et ne capte pas les clics */
.scene__effets { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* boutique : le sprite d'un booster ouvrable se penche au survol */
.ligne-booster > .booster-sprite { transition: transform 0.15s steps(3); }
.ligne-booster:not(.verrouille):hover > .booster-sprite { transform: translateY(-3px) rotate(-8deg); }

/* Animations infinies des cartes (reflets qui ondulent, halo des épiques et légendaires, balayage doré) : seulement sur la
   table et dans la fiche. Dans un panneau (jusqu'à 48 cartes), elles prenaient un tiers d'un cœur de processeur
   (recalcul de style à chaque image) : les cartes y gardent un halo fixe. Sous un panneau ouvert, la table est en pause. */
#panneau .tcg, #panneau .tcg__recto, #panneau .tcg__effet { animation: none; }
#panneau .tcg.revelee[data-rarete='epique'] .tcg__recto,
#panneau .tcg.revelee[data-rarete='legendaire'] .tcg__recto { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.55), 0 0 20px 3px var(--m2); }
body.panneau-ouvert #table-cartes .tcg, body.panneau-ouvert #table-cartes .tcg__recto, body.panneau-ouvert #table-cartes .tcg__effet { animation-play-state: paused; }
/* Table chargée : ces animations repeignent à chaque image la carte et toutes les cartes tournées qui la chevauchent (150
   cartes toutes animées : 22 images par seconde, 60 sans). Au-delà de son budget (TABLE.animations de ui.js : moins de cartes
   animées à mesure que la table se remplit, les plus récentes d'abord), une carte reste immobile (classe `calme`), sauf
   survolée ; les épiques et légendaires gardent un halo fixe. */
#table-cartes .emplacement.calme:not(:hover) .tcg,
#table-cartes .emplacement.calme:not(:hover) .tcg__recto,
#table-cartes .emplacement.calme:not(:hover) .tcg__effet { animation: none; }
#table-cartes .emplacement.calme:not(:hover) .tcg.revelee[data-rarete='epique'] .tcg__recto,
#table-cartes .emplacement.calme:not(:hover) .tcg.revelee[data-rarete='legendaire'] .tcg__recto { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.55), 0 0 20px 3px var(--m2); }

/* ------------------------------------------------------------------ dock */

.ecran__dock {
  grid-area: dock;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
/* sept onglets et un badge à trois chiffres doivent tenir dans 1 280 px : boutons serrés ; en dernier recours, un nom trop
   long est coupé (« … ») plutôt que de faire sortir les boutons de l'écran */
.ecran__dock .btn { font-size: var(--tp-m); letter-spacing: 0; gap: 5px; padding: 9px 7px 10px; flex: 0 1 auto; min-width: 0; }
.ecran__dock .dock__nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecran__dock .btn .badge-num { background: var(--trait); color: var(--jaune); padding: 1px 4px; font-size: var(--tp-s); font-weight: 500; }
.ecran__dock .btn.enfonce { filter: brightness(1.12) drop-shadow(0 0 10px var(--c)); }

/* ------------------------------------------------------------------ panneau en surimpression */

.panneau {
  grid-row: 2;
  grid-column: 1 / -1;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 14px 4px 3px;
  padding: 24px 6px 8px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 120px),
    #1c1540;
}
.panneau[hidden] { display: none; }
.panneau.gris { --accent: #8a83ad; }
.panneau__entete { position: static; }
.panneau__fermer { position: absolute; top: -7px; right: 10px; z-index: 2; }
.panneau__contenu { flex: 1; min-height: 0; overflow: auto; padding: 0 10px 6px 0; }
/* derrière le panneau, les colonnes s'effacent */
body.panneau-ouvert .ecran__gauche, body.panneau-ouvert .ecran__scene, body.panneau-ouvert .ecran__droite { visibility: hidden; }

/* ------------------------------------------------------------------ contenu des panneaux */

.panneau__contenu { font-size: var(--tp-s); line-height: 1.4; }
.panneau__contenu h2 {
  margin: 4px 0 6px;
  font-family: var(--police-pixel);
  font-size: var(--tp-m);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent, var(--cyan));
}
.panneau__contenu h2 + p, .panneau__contenu p { margin: 6px 0; }
.panneau__contenu h3 {
  margin: 14px 0 6px;
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jaune);
}
.panneau__contenu b { color: #fff; }
.barre-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0; }
.barre-actions .btn { margin-top: 0; margin-bottom: calc(var(--px) * 2); }

/* contrôles */
.panneau__contenu label, .debug label { display: inline-flex; align-items: center; gap: 6px; }
.jeu select, .jeu textarea {
  font: inherit;
  font-size: var(--tp-s);
  color: var(--texte);
  background: var(--panneau-creux);
  border: 0;
  box-shadow: inset 0 0 0 2px var(--panneau-haut), 0 0 0 1px var(--trait);
  padding: 4px 8px;
}
.jeu select:focus, .jeu textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
/* menus déroulants au visuel du jeu (police pixel, comme les boutons et les sous-onglets) ; la liste ouverte aussi, là où le
   navigateur le permet (appearance: base-select : Edge et Chrome récents ; sinon la liste reste celle du système) */
.jeu select { font-family: var(--police-pixel); font-size: var(--tp-s); text-transform: uppercase; line-height: 1.2; padding: 6px 10px 5px; cursor: pointer; }
.jeu select option { font-family: var(--police-pixel); font-size: var(--tp-s); text-transform: uppercase; color: var(--texte); background: var(--panneau-creux); }
@supports (appearance: base-select) {
  .jeu select, .jeu select::picker(select) { appearance: base-select; }
  .jeu select { display: inline-flex; align-items: center; gap: 8px; }
  .jeu select::picker-icon { color: var(--cyan); font-family: var(--police-pixel); }
  .jeu select::picker(select) {
    margin-top: 4px;
    padding: 4px 0;
    border: 0;
    color: var(--texte);
    background: var(--panneau-creux);
    box-shadow: inset 0 0 0 2px var(--panneau-haut), 0 0 0 2px var(--trait), 0 6px 0 rgba(0, 0, 0, 0.35);
  }
  .jeu select option { padding: 6px 12px 5px; background: transparent; }
  .jeu select option::checkmark { display: none; }
  .jeu select option:hover, .jeu select option:focus-visible { color: var(--trait); background: var(--cyan); outline: 0; }
  .jeu select option:checked { color: var(--jaune); }
  .jeu select option:checked:hover, .jeu select option:checked:focus-visible { color: var(--trait); }
}
.jeu textarea { width: 100%; font-family: 'Cascadia Mono', 'Consolas', monospace; font-size: 12px; resize: vertical; }
.jeu input[type='checkbox'] { width: 16px; height: 16px; accent-color: var(--cyan); }

/* tableaux */
.tableau { width: 100%; border-collapse: collapse; font-size: var(--tp-s); }
.tableau th, .tableau td { padding: 4px 6px; text-align: left; vertical-align: middle; border-bottom: 2px solid rgba(255, 255, 255, 0.06); }
.tableau th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panneau-haut);
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--texte-doux);
  white-space: nowrap;
  box-shadow: 0 2px 0 var(--trait);
}
.tableau th.triable { cursor: pointer; user-select: none; }
.tableau th.triable:hover { color: var(--texte); }
.tableau tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.tableau tr.verrouille, .tableau tr.au-max { color: var(--texte-doux); }
.tableau tr.bloquee { color: var(--texte-doux); background: rgba(178, 107, 255, 0.07); }
.tableau td.actions { white-space: nowrap; }
.tableau td.actions .btn, .tableau td .btn { margin: 1px 2px 7px 0; }
.tableau.petit { font-size: 12px; }
/* boutons des tableaux (lignes denses) */
.tableau .btn.petit {
  padding: 3px 9px 4px;
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.tableau td { white-space: nowrap; }
.tableau td:first-child, .tableau td.petit { white-space: normal; min-width: 120px; }
.panneau__contenu .tableau { margin: 4px 0 10px; }

.pastille-rarete { white-space: nowrap; }

/* variantes (badges) : une couleur par variante de config.variantes (classe badge-<identifiant>) ; sans règle, gris */
.badge {
  display: inline-block;
  padding: 1px 5px;
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
  font-weight: 600;
  color: var(--trait);
  background: #8a83ad;
  white-space: nowrap;
  box-shadow: 0 0 0 2px var(--trait);
}
.badge-holo { background: linear-gradient(115deg, #ff9ad5, #9fe7ff, #c8ffb0, #ffe59a); }
.badge-noir_et_blanc { background: #f4f4f4; }
.badge-full_art { background: #ff8c42; }
.badge-reverse { background: #e8e8e8; color: var(--trait); }
.badge-gold { background: linear-gradient(140deg, #fff6c8, #f0c040 40%, #b8860b); }
.badge-girly { background: #ff6fb5; }

/* ---- cartes .tcg des panneaux (inventaire, albums, expertise) : emplacements de ui.emplacementTcg, rangés en grilles */
.grille-tcg { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 10px; padding: 4px 0 8px; }
.tcg[data-action='fiche'] { cursor: pointer; }
.tcg[data-action='fiche']:focus-visible { outline: 3px solid var(--jaune); outline-offset: 4px; }
.verdict-mieux { color: var(--vert); font-weight: 600; }
.verdict-moins { color: #ff6b78; font-weight: 600; }

/* inventaire : commandes et pagination fixes, cartes ou tableau dans une zone qui défile */
.panneau[data-id='inventaire'] .panneau__contenu { display: flex; flex-direction: column; overflow: hidden; }
.panneau[data-id='inventaire'] .panneau__contenu > * { flex: none; }
.panneau[data-id='inventaire'] .panneau__contenu > .inventaire-corps { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 8px 4px 0; }
.inventaire-commandes { margin: 4px 0 10px; }
/* textes des filtres (intitulés des menus déroulants, cases à cocher de l'inventaire, versions de l'album) : la police pixel
   du jeu, comme les menus eux-mêmes */
.inventaire-commandes, .filtre-versions > span, .jeu label:has(> select) {
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
  text-transform: uppercase;
}
.inventaire-commandes .bascule-mode { display: inline-flex; gap: 4px; }
.inventaire-commandes .pagination { margin-left: auto; }
.grille-inventaire { gap: 12px 6px; }
/* collection : les cartes rangées, puis une place en pointillés par place libre (même encombrement qu'une carte) */
.collection-entete h2 { margin-bottom: 4px; }
.grille-collection { gap: 12px 6px; }
.place-collection { display: flex; align-items: center; justify-content: center; flex: none; margin: 0 12px; border: 2px dashed rgba(255, 140, 66, 0.45); border-radius: 6px; color: var(--texte-doux); font-size: var(--tp-s); text-align: center; }
/* carte de la grille : qualité et prix dessous, marques discrètes, actions au survol (par-dessus le bas de la carte) */
.emplacement.vignette .infos-carte { min-height: 46px; }
.emplacement.vignette .sous-carte { margin-top: 0; font-size: 12px; }
.emplacement.vignette .carte-actions { bottom: auto; top: calc(var(--lc) * 1.4 - 34px); }
.emplacement.vignette.bloquee .tcg { filter: saturate(0.55) brightness(0.85); }
.emplacement.vignette .carte-statut { color: var(--violet); }
.marques { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.marque { max-width: 100%; font-size: var(--tp-s); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--texte-doux); }
.marque-variante { color: var(--jaune); }
/* édition d'un exemplaire (phase idle) : marque sous la carte, à la couleur de l'édition (--e), jamais sur la carte */
.marque-edition { color: var(--e, var(--texte-doux)); font-family: var(--police-pixel); font-size: 10px; text-transform: uppercase; white-space: nowrap; }
.carte-table .marque-edition { text-shadow: 0 2px 0 var(--trait); }
/* sous une carte de la table (étroite), la marque d'édition a sa propre ligne, au-dessus de la qualité et du prix */
.carte-table .sous-carte:has(.marque-edition) { flex-wrap: wrap; justify-content: center; row-gap: 0; }
.carte-table .sous-carte .marque-edition { flex-basis: 100%; text-align: center; line-height: 1.1; }
/* boutique : booster derrière le portefeuille (« Portefeuille 1 M requis ») */
.ligne-booster .progression.condition .etiquette {
  font-family: var(--police-pixel);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--texte-doux);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* boutique : la liste défile dans sa fenêtre (neuf boosters), la fenêtre Équipe reste visible sous elle */
.ecran__gauche .fenetre-boutique { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
.ecran__gauche .fenetre-equipe { display: flex; flex-direction: column; flex: 0 0 auto; min-height: 0; max-height: 236px; }
.boutique-liste { min-height: 0; overflow-y: auto; margin-right: -6px; padding-right: 6px; }
/* améliorations : un niveau plus cher que le plafond du portefeuille */
.trop-petit { display: block; font-size: var(--tp-s); color: #ff6b78; white-space: normal; }

/* albums */
.album-entete { margin: 6px 0 12px; padding: 8px 14px 6px; background: var(--panneau-creux); box-shadow: inset 3px 0 0 var(--cyan), 0 0 0 1px var(--trait); }
.album-entete.complet { box-shadow: inset 3px 0 0 var(--vert), 0 0 0 1px var(--trait), 0 0 20px -6px var(--vert); }
.album-entete .album-titre { margin: 2px 0 6px; }
.album-entete .jauge { max-width: 520px; height: 18px; }
.album-entete p { margin: 6px 0 2px; }
.album-titre .sceau-complet { margin-left: 12px; padding: 2px 8px 3px; vertical-align: middle; background: var(--vert); color: var(--trait) !important; font-family: var(--police-pixel); font-size: var(--tp-s); text-transform: uppercase; }
.grille-album { gap: 14px 8px; }
.grille-album.complet .tcg.revelee .tcg__recto { outline: 2px solid var(--vert); outline-offset: 2px; }
.album-vide { margin: 16px 4px; }

/* expertise */
.grille-expertise { gap: 16px 14px; }
.slot-expertise .progression-exp { display: flex; align-items: center; gap: 6px; width: 100%; }
.slot-expertise .progression-exp .jauge { flex: 1; height: 12px; }
.slot-expertise .chrono { flex: none; }
.carte-libre {
  width: var(--l);
  height: calc(var(--l) * 1.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed rgba(255, 255, 255, 0.18);
  border-radius: calc(var(--l) * 0.055);
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
  text-transform: uppercase;
  color: var(--texte-doux);
}
.file-expertise { gap: 8px 6px; }
.emplacement.petite .infos-carte { min-height: 18px; }
.rang { font-family: var(--police-pixel); font-size: var(--tp-s); color: var(--violet); }
.resultats-expertise { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px 14px; }
.resultat-exp { display: flex; align-items: flex-start; gap: 12px; padding: 8px 10px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 3px 0 0 var(--violet); }
.resultat-exp .tcg { margin-bottom: 4px; }
.resultat-exp__texte { min-width: 0; line-height: 1.3; }
.resultat-exp__nom { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resultat-exp .verdict { font-family: var(--police-pixel); font-size: var(--tp-m); margin: 2px 0; }

/* fiche détaillée : par-dessus l'écran et les panneaux, fond assombri qui la ferme au clic */
.fiche-couche { position: absolute; inset: 0; z-index: 40; }
.fiche-couche[hidden] { display: none; }
.fiche-fond { position: absolute; inset: 0; background: rgba(5, 4, 12, 0.74); }
.fiche.fenetre {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 780px;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 30px 28px 24px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 120px), #1c1540;
}
.fiche__fermer { position: absolute; top: -7px; right: 10px; z-index: 2; }
.fiche__corps { display: flex; align-items: flex-start; gap: 30px; }
.fiche__carte { flex: none; }
.fiche__texte { flex: 1; min-width: 0; font-size: var(--tp-s); line-height: 1.4; }
.fiche__texte h3 { margin: 0 0 6px; font-family: var(--police-pixel); font-size: var(--tp-l); font-weight: 600; color: var(--accent); text-transform: uppercase; }
.fiche__texte .description { margin: 10px 0 14px; font-size: var(--tp-m); }
.fiche__texte dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; margin: 0; }
.fiche__texte dt { color: var(--texte-doux); }
.fiche__texte dd { margin: 0; }
/* texte de la fiche : la police pixel du jeu (choix de l'auteur) */
.fiche__texte { font-family: var(--police-pixel); font-size: var(--tp-s); line-height: 1.35; }
.fiche__texte .description { margin: 8px 0 10px; font-size: var(--tp-s); font-style: normal; line-height: 1.35; }
.fiche__texte dl { gap: 3px 14px; }
.fiche.fenetre:not(.fin-de-partie) { width: 860px; }
.fiche__texte .prix-fiche { display: inline-flex; align-items: center; gap: 6px; color: var(--jaune); font-family: var(--police-pixel); font-size: var(--tp-m); }
.fiche__actions { display: flex; flex-wrap: wrap; gap: 2px 6px; margin-top: 16px; }
.fiche__actions .btn { margin-bottom: calc(var(--px) * 3); }
/* étape H : versions d'une carte (fiche), filtre par version (albums), écran de fin (le Panthéon) */
.versions-carte { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
.version-carte { padding: 1px 6px; border: 1px solid var(--trait); background: rgba(255, 255, 255, 0.04); color: var(--texte-doux); font-size: 12px; opacity: 0.55; }
.version-carte.obtenue { background: var(--violet); color: var(--trait); opacity: 1; }
.filtre-versions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.filtre-versions .sous-onglets { margin: 4px 0; }
.filtre-versions .sous-onglets button.actif { background: var(--violet); }
.fiche.fenetre.fin-de-partie { width: 560px; text-align: center; background: linear-gradient(180deg, rgba(255, 176, 32, 0.18), transparent 160px), #1c1540; }
.fin-de-partie .fenetre__titre { color: var(--jaune); }
.fin-de-partie__texte { margin: 0 0 16px; font-size: var(--tp-m); line-height: 1.4; }
.fin-de-partie dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; margin: 0 auto 20px; max-width: 360px; text-align: left; font-size: var(--tp-s); }
.fin-de-partie dt { color: var(--texte-doux); }
.fin-de-partie dd { margin: 0; color: var(--jaune); font-family: var(--police-pixel); }

/* marché */
.evenement-mini { display: inline-block; padding-left: 5px; white-space: nowrap; box-shadow: inset 3px 0 0 var(--couleur, #8a83ad); }
.evenement-mode { --couleur: var(--orange); }
.evenement-krach { --couleur: #ff4d5e; }
.evenement-collectionneur { --couleur: var(--vert); }
.evenement-rumeur { --couleur: var(--cyan); }
table.marche td { white-space: nowrap; }
.offre { margin: 6px 0 12px; padding: 8px 12px; background: rgba(255, 62, 165, 0.08); box-shadow: inset 3px 0 0 var(--rose), inset 0 0 0 1px rgba(255, 62, 165, 0.25); }
.offre .tableau { margin-top: 6px; }

/* albums */
.sous-onglets, .onglets-boutique { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.sous-onglets button, .onglets-boutique button {
  padding: 6px 12px 5px;
  border: 0;
  cursor: pointer;
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
  text-transform: uppercase;
  color: var(--texte-doux);
  background: var(--panneau-haut);
  box-shadow: 0 0 0 var(--px) var(--trait);
}
.sous-onglets button:hover, .onglets-boutique button:hover { color: var(--texte); }
.sous-onglets button.actif, .onglets-boutique button.actif { color: var(--trait); background: var(--cyan); }
.sous-onglets button.verrouille, .onglets-boutique button.verrouille { opacity: 0.65; }
.album-titre { font-size: var(--tp-m) !important; color: var(--cyan) !important; }
.carte-album { font-weight: 600; color: var(--cyan); }
.statut-bonus { font-weight: 600; }
.bonus-actif { color: var(--vert); }
.bonus-inactif { color: var(--texte-doux); }
.avertissement { max-width: 760px; padding: 6px 10px; background: rgba(255, 140, 66, 0.1); box-shadow: inset 3px 0 0 var(--orange); }
.album-verrouille p { margin: 8px 0; }
.album-prix { color: var(--jaune) !important; }

/* améliorations : la carte de l'arbre en graphe (lot B ; dessin de l'auteur : amélioration_crackthepack.jpg). La vue porte
   ses variables (--ax, --ay : point du plan au centre ; --az : zoom), écrites par le rendu et par un glisser : le plan s'y
   place par un transform, la grille du fond et le détail d'un nœud suivent. Tailles en px du plan (js/ui.js, ARBRE). */
.panneau[data-id='ameliorations'] .panneau__contenu { display: flex; flex-direction: column; overflow: hidden; padding: 0 4px 2px 0; }
.arbre { position: relative; display: flex; flex: 1 1 auto; min-height: 0; }
.arbre__vue {
  --ax: 0; --ay: 0; --az: 1;
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: clip; /* pas de défilement (même au focus d'un nœud) : seule la vue déplace le plan */
  touch-action: none;
  user-select: none;
  cursor: grab;
  background-color: #120d27;
  background-image:
    linear-gradient(rgba(178, 107, 255, 0.06) 2px, transparent 2px),
    linear-gradient(90deg, rgba(178, 107, 255, 0.06) 2px, transparent 2px);
  background-size: calc(80px * var(--az)) calc(75px * var(--az));
  background-position: calc(50% - var(--ax) * var(--az) * 1px) calc(50% - var(--ay) * var(--az) * 1px);
  box-shadow: inset 0 0 0 2px var(--trait), inset 0 0 50px rgba(0, 0, 0, 0.55);
}
.arbre__vue.glisse { cursor: grabbing; }
.arbre__plan {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  transform: scale(var(--az)) translate(calc(var(--ax) * -1px), calc(var(--ay) * -1px));
}
/* empilement explicite : les liens (fond) toujours SOUS les nœuds, même quand la carte graphique compose le survol à part
   (sinon des liens se dessinaient en croix sur le disque survolé) */
.arbre__fond { position: absolute; z-index: 0; overflow: visible; pointer-events: none; }
.arbre__noeuds { position: relative; z-index: 1; }
.arbre__contours line { stroke: var(--trait); stroke-width: 12; stroke-linecap: round; }
.arbre__liens line { stroke-width: 6; stroke-linecap: round; }
.lien.terne { stroke: #3d3566; }
.lien.proche { stroke: #9c8a3a; }
.lien.vif { stroke: var(--vert); }

/* un nœud : anneau des niveaux (un segment par niveau), disque et icône, nom et prix dessous */
.noeud-arbre {
  --etat: #4a4270;
  position: absolute;
  width: 84px;
  height: 84px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
/* fond plein sous l'anneau : les liens vers les voisins partent du centre du nœud et se voyaient, en croix, dans les trous
   entre les segments de l'anneau */
.noeud-arbre::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: #120d27; }
.noeud-arbre__anneau { position: absolute; inset: 0; overflow: visible; }
.noeud-arbre__anneau circle { fill: none; }
.noeud-arbre__anneau .piste { stroke: #2d235d; }
.noeud-arbre__anneau .plein, .noeud-arbre__anneau .segment-dernier { stroke: var(--vert); }
.noeud-arbre__anneau .segment-prochain { stroke: var(--jaune); opacity: 0.45; }
.noeud-arbre__disque {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  box-sizing: border-box;
  border: 3px solid var(--etat);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #2a2152, #120d27 70%);
  box-shadow: 0 0 0 2px var(--trait);
  transition: scale 0.12s ease-out;
}
.noeud-arbre__disque > .icone-arbre { display: block; }
.noeud-arbre__cadenas { position: absolute; right: -8px; bottom: -6px; line-height: 0; }
/* survol : le disque s'éclaire (plus de petit agrandissement : il déformait l'icône pixel et faisait recomposer le nœud) */
.noeud-arbre:hover .noeud-arbre__disque { filter: brightness(1.25); }
.noeud-arbre:focus-visible { outline: none; }
.noeud-arbre:focus-visible .noeud-arbre__disque { outline: 3px solid var(--cyan); outline-offset: 9px; }
.noeud-arbre.acquis { --etat: var(--vert); }
.noeud-arbre.achetable:not(.acquis) { --etat: var(--jaune); }
.noeud-arbre.abordable .noeud-arbre__disque { box-shadow: 0 0 0 2px var(--trait), 0 0 16px 4px rgba(255, 225, 77, 0.5); }
.noeud-arbre.acquis.abordable .noeud-arbre__disque { box-shadow: 0 0 0 2px var(--trait), 0 0 14px 3px rgba(93, 255, 143, 0.45); }
.noeud-arbre.verrouille { --etat: #4a4270; cursor: not-allowed; }
.noeud-arbre.verrouille .icone-arbre { filter: grayscale(1) brightness(0.6); }
.noeud-arbre.bientot { --etat: #2d235d; cursor: help; }
.noeud-arbre.bientot .icone-arbre { filter: grayscale(1) brightness(0.4); }
.noeud-arbre.bientot .noeud-arbre__disque { background: #0d0a1e; }
/* le dernier défi, en rouge comme sur le dessin */
.noeud-arbre.defi { --etat: #ff4d5e; }
.noeud-arbre.defi .icone-arbre { filter: grayscale(0.4) brightness(0.75); }
.noeud-arbre.defi .noeud-arbre__anneau .piste { stroke: #5c1c2c; }
.noeud-arbre.defi .noeud-arbre__disque { box-shadow: 0 0 0 2px var(--trait), 0 0 18px 3px rgba(255, 77, 94, 0.45); }
.noeud-arbre__legende {
  position: absolute;
  left: 50%;
  top: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 140px;
  translate: -50% 0;
  text-align: center;
  pointer-events: none;
}
.noeud-arbre__nom {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  color: #e9e4ff;
  text-shadow: 0 1px 0 var(--trait), 0 0 4px var(--trait), 0 0 4px var(--trait);
}
.noeud-arbre.verrouille .noeud-arbre__nom, .noeud-arbre.bientot .noeud-arbre__nom { color: var(--texte-doux); }
.noeud-arbre__prix {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px 1px;
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
  line-height: 1.2;
  white-space: nowrap;
  color: var(--jaune);
  background: rgba(7, 5, 15, 0.75);
}
.noeud-arbre__prix small { font-size: 10px; text-transform: uppercase; }
.noeud-arbre__prix.cher { color: #c9b34a; }
.noeud-arbre__prix.grise { color: #6c6490; }
.noeud-arbre__prix.grise .icone { filter: grayscale(1) brightness(0.6); }
.noeud-arbre__prix.trop-cher { color: #ff6b78; }
.noeud-arbre__prix.max { color: var(--vert); }
.noeud-arbre__prix.bientot { color: #8a83ad; }
/* un niveau acheté : le segment acquis s'allume (classe posée par Game.spectacle) */
.noeud-arbre.allume .segment-dernier { animation: segment-allume 0.9s ease-out; }
@keyframes segment-allume {
  0% { stroke: #ffffff; stroke-width: 12px; }
  40% { stroke: #ffffff; stroke-width: 9px; }
  100% { stroke: var(--vert); stroke-width: 6px; }
}
/* un groupe qui apparaît (la première fois) */
.noeud-arbre.apparait { animation: noeud-apparait 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.arbre__fond line.apparait { animation: arbre-fondu 0.8s ease-out both; }
@keyframes noeud-apparait { from { opacity: 0; scale: 0.3; } }
@keyframes arbre-fondu { from { opacity: 0; } }

/* détail d'un nœud (survol, focus), à côté de lui, du côté du centre de la vue */
.arbre__info {
  position: absolute;
  z-index: 3;
  left: calc(50% + ((var(--nx) - var(--ax)) * var(--az) + 48 * var(--az) + 10) * 1px);
  top: clamp(8px, calc(50% + ((var(--ny) - var(--ay)) * var(--az) - 46) * 1px), calc(100% - 220px));
  width: 280px;
  padding: 9px 12px 10px;
  font-size: var(--tp-s);
  line-height: 1.35;
  background: var(--panneau);
  box-shadow: 0 0 0 2px var(--trait), inset 0 0 0 2px #3d3566, 0 10px 20px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.arbre__info.a-gauche { left: auto; right: calc(50% - ((var(--nx) - var(--ax)) * var(--az) - 48 * var(--az) - 10) * 1px); }
.arbre__info.vide, .arbre__vue.glisse .arbre__info { display: none; }
.arbre__info-titre { font-family: var(--police-pixel); font-size: 16px; line-height: 1.15; color: #fff; }
.arbre__info-groupe { margin-top: 2px; font-family: var(--police-pixel); font-size: var(--tp-s); text-transform: uppercase; color: var(--g); }
.arbre__info-description { margin: 5px 0 4px !important; color: var(--texte-doux); }
.arbre__info .ligne { margin-top: 2px; font-weight: 600; }
.arbre__info .ligne.effet { color: var(--cyan); }
.arbre__info .ligne.cout { color: var(--jaune); }
.arbre__info .ligne.cout.max { color: var(--vert); }
.arbre__info .ligne.manque { color: var(--orange); }
.arbre__info .ligne.fonds { color: #ff6b78; }
.arbre__info .ligne.aide { color: var(--texte-doux); font-weight: 400; }
.arbre__info .ligne.bientot { color: #8a83ad; }

/* commandes de la vue, par-dessus la carte */
/* carte retournée bac plein (en attente sur la table) : liseré rouge */
.carte-table.en-attente .tcg { box-shadow: 0 0 0 2px #ff4d5e, 0 0 12px rgba(255, 77, 94, 0.55); }
/* marché fermé : le bandeau garde sa place, sans rien afficher */
.bandeau-evenements.ferme { visibility: hidden; }
/* légende sous un nœud (nom, prix) : seulement au survol ou au focus clavier (choix de l'auteur, la carte est plus claire) */
.noeud-arbre__legende { opacity: 0; transition: opacity 0.12s; }
.noeud-arbre:hover .noeud-arbre__legende, .noeud-arbre:focus-visible .noeud-arbre__legende { opacity: 1; }
/* sous le cercle, seulement le prix (choix de l'auteur) : le nom est dans le détail du nœud et dans son aria-label */
.noeud-arbre__nom { display: none; }
/* textes de l'arbre (noms des nœuds, détail, résumé) : la police pixel du jeu */
.noeud-arbre__nom, .arbre__info { font-family: var(--police-pixel); font-size: var(--tp-s); font-weight: 400; }
.noeud-arbre__nom { line-height: 1.25; }
.arbre__info { width: 310px; line-height: 1.5; }
.arbre__info .ligne { font-weight: 400; }
.arbre__commandes { position: absolute; right: 10px; top: 8px; display: flex; align-items: center; gap: 6px; }
.arbre__commandes .btn.carre { min-width: 30px; font-size: 16px; padding: 2px 6px 3px; }
.arbre__zoom { min-width: 50px; font-family: var(--police-pixel); font-size: var(--tp-s); text-align: center; color: var(--texte-doux); }

/* équipe (panneau Équipe : réglages des employés) */
.automates { display: flex; flex-direction: column; gap: 10px; max-width: 980px; }
.automate { padding: 8px 12px; background: var(--panneau-creux); box-shadow: inset 3px 0 0 var(--vert), 0 0 0 1px var(--trait); }
.automate.non-achete { box-shadow: inset 3px 0 0 #5a5285, 0 0 0 1px var(--trait); }
.automate .barre-actions { gap: 4px 14px; margin: 6px 0 2px; }
.etat-auto { font-family: var(--police-pixel); font-size: var(--tp-s); text-transform: uppercase; }
.etat-auto.marche { color: var(--vert); }
.etat-auto.arret { color: #ff6b78; }
.statut-auto { font-weight: 600; margin: 2px 0; }
.compteurs-auto { color: var(--texte-doux); }

/* sauvegarde */
.panneau-sauvegarde { max-width: 900px; }

/* ------------------------------------------------------------------ panneau de debug (hors de la scène) */

.debug {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: var(--largeur-debug);
  overflow: auto;
  padding: 10px 14px 20px;
  font-size: var(--tp-s);
  line-height: 1.35;
  background: var(--panneau);
  box-shadow: calc(var(--px) * -1) 0 0 var(--trait), inset 3px 0 0 var(--orange), -10px 0 30px rgba(0, 0, 0, 0.5);
}
.debug[hidden] { display: none; }
.debug-titre { display: flex; justify-content: space-between; align-items: center; }
.debug-titre strong { font-family: var(--police-pixel); font-size: var(--tp-m); text-transform: uppercase; color: var(--orange); }
.debug h3 { margin: 12px 0 4px; font-family: var(--police-pixel); font-size: var(--tp-s); font-weight: 500; text-transform: uppercase; color: var(--jaune); }
.debug .btn { margin-bottom: calc(var(--px) * 2 + 2px); }
.etat-brut { font-size: var(--tp-s); white-space: pre-wrap; word-break: break-all; max-height: 400px; overflow: auto; padding: 6px; background: var(--panneau-creux); }
.simulation .tableau { margin: 4px 0; }

/* mains des employés (phase idle, étape C ; js/spectacle.js) : calque au-dessus de la table, jamais rendu par ui.patch.
   (x, y) = translation de .main-employe = bout des doigts ; au repos (coin inférieur gauche), l'infobulle donne le nom. */
.scene__employes { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.main-employe { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.main-employe.repos { pointer-events: auto; cursor: help; }
.main-employe__decalage { transform: translate(-50%, -94%); }
.main-employe__corps { transform-origin: 50% 25%; filter: drop-shadow(0 5px 0 rgba(7, 5, 15, 0.45)); }
.main-employe__corps > .main-sprite { display: block; }
.main-employe.repos .main-employe__corps { filter: drop-shadow(0 3px 0 rgba(7, 5, 15, 0.45)); }
.main-employe.pause .main-employe__corps { filter: grayscale(0.85) brightness(0.65); }
.main-employe__etat {
  position: absolute; left: 0; top: -66px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--police-pixel); font-size: var(--tp-s); line-height: 1;
  color: var(--texte-doux); text-shadow: 0 2px 0 #07050f;
}

/* ================================================================ phase idle, étape D : nouvelles cartes, curseur */

/* « Doigts agiles » : la carte se retourne plus vite (--vitesse-retournement, posé par ui.js sur #table-cartes) */
.carte-table .tcg__pivot { transition-duration: calc(0.8s * var(--vitesse-retournement, 1)); } /* était 0,5 s (24/10/2026) */
/* nouvelle carte qui vient d'être retournée : elle grossit au premier plan, avec un halo cyan (Game.effets.zoomNouvelle) */
.carte-table.zoom-nouvelle { z-index: 8; }
.carte-table.zoom-nouvelle .tcg { filter: drop-shadow(0 0 10px var(--cyan)) drop-shadow(0 0 22px rgba(41, 230, 255, 0.6)); }
/* une nouvelle carte se ramasse d'un clic */
.carte-table .tcg.revelee { cursor: grab; }

/* cercle autour du curseur sur la table : rayon de « Grosse paluche » (pointillés jaunes) */
.scene__curseur { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; display: none; }
.scene__curseur.visible { display: block; }
.scene__curseur > i { position: absolute; left: var(--x, 0); top: var(--y, 0); translate: -50% -50%; border-radius: 50%; }
.curseur-rayon { width: var(--rc, 0); height: var(--rc, 0); border: 2px dashed rgba(255, 225, 77, 0.55); background: rgba(255, 225, 77, 0.05); }
.scene__curseur.sans-rayon .curseur-rayon { display: none; }
/* autoclic (arbre en graphe) : clic droit maintenu sur la table, le cercle devient plein et pulse à chaque clic */
.scene__curseur.autoclic .curseur-rayon { border: 2px solid rgba(255, 140, 66, 0.85); background: rgba(255, 140, 66, 0.12); }

/* phase idle, étape E : marché et expertise à ouvrir dans l'arbre (colonne droite) */
.a-ouvrir { margin: 4px 6px; line-height: 1.35; }

/* ================================================================ phase idle, étape G : pouvoirs des cartes spéciales */

/* en-tête : effets en cours (« FRÉNÉSIE 0:12 », « PRIX ×2 0:45 », « RARES ×2 0:45 »), empilés */
.bloc-pouvoirs { gap: 2px; }
.effet-pouvoir {
  display: block;
  padding: 1px 6px 2px;
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--trait);
  background: var(--violet);
  box-shadow: 0 0 0 var(--px) var(--trait), 0 0 10px var(--violet);
}
.effet-pouvoir b { font-weight: 700; }
.effet-pouvoir .chrono { color: var(--trait); font-size: var(--tp-s); }
.effet-pouvoir.effet-prix_doubles { background: var(--vert); box-shadow: 0 0 0 var(--px) var(--trait), 0 0 10px var(--vert); }
.effet-pouvoir.effet-raretes_doublees { background: #3fa9ff; box-shadow: 0 0 0 var(--px) var(--trait), 0 0 10px #3fa9ff; }

/* frénésie : la table s'illumine (halo violet qui pulse, par à-coups) */
.ecran__scene.frenesie::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: 6px;
  pointer-events: none;
  box-shadow: inset 0 0 0 3px rgba(194, 107, 255, 0.75), inset 0 0 70px rgba(194, 107, 255, 0.35);
  animation: frenesie-pulse 0.7s steps(4) infinite alternate;
}
@keyframes frenesie-pulse { from { opacity: 0.55; } to { opacity: 1; } }

/* nouvelle carte spéciale à pouvoir : son liseré scintille un peu plus (un clic la ramasse et déclenche le pouvoir) */
.carte-table.nouvelle.a-pouvoir .tcg.revelee { filter: drop-shadow(0 0 6px rgba(255, 225, 77, 0.55)); }

/* booster béni par le Cadeau fou : halo doré */
.booster-table.beni .booster-table__corps { filter: drop-shadow(0 0 8px #ffe14d) drop-shadow(0 0 18px rgba(255, 225, 77, 0.55)); }
.booster-table.beni::before {
  content: 'BÉNI';
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
  color: var(--jaune);
  text-shadow: 0 2px 0 var(--trait);
  pointer-events: none;
}

/* pièces d'or à ramasser (calque au-dessus des boosters ; seules les pièces captent les clics) */
.table__pieces { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.piece-table {
  position: absolute;
  width: 36px;
  height: 36px;
  pointer-events: auto;
  cursor: grab;
  filter: drop-shadow(0 3px 0 rgba(7, 5, 15, 0.55)) drop-shadow(0 0 8px rgba(255, 225, 77, 0.6));
  animation: piece-flotte 0.9s ease-in-out infinite alternate;
}
.piece-table > img { display: block; }
.piece-table:hover { filter: drop-shadow(0 3px 0 rgba(7, 5, 15, 0.55)) drop-shadow(0 0 14px #ffe14d); }
.piece-table:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
.piece-table.bientot { animation: piece-flotte 0.9s ease-in-out infinite alternate, piece-clignote 0.32s steps(2) infinite; }
@keyframes piece-flotte { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes piece-clignote { 50% { opacity: 0.35; } }

/* roulette « Cadeau fou » : une fenêtre au milieu de la table (calque jamais rendu par ui.patch : js/spectacle.js) */
.scene__roulette { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.roulette.fenetre {
  --accent: var(--rose);
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 270px;
  margin: 0;
  padding: 24px 18px 12px;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
}
.roulette__roue { position: relative; width: 230px; height: 230px; margin: 0 auto; }
.roulette__svg { display: block; filter: drop-shadow(0 6px 0 rgba(7, 5, 15, 0.5)); }
.roulette__texte {
  font-family: var(--police-pixel);
  font-size: 9px;
  font-weight: 700;
  fill: #07050f;
  text-transform: uppercase;
}
.roulette__secteur.gagnant path, .roulette__secteur.gagnant circle { stroke: #fff; stroke-width: 4; }
.roulette.arretee .roulette__secteur:not(.gagnant) { opacity: 0.45; }
/* la flèche (en haut, pointe vers le bas) : la case tirée s'y arrête */
.roulette__fleche {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--jaune);
  filter: drop-shadow(0 2px 0 #07050f);
}
.roulette__resultat {
  min-height: 22px;
  margin-top: 8px;
  font-family: var(--police-pixel);
  font-size: var(--tp-m);
  color: var(--jaune);
  text-transform: uppercase;
  text-shadow: 0 2px 0 var(--trait);
}
.roulette.case-faillite .roulette__resultat { color: #ff6b78; }

/* ================================================================ révision des améliorations, lot 3 */

/* aimant central (Game.aimant, ui.js aimantHtml) : au milieu de la table, au-dessus des cartes (même calque, après elles),
   sous les boosters ; un champ magnétique pulse doucement tant qu'il travaille ; en pause, il est gris et figé */
.table__aimant { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.aimant-table {
  position: absolute;
  width: 48px;
  height: 48px;
  pointer-events: auto;
  cursor: pointer;
}
.aimant-table__corps { position: relative; z-index: 1; filter: drop-shadow(0 3px 0 rgba(7, 5, 15, 0.6)); }
.aimant-table__corps > img { display: block; }
.aimant-table::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  translate: -50% -50%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 77, 94, 0.45);
  background: radial-gradient(circle, rgba(255, 77, 94, 0.16), rgba(255, 77, 94, 0) 70%);
  animation: aimant-champ 1.6s steps(6) infinite;
  pointer-events: none;
}
@keyframes aimant-champ {
  from { scale: 1.15; opacity: 0.25; }
  to { scale: 0.7; opacity: 0.95; }
}
.aimant-table__etat {
  position: absolute;
  left: 50%;
  top: 100%;
  translate: -50% 2px;
  padding: 1px 5px 0;
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
  line-height: 1.2;
  color: #ffb3bd;
  white-space: nowrap;
  background: rgba(7, 5, 15, 0.7);
  box-shadow: 0 0 0 2px var(--trait);
  pointer-events: none;
}
.aimant-table:hover .aimant-table__corps { filter: drop-shadow(0 3px 0 rgba(7, 5, 15, 0.6)) drop-shadow(0 0 10px #ff4d5e); }
.aimant-table:focus-visible { outline: 3px solid var(--jaune); outline-offset: 4px; }
.aimant-table.pause .aimant-table__corps { filter: grayscale(1) brightness(0.65) drop-shadow(0 3px 0 rgba(7, 5, 15, 0.6)); }
.aimant-table.pause::before { animation: none; opacity: 0.3; border-color: rgba(184, 191, 214, 0.4); background: none; }
.aimant-table.pause .aimant-table__etat { color: var(--texte-doux); }
body.panneau-ouvert .aimant-table::before { animation-play-state: paused; }

/* boutique : sous-onglets « Boosters » et « Vitrine » (lot 3), serrés en haut de la fenêtre (même style que .sous-onglets, sans
   leur classe : les scénarios des albums comptent les .sous-onglets) */
.onglets-boutique { flex: none; gap: 6px; margin: 0 0 6px; }
.onglets-boutique button { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px 4px; }
.onglets-boutique button .chrono { color: inherit; opacity: 0.85; }
.onglets-boutique button.verrouille { opacity: 0.55; }

/* vitrine du brocanteur (lot 3) : deux colonnes égales (4 offres au plus), une carte par offre, qualité et prix dessous,
   bouton « Acheter » calé en bas : les boutons d'une rangée sont alignés ; vendue : grisée */
.vitrine-entete { margin: 0 0 6px; }
.vitrine-entete .chrono { color: var(--jaune); }
.grille-vitrine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 6px; padding-bottom: 4px; }
.offre-vitrine { min-width: 0; }
.offre-vitrine .tcg { cursor: zoom-in; }
.offre-vitrine .infos-carte { flex: 1; gap: 1px; }
.offre-vitrine .infos-carte > .btn, .offre-vitrine .vendue-tampon { margin-top: auto; }
.offre-vitrine .sous-carte { justify-content: center; column-gap: 6px; margin-top: 0; font-size: var(--tp-s); line-height: 1.15; }
.offre-vitrine .sous-carte .marque-edition { font-size: 10px; }
.offre-vitrine .marque-nouvelle { display: inline-flex; filter: drop-shadow(0 0 4px var(--cyan)); }
.offre-vitrine.manque .tcg.revelee .tcg__recto { outline: 2px solid var(--cyan); outline-offset: 2px; }
.offre-vitrine .btn { justify-content: center; width: calc(100% - 8px); margin: 2px 4px calc(var(--px) * 2); }
.offre-vitrine.vendue .tcg { filter: grayscale(1) brightness(0.55); }
.offre-vitrine.vendue .sous-carte { opacity: 0.5; }
.vendue-tampon {
  margin: 3px 0 2px;
  padding: 2px 5px 1px;
  font-family: var(--police-pixel);
  font-size: var(--tp-s);
  color: var(--trait);
  text-transform: uppercase;
  background: var(--rose);
  box-shadow: 0 0 0 2px var(--trait);
  rotate: -6deg;
}

/* Une autre page joue la partie (js/main.js, surveillerOnglets) : celle-ci est en pause, sous un voile. */
.voile-onglet { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(7, 5, 15, 0.82); }
.voile-onglet__boite { max-width: 420px; padding: 18px 22px; text-align: center; display: grid; gap: 10px; justify-items: center; }

/* ------------------------------------------------------------------ tactile (tablette, phase 2) */

/* ni zoom au double appui (les coups répétés sur un booster), ni surlignage gris des touches, ni sélection de texte ni menu
   du système sur un appui long (il ouvre les actions d'une carte ou une bulle d'information : ui.js, section « tactile ») */
body.jeu { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ecran { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ecran textarea, .ecran input { -webkit-user-select: text; user-select: text; }
/* la table suit le doigt (autoclic, Grosse paluche) sans faire défiler ni zoomer la page */
.ecran__scene { touch-action: none; }
/* appui long sur une carte : ses actions, comme au survol */
.emplacement.compact.actions-ouvertes .carte-actions { opacity: 1; pointer-events: auto; }
.carte-table.actions-ouvertes { z-index: 5; }
/* appui long ailleurs : le texte de l'infobulle */
.bulle-info {
  position: fixed; z-index: 2000; max-width: min(420px, calc(100vw - 16px)); padding: 8px 10px;
  background: var(--panneau, #1b1438); color: var(--texte, #fff); border: 2px solid var(--cyan); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45);
  font-size: var(--tp-s); line-height: 1.35; white-space: pre-line; pointer-events: none;
}

/* ------------------------------------------------------------------ les modules (demande de l'auteur, 23/10/2026) */

/* Panneau Modules (ui.js rendreModules) : la roue du grenier et le bonneteau, chacun dans son cadre. La roue reprend le dessin
   de la roulette « Cadeau fou » (.roulette__…) ; le tapis du bonneteau place ses cartes par `left` (ui.placeBonneteau),
   Game.spectacle les mélange. */
.modules { display: flex; flex-direction: column; align-items: center; gap: 14px; } /* au milieu du panneau */
.module { width: 100%; max-width: 860px; padding: 10px 16px 12px; border: 3px solid var(--trait); border-radius: 8px; background: rgba(7, 5, 15, 0.32); box-shadow: inset 0 0 0 2px rgba(255, 140, 66, 0.25); }
.module__titre { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.module__titre h2 { margin: 0; color: var(--orange); }
.module__etat { font-family: var(--police-pixel); font-size: var(--tp-s); color: var(--texte-doux); text-transform: uppercase; }
.module__etat.pret { color: var(--vert); }
.module__etat.en-cours { color: var(--jaune); }
.module__etat .chrono { color: var(--jaune); }
.module__texte { margin: 2px 0 8px; }
.module__jeu { display: flex; align-items: center; justify-content: center; gap: 28px; }
.module__cote { flex: 0 1 480px; min-width: 0; }
.module-roue__roue { flex: none; margin: 8px 0 30px; }
.module-roue__roue .roulette__resultat { position: absolute; left: -40px; right: -40px; bottom: -32px; text-align: center; }
.module-roue__roue.arretee .roulette__secteur:not(.gagnant) { opacity: 0.45; }
.module-roue__cases { max-width: 480px; list-style: none; margin: 0 0 6px; padding: 0; columns: 2; column-gap: 18px; font-size: var(--tp-s); line-height: 1.6; }
.module-roue__cases li { break-inside: avoid; white-space: nowrap; }
.module-roue__cases li.derniere { color: var(--jaune); }
.module-roue__cases i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 2px solid var(--trait); vertical-align: -1px; }
.module-roue__dernier { margin: 4px 0 0; }
.module-roue__dernier strong { color: var(--jaune); }
.bonneteau__tapis {
  position: relative; flex: none; height: calc(96px * 1.4 + 28px); border: 3px solid var(--trait); border-radius: 14px;
  background: radial-gradient(ellipse at 50% 40%, #2c8a4f 0%, #17552f 70%, #0f3d22 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 225, 77, 0.25), 0 6px 0 rgba(7, 5, 15, 0.45);
}
.bonneteau-carte { position: absolute; top: 14px; display: block; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.bonneteau-carte.repos .tcg { opacity: 0.3; }
button.bonneteau-carte { cursor: pointer; transition: translate 0.12s steps(3); }
button.bonneteau-carte:hover, button.bonneteau-carte:focus-visible { translate: 0 -8px; outline: none; }
button.bonneteau-carte:hover .tcg__dos, button.bonneteau-carte:focus-visible .tcg__dos { box-shadow: 0 0 0 3px var(--jaune), 0 0 18px 2px rgba(255, 225, 77, 0.6); }
.bonneteau-carte.perdue .tcg.revelee { filter: grayscale(0.5) brightness(0.75); }
/* La machine à souhaits (24/10/2026, ui.js moduleSouhaits) : les offres (cartes cliquables), puis le souhait en cours (la
   carte souhaitée, grise tant que la machine est vide : --gris de 1 à 0), sa jauge, son stock. */
.souhaits__consigne { margin: 0 0 8px; text-align: center; }
.souhaits__vide { margin: 4px 0 2px; text-align: center; color: var(--texte-doux); }
.souhaits__offres { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.souhait-offre { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 160px; text-align: center; }
.souhait-offre__carte { display: block; margin: 0 0 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: translate 0.12s steps(3); }
.souhait-offre__carte:hover, .souhait-offre__carte:focus-visible { translate: 0 -8px; outline: none; }
.souhait-offre__carte:hover .tcg, .souhait-offre__carte:focus-visible .tcg { box-shadow: 0 0 0 3px var(--orange), 0 0 18px 2px rgba(255, 140, 66, 0.6); }
.souhait-offre__nom { color: var(--texte); }
.souhait-offre__version, .souhaits__version { color: var(--orange); text-transform: uppercase; }
.souhaits__machine {
  flex: none; padding: 12px; border: 3px solid var(--trait); border-radius: 12px;
  background: repeating-linear-gradient(0deg, rgba(111, 168, 255, 0.10) 0 4px, transparent 4px 8px), #1a2350;
  box-shadow: inset 0 0 0 3px rgba(255, 140, 66, 0.3), 0 6px 0 rgba(7, 5, 15, 0.45);
}
.souhaits__machine .tcg { filter: grayscale(var(--gris, 1)) brightness(calc(1 - var(--gris, 1) * 0.35)); }
.souhaits__titre { margin: 0 0 6px; }
.souhaits__titre strong { color: var(--jaune); font-weight: normal; }
.souhaits__jauge { max-width: 420px; }
.souhaits__compte, .souhaits__stock { margin: 4px 0 0; }
.souhaits__recette { margin: 6px 0 8px; }
.souhaits__confirmation { align-items: center; flex-wrap: wrap; }
/* La pince de la fête foraine (25/10/2026, ui.js modulePince, géométrie ui.PINCE) : une vitrine (overflow coupé : le câble
   de la pince dépasse vers le haut), un rail, la pince qui va et vient (animation sur `left`, de --pmin à --pmax, classe
   `en-jeu`), les cases en bas (un lot ou rien). Game.spectacle fige la vitrine pendant l'essai (classe `serre` : la pince
   fermée). */
.pince__vitrine {
  position: relative; flex: none; overflow: hidden; border: 3px solid var(--trait); border-radius: 12px;
  background: linear-gradient(180deg, rgba(178, 107, 255, 0.18) 0%, rgba(41, 230, 255, 0.10) 55%, #1b1036 100%), #120b26;
  box-shadow: inset 0 0 0 3px rgba(255, 225, 77, 0.28), inset 0 -40px 30px rgba(7, 5, 15, 0.5), 0 6px 0 rgba(7, 5, 15, 0.45);
}
.pince__vitrine.en-jeu { cursor: crosshair; }
.pince__vitrine.en-jeu:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
.pince__vitrine.fermee .pince__case { opacity: 0.35; }
.pince__rail { position: absolute; left: 0; right: 0; top: 4px; height: 4px; background: repeating-linear-gradient(90deg, #8a83ad 0 6px, #55555e 6px 10px); }
.pince__pince { position: absolute; top: 6px; left: calc(var(--pmin) * 1px); width: 48px; height: 42px; z-index: 2; pointer-events: none; }
.pince__vitrine.en-jeu .pince__pince { animation: pince-va-et-vient var(--pduree) linear infinite alternate; }
@keyframes pince-va-et-vient { from { left: calc(var(--pmin) * 1px); } to { left: calc(var(--pmax) * 1px); } }
.pince__cable { position: absolute; left: 22px; bottom: 100%; width: 4px; height: 320px; background: #a8a8b0; box-shadow: 1px 0 0 #55555e; }
.pince__pince img, .pince__pince svg { display: block; }
.pince__fermee { display: none; }
.pince__pince.serre .pince__ouverte { display: none; }
.pince__pince.serre .pince__fermee { display: block; }
.pince__case {
  position: absolute; bottom: 10px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px;
  margin: 0; padding: 0 0 4px; border: 2px dashed rgba(255, 255, 255, 0.12); border-radius: 6px; background: rgba(7, 5, 15, 0.35); color: inherit; font: inherit;
}
button.pince__case { cursor: pointer; }
button.pince__case:hover, button.pince__case:focus-visible { outline: none; border-color: var(--jaune); }
.pince-lot { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pince-lot__vide { color: var(--texte-doux); }
.pince-lot__texte { font-size: var(--tp-s); color: var(--jaune); white-space: nowrap; }
.pince__case.lot-manquante .pince-lot__texte { color: var(--cyan); }
.pince-lot__carte.manque .tcg { box-shadow: 0 0 0 2px var(--cyan), 0 0 10px 1px rgba(41, 230, 255, 0.6); }
.pince-lot__booster.beni img { filter: drop-shadow(0 0 6px #ffe14d) drop-shadow(0 0 2px #ffe14d); }
.pince-lot__pieces.jackpot img { filter: drop-shadow(0 0 6px #ff8c42); }
.module-pince__lots { max-width: 480px; list-style: none; margin: 0 0 6px; padding: 0; font-size: var(--tp-s); line-height: 1.6; } /* une colonne : à côté de la vitrine, deux colonnes débordaient du cadre */
.module-pince__lots li { break-inside: avoid; }
.module-pince__dernier { margin: 4px 0 0; color: var(--jaune); }
/* Le troqueur (25/10/2026, ui.js moduleTroqueur) : le bonhomme, puis une ligne par offre (demande → carte rendue, bouton ou
   tampon « Échangé ! »). */
.troqueur__perso { flex: none; padding: 10px; border: 3px solid var(--trait); border-radius: 12px; background: #2a1f14; box-shadow: inset 0 0 0 3px rgba(255, 140, 66, 0.3); }
.troqueur__perso img { display: block; }
.offre-troqueur { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 6px 4px; }
.offre-troqueur + .offre-troqueur { border-top: 2px solid rgba(255, 255, 255, 0.06); }
.offre-troqueur__demande, .offre-troqueur__donne { display: flex; flex-direction: column; min-width: 0; }
.offre-troqueur strong { font-weight: normal; }
.offre-troqueur .manque { color: var(--rose); }
.offre-troqueur__fleche { color: var(--orange); }
.offre-troqueur.faite > :not(.offre-troqueur__tampon) { opacity: 0.4; }
.offre-troqueur__tampon { color: var(--vert); text-transform: uppercase; rotate: -6deg; border: 2px solid var(--vert); border-radius: 4px; padding: 0 6px; }
.troqueur__passage { margin: 6px 0 0; }

/* ------------------------------------------------------------------ téléphone tenu debout (portrait, phase 3) */

/* Classe `portrait` du body, posée par ui.ajusterEchelle quand la fenêtre est plus haute que large ; la scène fait alors au
   moins 460 × 820 px de mise en page. Une seule colonne : l'en-tête sur deux lignes, la boutique en bandeau qui défile de
   côté, la table sur toute la largeur et toute la hauteur restante, le dock en icônes. Les fenêtres Marché, Expertise et
   Équipe des colonnes n'ont pas leur place : leurs panneaux s'ouvrent par le dock (l'onglet Équipe n'existe qu'en portrait). */
body.portrait .ecran {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  grid-template-areas: 'entete' 'gauche' 'scene' 'dock';
  gap: 6px;
  padding: 0 8px 6px;
}
body.portrait .ecran__droite { display: none; }

/* en-tête : logo et boutons sur la première ligne ; pièces, total, bac et effets en cours sur la deuxième ; le bandeau des
   événements (s'il y en a) sur la troisième */
body.portrait .ecran__entete { flex-wrap: wrap; gap: 4px 12px; margin: 0 -8px; padding: 6px 10px 6px 12px; }
body.portrait .ecran__entete .logo { order: 1; font-size: var(--tp-m); }
body.portrait .ecran__entete > .btn { order: 2; }
body.portrait .ecran__entete > .bouton-son { margin-left: auto; }
body.portrait .ecran__entete::after { content: ''; order: 3; flex-basis: 100%; height: 0; }
body.portrait .ecran__entete > .bloc, body.portrait .ecran__entete > .bloc-pouvoirs { order: 4; }
body.portrait .ecran__entete .pieces.long { font-size: var(--tp-m); }
body.portrait .bandeau-evenements { order: 5; flex-basis: 100%; min-width: 0; }
body.portrait .bandeau-evenements.ferme, body.portrait .bandeau-evenements.calme { display: none; }

/* boutique : un bandeau, un booster à côté de l'autre, qui défile au doigt */
body.portrait .ecran__gauche { overflow: visible; }
body.portrait .ecran__gauche .fenetre-boutique { margin-top: 12px; padding: 16px 8px 6px; }
body.portrait .ecran__gauche .fenetre-equipe { display: none; }
body.portrait .boutique-liste { display: flex; gap: 0 10px; overflow-x: auto; overflow-y: hidden; margin: 0; padding: 0 0 4px; touch-action: pan-x; scrollbar-width: thin; }
body.portrait .boutique-liste .ligne-booster { flex: 0 0 218px; padding: 3px 0 3px 10px; }
body.portrait .boutique-liste .ligne-booster + .ligne-booster { border-top: 0; border-left: 2px solid rgba(255, 255, 255, 0.06); }
body.portrait .boutique-liste .ligne-booster .commande { left: 10px; }
body.portrait .grille-vitrine { display: flex; gap: 0 8px; }
body.portrait .grille-vitrine > .emplacement { flex: 0 0 76px; }
body.portrait .onglets-boutique { margin-bottom: 4px; }

/* dock : des icônes (le nom reste en infobulle et pour les lecteurs d'écran), le badge sur le coin */
body.portrait .ecran__dock { gap: 6px; justify-content: space-evenly; padding-top: 6px; }
body.portrait .ecran__dock .btn { position: relative; padding: 10px 12px 11px; }
body.portrait .ecran__dock .dock__nom {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
body.portrait .ecran__dock .btn .badge-num { position: absolute; top: -9px; right: -7px; padding: 0 4px; font-size: 10px; line-height: 15px; }

/* panneau ouvert : il prend la boutique et la table */
body.portrait .panneau { grid-row: 2 / 4; grid-column: 1; margin: 12px 0 3px; padding: 22px 4px 8px 10px; }

/* toasts : en bas de la table, au-dessus de ses boutons (ils ne captent pas les touches) */
body.portrait .ecran__toasts { grid-area: scene; margin: 0 6px 46px; }

/* fiche d'une carte : la carte au-dessus de son texte, la fenêtre défile si besoin */
body.portrait .fiche.fenetre, body.portrait .fiche.fenetre:not(.fin-de-partie) {
  display: flex; flex-direction: column; width: calc(100% - 16px); max-width: none; max-height: calc(100% - 32px); padding: 26px 8px 16px 14px;
}
body.portrait .fiche__corps { flex-direction: column; align-items: center; gap: 14px; min-height: 0; overflow-y: auto; padding-right: 6px; }
body.portrait .fiche__texte { width: 100%; }

/* réglages des employés et contenus des panneaux : sur une colonne */
body.portrait .reglage-vendeur { grid-template-columns: minmax(0, 1fr); }
body.portrait .reglage-vendeur__aide { grid-column: 1; }
body.portrait .resultats-expertise { grid-template-columns: minmax(0, 1fr); }
/* les modules : la roue (ou le tapis) au-dessus de ses commandes */
body.portrait .module__jeu { flex-direction: column; align-items: center; gap: 8px; }
body.portrait .module__cote { flex-basis: auto; width: 100%; }
