/* Lurk, Loot & Fight — page d'accueil (index.html). Tokens, cartes et boutons viennent d'app.css ;
   ici seulement la mise en page de la page vitrine : en-tête, héros et sa main de cartes, les trois actes
   (Lurk, Loot, Fight), la progression, le direct, la suite, la clôture. Préfixe « ac- » partout. */

body.ac { overflow-x: clip; }
.ac [hidden] { display: none !important; }
.ac-evitement { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--legendaire); color: #16120a; font-weight: 700; text-decoration: none; }
.ac-evitement:focus { top: 12px; }
.ac-colonne { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 56px); }
.ac h1, .ac h2, .ac h3 { text-wrap: balance; }
.ac p { max-width: 62ch; }
.ac a:not([class]) { color: var(--encre); text-decoration-color: color-mix(in oklab, var(--legendaire) 60%, transparent); }
.ac a:not([class]):hover { text-decoration-color: var(--legendaire); }
.num { font-variant-numeric: tabular-nums; }

/* ================= Boutons ================= */
.ac-twitch {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 22px; border-radius: 14px;
  background: var(--twitch); color: #fff; font-family: var(--titre); font-weight: 700; font-size: 15.5px; line-height: 1.1; white-space: nowrap;
  box-shadow: 0 10px 22px -12px rgba(0,0,0,.9), inset 0 -2px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.22);
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.ac-twitch svg { width: 20px; height: 20px; flex: none; }
.ac-twitch:hover { background: var(--twitch-3); transform: translateY(-1px); box-shadow: 0 18px 32px -14px rgba(0,0,0,1), inset 0 -2px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.22); }
.ac-twitch:active { transform: translateY(1px); }
.ac-twitch[aria-busy="true"] { cursor: progress; opacity: .8; }
.ac-twitch[aria-busy="true"] svg { animation: ac-pulse 1s ease-in-out infinite; }
@keyframes ac-pulse { 50% { opacity: .35; } }
.ac-second {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border-radius: 12px;
  border: 1px solid var(--trait-fort); color: var(--encre); font-weight: 600; font-size: 15px; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.ac-second:hover { background: var(--sol-2); border-color: var(--encre-3); }

/* ================= En-tête ================= */
.ac-entete { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--sol) 76%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.ac-entete.defilee { border-color: var(--trait); }
.ac-entete-in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.ac-marque { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--encre); }
.ac-marque svg { width: 30px; height: 30px; flex: none; image-rendering: pixelated; }
.ac-marque b { font-family: var(--titre); font-weight: 800; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.ac-twitch-entete { margin-left: auto; padding: 10px 14px; font-size: 13.5px; border-radius: 11px; }
.ac-twitch-entete svg { width: 17px; height: 17px; }
@media (max-width: 820px) { .ac-twitch-entete { display: none; } }
@media (max-width: 720px) { .ac-marque svg { width: 26px; height: 26px; } }
@media (max-width: 440px) { .ac-marque b { font-size: 14.5px; } }

/* ================= Héros ================= */
.ac-heros { padding: clamp(32px, 6vw, 84px) 0 clamp(28px, 4vw, 48px); }
.ac-heros-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px clamp(28px, 4vw, 48px); align-items: center; }
/* Le titre : trois phrases insécables, à la taille qui fait tenir la plus longue (« Regarde le stream. » = 11,58 × la taille)
   sur une ligne de sa colonne. */
.ac-heros-texte { container-type: inline-size; min-width: 0; }
.ac-heros h1 { font-size: clamp(28px, 8.4cqi, 48px); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; }
.ac-heros h1 span { display: block; }
.ac-lede { margin-top: clamp(18px, 2vw, 26px); font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.55; color: var(--encre-2); max-width: 54ch; }
.ac-lede b { color: var(--encre); font-weight: 700; }
.ac-lede a { color: var(--twitch-2); text-decoration-color: color-mix(in oklab, var(--twitch-2) 60%, transparent); }
.ac-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 2.6vw, 32px); }
.ac-note { margin-top: 14px; font-size: 14px; color: var(--encre-3); max-width: 50ch; }
.ac-preuve { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(16px, 2vw, 22px); }
.ac-preuve li { display: grid; gap: 2px; }
.ac-preuve b { font-family: var(--titre); font-weight: 700; font-size: 24px; line-height: 1; }
.ac-preuve span { font-size: 13.5px; color: var(--encre-3); }

/* La main : un coffre s'ouvre (le coffre du site, app.css) et cinq cartes en sortent en éventail. Tout est en CSS :
   sans animation (mouvement réduit, vieux navigateur), la main est déjà posée au-dessus du coffre ouvert.
   Une enveloppe par carte pour la position dans l'éventail, la zone de survol dedans, pour que l'inclinaison au
   survol (app.css « .survolable ») ne touche pas à l'éventail. La main est le seul élément qui sort de la colonne :
   à droite, jusqu'à 150 px dans la marge de l'écran. L'éventail (écart .46, ±12°) fait 3,52 largeurs de carte. */
