/*
 * Écran Victoire / Défaite 8s-6s : maquette validée par Laizen le 18 nov.
 * Peu de texte : titre géant, Elo et euros en grand, les deux équipes avec le logo de rang tourné vers le centre, Rejouer.
 * Le fond reprend le biais rouge / bleu du « Match trouvé » (design D), sans couvrir le site.
 */
@keyframes v-entre { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes v-brille { 0%, 100% { text-shadow: 0 0 30px var(--accent); } 50% { text-shadow: 0 0 50px var(--accent); } }

.victoire-v { position: relative; display: grid; justify-items: center; gap: 14px; padding: 28px clamp(16px, 4vw, 48px) 26px; overflow: hidden; text-align: center;
  background: #04060c; border-radius: 16px; color: #fff; animation: v-entre .35s ease-out; }
.victoire-v::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgb(163 18 31 / .55), transparent 45%), linear-gradient(295deg, rgb(20 80 168 / .55), transparent 45%); }
.victoire-v > * { position: relative; }
.victoire-v.victoire { --accent: var(--or, #fbbf24); box-shadow: 0 0 0 2px var(--accent), 0 20px 60px rgb(251 191 36 / .2); }
.victoire-v.defaite { --accent: var(--ko, #ff5a5f); box-shadow: 0 0 0 2px rgb(255 255 255 / .15); }
.mode-v { margin: 0; font: 500 14px/1 "Barlow Condensed", var(--f-texte); letter-spacing: .3em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.titre-v { margin: 0; font: italic 400 clamp(64px, 11vw, 120px)/1 "Anton", var(--f-titre); text-transform: uppercase; color: var(--accent); padding-right: .08em; animation: v-brille 2.4s ease-in-out infinite; }

html.da2 .titre-v, html.da2 .mode-v, html.da2 .nom-v, html.da2 .nom-v a, html.da2 .gain-v strong, html.da2 .go-v, html.da2 .vs-v { text-transform: uppercase !important; }

.gains-v { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.gain-v { padding: 10px 26px; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); background: rgb(255 255 255 / .07); }
.gain-v strong { font: italic 400 clamp(30px, 5vw, 46px)/1 "Anton", var(--f-titre); text-transform: uppercase; }
.gain-v.moins strong { color: var(--ko, #ff5a5f); }
.gain-v.argent { background: rgb(34 197 94 / .16); }
.gain-v.argent strong { color: #4ade80; text-shadow: 0 0 18px rgb(74 222 128 / .55); }

.equipes-v { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(10px, 3vw, 40px); width: 100%; margin-top: 6px; }
.equipe-v { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.equipe-v li { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* Rouges à gauche : pseudo puis logo (vers le centre). Bleus à droite : logo puis pseudo. */
.equipe-v.rouge li { justify-content: flex-end; text-align: right; }
.equipe-v.bleu li { flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
.equipe-v:not(.gagnante) { opacity: .5; }
.nom-v { min-width: 0; }
.nom-v, .nom-v a { font: italic 400 clamp(20px, 2.4vw, 32px)/1 "Anton", var(--f-titre); text-transform: uppercase; color: #fff; text-decoration: none; padding-right: .1em; overflow-wrap: anywhere; }
.nom-v a:hover, .nom-v a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.equipe-v li.moi .nom-v, .equipe-v li.moi .nom-v a { color: var(--or, #fbbf24); }
.logo-v { flex: none; width: clamp(34px, 3.4vw, 46px); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c) 55%, transparent)); }
.logo-v svg { display: block; width: 100%; height: auto; }
.vs-v { font: italic 400 clamp(32px, 4vw, 52px)/1 "Anton", var(--f-titre); color: rgb(255 255 255 / .35); padding-right: .1em; }

.actions-v { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 6px; }
.go-v { padding: 13px 64px; border: 0; background: var(--rouge-vif, #e8202e); color: #fff; font: italic 400 26px/1 "Anton", var(--f-titre); letter-spacing: .06em; text-transform: uppercase; transform: skewX(-12deg); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.go-v span { display: inline-block; transform: skewX(12deg); }
.go-v:hover, .go-v:focus-visible { box-shadow: 0 0 30px rgb(232 32 46 / .55); transform: skewX(-12deg) scale(1.04); }
.retour-v { padding: 8px 12px; border: 0; background: none; color: rgb(255 255 255 / .6); font: 600 14px/1 var(--f-texte); cursor: pointer; }
.retour-v:hover, .retour-v:focus-visible { color: #fff; }

@media (max-width: 700px) {
  .equipes-v { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vs-v { display: none; }
  .equipe-v { gap: 8px; }
  .equipe-v li { gap: 6px; }
  .nom-v, .nom-v a { font-size: clamp(14px, 4.4vw, 20px); }
  .logo-v { width: 26px; }
  .go-v { padding: 12px 44px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .victoire-v, .titre-v { animation: none; } }
