/*
 * F23 — Nouvelle direction artistique : bleu nuit, une seule couleur vive (le rouge KLAW), coins arrondis, moins d'infos.
 * Tout passe par la classe « da2 » sur <html> : interrupteur fermé, ce fichier ne fait rien.
 */
[data-ranked], [data-direct-r] { display: none; }

html.da2 {
  --sol: #121b2a; --plaque: #192435; --plaque-2: #213046; --trait: #2c3b52; --trait-fort: #41536f;
  --texte: #f1f4f9; --gris: #9db0c8; --rouge: #e8202e; --rouge-vif: #ff3a47; --ok: #34d399; --ko: #fb7185; --or: #fbbf24;
  --f-titre: "Sora", system-ui, sans-serif; --f-texte: "Inter", system-ui, sans-serif;
  --haut-entete: 60px; --arrondi: 16px;
}
html.da2 body { background: transparent; font-weight: 400; line-height: 1.5; }
/* Le fond : des lumières qui se répondent et de grandes griffes en filigrane, pour qu'aucune page ne paraisse plate. */
html.da2 { background: #0f1725; }
html.da2::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 96% -6%, rgb(232 32 46 / .38), transparent 62%),
    radial-gradient(1000px 820px at -4% 30%, rgb(52 104 214 / .38), transparent 62%),
    radial-gradient(1200px 860px at 70% 112%, rgb(110 62 210 / .34), transparent 64%),
    linear-gradient(160deg, #142036 0%, #101828 55%, #0f1527 100%);
}
html.da2::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background:
    linear-gradient(118deg, transparent 0 58%, rgb(255 255 255 / .022) 58% 66%, transparent 66% 70%, rgb(232 32 46 / .045) 70% 79%, transparent 79%),
    linear-gradient(118deg, transparent 0 8%, rgb(255 255 255 / .018) 8% 14%, transparent 14%),
    radial-gradient(rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 26px 26px;
}
html.da2 .fond-anime, html.da2 .bande-cta::before { display: none; }

/* ---------- Typographie ---------- */
/* Plus de majuscules ni de lettres espacées : c'est ce qui donnait son côté chargé à l'ancienne page. */
html.da2 body * { text-transform: none !important; letter-spacing: normal !important; }
html.da2 h1, html.da2 h2, html.da2 h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.02em !important; }
html.da2 .apercu { display: none; }
html.da2 .etape-fait { display: none; }
html.da2 .checklist { gap: 10px; padding: 16px; background: var(--plaque); border: 1px solid var(--trait); border-radius: var(--arrondi); }
html.da2 .checklist-tete h2 { font-size: 18px; }
html.da2 .checklist-barre { height: 6px; border-radius: 99px; }
html.da2 .checklist-etapes li { border-radius: 12px; }
html.da2 .etiquette { color: var(--gris); font: 600 12px/1.2 var(--f-texte); letter-spacing: .02em; text-transform: none; }
html.da2 .chiffre { letter-spacing: 0; }

/* ---------- Une seule couleur vive, là où elle compte ---------- */
html.da2 .etape, html.da2 .defis, html.da2 .casier, html.da2 .form-lfg, html.da2 .panneau-chat, html.da2 .prefs-notifs, html.da2 .liste-notifs,
html.da2 .feuille-plus, html.da2 .tete-profil-public, html.da2 .mon-profil-public { border-top: 1px solid var(--trait); }
@media (max-width: 767px) { html.da2 .en-ligne-r { display: none; } }
html.da2 .pass-heros h1 em { color: var(--rouge-vif); }