.ac-heros-main { min-width: 0; container-type: inline-size; margin-right: calc(-1 * max(clamp(20px, 4.5vw, 56px), min(50vw - 534px, 150px))); }
.ac-main { --cw: clamp(96px, 26.5cqi, 176px); --ecart: .46; --angle: 6deg; --depart: .9s; position: relative; height: calc(var(--cw) * 2.34); max-width: 100%; }
.ac-main-carte {
  position: absolute; left: 50%; top: calc(var(--cw) * .89); width: var(--cw); margin: calc(var(--cw) * -.7) 0 0 calc(var(--cw) * -.5); z-index: var(--i);
  --dx: calc((var(--i) - 2) * var(--ecart) * var(--cw)); --dy: 0px; --rot: calc((var(--i) - 2) * var(--angle));
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); transform-origin: 50% 120%; perspective: 760px;
  animation: ac-sort .8s var(--ease) calc(var(--depart) + var(--i) * 110ms) backwards;
}
.ac-main-carte:nth-of-type(2), .ac-main-carte:nth-of-type(4) { --dy: calc(var(--cw) * .05); }
.ac-main-carte:nth-of-type(1), .ac-main-carte:nth-of-type(5) { --dy: calc(var(--cw) * .17); }
@keyframes ac-sort { from { transform: translate(0, calc(var(--cw) * .82)) rotate(0deg) scale(.18); opacity: 0; } 35% { opacity: 1; } }
.ac-main-carte .zone { display: block; border-radius: 14px; }
/* Le coffre : il tremble, le couvercle saute, la lumière monte, puis les cartes partent. */
.ac-main .coffre { --lueur: var(--legendaire); --force: 2.2; top: calc(var(--cw) * 1.56); width: calc(var(--cw) * .92); translate: -50% 0; z-index: 6; }
.ac-main .coffre .rayons { display: none; }
.ac-main .coffre.ouvert svg { animation: secousse .11s linear 7; }
.ac-main .coffre.ouvert .couvercle { animation-delay: .78s; }
.ac-main .coffre.ouvert .onde { animation-delay: .78s; }
.ac-main .coffre.ouvert .interieur { opacity: 0; animation: ac-allume .25s .8s forwards; }
/* La lumière du coffre (rayon et halo) est posée DERRIÈRE les cartes : ce sont deux éléments de la main, pas ceux du coffre,
   qui passe devant les cartes. */
.ac-main .coffre .halo, .ac-main .coffre .faisceau { display: none; }
.ac-main-rayon, .ac-main-halo { position: absolute; left: 50%; z-index: 0; pointer-events: none; opacity: 0; }
.ac-main-rayon { top: calc(var(--cw) * .2); width: calc(var(--cw) * 1.9); height: calc(var(--cw) * 1.55); translate: -50% 0; transform-origin: 50% 100%; scale: 1 0;
  background: linear-gradient(to top, color-mix(in oklab, var(--legendaire) 85%, #fff), color-mix(in oklab, var(--legendaire) 30%, transparent) 50%, transparent);
  clip-path: polygon(36% 100%, 64% 100%, 100% 0, 0 0); filter: blur(6px); animation: ac-rayon .6s .8s forwards; }
.ac-main-halo { top: calc(var(--cw) * 1.9); width: calc(var(--cw) * 2.6); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--legendaire) 55%, transparent), transparent 62%); animation: ac-halo .6s .8s forwards; }
@keyframes ac-allume { to { opacity: 1; } }
@keyframes ac-halo { to { opacity: .4; } }
@keyframes ac-rayon { to { opacity: .55; scale: 1 1; } }
.ac-demo { margin: 12px auto 0; font-size: 13.5px; color: var(--encre-3); max-width: 46ch; line-height: 1.45; }
.ac-demo::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--encre-3); margin: 0 7px 2px 0; }
.ac-piocher {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 12px; background: transparent; color: var(--legendaire);
  border: 1px solid color-mix(in oklab, var(--legendaire) 55%, transparent); font-family: var(--titre); font-weight: 700; font-size: 13.5px; line-height: 1.1;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.ac-piocher svg { width: 20px; height: 20px; }
.ac-piocher:hover { background: color-mix(in oklab, var(--legendaire) 12%, transparent); border-color: var(--legendaire); transform: translateY(-1px); }
.ac-piocher:disabled { opacity: .55; cursor: progress; transform: none; }
.ac-lien { color: var(--encre); font: inherit; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--legendaire) 60%, transparent); text-underline-offset: 3px; }
.ac-lien:hover { text-decoration-color: var(--legendaire); }
/* Sous 1100 px : une colonne, et le coffre passe en premier (avant le titre). */
@media (max-width: 1100px) {
  .ac-heros-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ac-heros-main { order: -1; max-width: 640px; margin-right: 0; }
}
@media (max-width: 600px) { .ac-main { --cw: clamp(96px, 31cqi, 150px); --ecart: .38; } }
@media (max-width: 520px) { .ac-cta > * { width: 100%; } }

