/* V430 — L'ÉCRAN DE SÉLECTION « VERSUS 16/9 » (src/ui/selection-versus.js).
   La racine #selectionChampionsV279 porte data-style-v429="versus" ; le contenu est .scvs-ecran.
   Bandes noires de cinéma en haut et en bas (titres, OSD du lecteur, commandes) ; entre elles, J1 à
   gauche, le roster et le VS au centre, J2 à droite (en miroir). Les idles réutilisent le balisage
   et les règles de la jaquette (.scj-idle, .scj-video, .scj-cycle : selection-jaquette.css).
   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). */

.selection-champions-v279[data-style-v429="versus"] { padding: 12px; }
.scvs-ecran {
  --scvs-g: #59ecff; --scvs-d: #ff4fa3; --scvs-osd: #7ee04a;
  position: relative;
  width: min(1440px, 100%);
  height: min(900px, calc(100vh - 24px));
  display: grid; grid-template-rows: 54px minmax(0, 1fr) 58px;
  border-radius: 14px; overflow: hidden;
  color: #f1f0ff;
  font-family: Barlow, system-ui, sans-serif;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    radial-gradient(60% 85% at 14% 58%, color-mix(in srgb, var(--scvs-g) 42%, transparent), transparent 64%),
    radial-gradient(60% 85% at 86% 58%, color-mix(in srgb, var(--scvs-d) 42%, transparent), transparent 64%),
    linear-gradient(100deg, #0d0818 0 49.6%, #05040a 49.6% 50.4%, #0a0716 50.4%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
/* Le trait de séparation des deux moitiés, en diagonale, sous le centre. */
.scvs-ecran::before {
  content: ""; position: absolute; top: 54px; bottom: 58px; left: 50%; width: 4px; translate: -50% 0; transform: skewX(-8deg);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--scvs-g) 60%, #fff), color-mix(in srgb, var(--scvs-d) 60%, #fff), transparent);
  opacity: 0.35; pointer-events: none;
  display: none; /* le partage se lit déjà dans le fond ; le trait traversait le roster */
}

/* ------------------------------------------------------------------ les bandes noires */
.scvs-bande { position: relative; z-index: 3; display: grid; align-items: center; gap: 14px; padding: 0 18px; background: #000; box-shadow: 0 0 0 1px #000, 0 0 24px rgba(0, 0, 0, 0.8); }
.scvs-haut { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); border-bottom: 1px solid #16121f; }
.scvs-rubrique { font: 8px/1.4 "Press Start 2P", monospace; letter-spacing: 0.12em; color: #8f89b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scvs-haut h2 { margin: 0; font: 17px/1.2 "Press Start 2P", monospace; color: var(--scvs-actif, #fff); text-shadow: 0 0 14px color-mix(in srgb, var(--scvs-actif, #fff) 55%, transparent), 3px 3px 0 #2a0a2a; text-align: center; white-space: nowrap; }
.scvs-osd { justify-self: end; font: 11px/1 "Press Start 2P", monospace; color: var(--scvs-osd); text-shadow: 0 0 6px var(--scvs-osd); }
.scvs-bas { grid-template-columns: auto minmax(0, 1fr) auto auto; border-top: 1px solid #16121f; }
.scvs-retour, .scvs-style { padding: 9px 12px; border-radius: 6px; border: 1px solid #2d2840; background: #0c0a14; color: #d9d4ee; font: 9px/1.2 "Press Start 2P", monospace; cursor: pointer; }
.scvs-retour:hover, .scvs-style:hover, .scvs-retour:focus-visible, .scvs-style:focus-visible { border-color: var(--scvs-actif); color: #fff; outline: none; }
.scvs-message { margin: 0; font: 13px/1.3 Barlow, sans-serif; color: #a9a3c9; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#selectionChampionsV279 .scvs-play {
  min-width: 150px; padding: 12px 18px; border-radius: 8px; cursor: pointer;
  border: 2px solid #ffd24a; background: linear-gradient(180deg, #ffe27a, #e6a812); color: #1a1205;
  font: 11px/1 "Press Start 2P", monospace; box-shadow: 0 5px 0 #6b4c0b, 0 0 22px rgba(255, 210, 74, 0.35);
}
body #selectionChampionsV279 .scvs-play:not(:disabled) { border-color: #ffd24a !important; background: linear-gradient(180deg, #ffe27a, #e6a812) !important; color: #1a1205 !important; animation: scvs-press 1.1s steps(1) infinite; }
#selectionChampionsV279 .scvs-play:disabled { filter: grayscale(0.85) brightness(0.55); box-shadow: none; cursor: default; }
#selectionChampionsV279 .scvs-play:not(:disabled):active { translate: 0 3px; box-shadow: 0 2px 0 #6b4c0b; }
@keyframes scvs-press { 0%, 70% { filter: none; } 71%, 100% { filter: brightness(1.25); } }

/* ------------------------------------------------------------------ l'arène du choix */
.scvs-arene { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 500px) minmax(0, 1fr); gap: 12px; padding: 10px 18px 8px; min-height: 0; }

/* --- un combattant */
/* La 3e piste (le nom) est en max-content : avec overflow hidden, la taille minimale automatique du
   nom tombe à 0 et, quand la colonne manque de hauteur (téléphone en paysage), sa ligne s'écrasait
   sous le titre. */
#selectionChampionsV279 .scvs-cote { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(150px, 1fr) max-content auto auto auto; gap: 4px; min-height: 0; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; align-items: start; }
#selectionChampionsV279 .scvs-cote .scvs-scene { grid-row: auto; }
#selectionChampionsV279 .scvs-titre em { display: block; margin-top: 2px; font: italic 700 13px/1.25 Barlow, sans-serif; letter-spacing: 0; color: #d6d1ee; }
.scvs-droite { text-align: right; }
.scvs-etiquette { display: flex; align-items: center; gap: 8px; }
.scvs-droite .scvs-etiquette { flex-direction: row-reverse; }
.scvs-etiquette b { padding: 5px 7px; border-radius: 4px; background: var(--scvs-joueur); color: #05040a; font: 12px/1 "Press Start 2P", monospace; box-shadow: 0 0 14px color-mix(in srgb, var(--scvs-joueur) 70%, transparent); }
.scvs-etiquette span { font: 9px/1 "Press Start 2P", monospace; letter-spacing: 0.08em; color: var(--scvs-joueur); }
.scv-fiche .scvs-etiquette span { animation: scvs-clignote 1s steps(1) infinite; }
@keyframes scvs-clignote { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.35; } }
#selectionChampionsV279 .scvs-scene.scv-fiche-image, .scvs-scene { position: relative; display: block; aspect-ratio: auto; height: 100%; min-height: 150px; border-radius: 0; background: none; overflow: visible; }
.scvs-halo { position: absolute; left: 50%; bottom: 2%; width: 78%; height: 16%; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--scvs-couleur) 55%, transparent), transparent); filter: blur(2px); }
.scvs-halo::before { content: ""; position: absolute; left: 50%; bottom: 40%; width: 120%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--scvs-couleur) 24%, transparent), transparent); }
#selectionChampionsV279 .scvs-idle.scj-idle { inset: 0 0 4% 0; }
#selectionChampionsV279 .scvs-idle .scj-video { object-position: 50% 100%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7)); }
#selectionChampionsV279 .scvs-idle .scj-cycle { width: min(100%, 62vh); scale: 1.4; transform-origin: 50% 97%; }
.scvs-droite .scvs-idle, .scvs-droite .scvs-version { scale: -1 1; }
#selectionChampionsV279 .scvs-version { position: absolute; left: 0; right: 0; bottom: 4%; top: 0; width: 100%; height: 96%; max-width: none; max-height: none; object-fit: contain; object-position: 50% 100%; image-rendering: pixelated; display: none; z-index: 2; }
#selectionChampionsV279 .scvs-scene.apercu-version .scvs-version { display: block; animation: scj-respire 2.6s ease-in-out infinite; }
#selectionChampionsV279 .scvs-scene.apercu-version .scvs-idle { visibility: hidden; }
.scvs-scene.verrouille .scvs-idle, .scvs-scene.verrouille .scvs-version { filter: grayscale(0.8) brightness(0.55); }
.scvs-verrou { position: absolute; left: 50%; top: 40%; translate: -50% 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.75); color: #ffd24a; font: 9px "Press Start 2P", monospace; }
.scvs-tampon { position: absolute; top: 18%; left: 50%; translate: -50% 0; rotate: -10deg; z-index: 3; padding: 6px 12px; border: 3px solid var(--scvs-joueur); border-radius: 6px; color: var(--scvs-joueur); background: rgba(0, 0, 0, 0.55); font: 18px/1 "Press Start 2P", monospace; text-shadow: 0 0 10px var(--scvs-joueur); animation: scvs-tampon 0.35s cubic-bezier(.2,1.6,.4,1); }
@keyframes scvs-tampon { from { scale: 2.2; opacity: 0; } to { scale: 1; opacity: 1; } }
.scvs-vide { display: grid; place-items: center; }
.scvs-inconnu { font: 120px/1 "Press Start 2P", monospace; color: color-mix(in srgb, var(--scvs-joueur) 55%, #000); text-shadow: 0 0 30px color-mix(in srgb, var(--scvs-joueur) 60%, transparent); opacity: 0.8; animation: scvs-flotte 2.4s ease-in-out infinite; }
@keyframes scvs-flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.scvs-nom { font: 700 clamp(30px, 4.4vw, 68px)/0.9 Barlow, sans-serif; letter-spacing: -0.01em; text-transform: uppercase; color: var(--scvs-couleur); text-shadow: 4px 4px 0 #000, 0 0 24px color-mix(in srgb, var(--scvs-couleur) 40%, transparent); transform: skewX(-8deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.scvs-titre { margin: 0; font: 8px/1.5 "Press Start 2P", monospace; letter-spacing: 0.08em; color: color-mix(in srgb, var(--scvs-couleur) 50%, #fff); }
.scvs-titre em { display: block; margin-top: 2px; font: italic 700 13px/1.25 Barlow, sans-serif; letter-spacing: 0; color: #d6d1ee; }
/* Le descriptif, SOUS le combattant : skill puis Domain. */
.scvs-fiche { display: grid; gap: 6px; padding: 8px 10px; border-radius: 6px; background: rgba(5, 4, 12, 0.78); border: 1px solid color-mix(in srgb, var(--scvs-couleur) 40%, transparent); text-align: left; }
.scvs-bloc b { display: block; font: 8px/1.5 "Press Start 2P", monospace; color: var(--scvs-couleur); }
.scvs-domaine b { color: color-mix(in srgb, var(--scvs-couleur) 45%, #9fe8ff); }
.scvs-bloc b i { font-style: normal; color: #9c96bd; margin-left: 4px; }
.scvs-bloc p { margin: 2px 0 0; font: 12.5px/1.32 Barlow, sans-serif; color: #e5e2f5; }
/* Les éditions (versions) du champion survolé, sous son descriptif. */
.scvs-cote .scv-vignettes-bloc { display: grid; gap: 3px; }
.scvs-cote .scv-skins-compte { margin: 0; font: 7px "Press Start 2P", monospace; color: #8f89b8; }
.scvs-cote .scv-vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 3px; }
.scvs-cote .scv-vignette { position: relative; aspect-ratio: 1; padding: 1px; border-radius: 4px; border: 1px solid #2d2840; background: #0c0a14; cursor: pointer; }
.scvs-cote .scv-vignette img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; image-rendering: pixelated; }
.scvs-cote .scv-vignette.choisie { border-color: var(--scvs-joueur); box-shadow: 0 0 0 2px var(--scvs-joueur); }
.scvs-cote .scv-vignette.verrouille img { filter: grayscale(1) brightness(0.5); }
.scvs-cote .scv-vignette-cadenas { position: absolute; inset: 0; display: grid; place-items: center; color: #ffd24a; }

/* --- le centre : roster, VS, joueurs */
.scvs-centre { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 0; overflow: auto; padding: 4px 6px; scrollbar-width: thin; }
.scvs-roster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; padding: 6px 10px; }
.scvs-tuile {
  position: relative; aspect-ratio: 0.8; padding: 0; margin: 0; cursor: pointer; transform: skewX(-8deg);
  border: 2px solid #2f2750; border-radius: 3px; background: #100c1e; color: #fff; font: inherit; overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  transition: translate 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.scvs-tuile-cadre { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--scvs-couleur) 35%, transparent), transparent 70%); }
.scvs-tuile-cadre img { position: absolute; left: -12%; top: -4%; width: 124%; transform: skewX(8deg); image-rendering: pixelated; pointer-events: none; }
.scvs-chapitre { position: absolute; left: 3px; top: 3px; padding: 2px 3px; background: rgba(0, 0, 0, 0.75); font: 6px/1 "Press Start 2P", monospace; color: #c9c2ef; transform: skewX(8deg); }
.scvs-tuile-nom { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 2px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); font: 700 10px/1.1 Barlow, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; transform: skewX(8deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scvs-tuile:hover, .scvs-tuile:focus-visible, .scvs-tuile.survol { border-color: var(--scvs-actif); translate: 0 -4px; box-shadow: 0 0 0 2px var(--scvs-actif), 0 0 22px color-mix(in srgb, var(--scvs-actif) 70%, transparent); outline: none; z-index: 2; }
.scvs-tuile.choisie { border-color: var(--scvs-actif); }
.scvs-tuile.verrouille .scvs-tuile-cadre { filter: grayscale(0.9) brightness(0.45); }
.scvs-cadenas { position: absolute; left: 50%; top: 36%; translate: -50% 0; transform: skewX(8deg); display: grid; justify-items: center; gap: 2px; padding: 3px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.75); color: #ffd24a; }
.scvs-cadenas small { font: 6px "Press Start 2P", monospace; }
.scvs-offert { position: absolute; right: 2px; top: 3px; padding: 2px 3px; background: #ffd24a; color: #1a1205; font: 6px/1 "Press Start 2P", monospace; transform: skewX(8deg); }
.scvs-curseurs { position: absolute; right: -4px; top: -8px; display: flex; gap: 2px; transform: skewX(8deg); }
.scvs-curseur { padding: 3px 3px; border-radius: 3px; background: var(--scvs-joueur); color: #05040a; font: 7px/1 "Press Start 2P", monospace; font-style: normal; box-shadow: 0 0 8px var(--scvs-joueur); }
.scvs-vs { display: grid; justify-items: center; user-select: none; }
.scvs-vs .scvs-v, .scvs-vs .scvs-s { display: inline-block; }
.scvs-vs { grid-template-columns: auto auto; column-gap: 0; }
.scvs-vs span { font: 700 clamp(54px, 7vw, 104px)/0.85 Barlow, sans-serif; color: #fff; transform: skewX(-10deg); text-shadow: 5px 4px 0 var(--scvs-d), -5px -4px 0 var(--scvs-g), 0 0 30px rgba(255, 255, 255, 0.35); animation: scvs-signal 3.2s steps(1) infinite; }
.scvs-vs small { grid-column: 1 / -1; margin-top: 8px; font: 9px/1 "Press Start 2P", monospace; letter-spacing: 0.14em; color: #ffd24a; }
@keyframes scvs-signal { 0%, 92%, 100% { translate: 0 0; } 93% { translate: -3px 0; } 95% { translate: 3px 0; } 97% { translate: 0 0; } }
.scvs-mains { display: flex; gap: 6px; }
.scvs-main { padding: 5px 8px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--scvs-joueur) 50%, transparent); background: rgba(0, 0, 0, 0.5); color: var(--scvs-joueur); font: 8px "Press Start 2P", monospace; cursor: pointer; }
.scvs-main.active { background: var(--scvs-joueur); color: #05040a; }
.scvs-autres { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.scvs-autre { display: grid; grid-template-columns: auto 36px; grid-template-rows: auto auto; align-items: center; column-gap: 6px; padding: 4px 6px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--scvs-joueur) 50%, transparent); background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; font: inherit; }
.scvs-autre b { grid-row: span 2; font: 9px "Press Start 2P", monospace; color: var(--scvs-joueur); }
.scvs-autre img, .scvs-autre span { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; display: grid; place-items: center; font: 14px "Press Start 2P", monospace; color: var(--scvs-joueur); }
.scvs-autre small { grid-column: 2; font: 600 10px Barlow, sans-serif; }
.scvs-autre.active { box-shadow: 0 0 0 2px var(--scvs-joueur); }
.scvs-autre:disabled { cursor: default; opacity: 0.85; }
.scvs-bac { width: 100%; }
.scvs-bac p { margin: 0 0 4px; font: 7px "Press Start 2P", monospace; color: #8f89b8; text-align: center; }
.scvs-bac > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.scvs-classique { width: 46px; height: 46px; padding: 2px; border-radius: 4px; border: 1px dashed #3a3360; background: #0c0a14; cursor: pointer; }
.scvs-classique canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.scvs-classique.choisie, .scvs-classique:focus-visible, .scvs-classique:hover { border-style: solid; border-color: var(--scvs-actif); outline: none; }
.scvs-classique.verrouille { opacity: 0.5; }

/* ------------------------------------------------------------------ petits écrans */
@media (max-width: 1150px) {
  .scvs-arene { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) minmax(0, 1fr); gap: 8px; padding: 8px 10px; }
  .scvs-tuile-nom { font-size: 8px; }
}
/* Téléphone en paysage : bandes réduites, combattants plus petits, descriptif qui défile sous eux. */
@media (max-height: 560px) {
  .scvs-ecran { height: calc(100vh - 12px); grid-template-rows: 34px minmax(0, 1fr) 42px; border-radius: 10px; }
  .selection-champions-v279[data-style-v429="versus"] { padding: 6px; }
  .scvs-haut h2 { font-size: 11px; }
  .scvs-rubrique { font-size: 6px; }
  .scvs-osd { font-size: 8px; }
  .scvs-retour, .scvs-style { padding: 6px 8px; font-size: 7px; }
  .scvs-message { font-size: 10px; -webkit-line-clamp: 1; }
  #selectionChampionsV279 .scvs-play { min-width: 0; padding: 8px 12px; font-size: 9px; }
  .scvs-arene { grid-template-columns: minmax(0, 1fr) minmax(250px, 300px) minmax(0, 1fr); padding: 4px 8px; }
  #selectionChampionsV279 .scvs-cote { grid-template-rows: auto minmax(110px, 30vh) max-content auto auto auto; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; overscroll-behavior: contain; }
  #selectionChampionsV279 .scvs-cote .scvs-scene { min-height: 0; }
  .scvs-nom { font-size: 26px; }
  .scvs-etiquette b { font-size: 9px; padding: 3px 5px; }
  .scvs-etiquette span, .scvs-titre { font-size: 6px; }
  .scvs-titre em { font-size: 11px; }
  .scvs-bloc p { font-size: 11px; }
  .scvs-roster { gap: 5px; padding: 4px 6px; }
  .scvs-chapitre { display: none; }
  .scvs-tuile-nom { font-size: 7px; }
  .scvs-vs span { font-size: 46px; }
  .scvs-vs small { font-size: 6px; margin-top: 4px; }
  .scvs-inconnu { font-size: 60px; }
}
/* Écran étroit (téléphone tenu droit) : le roster en haut, les deux combattants côte à côte dessous. */
@media (max-width: 720px) {
  .scvs-ecran { height: auto; max-height: calc(100vh - 12px); overflow: auto; }
  .scvs-arene { grid-template-columns: 1fr 1fr; }
  .scvs-centre { grid-column: 1 / -1; order: -1; }
  #selectionChampionsV279 .scvs-cote { grid-template-rows: auto 240px max-content auto auto auto; }
  .scvs-nom { font-size: 24px; }
  .scvs-haut { grid-template-columns: 1fr auto; }
  .scvs-rubrique { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scvs-ecran *, .scvs-ecran *::before, .scvs-ecran *::after { animation: none !important; transition: none !important; }
}