/* ---------- Boutons ---------- */
html.da2 .btn { clip-path: none; border-radius: 12px; font: 600 14px/1.1 var(--f-texte); letter-spacing: 0; text-transform: none; transition: background .15s, transform .15s; }
html.da2 .btn:hover:not(:disabled) { transform: translateY(-1px); }
html.da2 .btn-creux { background: var(--plaque-2); box-shadow: inset 0 0 0 1px var(--trait); }
html.da2 .btn-creux:hover { background: var(--trait); }
html.da2 .btn-or { background: var(--rouge); color: #fff; }

/* ---------- Surfaces ---------- */
html.da2 .carte, html.da2 .article, html.da2 .carte-tournoi, html.da2 .salle-tournois, html.da2 .avis, html.da2 .staff-tournoi,
html.da2 .majeur, html.da2 .tuile-jour, html.da2 .barre-filtres-t, html.da2 .vide-jour, html.da2 .bloc-quetes, html.da2 .quete,
html.da2 .defis, html.da2 .panneau-chat, html.da2 .carte-joueur, html.da2 .activite-modes, html.da2 .scene, html.da2 .pass-jouer,
html.da2 dialog, html.da2 .liste-notifs, html.da2 .toast .cadre, html.da2 .offre-premium, html.da2 .recompense-finale, html.da2 .niveau-joueur {
  border-radius: var(--arrondi);
}
html.da2 .carte, html.da2 .article, html.da2 .carte-tournoi { overflow: hidden; }
html.da2 .carte, html.da2 .article, html.da2 .carte-tournoi, html.da2 .carte-r, html.da2 .match-r, html.da2 .scene, html.da2 .checklist, html.da2 .barre-filtres-t, html.da2 .form-lfg, html.da2 .carte-joueur {
  background-color: rgb(28 40 60 / .58); background-image: linear-gradient(180deg, rgb(255 255 255 / .06), transparent 45%); border-color: rgb(255 255 255 / .11); backdrop-filter: blur(16px);
}
html.da2 table { background: rgb(25 36 53 / .72); border-radius: var(--arrondi); overflow: hidden; }
html.da2 input, html.da2 select, html.da2 textarea { border-radius: 10px; }
html.da2 .puce-filtre, html.da2 .onglets button, html.da2 .onglet-mode { border-radius: 10px; }
html.da2 .salle-tournois { background: transparent; border: 0; padding: 0; }
html.da2 .vue-section, html.da2 .heros, html.da2 .pass-heros, html.da2 footer { background: transparent; }
html.da2 .heros, html.da2 .pass-heros { border-bottom: 0; }
html.da2 .pass-heros .griffes, html.da2 .heros .griffes { display: none; }

html.da2 body::after { content: "KLAW"; position: fixed; z-index: -1; right: -2vw; bottom: -6vw; color: transparent; -webkit-text-stroke: 2px rgb(255 255 255 / .05); font: 800 26vw/1 var(--f-titre); letter-spacing: -.04em !important; pointer-events: none; }
@media (max-width: 767px) { html.da2 body::after { display: none; } }

/* ---------- Moins de vide : la largeur sert, l'essentiel monte ---------- */
html.da2 .cadre { max-width: 1440px; }
html.da2 .gouttiere { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
html.da2 .vue { padding-block: 20px 40px; }
html.da2 .vue > .cadre { gap: 18px; }
html.da2 .titre-vue { gap: 2px; }
html.da2 .titre-vue h1 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; }
html.da2 .titre-vue > p:not(.accroche), html.da2 .titre-vue > .etiquette { display: none; }
html.da2 .salle-tournois { gap: 18px; }
html.da2 [data-calendrier-tournois] { gap: 18px; }
html.da2 .majeur { min-height: clamp(280px, 26vw, 360px); }
html.da2 .cartes-jour { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
html.da2 .tuile-jour { padding: 10px 12px; }
html.da2 .pass-heros .cadre { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; padding-block: 18px; }
@media (max-width: 820px) { html.da2 .pass-heros .cadre { grid-template-columns: 1fr; } }
html.da2 .pass-heros h1 { font-size: clamp(26px, 3vw, 40px); line-height: 1.05; }
html.da2 .pass-heros h1 em { display: block; }
html.da2 .pass-heros h1 br { display: none; }
html.da2 .pass-heros .accroche { font-size: 14px; }
html.da2 .niveau-joueur { background: rgb(25 36 53 / .78); padding: 18px; gap: 12px; }
html.da2 .tout-recuperer { margin-top: 8px; animation: none; }
html.da2 .heros .cadre { padding-block: 32px; gap: 16px; }
html.da2 .heros h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; }
/* Sur la page Jouer, les modes d'abord : la checklist vient après. */
html.da2 #v-jouer > .cadre { display: flex; flex-direction: column; }
html.da2 #v-jouer [data-onboarding] { order: 2; }
html.da2 .etape-verrouille { display: none; }
html.da2 .checklist { margin-bottom: 0; }

/* ---------- En-tête et barre latérale (ordinateur) ---------- */
html.da2 .entete { background: rgb(18 27 42 / .78); backdrop-filter: blur(12px); border-bottom: 1px solid rgb(255 255 255 / .07); }
html.da2 .entete .cadre { max-width: none; gap: 8px; padding-inline: 24px; }
html.da2 .entete .nav { flex: 0 1 auto; margin: 0 0 0 20px; gap: 4px; align-items: center; }
html.da2 .entete .nav a[data-lien="mates"], html.da2 .entete .nav a[data-lien="rangs"], html.da2 .entete .nav a[data-lien="pass"], html.da2 .entete .nav a[data-lien="boutique"] { display: none; }
html.da2 .entete .nav a { padding: 9px 14px; border-radius: 10px; color: var(--gris); font-size: 15px; font-weight: 500; border-bottom: 0; }
html.da2 .entete .nav a::after { display: none; }
html.da2 .entete .nav a:hover { background: rgb(255 255 255 / .06); color: var(--texte); }
html.da2 .entete .nav a[aria-current="page"] { background: rgb(255 255 255 / .1); color: var(--texte); }
/* « Jouer » est le seul bouton du menu qui attire l'œil : plein rouge, avec un reflet. */
html.da2 .entete .nav a[data-lien="jouer"] { position: relative; overflow: hidden; padding-inline: 20px; background: var(--rouge); color: #fff; font-weight: 700; box-shadow: 0 6px 20px rgb(232 32 46 / .4); }
html.da2 .entete .nav a[data-lien="jouer"]:hover { background: var(--rouge-vif); color: #fff; }
html.da2 .entete .nav a[data-lien="jouer"][aria-current="page"] { background: var(--rouge); box-shadow: 0 6px 20px rgb(232 32 46 / .4); }
html.da2 .entete .zone-compte { margin-left: auto; }
.onglet-bientot, .rail-da { display: none; }
html.da2 .onglet-bientot { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; color: var(--gris); font-size: 15px; font-weight: 500; white-space: nowrap; cursor: default; }
html.da2 .onglet-bientot small { padding: 2px 6px; background: rgb(255 255 255 / .08); border-radius: 6px; font-size: 10px; font-weight: 600; }
/* La barre de gauche : tout ce qui n'est pas dans le menu du haut. */
@media (min-width: 768px) {
  html.da2 { --rail: 84px; }
  html.da2 body { padding-left: var(--rail); }
  html.da2 .entete { margin-left: calc(var(--rail) * -1); }
  html.da2 .rail-da { position: fixed; z-index: 19; inset: var(--haut-entete) auto 0 0; width: var(--rail); display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; overflow-y: auto; background: rgb(18 27 42 / .72); backdrop-filter: blur(12px); border-right: 1px solid rgb(255 255 255 / .07); }
  .rail-da a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 58px; padding: 6px 2px; border-radius: 12px; color: var(--gris); font-size: 11px; font-weight: 500; text-align: center; text-decoration: none; transition: background .15s, color .15s, transform .15s; }
  .rail-da svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .rail-da a:hover { background: var(--plaque-2); color: var(--texte); }
  .rail-da a[aria-current="page"] { background: var(--rouge); color: #fff; }
}
@media (max-width: 767px) { html.da2 .onglet-bientot { display: none; } }
html.da2 .entete .btn.cta-jouer, html.da2 .entete .icone-boutique[data-lien="boutique"] { display: none; }
html.da2 .marque { font-family: var(--f-titre); font-weight: 800; font-size: 20px; }
html.da2 .marque svg { height: 20px; }
html.da2 .nav a { font: 500 14px/1.1 var(--f-texte); letter-spacing: 0; text-transform: none; }
html.da2 .kc-entete:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; background: var(--plaque); border: 1px solid var(--trait); border-radius: 12px; color: var(--texte); text-decoration: none; font: 600 14px/1 var(--f-texte); }
html.da2 .kc-entete::after { content: "KC"; color: var(--gris); font-size: 12px; font-weight: 500; }
html.da2 .cloche, html.da2 .icone-boutique { border-radius: 12px; }
.en-ligne-r { display: none; }
html.da2 .en-ligne-r { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 13px; border: 1px solid var(--trait); border-radius: 99px; font-size: 13px; font-weight: 500; white-space: nowrap; }
html.da2 .en-ligne-r b { font-weight: 600; }
.point-r { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pouls-r 2s infinite; }
@keyframes pouls-r { 50% { opacity: .35; } }

@media (max-width: 767px) {
  html.da2 .barre-mobile { background: rgb(25 36 53 / .97); }
}

/* ---------- Page Ranked ---------- */
html.da2 #v-jouer .jouer-grille { display: block; min-height: 0; }
html.da2 #v-jouer .tete-jouer, html.da2 #v-jouer .fil, html.da2 #v-jouer .bascule-chat, html.da2 #v-jouer .modes[data-etape="mode"], html.da2 #v-jouer [data-activite] { display: none; }
html.da2 #v-jouer .jouer-principal { gap: 24px; }
html.da2 [data-ranked], html.da2 [data-direct-r]:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr); }
html.da2 [data-ranked] { gap: 16px; }
html.da2 [data-direct-r]:not([hidden]) { gap: 6px; padding-top: 24px; border-top: 1px solid var(--trait); }
/* Hors du choix de mode (recherche, match trouvé, partie, résultat), les cartes laissent la place. */
html.da2 .jouer-principal:has([data-etape="mode"][hidden]) [data-ranked] { display: none; }
html.da2 .jouer-principal:has([data-etape="mode"][hidden]) [data-direct-r] { display: none; }
html.da2 [data-etape="recherche"] .radar { display: none; }
html.da2 .scene { padding: 24px; background: var(--plaque); border: 1px solid var(--trait); }