/* ================= Sections ================= */
.ac-section { padding-top: clamp(48px, 6vw, 88px); }
.ac-section > .ac-colonne::before { content: ""; display: block; grid-column: 1 / -1; height: 1px; background: var(--trait); margin-bottom: clamp(32px, 4vw, 52px); }
.ac-section h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.02em; max-width: 22ch; }
.ac-section h2 + p, .ac-deux-texte > p { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--encre-2); max-width: 58ch; }
.ac-deux-texte > p + p { margin-top: 12px; }
.ac-acte { display: block; font-size: 15px; font-weight: 800; letter-spacing: .04em; margin-bottom: 14px; }
.ac-acte-lurk { color: var(--twitch-2); }
.ac-acte-loot { color: var(--legendaire); }
.ac-acte-fight { color: var(--encre); }
.ac-deux { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px clamp(32px, 5vw, 72px); align-items: start; }
.ac-mention { font-size: 13.5px; color: var(--encre-3); line-height: 1.5; }
@media (max-width: 860px) { .ac-deux { grid-template-columns: minmax(0, 1fr); } }

/* ================= Lurk : ce que tu reçois ================= */
.ac-lurk-tete p { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--encre-2); max-width: 76ch; }
.ac-stream { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 18px; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--twitch-2) 60%, transparent); color: var(--twitch-2); font-family: var(--titre); font-weight: 700; font-size: 14px; line-height: 1.1; text-decoration: none; transition: background .2s, border-color .2s; }
.ac-stream svg { width: 18px; height: 18px; }
.ac-stream:hover { background: color-mix(in oklab, var(--twitch) 16%, transparent); border-color: var(--twitch-2); }
.ac-dons { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 40px); }
@media (max-width: 900px) { .ac-dons { grid-template-columns: minmax(0, 1fr); } }
.ac-dons li { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--sol-2); border: 1px solid var(--trait); }
.ac-dons-quand { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.ac-dons-note { font-size: 13.5px; line-height: 1.45; color: var(--encre-3); }
.ac-dons-quoi { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-family: var(--titre); font-weight: 700; font-size: 20px; line-height: 1; }
.ac-dons-quoi svg { width: 28px; height: 28px; }
.ac-dons-quoi b + svg { margin-right: 8px; }
.ac-dons-quoi small { font: 600 13.5px/1 var(--texte); color: var(--encre-2); margin-right: 10px; }
.ac-reserve { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 12px 14px; border-radius: 12px; background: var(--sol-3); }
.ac-reserve-compte { display: inline-flex; align-items: baseline; gap: 7px; }
.ac-reserve-compte svg { width: 24px; height: 24px; align-self: center; }
.ac-reserve-compte b { font-family: var(--titre); font-weight: 800; font-size: 26px; line-height: 1; }
.ac-reserve i { font-style: normal; font-size: 13.5px; color: var(--encre-3); }
.ac-reserve-chrono { display: grid; gap: 2px; padding-left: 20px; border-left: 1px solid var(--trait-fort); }
.ac-reserve-chrono b { font-family: var(--titre); font-weight: 800; font-size: 17px; line-height: 1.1; color: var(--normal); }
@media (max-width: 420px) { .ac-reserve-chrono { padding-left: 0; border-left: 0; flex-basis: 100%; } }

/* ================= Loot ================= */
.ac-loot-haut { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.ac-loot-texte > p + p { margin-top: 12px; }
/* La démo d'ouverture : le coffre du site, qui tremble, change de couleur et crache une carte. */
.ac-ouverture { display: grid; justify-items: center; gap: 14px; margin-top: 26px; }
.ac-ouv-table { position: relative; width: 100%; height: 340px; border-radius: 22px; overflow: hidden; background: radial-gradient(70% 60% at 50% 100%, rgba(255,255,255,.07), transparent 70%), #0e0f16; border: 1px solid var(--trait); }
.ac-ouv-table .coffre { top: auto; bottom: 22px; width: 136px; translate: -50% 0; z-index: 1; }
.ac-ouv-carte { position: absolute; left: 50%; top: 18px; width: 158px; margin-left: -79px; z-index: 3; }
.ac-ouv-carte .carte { animation: ac-monte .6s var(--ease) backwards; }
@keyframes ac-monte { from { transform: translateY(190px) scale(.25); opacity: 0; } }
.ac-ouverture .ac-demo { margin: 0; text-align: center; max-width: 60ch; }
.ac-unique { margin: 0; display: grid; justify-items: center; gap: 18px; align-self: center; }
.ac-unique-carte { width: clamp(200px, 22vw, 264px); display: block; border-radius: 14px; }
.ac-unique-titre { font-family: var(--titre); font-weight: 700; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; color: var(--encre); }
.ac-unique-titre b { color: #c79bff; }
.ac-unique figcaption p + p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--encre-2); }
@media (max-width: 900px) { .ac-loot-haut { grid-template-columns: minmax(0, 1fr); } .ac-unique { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 22px; } .ac-unique-carte { width: clamp(150px, 34vw, 220px); } }
@media (max-width: 560px) { .ac-unique { grid-template-columns: minmax(0, 1fr); } .ac-unique-carte { width: 200px; } }

/* Les taux : une tuile par rareté (cinq colonnes), une ligne par rareté sur mobile. La barre est à l'échelle du taux. */
.ac-taux { margin-top: clamp(32px, 4vw, 48px); }
.ac-taux h3 { font-family: var(--titre); font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; letter-spacing: -.01em; }
.ac-taux-liste { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.ac-taux-liste li { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 14px; background: color-mix(in oklab, var(--c) 7%, var(--sol-2)); border: 1px solid color-mix(in oklab, var(--c) 32%, transparent); }
.ac-taux-nom { font-weight: 700; font-size: 15px; color: var(--c); }
.ac-taux-liste b { font-family: var(--titre); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1; }
.ac-taux-liste i { display: block; height: 8px; border-radius: 999px; background: var(--sol-3); overflow: hidden; }
.ac-taux-liste i::before { content: ""; display: block; height: 100%; width: max(8px, calc(var(--p) / 45 * 100%)); border-radius: inherit; background: var(--c); }
.ac-taux-plafond { font-size: 13.5px; color: var(--encre-2); }
.ac-taux .ac-mention { margin-top: 14px; max-width: 100ch; }
@media (max-width: 760px) {
  .ac-taux-liste { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ac-taux-liste li { grid-template-columns: 92px 72px minmax(0, 1fr); grid-template-areas: "nom taux barre" "nom taux plafond"; align-items: center; gap: 4px 12px; padding: 12px 14px; }
  .ac-taux-nom { grid-area: nom; } .ac-taux-liste b { grid-area: taux; font-size: 20px; } .ac-taux-liste i { grid-area: barre; } .ac-taux-plafond { grid-area: plafond; }
}

/* Le défilé des cinquante objets : deux copies de la rangée, masquée aux deux bouts, en pause au survol. */
.ac-defile { margin-top: clamp(40px, 5vw, 60px); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); min-height: 180px; }
.ac-defile-rangee { display: flex; gap: 12px; width: max-content; animation: ac-defile 150s linear infinite; }
.ac-defile:hover .ac-defile-rangee { animation-play-state: paused; }
.ac-defile-rangee .zone { display: block; width: 126px; flex: none; border-radius: 14px; }
@keyframes ac-defile { to { transform: translateX(-50%); } }
/* La monnaie : la médaille en grand, ce qui en rapporte, ce qu'elle achète. */
.ac-monnaie { margin-top: clamp(44px, 5vw, 64px); padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--sol-2); border: 1px solid var(--trait); display: grid; gap: 22px; }
.ac-monnaie-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.ac-monnaie-piece { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: color-mix(in oklab, var(--legendaire) 14%, var(--sol-3)); border: 1px solid color-mix(in oklab, var(--legendaire) 45%, transparent); }
.ac-monnaie-piece svg { width: 40px; height: 40px; }
.ac-monnaie h3 { font-family: var(--titre); font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; letter-spacing: -.01em; }
.ac-monnaie-tete p { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--encre-2); max-width: 66ch; }
.ac-monnaie-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px clamp(24px, 4vw, 48px); }
.ac-monnaie h4 { font-size: 14px; font-weight: 600; color: var(--encre-3); margin-bottom: 10px; }
.ac-monnaie-liste { list-style: none; display: grid; gap: 9px; }
.ac-monnaie-liste li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--encre-2); }
.ac-monnaie-liste svg { width: 20px; height: 20px; flex: none; color: var(--encre-2); }
.ac-prix { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ac-prix li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 14px 16px; border-radius: 12px; background: var(--sol-3); }
.ac-prix b { font-family: var(--titre); font-weight: 700; font-size: 22px; line-height: 1; }
.ac-prix svg { width: 20px; height: 20px; }
.ac-prix-a { font-size: 14px; color: var(--encre-3); margin: 0 2px; }
.ac-prix span:last-child { flex-basis: 100%; font-size: 13.5px; color: var(--encre-3); line-height: 1.35; }
.ac-monnaie > .ac-mention { max-width: 90ch; }
@media (max-width: 760px) { .ac-monnaie-colonnes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 340px) { .ac-prix { grid-template-columns: minmax(0, 1fr); } }

