/* V431 — L'ÉCRAN DE SÉLECTION « DISQUE-SÉLECTEUR » (src/ui/selection-disque.js).
   La racine #selectionChampionsV279 porte data-style-v429="disque" ; le contenu est .scd-ecran.
   Façade du lecteur en haut (marque, afficheur fluorescent, tiroir), le défilant en bas ; entre les
   deux : le changeur (joueurs) à gauche, le disque au centre, la télécommande à droite.

   LE DISQUE : chaque médaillon porte son rang --k ; --scd-angle (propriété enregistrée, donc animée
   par la transition) fait tourner tout le disque. Place, profondeur, taille, éclat et ordre de
   superposition se calculent ici (sin, cos) : rien n'est recalculé en JavaScript pendant que le
   disque tourne. Les médaillons du fond passent DERRIÈRE le champion, ceux de devant DEVANT : la
   fiche (.scd-fiche) est en display: contents, si bien que la scène, le disque et l'idle partagent
   la même grille et le même contexte d'empilement (.scd-centre, isolation: isolate).
   Les idles réutilisent les règles de la jaquette (.scj-idle, .scj-video, .scj-cycle). Liée avant
   paysage-mobile.css (la dernière) ; sélecteurs à #selectionChampionsV279 là où une règle de l'écran
   V279 (styles.css) viserait la même classe partagée (.scv-fiche, .scv-fiche-image, .scv-vignette). */