.tete-r { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tete-r h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; }
.tiroirs-r, .liens-r { display: flex; flex-wrap: wrap; gap: 8px; }
.puce-r { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px; background: transparent; border: 1px solid var(--trait); border-radius: 99px; color: var(--gris); font: 500 13px/1 var(--f-texte); text-decoration: none; cursor: pointer; transition: color .15s, border-color .15s; }
.puce-r:hover, .puce-r:focus-visible { color: var(--texte); border-color: var(--trait-fort); }
.cartes-r { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.carte-r { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; background: var(--plaque); border: 2px solid var(--trait); border-radius: 18px; color: var(--texte); text-align: left; cursor: pointer; transition: transform .18s, border-color .18s, background .18s, opacity .18s; }
.carte-r:hover { transform: translateY(-4px); border-color: var(--trait-fort); }
.carte-r[aria-checked="true"] { border-color: var(--rouge); background: rgb(40 28 46 / .72); box-shadow: 0 20px 50px rgb(232 32 46 / .22); }
.coche-r { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--trait-fort); border-radius: 50%; background: rgb(18 27 42 / .7); }
.coche-r svg { width: 16px; height: 16px; fill: none; stroke: transparent; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.carte-r[aria-checked="true"] .coche-r { background: var(--rouge); border-color: var(--rouge); }
.carte-r[aria-checked="true"] .coche-r svg { stroke: #fff; }
.visuel-r { position: relative; display: grid; place-items: center; height: clamp(170px, 22vw, 340px); overflow: hidden; background: rgb(255 255 255 / .03); color: #51698b; }
.visuel-r::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgb(232 32 46 / 0), transparent 70%); transition: background .2s; }
.carte-r[aria-checked="true"] .visuel-r { color: #fff; }
.carte-r[aria-checked="true"] .visuel-r::before { background: radial-gradient(circle at 50% 120%, rgb(232 32 46 / .55), transparent 70%); }
.visuel-r svg { position: relative; width: 84px; height: 84px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.carte-r:hover .visuel-r svg { transform: scale(1.08) rotate(-3deg); }
.mot-r { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: rgb(255 255 255 / .09); font: 800 clamp(70px, 9.500vw, 170px)/.9 var(--f-titre); letter-spacing: -.05em !important; white-space: nowrap; pointer-events: none; transition: color .2s, transform .25s; }
.carte-r:hover .mot-r { transform: translate(-50%, -50%) scale(1.04); }
.carte-r[aria-checked="true"] .mot-r { color: #fff; text-shadow: 0 14px 44px rgb(232 32 46 / .55); }
.carte-r[aria-checked="true"] .visuel-r svg { color: var(--rouge); stroke-width: 2; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .65)); }
.carte-r[aria-checked="true"] .visuel-r { color: var(--sol); }
.visuel-r img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) brightness(.62); transition: filter .25s, transform .4s; }
.carte-r:hover .visuel-r img { filter: saturate(.85) brightness(.85); transform: scale(1.05); }
.carte-r[aria-checked="true"] .visuel-r img { filter: none; }
.visuel-r:has(img)::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgb(16 24 40 / .85), transparent); pointer-events: none; }
.infos-r { display: grid; gap: 10px; padding: 18px; }
.nom-r { font: 700 21px/1.2 var(--f-titre); letter-spacing: -.01em; }
.rang-r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.logo-r { display: block; width: 44px; filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--c) 45%, transparent)); transition: transform .2s; }
.logo-r svg { display: block; width: 100%; height: auto; }
.logo-r.placement { opacity: .7; }
.carte-r:hover .logo-r { transform: scale(1.1) rotate(-4deg); }
.texte-r { display: grid; gap: 1px; min-width: 0; }
.texte-r strong { color: var(--c); font: 700 16px/1.2 var(--f-titre); }
.texte-r small { color: var(--gris); font-size: 12px; }
.elo-r { display: grid; justify-items: end; color: var(--texte); font: 700 18px/1 var(--f-chiffre); white-space: nowrap; }
.elo-r small { color: var(--gris); font: 500 11px/1.4 var(--f-texte); }
.barre-r { display: block; height: 8px; overflow: hidden; background: rgb(255 255 255 / .09); border-radius: 99px; }
.barre-r i { position: relative; display: block; height: 100%; overflow: hidden; background: var(--c); border-radius: 99px; box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); transition: width .5s; }
.barre-r i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%); transform: translateX(-100%); animation: reflet-da 3.2s infinite; }
.crans-r { display: grid; gap: 4px; }
.crans-r i { height: 8px; background: rgb(255 255 255 / .09); border-radius: 99px; }
.crans-r i.plein { background: var(--texte); box-shadow: 0 0 10px rgb(255 255 255 / .35); }
.action-r { display: grid; justify-items: center; gap: 12px; }
.lancer-r { min-width: min(100%, 380px); min-height: 60px; padding: 0 32px; background: var(--rouge); border: 0; border-radius: 16px; color: #fff; font: 700 17px/1.1 var(--f-titre); cursor: pointer; transition: background .15s, transform .15s; }
.lancer-r:hover { background: var(--rouge-vif); transform: translateY(-2px); }
.statut-r { min-height: 21px; margin: 0; color: var(--gris); font-size: 14px; text-align: center; }

.surtitre-r { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ok); font-size: 12px; font-weight: 600; }
[data-direct-r] h2 { font-size: 24px; margin-bottom: 10px; }
.matchs-r { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.match-r { padding: 16px; background: var(--plaque); border: 1px solid var(--trait); border-radius: var(--arrondi); }
.meta-r { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 14px; color: var(--gris); font-size: 12px; }
.duel-r { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.vs-r { color: var(--gris); font-size: 11px; font-weight: 600; }
.joueur-j { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--texte); text-decoration: none; }
.joueur-j.droite { justify-content: flex-end; text-align: right; }
.pastille-j { display: grid; place-items: center; flex: none; width: 30px; height: 30px; background: var(--plaque-2); border-radius: 9px; font: 700 13px var(--f-titre); }
.nom-j { min-width: 0; }
.nom-j strong { display: block; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.nom-j small { color: var(--gris); font-size: 12px; }

/* ---------- Tiroirs : quêtes, Pass et chat, à la demande ---------- */
.fermer-tiroir { display: none; }
html.da2 .fermer-tiroir { display: grid; place-items: center; justify-self: end; width: 44px; height: 44px; margin-left: auto; background: var(--plaque-2); border: 0; border-radius: 12px; color: var(--texte); font-size: 22px; cursor: pointer; }
html.da2 #v-jouer .colonne-defis { position: fixed; z-index: 30; inset: var(--haut-entete) 0 0 auto; width: min(420px, 100%); display: grid; align-content: start; gap: 14px; padding: 16px; overflow-y: auto; background: var(--sol); border-left: 1px solid var(--trait); transform: translateX(100%); visibility: hidden; transition: transform .2s, visibility .2s; }
html.da2.tiroir-quetes #v-jouer .colonne-defis { transform: none; visibility: visible; }
@media (max-width: 767px) {
  .mot-r { font-size: 40px; }
  .cartes-r { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .carte-r { flex-direction: row; }
  .visuel-r { flex: none; width: 104px; height: auto; }
  .visuel-r svg { width: 44px; height: 44px; }
  .infos-r { flex: 1; gap: 8px; padding: 14px 46px 14px 14px; }
  .nom-r { font-size: 18px; }
  .lancer-r { width: 100%; }
  .liens-r { display: none; }
}
@media (prefers-reduced-motion: reduce) { html.da2 *, .point-r { animation: none !important; transition: none !important; } }
@media (max-width: 767px) { html.da2 .zone-compte .en-ligne-r { display: none; } }

/* ---------- Discord à gauche, sous la barre ---------- */
@media (min-width: 768px) {
  html.da2 .bouton-discord { left: 18px; right: auto; bottom: 18px; width: 48px; height: 48px; z-index: 22; }
  html.da2 .bouton-discord svg { width: 26px; height: 26px; }
  html.da2 .rail-da { padding-bottom: 76px; }
}

/* ---------- Des animations simples ---------- */
@keyframes reflet-da { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }
@keyframes respire-da { 50% { box-shadow: 0 10px 34px rgb(232 32 46 / .6); } }
@keyframes apparait-da { from { opacity: 0; transform: translateY(8px); } }
@keyframes coche-da { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } }
html.da2 .vue-section:not([hidden]) { animation: apparait-da .3s ease-out; }
.carte-r[aria-checked="true"] .coche-r { animation: coche-da .25s ease-out; }
.lancer-r { position: relative; overflow: hidden; box-shadow: 0 8px 24px rgb(232 32 46 / .35); animation: respire-da 2.6s ease-in-out infinite; }
.lancer-r::after, html.da2 .entete .nav a[data-lien="jouer"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .5) 50%, transparent 65%); transform: translateX(-120%); animation: reflet-da 3.4s ease-in-out infinite; pointer-events: none; }
.lancer-r:active { transform: scale(.97); }
html.da2 .btn:active:not(:disabled) { transform: scale(.97); }
.rail-da a svg { transition: transform .2s; }
.rail-da a:hover svg { transform: scale(1.15) rotate(-6deg); }
html.da2 .bouton-discord { transition: transform .2s, box-shadow .2s; }