/* ================= Fight : quatre scènes ================= */
.ac-fight-tete p { max-width: 58ch; }
/* Le duel : la scène et deux tours du déroulé, sans cadre, qui se fondent dans le noir de la page. */
.ac-duel { margin: clamp(24px, 3.5vw, 40px) 0 0; border-radius: 22px 22px 0 0; overflow: hidden; -webkit-mask: linear-gradient(#000 0 86%, transparent 99%); mask: linear-gradient(#000 0 86%, transparent 99%); }
.ac-duel img { display: block; width: 100%; height: auto; }
.ac-modes-titre { margin-top: clamp(8px, 2vw, 20px); font-family: var(--titre); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.01em; }
.ac-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(18px, 2.4vw, 26px); }
.ac-mode { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--sol-2); border: 1px solid var(--trait); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.ac-mode-scene { position: relative; height: 196px; background: radial-gradient(80% 90% at 50% 100%, rgba(255,255,255,.05), transparent 70%), #0e0f16; border-bottom: 1px solid var(--trait); overflow: hidden; }
.ac-mode-corps { padding: 20px 22px 24px; display: grid; gap: 12px; align-content: start; flex: 1; }
.ac-mode h3 { display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.ac-mode h3 svg { width: 22px; height: 22px; color: var(--encre-2); }
.ac-mode-corps > p { font-size: 15px; line-height: 1.55; color: var(--encre-2); }
.ac-faits { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: auto; padding-top: 4px; }
.ac-faits > div { display: grid; gap: 3px; }
.ac-faits dt { font-size: 13.5px; color: var(--encre-3); }
.ac-faits dd { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--encre-2); }
.ac-faits dd b { font-family: var(--titre); font-weight: 700; font-size: 17px; line-height: 1; color: var(--encre); }
.ac-faits dd svg { width: 20px; height: 18px; }
@media (max-width: 900px) { .ac-modes { grid-template-columns: minmax(0, 1fr); } }

/* Duels : deux armes face à face, les trois tranches entre les deux. */
.ac-scene-duels { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 28px); padding: 16px; }
.ac-vs-carte { width: 104px; flex: none; }
.ac-vs-carte:first-child { transform: rotate(-5deg) translateY(4px); }
.ac-vs-carte:last-child { transform: rotate(5deg) translateY(4px); }
.ac-vs { display: grid; justify-items: center; gap: 10px; }
.ac-vs-mot { font-family: var(--titre); font-weight: 800; font-size: 22px; letter-spacing: .06em; color: var(--encre-3); }
.ac-tranches { list-style: none; display: grid; gap: 5px; }
.ac-tranches li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--sol-3); border: 1px solid var(--trait); font-size: 12.5px; line-height: 1; color: var(--encre-2); min-width: 150px; }
.ac-tranches b { font-family: var(--titre); font-weight: 700; font-size: 12px; color: var(--encre); }
.ac-tranches .egal { border-color: color-mix(in oklab, var(--legendaire) 55%, transparent); background: color-mix(in oklab, var(--legendaire) 14%, var(--sol-3)); color: var(--encre); }
@media (max-width: 420px) { .ac-vs-carte { width: 84px; } .ac-tranches li { min-width: 128px; } }