@property --scd-angle { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

.selection-champions-v279[data-style-v429="disque"] { padding: 12px; }
.scd-ecran {
  --scd-vfd: #7dffd0; --scd-laser: #ff4646; --scd-couleur: #59ecff;
  position: relative;
  width: min(1440px, 100%);
  height: min(900px, calc(100vh - 24px));
  display: grid; grid-template-rows: 56px minmax(0, 1fr) 32px;
  border-radius: 14px; overflow: hidden;
  color: #eef6ff;
  font-family: Barlow, system-ui, sans-serif;
  background:
    radial-gradient(46% 56% at 50% 44%, color-mix(in srgb, var(--scd-couleur) 26%, transparent), transparent 72%),
    radial-gradient(70% 50% at 50% 100%, #0c2a36, transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px),
    #030608;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

/* ------------------------------------------------------------------ la façade et le défilant */
.scd-bande { position: relative; z-index: 3; display: grid; align-items: center; padding: 0 16px; background: linear-gradient(180deg, #171a20, #0a0c10); }
.scd-haut { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; border-bottom: 1px solid #22262e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.6); }
.scd-marque { min-width: 0; }
.scd-marque b { display: block; font: 700 15px/1 Barlow, sans-serif; letter-spacing: 0.24em; color: #dfe6f0; }
.scd-marque span { display: block; margin-top: 3px; font: 7px/1.5 "Press Start 2P", monospace; letter-spacing: 0.1em; color: #7f8aa0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scd-vfd { padding: 8px 20px; border-radius: 6px; background: #020806; border: 1px solid #1f3a30; box-shadow: inset 0 0 14px #000, 0 0 0 3px #0b0e12; }
.scd-vfd h2 { margin: 0; font: 15px/1.2 "Press Start 2P", monospace; color: var(--scd-actif, var(--scd-vfd)); text-shadow: 0 0 8px color-mix(in srgb, var(--scd-actif, var(--scd-vfd)) 70%, transparent); white-space: nowrap; text-align: center; }
.scd-tiroir-lecteur { justify-self: end; display: flex; align-items: center; gap: 10px; }
.scd-tiroir-lecteur span { width: 150px; height: 9px; border-radius: 5px; background: linear-gradient(#000, #1a1d22); box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255, 255, 255, 0.08); }
.scd-tiroir-lecteur i { font: normal 9px "Press Start 2P", monospace; color: var(--scd-vfd); text-shadow: 0 0 6px var(--scd-vfd); }
.scd-bas { border-top: 1px solid #1d222a; }
.scd-message { margin: 0; font: 13px/1.2 Barlow, sans-serif; color: #9fb0c3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ le corps */
.scd-corps { position: relative; z-index: 1; display: grid; grid-template-columns: 230px minmax(0, 1fr) 172px; gap: 14px; padding: 12px 16px; min-height: 0; }
.scd-sous-titre { margin: 0; font: 7px/1.4 "Press Start 2P", monospace; letter-spacing: 0.12em; color: #6f86a0; }

/* --- le changeur : un tiroir par joueur */
.scd-changeur { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; scrollbar-width: thin; padding: 2px; }
.scd-tiroirs { display: grid; gap: 8px; }
/* L'habillage des boutons du jeu (styles.css : « button », et l'habillage arcade
   « body[data-ui-skin="arcade"] .shop-layer button », plus fort qu'une classe : fond, bordure, coins,
   police, ombre) repeindrait ceux du disque : leurs règles passent par #selectionChampionsV279. */
#selectionChampionsV279 .scd-ecran button { letter-spacing: normal; text-transform: none; transition: none; }
#selectionChampionsV279 .scd-ecran button:active { transform: none; }
#selectionChampionsV279 .scd-tiroir {
  position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; align-items: center;
  padding: 8px 10px; text-align: left; border-radius: 8px; border: 1px solid #1f2a36; background: linear-gradient(180deg, #0e1319, #080b10);
  color: #eef6ff; font: 13px Barlow, sans-serif; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.scd-tiroir-n { grid-column: 1 / -1; margin-bottom: 4px; font: 6px/1 "Press Start 2P", monospace; letter-spacing: 0.12em; color: #52657a; }
.scd-tiroir b { grid-column: 2; grid-row: 2; font: 11px/1.2 "Press Start 2P", monospace; color: var(--scd-joueur); }
.scd-tiroir-galette {
  grid-column: 1; grid-row: 2 / span 2; position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle, #05070a 0 13%, transparent 14%), conic-gradient(from 30deg, #9fe8ff55, #ffc6f255, #fff3a855, #b6ffd255, #9fe8ff55), #121820;
  border: 2px solid color-mix(in srgb, var(--scd-joueur) 60%, #000);
}
.scd-tiroir-galette img { position: absolute; left: -18%; top: -6%; width: 136%; image-rendering: pixelated; -webkit-mask: radial-gradient(circle at 50% 44%, transparent 0 7%, #000 8%); mask: radial-gradient(circle at 50% 44%, transparent 0 7%, #000 8%); }
.scd-tiroir-galette > span { font: 16px "Press Start 2P", monospace; color: var(--scd-joueur); }
.scd-tiroir-galette.tourne { animation: scd-tourne 7s linear infinite; }
.scd-tiroir-texte { grid-column: 2; grid-row: 3; min-width: 0; }
.scd-tiroir-texte strong { display: block; font: 700 15px/1.1 Barlow, sans-serif; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scd-tiroir-texte small { font: 7px "Press Start 2P", monospace; letter-spacing: 0.08em; color: var(--scd-joueur); }
#selectionChampionsV279 .scd-tiroir:hover, #selectionChampionsV279 .scd-tiroir:focus-visible { border-color: color-mix(in srgb, var(--scd-joueur) 60%, #1f2a36); background: linear-gradient(180deg, #121922, #0a0e14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); outline: none; }
#selectionChampionsV279 .scd-tiroir.active { border-color: var(--scd-joueur); box-shadow: 0 0 0 1px var(--scd-joueur), 0 0 18px color-mix(in srgb, var(--scd-joueur) 45%, transparent); }
.scd-tiroir.active .scd-tiroir-texte small { animation: scd-clignote 1s steps(1) infinite; }
.scd-tiroir.ia { cursor: default; opacity: 0.9; }
/* Le sommaire du disque : une ligne par piste (champion) ; la piste lue s'allume. */
.scd-sommaire { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
#selectionChampionsV279 .scd-ligne { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 6px; width: 100%; padding: 5px 8px; border: 0; border-left: 3px solid transparent; border-radius: 3px; background: transparent; box-shadow: none; color: #9fb0c3; font: 7px/1.4 "Press Start 2P", monospace; text-align: left; cursor: pointer; }
#selectionChampionsV279 .scd-ligne span { color: #52657a; }
#selectionChampionsV279 .scd-ligne b { font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#selectionChampionsV279 .scd-ligne i { color: #ffd24a; display: grid; }
#selectionChampionsV279 .scd-ligne i svg { width: 11px; height: 11px; }
#selectionChampionsV279 .scd-ligne em { padding: 2px 3px; border-radius: 2px; background: var(--scd-joueur); color: #05040a; font: normal 6px/1 "Press Start 2P", monospace; }
#selectionChampionsV279 .scd-ligne:is(:hover, :focus-visible) { background: rgba(125, 255, 208, 0.06); color: #e6f4ff; outline: none; }
#selectionChampionsV279 .scd-ligne.lu { border-left-color: var(--scd-couleur); background: linear-gradient(90deg, color-mix(in srgb, var(--scd-couleur) 22%, transparent), transparent); color: #fff; }
#selectionChampionsV279 .scd-ligne.lu span { color: var(--scd-vfd); }
#selectionChampionsV279 .scd-ligne.verrouille b { color: #5d6a7a; }
.scd-bac > div { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
#selectionChampionsV279 .scd-classique { width: 46px; height: 46px; padding: 2px; border-radius: 50%; border: 1px dashed #2f4256; background: #0b1016; box-shadow: none; cursor: pointer; }
.scd-classique canvas { width: 100%; height: 100%; image-rendering: pixelated; border-radius: 50%; }
#selectionChampionsV279 .scd-classique:is(.choisie, .survol, :focus-visible, :hover) { border-style: solid; border-color: var(--scd-actif); background: #0b1016; box-shadow: none; outline: none; }
.scd-classique.verrouille { opacity: 0.5; }

/* --- le centre : le disque, le champion lu, son nom, ses pistes */
.scd-centre {
  --scd-taille: 92px; --scd-incl: 0.24;
  --scd-rx: min(330px, 25vw);
  --scd-ry: calc(var(--scd-rx) * var(--scd-incl));
  --scd-bas: calc(var(--scd-ry) + var(--scd-taille) * 0.62 + 6px);
  --scd-pas: calc(360deg / var(--scd-n, 10));
  position: relative; isolation: isolate; min-height: 0; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto;
  grid-template-areas: "scene" "nom" "afficheur";
}
#selectionChampionsV279 .scd-fiche { display: contents; }
.scd-plateau-zone, .scd-roue, #selectionChampionsV279 .scd-scene { grid-area: scene; position: relative; min-height: 0; }
.scd-plateau-zone { z-index: 0; pointer-events: none; }
.scd-laser { position: absolute; left: 50%; top: 0; width: 3px; height: calc(100% - var(--scd-bas)); translate: -50% 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--scd-laser) 70%, transparent) 55%, var(--scd-laser)); box-shadow: 0 0 12px var(--scd-laser); opacity: 0.5; }
/* La tête de lecture : la lueur rouge sous le médaillon de devant (celui qui est lu). */
.scd-tete { position: absolute; left: 50%; top: calc(100% - var(--scd-bas) + var(--scd-ry)); width: calc(var(--scd-taille) * 1.7); height: calc(var(--scd-taille) * 0.42); translate: -50% -10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--scd-laser) 80%, transparent), transparent); filter: blur(3px); opacity: 0.8; }
/* Le plateau : un disque vu en perspective (carré écrasé en hauteur), reflet irisé fixe, secteurs
   qui tournent, moyeu transparent sous les pieds du champion. */
.scd-plateau {
  position: absolute; left: 50%; top: calc(100% - var(--scd-bas)); width: calc(var(--scd-rx) * 2.36); aspect-ratio: 1; translate: -50% -50%; transform: scaleY(var(--scd-incl));
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 9%, #2a3542 9.5% 29%, #4a5c6e 29.5% 31%, #18202a 31.5% 96.5%, #8a9bab 97% 99%, #44505c 99.5%);
  box-shadow: 0 0 70px color-mix(in srgb, var(--scd-couleur) 45%, transparent), 0 0 0 3px rgba(0, 0, 0, 0.6);
}
.scd-disque, .scd-sillons, .scd-moyeu { position: absolute; inset: 0; border-radius: 50%; }
.scd-disque { background: conic-gradient(from 200deg, #b9f2ff, #ffd1f3 50deg, #fff3b0 95deg, #b8ffd4 140deg, #a9c9ff 190deg, #ffd1f3 240deg, #b9f2ff 300deg, #e9fbff); opacity: 0.42; -webkit-mask: radial-gradient(circle, transparent 0 31%, #000 32% 96%, transparent 96.5%); mask: radial-gradient(circle, transparent 0 31%, #000 32% 96%, transparent 96.5%); }
.scd-sillons { background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.22) 0 1.4deg, transparent 1.4deg 12deg); -webkit-mask: radial-gradient(circle, transparent 0 33%, #000 34% 95%, transparent 95.5%); mask: radial-gradient(circle, transparent 0 33%, #000 34% 95%, transparent 95.5%); animation: scd-tourne 9s linear infinite; }
.scd-moyeu { inset: 36%; background: radial-gradient(circle, color-mix(in srgb, var(--scd-couleur) 55%, #030608) 0 22%, rgba(200, 230, 255, 0.32) 24% 60%, transparent 62%); }

/* Le disque des champions. */
.scd-roue { pointer-events: none; transition: --scd-angle 0.6s cubic-bezier(0.22, 0.9, 0.28, 1); }
.scd-medaillon {
  --a: calc(var(--k) * var(--scd-pas) + var(--scd-angle));
  --p: calc((1 + cos(var(--a))) / 2);
  position: absolute; left: calc(50% + sin(var(--a)) * var(--scd-rx)); top: calc(100% - var(--scd-bas) + cos(var(--a)) * var(--scd-ry));
  width: var(--scd-taille); height: var(--scd-taille); translate: -50% -50%;
  scale: calc(0.5 + 0.62 * var(--p));
  z-index: calc(2 + 18 * var(--p));
  filter: brightness(calc(0.38 + 0.62 * var(--p))) saturate(calc(0.35 + 0.65 * var(--p)));
  margin: 0; color: #fff; cursor: pointer; pointer-events: auto;
}
#selectionChampionsV279 .scd-medaillon, #selectionChampionsV279 .scd-medaillon:is(:hover, :focus-visible, :active) { padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; outline: none; font: 13px Barlow, sans-serif; }
.scd-galette {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--scd-couleur) 55%, #0b1016), #06080c 72%);
  border: 3px solid color-mix(in srgb, var(--scd-couleur) 70%, #10161e);
  box-shadow: 0 0 0 2px #93a6b8, 0 8px 16px rgba(0, 0, 0, 0.65);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.scd-galette img { position: absolute; left: -18%; top: -6%; width: 136%; image-rendering: pixelated; pointer-events: none; }
.scd-reflet { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 210deg, transparent 0 20deg, rgba(255, 255, 255, 0.24) 40deg, transparent 70deg 200deg, rgba(180, 240, 255, 0.18) 230deg, transparent 260deg); mix-blend-mode: screen; pointer-events: none; }
.scd-piste { position: absolute; left: 50%; top: -9px; translate: -50% 0; padding: 2px 4px; border-radius: 3px; background: #020806; border: 1px solid #1f3a30; font: 7px/1 "Press Start 2P", monospace; color: var(--scd-vfd); }
.scd-etiquette-nom { position: absolute; left: 50%; top: 100%; translate: -50% 5px; padding: 3px 7px; border-radius: 3px; background: rgba(0, 0, 0, 0.8); font: 700 13px/1 Barlow, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity 0.15s ease; pointer-events: none; }
.scd-medaillon:hover .scd-etiquette-nom, .scd-medaillon:focus-visible .scd-etiquette-nom { opacity: 1; }
.scd-medaillon:hover .scd-galette { border-color: #fff; }
.scd-medaillon:focus-visible .scd-galette { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--scd-actif); }
.scd-medaillon.survol .scd-galette { border-color: var(--scd-actif); box-shadow: 0 0 0 3px var(--scd-actif), 0 0 28px var(--scd-actif), 0 8px 16px rgba(0, 0, 0, 0.65); }
.scd-medaillon.choisie:not(.survol) .scd-galette { border-color: var(--scd-actif); }
.scd-medaillon.verrouille .scd-galette img { filter: grayscale(0.9) brightness(0.45); }
.scd-cadenas { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; color: #ffd24a; text-shadow: 0 1px 2px #000; }
.scd-cadenas small { font: 6px "Press Start 2P", monospace; }
.scd-offert { position: absolute; right: -8px; bottom: 6px; padding: 2px 3px; border-radius: 2px; background: #ffd24a; color: #1a1205; font: 6px/1 "Press Start 2P", monospace; }
.scd-badges { position: absolute; left: -6px; top: -4px; display: flex; gap: 2px; }
.scd-badge { padding: 3px; border-radius: 3px; background: var(--scd-joueur); color: #05040a; font: normal 7px/1 "Press Start 2P", monospace; box-shadow: 0 0 8px var(--scd-joueur); }

/* Le champion lu, debout sur le moyeu. */
/* align-self : sous 860 px de large, l'écran V279 met « align-self: start » sur .scv-fiche-image (sa
   scène tomberait à 0 px : tout y est en position absolue). */
#selectionChampionsV279 .scd-scene.scv-fiche-image { display: block; align-self: stretch; justify-self: stretch; aspect-ratio: auto; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; pointer-events: none; }
#selectionChampionsV279 .scd-idle.scj-idle { left: 50%; right: auto; top: 0; bottom: var(--scd-bas); width: min(64%, 460px); translate: -50% 0; z-index: 11; }
#selectionChampionsV279 .scd-idle .scj-video { object-position: 50% 100%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 22px color-mix(in srgb, var(--scd-couleur) 35%, transparent)); }
#selectionChampionsV279 .scd-idle .scj-cycle { width: min(100%, 50vh); scale: 1.35; transform-origin: 50% 97%; }
#selectionChampionsV279 .scd-version { position: absolute; left: 50%; top: 0; bottom: var(--scd-bas); width: min(64%, 460px); height: calc(100% - var(--scd-bas)); max-width: none; max-height: none; translate: -50% 0; object-fit: contain; object-position: 50% 100%; image-rendering: pixelated; display: none; z-index: 11; }
#selectionChampionsV279 .scd-scene.apercu-version .scd-version { display: block; animation: scj-respire 2.6s ease-in-out infinite; }
#selectionChampionsV279 .scd-scene.apercu-version .scd-idle { visibility: hidden; }
.scd-scene.verrouille .scd-idle, .scd-scene.verrouille .scd-version { filter: grayscale(0.8) brightness(0.55); }
.scd-verrou { position: absolute; left: 50%; top: 38%; translate: -50% 0; z-index: 12; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.78); color: #ffd24a; font: 9px "Press Start 2P", monospace; }
#selectionChampionsV279 .scd-classique-apercu { position: absolute; left: 50%; bottom: var(--scd-bas); width: min(48%, 260px); height: auto; aspect-ratio: 1; translate: -50% 0; image-rendering: pixelated; z-index: 11; }

/* Le nom, puis l'afficheur du lecteur (PISTE 01 = skill, PISTE 02 = Domain) et les éditions. */
.scd-nom-bloc { grid-area: nom; position: relative; z-index: 12; text-align: center; min-width: 0; }
.scd-nom { font: 700 clamp(34px, 4.2vw, 60px)/0.92 Barlow, sans-serif; letter-spacing: 0.01em; text-transform: uppercase; color: var(--scd-couleur); text-shadow: 3px 3px 0 #000, 0 0 26px color-mix(in srgb, var(--scd-couleur) 45%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: max-content; }
.scd-titre { margin: 3px 0 0; font: 8px/1.5 "Press Start 2P", monospace; letter-spacing: 0.1em; color: color-mix(in srgb, var(--scd-couleur) 45%, #fff); }
.scd-titre em { margin-left: 6px; font: italic 700 13px/1.3 Barlow, sans-serif; letter-spacing: 0; color: #d4e6f2; }
.scd-afficheur { grid-area: afficheur; position: relative; z-index: 12; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px); gap: 10px; margin-top: 8px; min-height: 0; }
.scd-afficheur:not(:has(.scd-bonus)) { grid-template-columns: minmax(0, 1fr); }
.scd-lcd { padding: 8px 12px 8px; border-radius: 8px; background: linear-gradient(180deg, #03110d, #020806); border: 1px solid #1d4636; box-shadow: inset 0 0 18px #000, 0 0 0 3px #0a0d11, 0 0 22px rgba(125, 255, 208, 0.08); color: var(--scd-vfd); min-width: 0; }
.scd-lcd-tete { display: flex; gap: 14px; margin: 0 0 4px; font: 7px/1 "Press Start 2P", monospace; letter-spacing: 0.1em; color: color-mix(in srgb, var(--scd-vfd) 55%, #000); }
.scd-lcd-lecture { margin-left: auto; color: var(--scd-vfd); animation: scd-clignote 1.2s steps(1) infinite; }
.scd-piste-ligne { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: start; padding: 5px 0 3px; border-top: 1px dashed rgba(125, 255, 208, 0.14); }
.scd-piste-n { font: 8px/1.7 "Press Start 2P", monospace; color: #ffd24a; text-shadow: 0 0 6px rgba(255, 210, 74, 0.6); white-space: nowrap; }
.scd-piste-ligne b { display: block; font: 8px/1.7 "Press Start 2P", monospace; color: var(--scd-vfd); text-shadow: 0 0 6px color-mix(in srgb, var(--scd-vfd) 60%, transparent); }
.scd-piste-ligne b i { margin-left: 4px; font-style: normal; color: #5fb79a; }
.scd-piste-ligne p { margin: 2px 0 0; font: 13px/1.32 Barlow, sans-serif; color: #cdeee2; }
.scd-bonus { padding: 8px 10px; border-radius: 8px; background: rgba(4, 8, 12, 0.82); border: 1px solid #1c2733; min-width: 0; }
.scd-bonus-titre { margin: 0 0 4px; font: 7px "Press Start 2P", monospace; letter-spacing: 0.1em; color: #7f8aa0; }
#selectionChampionsV279 .scd-bonus .scv-vignettes-bloc { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; background: none; }
#selectionChampionsV279 .scd-bonus .scv-skins-compte { margin: 0; font: 6px/1.5 "Press Start 2P", monospace; color: #5c6b7c; }
#selectionChampionsV279 .scd-bonus .scv-vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; }
#selectionChampionsV279 .scd-bonus .scv-vignette { position: relative; width: auto; height: auto; aspect-ratio: 1; padding: 0; border-radius: 50%; border: 2px solid #2a3644; background: radial-gradient(circle, #05070a 0 10%, #121a24 11%); cursor: pointer; overflow: hidden; }
#selectionChampionsV279 .scd-bonus .scv-vignette img { position: absolute; left: -18%; top: -6%; width: 136%; height: auto; max-width: none; image-rendering: pixelated; }
#selectionChampionsV279 .scd-bonus .scv-vignette:hover, #selectionChampionsV279 .scd-bonus .scv-vignette:focus-visible { border-color: #fff; outline: none; }
#selectionChampionsV279 .scd-bonus .scv-vignette.choisie { border-color: var(--scd-actif); box-shadow: 0 0 0 2px var(--scd-actif); }
#selectionChampionsV279 .scd-bonus .scv-vignette.verrouille img { filter: grayscale(1) brightness(0.5); }
#selectionChampionsV279 .scd-bonus .scv-vignette-cadenas { position: absolute; inset: 0; display: grid; place-items: center; color: #ffd24a; }

/* --- la télécommande */
.scd-telecommande {
  align-self: center; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 14px 18px; border-radius: 28px 28px 36px 36px;
  background: linear-gradient(180deg, #1c2027, #0c0e12); border: 1px solid #2a2f38;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.6);
}
.scd-tc-marque { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font: 700 11px/1 Barlow, sans-serif; letter-spacing: 0.32em; color: #8b95a6; }
.scd-tc-marque span { width: 6px; height: 6px; border-radius: 50%; background: var(--scd-laser); box-shadow: 0 0 6px var(--scd-laser); }
/* width: 100% : un élément de grille à aspect-ratio ne s'étire pas, il prendrait sa largeur de contenu. */
.scd-tc-croix { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; width: 100%; box-sizing: border-box; aspect-ratio: 1; padding: 8px; border-radius: 50%; background: radial-gradient(circle, #1a1e25 0 38%, #272c35 39% 70%, #15181d 71%); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.05); }
#selectionChampionsV279 .scd-tc-fleche { width: 100%; height: 48px; padding: 0; border: 0; border-radius: 10px; background: transparent; box-shadow: none; color: #cfd6e2; font: 13px "Press Start 2P", monospace; cursor: pointer; }
#selectionChampionsV279 .scd-tc-enter { width: 60px; height: 60px; padding: 0; border-radius: 50%; border: 1px solid #3a414d; background: radial-gradient(circle at 40% 35%, #3c4350, #1b1f26); color: #fff; font: 8px "Press Start 2P", monospace; cursor: pointer; box-shadow: 0 3px 0 #07080a; }
#selectionChampionsV279 .scd-tc-fleche:is(:hover, :focus-visible) { color: var(--scd-actif); background: transparent; box-shadow: none; outline: none; }
#selectionChampionsV279 .scd-tc-enter:is(:hover, :focus-visible) { border-color: var(--scd-actif); background: radial-gradient(circle at 40% 35%, #3c4350, #1b1f26); box-shadow: 0 3px 0 #07080a, 0 0 14px color-mix(in srgb, var(--scd-actif) 60%, transparent); outline: none; }
#selectionChampionsV279 .scd-tc-enter:active, #selectionChampionsV279 .scd-tc-fleche:active { translate: 0 2px; }
#selectionChampionsV279 .scd-tc-play { width: 100%; min-width: 0; white-space: nowrap; padding: 13px 8px; border-radius: 10px; border: 2px solid #ffd24a; background: linear-gradient(180deg, #ffe27a, #e6a812); color: #1a1205; font: 11px/1 "Press Start 2P", monospace; box-shadow: 0 4px 0 #6b4c0b, 0 0 22px rgba(255, 210, 74, 0.3); cursor: pointer; }
body #selectionChampionsV279 .scd-tc-play:not(:disabled) { border-color: #ffd24a !important; background: linear-gradient(180deg, #ffe27a, #e6a812) !important; color: #1a1205 !important; animation: scd-presse 1.1s steps(1) infinite; }
#selectionChampionsV279 .scd-tc-play:disabled { filter: grayscale(0.85) brightness(0.55); box-shadow: none; cursor: default; }
#selectionChampionsV279 .scd-tc-play:not(:disabled):active { translate: 0 3px; box-shadow: 0 1px 0 #6b4c0b; }
.scd-tc-rangee { display: grid; gap: 8px; }
#selectionChampionsV279 :is(.scd-tc-retour, .scd-tc-ecran) { padding: 9px 6px; border-radius: 999px; border: 1px solid #2d333d; background: #12151a; box-shadow: none; color: #c9d1de; font: 7px/1.3 "Press Start 2P", monospace; cursor: pointer; }
#selectionChampionsV279 :is(.scd-tc-retour, .scd-tc-ecran):is(:hover, :focus-visible) { border-color: var(--scd-actif); background: #171b21; color: #fff; outline: none; }

@keyframes scd-tourne { to { rotate: 360deg; } }
@keyframes scd-clignote { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.35; } }
@keyframes scd-presse { 0%, 70% { filter: none; } 71%, 100% { filter: brightness(1.25); } }

/* ------------------------------------------------------------------ petits écrans */
@media (max-width: 1150px) {
  .scd-corps { grid-template-columns: 180px minmax(0, 1fr) 140px; gap: 10px; padding: 10px; }
  .scd-centre { --scd-taille: 80px; --scd-rx: min(300px, 26vw); }
  .scd-afficheur { grid-template-columns: minmax(0, 1fr) minmax(0, 190px); }
  .scd-tiroir-lecteur span { width: 80px; }
}
/* Téléphone en paysage : le disque à gauche du centre, le nom et les pistes à sa droite (défilent). */
@media (max-height: 560px) {
  .selection-champions-v279[data-style-v429="disque"] { padding: 6px; }
  .scd-ecran { height: calc(100vh - 12px); grid-template-rows: 34px minmax(0, 1fr) 22px; border-radius: 10px; }
  .scd-bande { padding: 0 10px; }
  .scd-marque b { font-size: 11px; }
  .scd-marque span { font-size: 5px; }
  .scd-vfd { padding: 5px 10px; }
  .scd-vfd h2 { font-size: 10px; }
  .scd-tiroir-lecteur span { display: none; }
  .scd-tiroir-lecteur i { font-size: 7px; }
  .scd-message { font-size: 10px; }
  .scd-corps { grid-template-columns: 116px minmax(0, 1fr) 88px; gap: 8px; padding: 6px 8px; }
  .scd-changeur { gap: 6px; }
  .scd-changeur > .scd-sous-titre, .scd-tiroir-n { display: none; }
  .scd-tiroirs { gap: 5px; }
  #selectionChampionsV279 .scd-tiroir { grid-template-columns: 30px minmax(0, 1fr); column-gap: 6px; padding: 5px 6px; }
  .scd-tiroir-galette { width: 30px; height: 30px; }
  .scd-tiroir b { font-size: 8px; }
  .scd-tiroir-texte strong { font-size: 11px; }
  .scd-tiroir-texte small { font-size: 5px; }
  #selectionChampionsV279 .scd-classique { width: 32px; height: 32px; }
  #selectionChampionsV279 .scd-ligne { grid-template-columns: 13px minmax(0, 1fr) auto auto; gap: 4px; padding: 3px 4px; font-size: 5px; }
  #selectionChampionsV279 .scd-ligne i svg { width: 8px; height: 8px; }
  .scd-centre {
    --scd-taille: 50px; --scd-rx: min(150px, 18vw);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "scene nom" "scene afficheur"; column-gap: 10px;
  }
  .scd-nom-bloc { text-align: left; }
  .scd-nom { font-size: 26px; }
  .scd-titre { font-size: 6px; }
  .scd-titre em { display: block; margin: 2px 0 0; font-size: 11px; }
  .scd-afficheur { grid-template-columns: minmax(0, 1fr); margin-top: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; align-content: start; }
  .scd-lcd { padding: 6px 8px; }
  .scd-piste-ligne { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .scd-piste-n, .scd-piste-ligne b { font-size: 6px; }
  .scd-piste-ligne p { font-size: 11px; }
  .scd-telecommande { gap: 7px; padding: 10px 8px 12px; border-radius: 20px 20px 26px 26px; }
  .scd-tc-marque { font-size: 8px; letter-spacing: 0.2em; }
  .scd-tc-croix { padding: 4px; }
  #selectionChampionsV279 .scd-tc-fleche { height: 34px; font-size: 9px; }
  #selectionChampionsV279 .scd-tc-enter { width: 38px; height: 38px; font-size: 5px; }
  #selectionChampionsV279 .scd-tc-play { padding: 9px 4px; font-size: 8px; }
  #selectionChampionsV279 :is(.scd-tc-retour, .scd-tc-ecran) { padding: 6px 4px; font-size: 5px; }
}
/* Écran étroit (téléphone tenu droit) : changeur en haut, disque et pistes, télécommande en bas. */
@media (max-width: 720px) {
  /* L'écran défile en entier : ses rangées prennent la hauteur de leur contenu. */
  .scd-ecran { height: auto; max-height: calc(100vh - 12px); overflow: auto; grid-template-rows: 56px auto 32px; }
  .scd-corps { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .scd-changeur { overflow: visible; }
  .scd-tiroirs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .scd-sommaire { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scd-centre { --scd-taille: 60px; --scd-rx: 38vw; min-height: 620px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 330px auto auto; grid-template-areas: "scene" "nom" "afficheur"; }
  .scd-afficheur { grid-template-columns: minmax(0, 1fr); }
  /* La télécommande en travers : la croix à gauche, PLAY puis Retour / Écran à droite. */
  .scd-telecommande { grid-template-columns: 140px minmax(0, 1fr); align-items: center; border-radius: 18px; }
  .scd-tc-marque { grid-column: 1 / -1; }
  .scd-tc-croix { grid-row: span 2; }
  .scd-haut { grid-template-columns: 1fr auto; }
  .scd-tiroir-lecteur { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scd-ecran *, .scd-ecran *::before, .scd-ecran *::after { animation: none !important; transition: none !important; }
}

/* V441 — Le champion 00 : ses trois éditions (Blue, Pink, You) en vignettes nommées, et la banque de nodes de You. */
#selectionChampionsV279 .scd-bonus .scv-vignettes:has(.n00-edition-v441) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#selectionChampionsV279 .scd-bonus .scv-vignette.n00-edition-v441 { aspect-ratio: auto; height: 62px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
#selectionChampionsV279 .scd-bonus .scv-vignette.n00-edition-v441 img { position: static; width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; margin-top: -10px; }
#selectionChampionsV279 .scd-bonus .scv-vignette.n00-edition-v441 span { position: absolute; left: 0; right: 0; bottom: 3px; font: 700 9px/1 "Press Start 2P", monospace; text-align: center; color: #fff; text-shadow: 0 1px 2px #000; }
#selectionChampionsV279 .n00-banque-v441 { margin-top: 6px; padding: 6px; border: 1px solid var(--scd-couleur, #59ecff); border-radius: 8px; background: rgba(5, 6, 12, 0.88); }
#selectionChampionsV279 .n00-banque-v441 p { display: flex; align-items: center; justify-content: space-between; margin: 0 0 5px; font: 700 9px/1 "Press Start 2P", monospace; color: #e9eef7; }
#selectionChampionsV279 .n00-banque-v441 p button { min-width: 24px; min-height: 24px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px; background: none; color: #fff; cursor: pointer; }
#selectionChampionsV279 .n00-grille-v441 { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; max-height: 168px; overflow-y: auto; overscroll-behavior: contain; }
#selectionChampionsV279 .n00-node-v441 { aspect-ratio: 1; padding: 2px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 6px; background: rgba(255, 255, 255, 0.04); cursor: pointer; }
#selectionChampionsV279 .n00-node-v441 img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
#selectionChampionsV279 .n00-node-v441.choisie, #selectionChampionsV279 .n00-node-v441:focus-visible { border-color: var(--scd-couleur, #59ecff); box-shadow: 0 0 0 2px var(--scd-couleur, #59ecff); outline: none; }
#selectionChampionsV279 .scd-scene img.scd-version[src^="data:"] { image-rendering: pixelated; }
/* V441 — Le node du champion 00, un peu plus petit que les champions (il en est un, de node), les pieds sur le plateau. */
#selectionChampionsV279 .scd-scene.scd-node00 .scd-version { top: auto; width: min(48%, 340px); height: calc((100% - var(--scd-bas)) * 0.74); }

/* V442 — « Sire Blu est petit par rapport aux autres personnages dans le panneau du choix des champions » :
   dans sa boucle (vidéo de l'utilisateur, 02/12) il se tient baissé à 75 % du cadre et ne se redresse qu'en levant
   l'épée (94 %), quand les autres idles occupent ~95 % du cadre en permanence (outils/recadrer-idle-v436.py
   sire_blu). Agrandi à l'affichage depuis ses pieds, sur tous les écrans de sélection ; l'épée levée déborde un
   instant au-dessus de la scène (débordement visible). */
.scj-idle[data-idle-v429="sire_blu"] .scj-video { scale: 1.24; transform-origin: 50% 99%; }

/* V442 — La garde-robe de You (la banque enrichie) : un panneau posé sur le côté droit du plateau, ancré
   en bas à droite des bonus, qui laisse voir le node en grand au centre. Rayons en onglets, vignettes
   (le node du joueur portant l'objet), « ▶ JOUER EN NODE ». */
#selectionChampionsV279 .scd-bonus:has(.gr-v442) { position: relative; }
/* Les médaillons du disque passent au-dessus de l'afficheur (z-index 12) : la garde-robe ouverte l'élève. */
#selectionChampionsV279 .scd-afficheur:has(.gr-v442) { z-index: 60; }
#selectionChampionsV279 .n00-banque-v441.gr-v442 {
  position: absolute; right: 0; bottom: 0; z-index: 30;
  width: min(430px, calc(100vw - 32px)); height: min(340px, 58vh);
  display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: 6px;
  margin: 0; padding: 10px;
  border-radius: 10px; border: 1px solid var(--scd-couleur, #59ecff);
  background: linear-gradient(180deg, rgba(10, 12, 22, 0.97), rgba(4, 5, 10, 0.97));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7), 0 0 30px color-mix(in srgb, var(--scd-couleur, #59ecff) 22%, transparent);
}
#selectionChampionsV279 .gr-v442 .gr-tete { margin: 0; }
#selectionChampionsV279 .gr-v442 .gr-tete b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#selectionChampionsV279 .gr-onglets { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid color-mix(in srgb, var(--scd-couleur, #59ecff) 50%, transparent); }
#selectionChampionsV279 .gr-onglets .gr-onglet {
  flex: none; min-height: 26px; padding: 6px 5px; margin: 0; border-radius: 5px 5px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 0; background: rgba(255, 255, 255, 0.04); box-shadow: none;
  color: #b9c4d6; font: 6px/1 "Press Start 2P", monospace; letter-spacing: 0.02em; text-transform: none; cursor: pointer;
}
#selectionChampionsV279 .gr-onglets .gr-onglet:is(:hover, :focus-visible) { color: #fff; border-color: var(--scd-couleur, #59ecff); outline: none; }
#selectionChampionsV279 .gr-onglets .gr-onglet.actif { background: var(--scd-couleur, #59ecff); border-color: var(--scd-couleur, #59ecff); color: #05060a; }
#selectionChampionsV279 .gr-v442 .gr-note { display: block; margin: 0; font: 12px/1.3 Barlow, sans-serif; color: #aeb9cc; }
#selectionChampionsV279 .gr-v442 .gr-grille { max-height: none; min-height: 0; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); grid-auto-rows: min-content; align-content: start; gap: 5px; padding: 2px; scrollbar-width: thin; }
#selectionChampionsV279 .gr-v442 .gr-grille.gr-nodes { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
#selectionChampionsV279 .gr-v442 .gr-tuile {
  display: grid; justify-items: center; align-content: start; gap: 2px; min-width: 0; min-height: 70px; margin: 0; padding: 4px 3px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 6px; background: rgba(255, 255, 255, 0.04); box-shadow: none;
  color: #e9eef7; text-transform: none; letter-spacing: normal; cursor: pointer;
}
#selectionChampionsV279 .gr-v442 .gr-tuile:is(:hover, :focus-visible) { border-color: #fff; outline: none; }
#selectionChampionsV279 .gr-v442 .gr-tuile.choisie { border-color: var(--scd-couleur, #59ecff); box-shadow: 0 0 0 2px var(--scd-couleur, #59ecff); background: color-mix(in srgb, var(--scd-couleur, #59ecff) 12%, transparent); }
#selectionChampionsV279 .gr-v442 .gr-tuile.verrouille { opacity: 0.6; cursor: default; }
#selectionChampionsV279 .gr-v442 .gr-tuile canvas { display: block; width: 48px; height: 48px; background: transparent; cursor: inherit; touch-action: auto; image-rendering: pixelated; }
#selectionChampionsV279 .gr-v442 .gr-tuile.gr-logo canvas { width: 120px; height: 80px; image-rendering: auto; }
#selectionChampionsV279 .gr-v442 .gr-tuile canvas.gr-verrou { filter: grayscale(1) brightness(0.55); }
#selectionChampionsV279 .gr-v442 .gr-large { grid-column: span 2; }
#selectionChampionsV279 .gr-v442 .gr-mur img { width: 100%; height: 44px; object-fit: contain; }
#selectionChampionsV279 .gr-v442 .gr-nom { font: 600 11px/1.1 Barlow, sans-serif; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#selectionChampionsV279 .gr-v442 .gr-rarete { font: 6px/1.2 "Press Start 2P", monospace; color: #8f9bb0; }
#selectionChampionsV279 .gr-v442 .gr-rarete[data-rarete="rare"] { color: #59b7ff; }
#selectionChampionsV279 .gr-v442 .gr-rarete:is([data-rarete="épique"], [data-rarete="epique"]) { color: #c78bff; }
#selectionChampionsV279 .gr-v442 .gr-rarete:is([data-rarete="légendaire"], [data-rarete="legendaire"]) { color: #ffb347; }
#selectionChampionsV279 .gr-v442 .gr-rarete:is([data-rarete="mythique"]) { color: #ff5a8a; }
#selectionChampionsV279 .gr-v442 .gr-sous { grid-column: 1 / -1; margin: 6px 0 0; font: 7px/1.4 "Press Start 2P", monospace; color: #7f8aa0; }
#selectionChampionsV279 .gr-v442 .gr-vide { grid-column: 1 / -1; font: 12px/1.3 Barlow, sans-serif; color: #8f9bb0; }
#selectionChampionsV279 .gr-v442 .gr-sans { font: 24px/48px Barlow, sans-serif; color: #8f9bb0; }
#selectionChampionsV279 .gr-v442 .gr-pied { display: flex; align-items: center; gap: 8px; }
#selectionChampionsV279 .gr-v442 .gr-jouer {
  flex: none; margin: 0; padding: 9px 10px; border-radius: 6px; border: 2px solid #ffd24a;
  background: linear-gradient(180deg, #ffd24a, #e0a516); box-shadow: 0 4px 0 #6b4c0b; color: #1a1205;
  font: 8px/1.2 "Press Start 2P", monospace; text-transform: none; letter-spacing: normal; cursor: pointer;
}
#selectionChampionsV279 .gr-v442 .gr-jouer:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#selectionChampionsV279 .gr-v442 .gr-pied small { font: 11px/1.25 Barlow, sans-serif; color: #8f9bb0; }
@media (max-height: 500px) {
  #selectionChampionsV279 .n00-banque-v441.gr-v442 { position: fixed; right: 8px; bottom: 8px; width: min(520px, calc(100vw - 16px)); height: calc(100vh - 16px); }
}

/* V452 — « VOIR PLUS » (Mister VHS) sur le disque, le versus et la jaquette : le résumé court, puis le détail
   déplié À SA PLACE dans une boîte de hauteur fixe qui défile (la scène, donc le champion, garde sa taille). */
.plus-v452 { margin: 1px 0 0; }
.plus-v452 > summary { display: inline-block; list-style: none; cursor: pointer; font: 700 10px/1.25 Barlow, sans-serif; letter-spacing: 0.16em; color: var(--scd-couleur, #59ecff); border-bottom: 1px dashed currentColor; }
.plus-v452 > summary::-webkit-details-marker { display: none; }
.plus-v452 > summary::before { content: "▸ "; }
.plus-v452[open] > summary::before { content: "▾ "; }
.plus-v452 > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.plus-v452 .plus-v452-fermer, .plus-v452[open] .plus-v452-ouvrir { display: none; }
.plus-v452[open] .plus-v452-fermer { display: inline; }
.plus-v452 > p { max-height: 5.4em; overflow-y: auto; margin: 3px 0 0; padding-right: 4px; overscroll-behavior: contain; scrollbar-width: thin; }
:has(> .plus-v452[open]) > .plus-v452-resume { display: none; }