/* ---------- Looking for mate : les cartes de collection ---------- */
.grille-collection { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: 14px; perspective: 1000px; }
/* Cartes plus compactes : moins de vide autour de l'initiale, plus de joueurs visibles d'un coup. */
.grille-collection .cc { aspect-ratio: 5 / 6; }
.grille-collection .cc-photo { width: 44%; }
.cc { --rx: 0deg; --ry: 0deg; --x: 50%; --y: 50%; --c: #8fa3bd; --c2: #2b3a52; display: block; aspect-ratio: 5 / 6.800; padding: 2px; background: linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 30%, #111a2a) 55%, var(--c)); border: 0; border-radius: 16px; color: #fff; cursor: pointer; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out, box-shadow .25s; box-shadow: 0 8px 20px rgb(0 0 0 / .32); }
.cc.active { transition: transform .06s linear, box-shadow .25s; box-shadow: 0 18px 36px rgb(0 0 0 / .45), 0 0 22px color-mix(in srgb, var(--c) 30%, transparent); }
.cc:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cc[data-niveau="bronze"] { --c: #d0935f; --c2: #5a3218; }
.cc[data-niveau="argent"] { --c: #c5d0e0; --c2: #39506f; }
.cc[data-niveau="or"] { --c: #efc14f; --c2: #7a2a18; }
.cc-interieur { position: relative; display: grid; grid-template-rows: auto auto 1fr auto auto; justify-items: center; height: 100%; overflow: hidden; padding: 13px; background: #121a2a; border-radius: 14px; }
.cc-interieur > * { position: relative; z-index: 1; }
.cc .cc-fond { position: absolute; z-index: 0; inset: 0; }
/* Un fond par palier : braises, facettes d'acier, rayons d'or. Il se voit, sans prendre toute la place. */
.cc[data-niveau="bronze"] .cc-fond { background: radial-gradient(rgb(255 190 130 / .3) 1px, transparent 1.500px) 0 0 / 18px 18px, radial-gradient(circle at 50% 40%, rgb(208 147 95 / .4), transparent 58%), linear-gradient(180deg, var(--c2), transparent 85%); }
.cc[data-niveau="argent"] .cc-fond { background: linear-gradient(125deg, rgb(255 255 255 / .09) 0 20%, transparent 20% 44%, rgb(255 255 255 / .06) 44% 62%, transparent 62% 80%, rgb(255 255 255 / .08) 80%), radial-gradient(circle at 50% 40%, rgb(170 200 255 / .33), transparent 58%), linear-gradient(180deg, var(--c2), transparent 85%); }
.cc[data-niveau="or"] .cc-fond { background: repeating-conic-gradient(from 0deg at 50% 40%, rgb(255 210 90 / .11) 0 8deg, transparent 8deg 20deg), radial-gradient(circle at 50% 40%, rgb(255 205 80 / .42), transparent 56%), linear-gradient(180deg, var(--c2), transparent 85%); }
.cc[data-niveau="aucun"] .cc-fond { background: radial-gradient(circle at 50% 40%, rgb(143 163 189 / .22), transparent 58%), linear-gradient(180deg, var(--c2), transparent 85%); }
.cc-haut { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; width: 100%; }
.cc-haut strong { min-width: 0; overflow: hidden; font: 700 15px/1.2 var(--f-titre); text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 4px rgb(0 0 0 / .5); }
.cc-haut b { flex: none; color: var(--c); font: 700 13px/1.2 var(--f-titre); }
.cc-palier { grid-row: 2; justify-self: start; margin-top: 3px; color: var(--c); font: 700 12px/1 var(--f-titre); }
.cc-photo { grid-row: 3; align-self: center; display: grid; place-items: center; width: 54%; aspect-ratio: 1; padding: 2px; overflow: hidden; background: var(--c); border-radius: 50%; box-shadow: 0 8px 18px rgb(0 0 0 / .4); transition: transform .25s; }
.cc.active .cc-photo { transform: scale(1.04); }
.cc-photo img, .cc-lettre { display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover; background: #121a2a; border-radius: 50%; font: 800 clamp(26px, 2.800vw, 40px)/1 var(--f-titre); }
.cc-role { grid-row: 4; padding: 3px 11px; background: rgb(0 0 0 / .35); border-radius: 99px; font-size: 13px; font-weight: 600; }
.cc-bas { grid-row: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; margin-top: 7px; color: rgb(255 255 255 / .82); font-size: 12px; }
.cc-bas img, .cc-bas svg { height: 12px; width: auto; vertical-align: -1px; }
.cc-moi { padding: 1px 7px; background: var(--rouge); border-radius: 99px; color: #fff; font-weight: 600; }
/* Le reflet holographique n'apparaît qu'au survol. */
.cc .cc-reflet { position: absolute; z-index: 2; inset: 0; opacity: 0; mix-blend-mode: soft-light; background: radial-gradient(circle at var(--x) var(--y), rgb(255 255 255 / .7), transparent 45%), linear-gradient(115deg, transparent 25%, rgb(255 90 170 / .4) 40%, rgb(90 220 255 / .45) 50%, rgb(255 230 110 / .4) 60%, transparent 75%) calc(var(--x) * .8) calc(var(--y) * .8) / 220% 220%; transition: opacity .25s; pointer-events: none; }
.cc.active .cc-reflet { opacity: 1; }
/* Les cartes d'abord, le formulaire ensuite. */
html.da2 #v-mates > .cadre { display: flex; flex-direction: column; }
html.da2 #v-mates .cadre > div:has(> .form-lfg) { order: 3; margin-top: 28px; }
html.da2 #v-mates .cadre > p.note { order: 4; }
@media (prefers-reduced-motion: reduce) { html.da2 *::before, html.da2 *::after, .lancer-r { animation: none !important; } .cc { transform: none !important; } }

/* ---------- Choix du mode : de grands rectangles, l'image va jusqu'en bas ---------- */
@media (min-width: 768px) {
  .cartes-r { height: max(420px, calc(100dvh - var(--haut-entete) - 256px)); }
  .carte-r { justify-content: flex-end; }
  .visuel-r { position: absolute; inset: 0; height: auto; }
  .visuel-r:has(img)::after { inset: 45% 0 0; background: linear-gradient(to top, rgb(9 14 25 / .96) 12%, rgb(9 14 25 / .7) 50%, transparent); }
  .infos-r { position: relative; z-index: 1; }
  .nom-r { font-size: 24px; text-shadow: 0 2px 8px rgb(0 0 0 / .6); }
  .texte-r small, .elo-r small { color: rgb(255 255 255 / .75); }
  /* Une seule ligne d'actions : le bas de page ne montre plus que le direct. */
  .action-r { position: relative; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4px 14px; }
  .action-r .liens-r { grid-area: 1 / 1; justify-self: start; }
  .action-r .lancer-r { grid-area: 1 / 2; }
  .action-r .pass-jouer { grid-area: 1 / 3; justify-self: end; }
  .action-r .statut-r { grid-area: 2 / 1 / 2 / 4; min-height: 20px; line-height: 20px; }
  html.da2 [data-direct-r]:not([hidden]) { padding-top: 16px; } [data-direct-r] .surtitre-r { margin-bottom: 10px; }
}

/* ---------- Recherche : le temps et les informations d'abord ---------- */
html.da2 [data-etape="recherche"]:not([hidden]) { position: relative; display: flex; flex-flow: row wrap; align-content: flex-end; align-items: stretch; justify-content: flex-start; gap: 12px; min-height: max(440px, calc(100dvh - var(--haut-entete) - 96px)); padding: clamp(20px, 3vw, 40px); overflow: hidden; background: linear-gradient(to top, rgb(9 14 25 / .98) 30%, rgb(9 14 25 / .86)), var(--image-mode, none) center / cover, var(--plaque); border-radius: 18px; text-align: left; }
html.da2 [data-etape="recherche"] > h2 { flex: 0 0 100%; margin: 0; font: 600 16px/1.3 var(--f-texte); color: rgb(255 255 255 / .85); }
html.da2 [data-etape="recherche"] > h2::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; background: var(--rouge-vif); border-radius: 50%; animation: pulse-recherche 1.2s ease-in-out infinite; }
html.da2 [data-etape="recherche"] > .muet { flex: 0 0 100%; display: flex; flex-wrap: wrap-reverse; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin: 0 0 8px; color: var(--texte); font: 700 clamp(20px, 2.200vw, 30px)/1.1 var(--f-titre); }
html.da2 [data-etape="recherche"] .sep-chrono { display: none; }
html.da2 [data-etape="recherche"] [data-chrono] { order: -1; flex-basis: 100%; font: 800 clamp(64px, 8vw, 112px)/1 var(--f-chiffre); letter-spacing: -.02em; }
html.da2 [data-etape="recherche"] .detail-recherche:not([hidden]) { display: contents; }
html.da2 [data-etape="recherche"] .presence-recherche, html.da2 [data-etape="recherche"] [data-plage-elo], html.da2 [data-etape="recherche"] [data-estimation] { flex: 1 1 200px; display: grid; align-content: center; gap: 4px; min-width: 0; margin: 0; padding: 14px 16px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .1); border-radius: 13px; color: var(--texte); font: 400 14px/1.3 var(--f-texte); letter-spacing: 0; text-align: left; text-transform: none; animation: none; }
html.da2 [data-etape="recherche"] .presence-recherche[hidden], html.da2 [data-etape="recherche"] [data-plage-elo]:empty, html.da2 [data-etape="recherche"] [data-estimation]:empty { display: none; }
html.da2 [data-etape="recherche"] :is(.presence-recherche, [data-plage-elo], [data-estimation]) small { color: var(--gris); font-size: 12px; }
html.da2 [data-etape="recherche"] :is(.presence-recherche, [data-plage-elo], [data-estimation]) b { font: 700 clamp(15px, 1.300vw, 18px)/1.25 var(--f-titre); }
html.da2 [data-etape="recherche"] .rappel-recherche, html.da2 [data-etape="recherche"] [data-banniere-alerte] { flex: 0 0 100%; margin: 0; text-align: left; }
html.da2 [data-etape="recherche"] [data-banniere-alerte]:empty { display: none; }
html.da2 [data-etape="recherche"] [data-annuler] { flex: 0 0 auto; margin: 4px auto 0 0; }
html.da2 #v-jouer:has([data-etape="recherche"]:not([hidden])) .checklist { display: none; }
@keyframes pulse-recherche { 50% { opacity: .3; } }
@media (max-width: 767px) {
  html.da2 [data-etape="recherche"]:not([hidden]) { min-height: 0; }
  .visuel-r { width: 80px; }
  .infos-r { padding-right: 14px; }
  .nom-r { padding-right: 32px; }
  .rang-r { gap: 8px; }
  .logo-r { width: 32px; }
  .texte-r strong { font-size: 14px; white-space: nowrap; }
  .texte-r small { font-size: 11px; white-space: nowrap; }
  .elo-r { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html.da2 [data-etape="recherche"] > h2::before { animation: none; } }

/* ---------- Page Chat ---------- */
html.da2 #v-jouer .colonne-chat { display: none; }
html.da2 #v-chat { padding-top: 16px; padding-bottom: 16px; }
@media (max-width: 767px) { html.da2 #v-chat .panneau-chat { height: calc(100dvh - var(--haut-entete) - 110px); } }

/* ---------- Carte du Pass ---------- */
html.da2 .pass-jouer { display: flex; gap: 12px; align-items: center; width: min(340px, 100%); padding: 10px 14px; background: rgb(27 38 58 / .82); border: 1px solid var(--trait); border-radius: 14px; text-decoration: none; box-shadow: 0 8px 22px rgb(0 0 0 / .25); transition: transform .18s, border-color .18s; }
html.da2 .pass-jouer:hover { border-color: var(--trait-fort); transform: translateY(-2px); }
html.da2 .pass-jouer .hexa { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--rouge); border-radius: 12px; clip-path: none; box-shadow: 0 6px 14px rgb(232 32 46 / .35); }
html.da2 .pass-jouer .hexa.premium { background: var(--or); color: #1a1405; }
html.da2 .pass-jouer .hexa span { font: 800 19px/1 var(--f-titre); }
html.da2 .pass-jouer .infos { gap: 6px; }
html.da2 .pass-jouer .ligne { align-items: baseline; font: 500 12px/1.2 var(--f-texte); letter-spacing: 0; text-transform: none; white-space: nowrap; color: var(--gris); }
html.da2 .pass-jouer .ligne:first-child span { color: var(--texte); font: 700 13px/1.2 var(--f-titre); }
html.da2 .pass-jouer .ligne b { font-weight: 600; color: var(--gris); }
html.da2 .pass-jouer .barre-xp { height: 6px; background: rgb(255 255 255 / .1); border: 0; border-radius: 99px; overflow: hidden; }
html.da2 .pass-jouer .barre-xp span { background: var(--rouge-vif); border-radius: 99px; }
html.da2 .pass-jouer .barre-xp.premium span { background: var(--or); }
html.da2 .pass-jouer .ligne .chiffre { font: 500 12px/1.2 var(--f-chiffre); color: var(--gris); }
html.da2 .pass-jouer .manque { font: 600 12px/1.2 var(--f-texte); color: var(--or); }
@media (min-width: 768px) and (max-width: 1179px) {
  .action-r { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .action-r .liens-r, .action-r .lancer-r, .action-r .pass-jouer, .action-r .statut-r { grid-area: auto; justify-self: center; }
  .cartes-r { height: auto; min-height: 460px; }
}
@media (max-width: 767px) { html.da2 .action-r .pass-jouer { width: 100%; } }

/* ---------- Classement ---------- */
.avatar-c, .logo-c { display: none; }
.ligne-joueur-c, .ligne-rang-c { display: contents; }
html.da2 .tableau-saison { margin-bottom: 14px; }
html.da2 .tableau-saison details { padding: 12px 16px; background: var(--plaque); border: 1px solid var(--trait); border-left: 1px solid var(--trait); border-radius: 12px; }
html.da2 .tableau-saison summary { font: 600 14px/1.3 var(--f-texte); color: var(--gris); cursor: pointer; }
html.da2 .barre-c { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
html.da2 .barre-c .onglets { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 4px; background: var(--plaque); border: 1px solid var(--trait); border-radius: 13px; }
html.da2 .barre-c .onglets button { min-height: 40px; padding: 0 16px; background: transparent; border: 0; border-radius: 9px; color: var(--gris); font: 600 14px/1 var(--f-texte); transition: background .15s, color .15s; }
html.da2 .barre-c .onglets button:hover { color: var(--texte); }
html.da2 .barre-c .onglets button[aria-selected="true"] { background: var(--rouge); color: #fff; }
html.da2 .filtres-classement { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px; background: var(--plaque); border: 1px solid var(--trait); border-radius: 13px; }
html.da2 .filtres-classement .champ { display: block; min-width: 0; margin: 0; }
html.da2 .filtres-classement .champ > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.da2 .filtres-classement .champ:has([data-c-q]) { flex: 1 1 220px; }
html.da2 .filtres-classement input[type="search"] { width: 100%; }
html.da2 .filtres-classement :is(select, input[type="search"]) { min-height: 42px; padding-block: 0; background-color: rgb(255 255 255 / .05); border: 0; border-radius: 9px; font-size: 14px; }
html.da2 .filtres-classement .case-classement { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 13px; border-radius: 9px; color: var(--gris); font-size: 14px; cursor: pointer; }
html.da2 .filtres-classement .case-classement[hidden] { display: none; }
html.da2 .filtres-classement .case-classement:has(:checked) { background: rgb(232 32 46 / .18); color: var(--texte); }
html.da2 .filtres-classement [data-c-autour] { min-height: 42px; padding: 0 14px; background: transparent; border: 1px solid var(--trait); border-radius: 9px; font-size: 14px; }
html.da2 [data-c-info] { margin: 0 0 10px; font-size: 13px; }
html.da2 .table-classement { border-collapse: separate; border-spacing: 0 6px; background: transparent; border: 0; }
html.da2 .table-classement th { padding: 4px 16px; background: transparent; border: 0; color: var(--gris); font: 500 12px/1 var(--f-texte); letter-spacing: 0; text-transform: none; }
html.da2 .table-classement td { padding: 10px 16px; background: var(--plaque); border: 0; vertical-align: middle; transition: background .15s; }
html.da2 .table-classement td:first-child { border-radius: 12px 0 0 12px; }
html.da2 .table-classement td:last-child { border-radius: 0 12px 12px 0; text-align: right; }
html.da2 .table-classement tbody tr:hover td { background: var(--plaque-2); }
html.da2 .table-classement tr.moi td { background: rgb(232 32 46 / .14); }
html.da2 .table-classement tr.podium-1 td { background: rgb(239 193 79 / .2); }
html.da2 .table-classement tr.podium-2 td { background: rgb(197 208 224 / .17); }
html.da2 .table-classement tr.podium-3 td { background: rgb(208 135 80 / .2); }
html.da2 .table-classement tr.podium-1 td:first-child { box-shadow: inset 3px 0 #efc14f; }
html.da2 .table-classement tr.podium-2 td:first-child { box-shadow: inset 3px 0 #c5d0e0; }
html.da2 .table-classement tr.podium-3 td:first-child { box-shadow: inset 3px 0 #d08750; }
html.da2 .table-classement tr.podium-1 .pos { color: #efc14f; }
html.da2 .table-classement tr.podium-2 .pos { color: #c5d0e0; }
html.da2 .table-classement tr.podium-3 .pos { color: #d08750; }
html.da2 .table-classement .pos { font: 700 15px/1 var(--f-chiffre); }
html.da2 .ligne-joueur-c, html.da2 .ligne-rang-c { display: flex; align-items: center; gap: 11px; min-width: 0; }
html.da2 .avatar-c { position: relative; display: grid; place-items: center; flex: none; width: 38px; height: 38px; overflow: hidden; background: var(--plaque-2); border-radius: 50%; color: var(--texte); font: 700 14px/1 var(--f-titre); }
html.da2 .avatar-c img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html.da2 .logo-c { display: block; flex: none; width: 30px; }
html.da2 .logo-c svg { display: block; width: 100%; height: auto; }
html.da2 .joueur-classement { color: var(--texte); font-weight: 600; text-decoration: none; }
html.da2 .joueur-classement:hover { text-decoration: underline; }
@media (max-width: 767px) { html.da2 .table-classement td, html.da2 .table-classement th { padding-inline: 10px; } html.da2 .avatar-c { width: 30px; height: 30px; } html.da2 .logo-c { width: 24px; } html.da2 .filtres-classement select { flex: 1; } }

/* Plateforme sous le pseudo, badge Pro Account à côté. */
.plateforme-c { display: block; color: var(--gris); font-size: 12px; font-weight: 400; }
.badge-pro { display: inline-block; width: 18px; height: 18px; margin-left: 6px; vertical-align: -4px; filter: drop-shadow(0 0 4px rgb(245 180 40 / .55)); }
.badge-pro svg { display: block; width: 100%; height: 100%; fill: #f5b428; }
.badge-pro .coche-pro { fill: none; stroke: #2a1c02; stroke-width: 2.600; stroke-linecap: round; stroke-linejoin: round; }
html.da2 .bouton-pro { min-height: 36px; margin-right: 8px; padding: 0 11px; background: transparent; border: 1px solid var(--trait); border-radius: 9px; color: var(--gris); font-size: 12px; }

/* ---------- Page Chat : pas de boîte, les messages sont posés sur la page ---------- */
html.da2 #v-chat .panneau-chat { display: flex; flex-direction: column; height: calc(100dvh - var(--haut-entete) - 32px); min-height: 420px; max-width: 980px; margin-inline: auto; background: transparent; border: 0; opacity: 1; visibility: visible; }
html.da2 #v-chat .tete-chat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 4px 0 10px; }
html.da2 #v-chat .tete-chat h2 { font: 800 clamp(24px, 2.400vw, 32px)/1.1 var(--f-titre); }
html.da2 #v-chat .onglets-chat { display: inline-flex; align-self: flex-start; gap: 2px; margin: 0 0 8px; padding: 4px; background: var(--plaque); border: 1px solid var(--trait); border-radius: 13px; }
html.da2 #v-chat .onglets-chat button { flex: none; min-height: 38px; padding: 0 16px; background: transparent; border: 0; border-radius: 9px; color: var(--gris); font: 600 14px/1 var(--f-texte); }
html.da2 #v-chat .onglets-chat button[aria-selected="true"] { background: var(--rouge); color: #fff; }
html.da2 #v-chat .fil-chat { flex: 1; min-height: 0; gap: 2px; padding: 8px 0; background: transparent; border: 0; scrollbar-width: thin; scrollbar-color: var(--trait) transparent; mask-image: linear-gradient(to bottom, transparent, #000 18px); }
html.da2 #v-chat .msg { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 7px 10px; border-radius: 12px; transition: background .12s; }
html.da2 #v-chat .msg:hover { background: rgb(255 255 255 / .04); }
html.da2 #v-chat .msg .av { width: 40px; height: 40px; }
html.da2 #v-chat .msg .meta { font-size: 15px; }
html.da2 #v-chat .msg p { color: var(--texte); font-size: 15px; line-height: 1.4; }
html.da2 #v-chat .outils-chat { background: transparent; border: 0; padding: 4px 0; }
html.da2 #v-chat .saisie-chat { padding: 8px; background: rgb(27 38 58 / .9); border: 1px solid var(--trait); border-radius: 18px; box-shadow: 0 10px 30px rgb(0 0 0 / .3); }
html.da2 #v-chat .saisie-chat:focus-within { border-color: var(--trait-fort); }
html.da2 #v-chat .saisie-chat textarea { min-height: 44px; padding: 11px 12px; background: transparent; border: 0; font-size: 15px; }
html.da2 #v-chat .saisie-chat .btn { min-height: 44px; border-radius: 12px; }

/* ---------- Tournois ---------- */
html.da2 #v-tournoi .cadre { display: flex; flex-direction: column; }
html.da2 [data-zone-staff-tournoi] { order: 2; margin-top: 20px; }
html.da2 .salle-tournois { padding: 0; background: transparent; border: 0; box-shadow: none; }
html.da2 .salle-tournois > .titre-vue { text-align: left; justify-items: start; }
html.da2 .staff-tournoi { border-left: 1px solid var(--trait); border-radius: 12px; }
html.da2 [data-calendrier-tournois] { gap: 20px; }
/* Les majeurs, sur les images des modes */
html.da2 .majeur { min-height: max(300px, calc(100dvh - var(--haut-entete) - 400px)); border: 2px solid var(--trait); border-radius: 18px; background: var(--plaque); transition: transform .18s, border-color .18s; }
html.da2 .majeur:hover, html.da2 .majeur:focus-within { border-color: var(--trait-fort); transform: translateY(-4px); }
html.da2 .fond-majeur[data-mode="buildfight"], html.da2 .banniere-tournoi[data-mode="buildfight"] { background: url("/img/modes/buildfight.webp") center / cover; }
html.da2 .fond-majeur[data-mode="zonewars"], html.da2 .banniere-tournoi[data-mode="zonewars"] { background: url("/img/modes/zonewars.webp") center / cover; }
html.da2 .fond-majeur[data-mode="realistic"], html.da2 .banniere-tournoi[data-mode="realistic"] { background: url("/img/modes/realistic.webp") center / cover; }
html.da2 .fond-majeur[data-mode="endgame"], html.da2 .banniere-tournoi[data-mode="endgame"] { background: linear-gradient(145deg, #3f2a78, #151a30); }
html.da2 .majeur::after { background: linear-gradient(to top, rgb(9 14 25 / .97) 20%, rgb(9 14 25 / .72) 55%, rgb(9 14 25 / .1)); }
html.da2 .corps-majeur { gap: 6px; padding: 18px; }
html.da2 .corps-majeur h3 { font: 800 clamp(20px, 1.800vw, 26px)/1.1 var(--f-titre); }
html.da2 .badges-majeur { gap: 5px; }
html.da2 .badges-majeur span, html.da2 .badges-majeur span + span { padding: 4px 9px; background: rgb(255 255 255 / .13); border: 0; border-radius: 99px; color: #fff; font: 600 11px/1.1 var(--f-texte); letter-spacing: 0; text-transform: none; backdrop-filter: blur(6px); }
html.da2 .compte-rebours { color: var(--texte); font: 600 13px/1.2 var(--f-chiffre); }
html.da2 .majeur-raison { color: rgb(255 255 255 / .72); }
html.da2 .actions-majeur { margin-top: 8px; }
html.da2 .actions-majeur .btn { min-height: 42px; border-radius: 11px; }
html.da2 [data-en-avant] { min-height: 42px; background: transparent; border: 1px solid rgb(255 255 255 / .2); border-radius: 11px; color: rgb(255 255 255 / .75); font-size: 12px; }
/* Filtres : deux sélecteurs sur une ligne, comme le classement */
html.da2 .barre-filtres-t { position: static; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 0; background: transparent; border: 0; box-shadow: none; }
html.da2 .groupe-filtre { gap: 2px; padding: 4px; background: var(--plaque); border: 1px solid var(--trait); border-radius: 13px; }
html.da2 .nom-filtre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html.da2 .puce-filtre { min-height: 38px; padding: 0 15px; background: transparent; border: 0; border-radius: 9px; color: var(--gris); font: 600 14px/1 var(--f-texte); transition: color .15s, background .15s; }
html.da2 .puce-filtre:hover { color: var(--texte); }
html.da2 .puce-filtre[aria-pressed="true"] { background: var(--rouge); color: #fff; }
/* La semaine */
html.da2 .tete-semaine h2 { font: 700 clamp(16px, 1.500vw, 20px)/1.2 var(--f-titre); }
html.da2 .tete-semaine .fleche { width: 40px; height: 40px; background: var(--plaque); border: 1px solid var(--trait); border-radius: 11px; }
html.da2 .tuiles-jours { gap: 6px; }
html.da2 .tuile-jour { padding: 12px 14px; background: var(--plaque); border: 1px solid transparent; border-radius: 13px; transition: border-color .15s, background .15s, transform .15s; }
html.da2 .tuile-jour:hover { border-color: var(--trait-fort); transform: translateY(-2px); }
html.da2 .tuile-jour[aria-pressed="true"] { background: rgb(232 32 46 / .16); border-color: var(--rouge); box-shadow: none; }
html.da2 .tuile-jour.vide { opacity: .5; }
html.da2 .nom-jour { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
html.da2 .numero-jour { font: 800 clamp(20px, 2vw, 26px)/1 var(--f-titre); }
html.da2 .titre-jour { font: 700 17px/1.2 var(--f-titre); }
html.da2 .vide-jour { background: transparent; border: 1px dashed var(--trait); border-radius: 13px; }
/* Les tournois du jour : une ligne par tournoi */
html.da2 .cartes-jour { grid-template-columns: minmax(0, 1fr); gap: 10px; }
html.da2 .case-tournoi { position: relative; display: block; }
html.da2 .case-tournoi > .badges-majeur { display: none; }
html.da2 .case-tournoi .carte-tournoi { display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; background: var(--plaque); border: 1px solid var(--trait); border-radius: 15px; }
html.da2 .case-tournoi .banniere-tournoi { position: relative; width: auto; height: auto; min-height: 130px; margin: 0; aspect-ratio: auto; border: 0; }
html.da2 .case-tournoi .banniere-tournoi::after { content: ""; position: absolute; inset: 0; background: rgb(9 14 25 / .4); }
html.da2 .case-tournoi .filigrane { display: none; }
html.da2 .case-tournoi :is(.statut-tournoi, .badge-mode) { z-index: 1; border-radius: 99px; font: 600 11px/1.1 var(--f-texte); letter-spacing: 0; text-transform: none; }
html.da2 .case-tournoi .corps { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 24px; padding: 14px 18px; }
html.da2 .case-tournoi .corps > :is(h3, .compte-rebours, dl, .jauge) { grid-column: 1; margin: 0; }
html.da2 .case-tournoi .corps > :is(.droit, .actions-tournoi) { grid-column: 2; justify-self: end; margin: 0; }
html.da2 .case-tournoi .corps h3 { font: 700 18px/1.2 var(--f-titre); }
html.da2 .case-tournoi .corps dl { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--gris); font-size: 13px; }
html.da2 .case-tournoi .corps dl dd { margin: 0 12px 0 0; }
html.da2 .case-tournoi .droit { padding: 0; background: transparent; border: 0; color: var(--gris); font-size: 12px; text-align: right; }
html.da2 .case-tournoi .droit.ok { color: var(--ok); }
html.da2 .case-tournoi .actions-tournoi .btn { min-height: 40px; border-radius: 11px; font-size: 13px; }
html.da2 .bouton-une { position: static; margin-top: 6px; min-height: 36px; }
@media (max-width: 767px) {
  html.da2 .case-tournoi .carte-tournoi { grid-template-columns: minmax(0, 1fr); }
  html.da2 .case-tournoi .corps { grid-template-columns: minmax(0, 1fr); }
  html.da2 .case-tournoi .corps > :is(.droit, .actions-tournoi) { grid-column: 1; justify-self: start; text-align: left; }
  html.da2 .majeur { min-height: 280px; }
  html.da2 .groupe-filtre { max-width: 100%; }
}
@media (max-width: 767px) { html.da2 #v-chat .panneau-chat { height: calc(100dvh - var(--haut-entete) - 150px); min-height: 340px; } }
/* Le rebours en couleur, la date bien lisible, les filtres en haut de page. */
html.da2 .quand-majeur .compte-rebours { color: #ffc93c; font: 700 13px/1.25 var(--f-chiffre); }
html.da2 .quand-majeur .date-majeur { color: #fff; font: 700 15px/1.25 var(--f-titre); }
html.da2 .barre-filtres-t { margin-bottom: 2px; }
/* Le bas d'un majeur : le mode, le nom, puis une grande action. */
html.da2 .corps-majeur { gap: 8px; padding: 20px; }
html.da2 .corps-majeur h3 { font-size: clamp(22px, 2vw, 30px); }
html.da2 .actions-majeur { margin-top: 6px; flex-wrap: nowrap; }
/* Raison sans bouton (inscriptions fermées…) : sur toute la largeur, les boutons passent dessous (bug téléphone du 22 nov.). */
html.da2 .actions-majeur:has(.majeur-raison) { flex-wrap: wrap; }
html.da2 .actions-majeur .majeur-raison { flex: 1 1 100%; margin: 0; }
html.da2 .actions-majeur .btn-rouge { flex: 1; min-height: 48px; justify-content: center; text-align: center; font-size: 15px; }
html.da2 .actions-majeur [data-en-avant] { flex: none; min-height: 48px; }
/* Pastille VIP : le même sceau que Pro Account, en bleu. */
.badge-pro.vip { filter: drop-shadow(0 0 4px rgb(60 150 255 / .55)); }
.badge-pro.vip svg { fill: #3c96ff; }
.badge-pro.vip .coche-pro { stroke: #04223f; }
html.da2 .entete .nav a[data-lien="tournoi"] .libelle-long { display: inline; }
html.da2 .entete .nav a[data-lien="tournoi"] .libelle-court { display: none; }
/* Icône Live : le joueur est en match et en stream, le clic ouvre sa chaîne. */
.live-c { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 7px; background: #9146ff; border-radius: 6px; color: #fff !important; font: 800 10px/1.4 var(--f-titre); letter-spacing: .04em; text-decoration: none; vertical-align: 1px; }
.live-c i { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: pulse-live 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .live-c i { animation: none; } }
/* Cup en vedette : le nom et le temps restant prennent la place. */
html.da2 .majeur.vedette { min-height: max(360px, calc(100dvh - var(--haut-entete) - 330px)); }
html.da2 .majeur.vedette .corps-majeur { max-width: 620px; }
html.da2 .majeur.vedette .corps-majeur h3 { font-size: clamp(30px, 3.400vw, 46px); }
html.da2 .majeur:not(.vedette) { min-height: 280px; }
html.da2 .majeur .actions-majeur { max-width: 460px; }
html.da2 .majeur.vedette::after { background: linear-gradient(to right, rgb(9 14 25 / .92) 25%, rgb(9 14 25 / .35) 70%, transparent), linear-gradient(to top, rgb(9 14 25 / .9), transparent 60%); }
html.da2 .case-tournoi .jauge { height: 6px; margin-top: 4px; background: rgb(255 255 255 / .1); border-radius: 99px; overflow: hidden; }
html.da2 .case-tournoi .jauge span { background: var(--ok); border-radius: 99px; }
html.da2 .case-tournoi .jauge.presque span { background: #ffc93c; }
html.da2 .case-tournoi .jauge.complet span { background: var(--rouge-vif); }
@media (max-width: 767px) {
  html.da2 .majeur.vedette { min-height: 360px; }
  html.da2 .majeur.vedette::after { background: linear-gradient(to top, rgb(9 14 25 / .97) 45%, rgb(9 14 25 / .3)); }
  .blocs-rebours span { flex: 1; min-width: 0; padding: 7px 4px; }
}
/* Le texte reste lisible sur les images chargées (grandes lettres incrustées). */
html.da2 .majeur:not(.vedette)::after { background: linear-gradient(to top, rgb(9 14 25 / .98) 35%, rgb(9 14 25 / .82) 68%, rgb(9 14 25 / .15)); }
/* La semaine : une pastille par tournoi, à la couleur de son mode. */
html.da2 .tuile-jour { position: relative; min-height: 96px; }
html.da2 .tuile-jour .nb-jour { display: none; }
html.da2 .pastilles-jour { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 12px; margin-top: 4px; }
html.da2 .pastilles-jour i, html.da2 .legende-modes i { display: block; width: 10px; height: 10px; background: var(--m); border-radius: 50%; }
html.da2 .pastilles-jour small { color: var(--gris); font-size: 11px; }
html.da2 .inscrit-jour { position: absolute; top: 10px; right: 10px; display: block; padding: 2px 6px; background: rgb(62 207 142 / .16); border-radius: 6px; color: var(--ok); font-size: 11px; font-weight: 600; }
html.da2 .legende-modes { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--gris); font-size: 12px; }
html.da2 .legende-modes span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 767px) {
  html.da2 .tuile-jour { min-height: 88px; }
  html.da2 .inscrit-jour { position: static; justify-self: start; margin-top: 2px; }
}

/* Page Jouer (ordinateur) : la barre « Lancer » reste collée en bas de l'écran tant qu'on n'y est pas descendu. */
@media (min-width: 768px) {
  html.da2 #v-jouer .action-r { position: sticky; bottom: 14px; z-index: 6; padding: 10px 14px; background: rgb(18 27 42 / .86); backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / .07); border-radius: 18px; }
}

/* F30 : score en direct sur « Matchs en cours » (page Jouer) */
.score-r { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; color: var(--texte); font: 800 20px/1 var(--f-titre); background: rgb(232 32 46 / .18); border-radius: 8px; }
.score-r i { font-style: normal; color: var(--gris); font-size: .8em; }
.note-epic-r { grid-column: 1 / -1; margin: 0; color: var(--gris); font-size: 12px; text-align: center; }
.note-epic-r b { color: var(--texte); }
.note-epic-r a { color: var(--rouge-vif); }
.note-epic-r.alerte { color: var(--or); }

/* Chargement d'une page (Tournoi, 8s-6s…) : un repère au lieu d'une page vide. */
.chargement-page { display: grid; justify-items: center; gap: 12px; padding: 60px 16px; color: var(--gris); }
.chargement-page::before { content: ""; width: 34px; height: 34px; border: 3px solid var(--trait); border-top-color: var(--rouge-vif); border-radius: 50%; animation: tourne-chargement .8s linear infinite; }
@keyframes tourne-chargement { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .chargement-page::before { animation: none; } }
.tout-voir-r { margin-left: 10px; color: var(--rouge-vif); font-size: 13px; font-weight: 600; text-decoration: none; vertical-align: middle; }
.tout-voir-r:hover { text-decoration: underline; }