/* Ligue : six joueurs (leur photo de profil Twitch dès que le direct répond, leur initiale en attendant) et l'échelle des rangs. */
.ac-scene-ligue { display: grid; align-content: center; gap: 20px; padding: 18px 20px; }
.ac-adversaires { list-style: none; display: flex; justify-content: space-between; gap: 6px; }
.ac-adversaires li { display: grid; justify-items: center; gap: 7px; }
.ac-adv-av { display: grid; place-items: center; overflow: hidden; width: 46px; height: 46px; border-radius: 50%; background: var(--sol-3); border: 1px solid var(--trait-fort); font-family: var(--titre); font-weight: 700; font-size: 15px; color: var(--encre-2); }
.ac-adv-av img { width: 100%; height: 100%; object-fit: cover; }
.ac-adversaires b { display: inline-flex; align-items: center; gap: 3px; font-family: var(--titre); font-weight: 700; font-size: 11.5px; color: var(--encre); white-space: nowrap; }
.ac-adversaires b svg { width: 13px; height: 13px; }
.ac-rangs { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ac-rangs li { padding: 7px 12px; border-radius: 999px; font-size: 13px; line-height: 1; font-weight: 600; color: var(--c); background: color-mix(in oklab, var(--c) 12%, var(--sol-3)); border: 1px solid color-mix(in oklab, var(--c) 38%, transparent); }
@media (max-width: 420px) { .ac-adversaires li:nth-child(n+5) { display: none; } }

/* La Tour : la scène en pixel art (accueil-tour.png, 96 × 50 à l'échelle 1, agrandie sans lissage par le navigateur), la plaque de l'étage par-dessus. */
.ac-scene-tour { background: #0d0f1e; }
@media (min-width: 481px) { .ac-mode-scene.ac-scene-tour { height: 220px; } }
.ac-scene-tour img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; image-rendering: pixelated; image-rendering: crisp-edges; }
.ac-tour-plaque { position: absolute; left: 16px; bottom: 14px; display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 8px; background: #1f190b; border: 2px solid var(--legendaire); box-shadow: 0 0 0 2px #6b531c, 0 10px 20px -10px #000; }
.ac-tour-plaque b { font-family: var(--titre); font-weight: 800; font-size: 15px; color: var(--legendaire); }
.ac-tour-plaque span { font-size: 12px; color: var(--encre-2); }

/* L'Arène : à gauche le draft (la carte choisie se lève), à droite ce que rapportent 12 victoires, dont la carte gardée. */
.ac-mode-scene.ac-scene-arene { height: 220px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ac-arene-bloc { display: grid; align-content: center; justify-items: center; gap: 12px; padding: 16px 12px; }
.ac-arene-gains { border-left: 1px solid var(--trait); background: color-mix(in oklab, var(--legendaire) 5%, transparent); }
.ac-arene-etiquette { font-size: 13.5px; color: var(--encre-2); }
.ac-arene-etiquette b { font-family: var(--titre); font-weight: 700; color: var(--encre); }
.ac-draft { display: flex; align-items: flex-end; gap: 7px; }
.ac-draft > .carte, .ac-draft-stat { width: 70px; flex: none; }
.ac-draft-stat { aspect-ratio: 5 / 7; border-radius: 10px; display: grid; align-content: center; justify-items: center; gap: 3px; text-align: center; padding: 6px; --c: var(--rare); background: linear-gradient(180deg, color-mix(in oklab, var(--c) 16%, #15161d), #0f1015); border: 1px solid color-mix(in oklab, var(--c) 42%, transparent); }
.ac-draft-stat i { font-style: normal; font-family: var(--titre); font-weight: 800; font-size: 8px; color: #101116; background: var(--c); border-radius: 4px; padding: 3px 5px; }
.ac-draft-stat b { font-family: var(--titre); font-weight: 800; font-size: 18px; line-height: 1; margin-top: 3px; }
.ac-draft-stat span { font-size: 10px; color: var(--encre-2); }
.ac-draft-choisie { transform: translateY(-9px); outline: 2px solid var(--epique); outline-offset: 1px; }
.ac-arene-lots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
.ac-arene-lots span { display: inline-flex; align-items: center; gap: 4px; font-family: var(--titre); font-weight: 700; font-size: 14px; white-space: nowrap; }
.ac-arene-lots svg { width: 20px; height: 20px; }
.ac-arene-garde { display: flex; align-items: center; gap: 10px; }
.ac-arene-garde .carte { width: 64px; flex: none; outline: 2px solid var(--legendaire); outline-offset: 1px; }
.ac-arene-garde > span { font-size: 13.5px; line-height: 1.3; color: var(--encre); max-width: 13ch; }
.ac-mode-prix { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 14.5px !important; color: var(--encre) !important; }
.ac-mode-prix b { font-family: var(--titre); font-weight: 700; font-size: 16px; }
.ac-mode-prix svg { width: 18px; height: 18px; margin-right: 8px; }
@media (max-width: 480px) { .ac-mode-scene.ac-scene-arene { height: auto; grid-template-columns: minmax(0, 1fr); } .ac-arene-gains { border-left: 0; border-top: 1px solid var(--trait); } }

/* ================= Progression ================= */
.ac-prog-tete p { max-width: 70ch; }
.ac-parcours { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 280px); gap: 24px clamp(20px, 3vw, 36px); align-items: center; }
.ac-piste { padding: 0 14px 0 8px; }
/* Le prestige : ce qui attend au bout de la piste. */
.ac-prestige { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 18px; border-radius: 18px; background: linear-gradient(160deg, color-mix(in oklab, var(--legendaire) 16%, var(--sol-2)), var(--sol-2) 70%); border: 1px solid color-mix(in oklab, var(--legendaire) 45%, transparent); }
.ac-prestige > svg { width: 44px; height: 44px; color: var(--legendaire); }
.ac-prestige > div b { display: block; font-family: var(--titre); font-weight: 800; font-size: 19px; color: var(--legendaire); }
.ac-prestige > div span { font-size: 13.5px; line-height: 1.4; color: var(--encre-2); }
.ac-prestige ul { grid-column: 1 / -1; display: grid; gap: 6px; padding-left: 20px; font-size: 14.5px; color: var(--encre); }
.ac-prestige li::marker { color: var(--legendaire); }
.ac-gains { margin-top: clamp(26px, 3.5vw, 40px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ac-gains > div { padding: 14px 16px; border-radius: 14px; background: var(--sol-2); border: 1px solid var(--trait); display: grid; gap: 6px; align-content: start; }
.ac-gains dt { font-size: 13.5px; color: var(--encre-3); }
.ac-gains dd { font-size: 14.5px; line-height: 1.45; color: var(--encre-2); }
.ac-gains dd b { font-family: var(--titre); font-weight: 700; font-size: 19px; color: var(--encre); margin-right: 4px; }
.ac-gains dd svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }
@media (max-width: 980px) { .ac-parcours { grid-template-columns: minmax(0, 1fr); } .ac-gains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ac-gains { grid-template-columns: minmax(0, 1fr); } }
.ac-paliers { list-style: none; position: relative; height: 96px; margin: 0; }
.ac-paliers li { position: absolute; left: calc(var(--x) * 1%); top: 0; transform: translateX(-50%); display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; width: 44px; height: 100%; }
.ac-paliers li::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--encre-3); border: 2px solid var(--sol); box-shadow: 0 0 0 1px var(--encre-3); grid-row: 2; }
.ac-paliers li svg { grid-row: 1; width: 22px; height: 22px; align-self: end; margin-bottom: 8px; }
.ac-paliers li b { grid-row: 3; align-self: start; margin-top: 8px; font-family: var(--titre); font-weight: 700; font-size: 12.5px; color: var(--encre-2); }
.ac-paliers li.leg svg { width: 28px; height: 28px; margin-bottom: 5px; }
.ac-paliers li.leg::after { background: var(--legendaire); box-shadow: 0 0 0 1px var(--legendaire); }
.ac-paliers li.leg b { color: var(--legendaire); }
.ac-paliers li:first-child::after { background: var(--encre); box-shadow: 0 0 0 1px var(--encre); }
.ac-piste-barre { position: relative; height: 6px; border-radius: 999px; background: var(--sol-3); margin: 0 0 -51px; }
.ac-piste-barre i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in oklab, var(--legendaire) 30%, var(--sol-3)), var(--legendaire)); }
@media (max-width: 640px) { .ac-paliers li:nth-child(even):not(.leg) svg { display: none; } .ac-paliers li:nth-child(even):not(.leg) b { display: none; } .ac-paliers li:nth-child(even):not(.leg)::after { width: 7px; height: 7px; } }
/* ================= Classements et succès ================= */
#t-classements { max-width: none; }
#t-classements span { display: block; }
.ac-classements { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ac-classements li { padding: 7px 12px; border-radius: 999px; background: var(--sol-2); border: 1px solid var(--trait); font-size: 14px; color: var(--encre-2); }
.ac-succes-titre { font-family: var(--texte); letter-spacing: 0; font-size: 15.5px; font-weight: 600; color: var(--encre-2); margin-bottom: 12px; }
.ac-succes { list-style: none; display: grid; gap: 8px; }
.ac-succes li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--sol-2); border: 1px solid var(--trait); }
.ac-succes li > svg { width: 24px; height: 24px; color: var(--c); }
.ac-succes span { display: grid; gap: 2px; }
.ac-succes b { font-weight: 600; font-size: 15px; }
.ac-succes i { font-style: normal; font-size: 13.5px; color: var(--encre-3); }
.ac-succes em { font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--c); }

/* ================= En ce moment ================= */
.ac-set-jour { margin-top: 14px !important; font-size: 15px !important; color: var(--encre) !important; }
.ac-set-jour b { color: var(--legendaire); font-weight: 700; }
.ac-deux-texte .ac-mention { margin-top: 18px; }
.ac-podium { list-style: none; display: grid; gap: 8px; align-self: center; }
.ac-podium li { display: grid; grid-template-columns: 28px 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 14px; background: var(--sol-2); border: 1px solid var(--trait); }
.ac-podium li:nth-child(1) { background: linear-gradient(90deg, color-mix(in oklab, var(--legendaire) 16%, var(--sol-2)), var(--sol-2) 55%); }
.ac-podium li:nth-child(2) { background: linear-gradient(90deg, rgba(200,205,220,.12), var(--sol-2) 55%); }
.ac-podium li:nth-child(3) { background: linear-gradient(90deg, rgba(205,127,50,.14), var(--sol-2) 55%); }
.ac-podium .rang { font-family: var(--titre); font-weight: 800; font-size: 15px; color: var(--encre-2); text-align: center; }
.ac-podium li:first-child .rang { color: var(--legendaire); }
.ac-podium .avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--sol-3); border: 1px solid var(--trait-fort); font-family: var(--titre); font-weight: 700; font-size: 14px; color: var(--encre-2); }
.ac-podium .avatar img { width: 100%; height: 100%; object-fit: cover; }
.ac-podium .rang-texte { display: grid; gap: 1px; min-width: 0; }
.ac-podium .rang-nom { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-podium .rang-bilan { font-size: 13.5px; color: var(--encre-3); }
.ac-podium .rang-power { display: inline-flex; align-items: center; gap: 5px; font-family: var(--titre); font-weight: 700; font-size: 15px; }
.ac-podium .rang-power svg { width: 17px; height: 17px; }

/* ================= Et plus à venir : quatre jalons sur une ligne pointillée, le nom caviardé ================= */
.ac-route { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: clamp(30px, 4vw, 44px); padding-top: 30px; }
.ac-route::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; border-top: 2px dashed var(--trait-fort); }
.ac-route li { position: relative; display: grid; gap: 12px; align-content: start; }
.ac-route li::before { content: ""; position: absolute; left: 0; top: -31px; width: 14px; height: 14px; border-radius: 50%; background: var(--sol); border: 2px solid var(--encre-3); }
.ac-route li.proche::before { border-color: var(--legendaire); background: var(--legendaire); }
.ac-route-cache { display: block; height: 16px; width: calc(var(--l) * 22px); max-width: 100%; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--encre-3) 0 14px, transparent 14px 18px); opacity: .55; }
.ac-route p { font-size: 15.5px; line-height: 1.5; color: var(--encre-2); max-width: 30ch; }
.ac-route em { font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--legendaire); }
@media (max-width: 820px) {
  .ac-route { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 30px; gap: 26px; }
  .ac-route::before { left: 6px; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 2px dashed var(--trait-fort); }
  .ac-route li::before { left: -30px; top: 1px; }
  .ac-route p { max-width: 46ch; }
}

/* ================= Clôture et pied ================= */
.ac-cloture { padding: clamp(80px, 11vw, 140px) 0 clamp(56px, 7vw, 80px); }
.ac-cloture .ac-colonne { display: grid; gap: 18px; justify-items: start; }
.ac-cloture h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 800; letter-spacing: -.035em; max-width: 16ch; }
.ac-cloture p { font-size: 18px; line-height: 1.5; color: var(--encre-2); max-width: 56ch; }
.ac-cloture p b { color: var(--encre); font-weight: 700; }
.ac-cloture .ac-twitch { margin-top: 8px; }
.ac-pied { border-top: 1px solid var(--trait); padding: 28px 0 44px; }
.ac-pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ac-pied nav a { font-size: 13.5px; color: var(--encre-2); text-decoration: none; }
.ac-pied nav a:hover { color: var(--encre); text-decoration: underline; }
.ac-pied p { margin-top: 18px; font-size: 13.5px; line-height: 1.5; color: var(--encre-3); max-width: 86ch; }
@media (max-width: 820px) { .ac-pied { padding-bottom: 110px; } }

/* La barre collante sur mobile et tablette : le bouton Twitch suit, tant que celui du héros n'est pas à l'écran. */
.ac-barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--sol) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--trait); transform: translateY(110%); transition: transform .35s var(--ease); }
.ac-barre.visible { transform: translateY(0); }
.ac-barre .ac-twitch { width: 100%; }
@media (min-width: 821px) { .ac-barre { display: none; } }
.ac-erreur { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 460px); padding: 13px 16px; border-radius: 14px; background: #2a1216; border: 1px solid #7a2a31; color: #ffd9dc; font-size: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.9); }

/* ================= Mouvement réduit ================= */
@media (prefers-reduced-motion: reduce) {
  .ac-twitch, .ac-second, .ac-piocher, .ac-barre, .ac-entete { transition: none !important; }
  .ac-main-carte, .ac-main .coffre *, .ac-main-rayon, .ac-main-halo, .ac-ouv-carte .carte { animation: none !important; }
  .ac-main-rayon { opacity: .55; scale: 1 1; } .ac-main-halo { opacity: .4; }
  .ac-main .coffre.ouvert .interieur { opacity: 1; } .ac-main .coffre.ouvert .couvercle { transform: translate(-20px, 5.5px) rotate(-438deg); }
  .ac-defile { -webkit-mask: none; mask: none; overflow-x: auto; }
  .ac-defile-rangee { animation: none; }
  .ac-twitch[aria-busy="true"] svg { animation: none; }
}
