/* Loadout Legends — landing (refonte 2026-09-27, ménage vitrine-tokens 2026-11-10).
   Chargée après tokens.css et site.css : n'en garde que l'en-tête, le pied de page, les boutons
   et la révélation au défilement. Tout le reste est propre à la landing, préfixé `lg-`.
   Mobile d'abord : les règles de base visent un téléphone, les requêtes n'ajoutent que de l'ampleur.
   Les cartes sont les images du Set 1 (web/assets/cards/set1), recadrées au bord du cadre dans
   web/assets/cards/vitrine/{360,720} au ratio 360×586.
   Couleurs et rayons : tokens de tokens.css uniquement ; seul le rayon des cartes du jeu (--lg-radius-card)
   garde sa valeur propre (design system § 5). */

.lg {
  /* Couleurs reprises des tokens (palette unique, 2026-10-21) ; seul le rayon des cartes reste propre à la landing. */
  --lg-gold: var(--ll-ion);
  --lg-gold-hi: var(--ll-ion-bright);
  --lg-violet: var(--ll-volt);
  --lg-holo: var(--ll-rarity-rare);
  --lg-steel: var(--ll-rarity-common);
  --lg-champagne: var(--ll-primary);
  --lg-radius-card: 10px;
  --lg-ease: var(--ll-courbe);
  --lg-gutter: var(--ll-espace-4);
  background: var(--ll-bg);
}
.lg .container { padding-left: var(--lg-gutter); padding-right: var(--lg-gutter); }
@media (min-width: 600px) { .lg { --lg-gutter: var(--ll-espace-6); } }

/* ------------------------------------------------------------------ Typographie */
.lg-title {
  font-family: var(--ll-font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.15rem, 9vw, 4.4rem); line-height: .95; letter-spacing: -.005em;
  margin: 0 0 .35em;
}
.lg-title em, .lg-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--lg-gold) 0%, var(--lg-gold-hi) 45%, var(--ll-ion-dim) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lg-title--xl { font-size: clamp(2.8rem, 13vw, 7rem); }
/* Surtitre : `ll-eyebrow` (tokens.css), le même que sur les pages intérieures. */
.lg-lead { font-size: 1.08rem; line-height: 1.5; color: var(--ll-muted); max-width: 38ch; margin: 0; }
.lg-center { text-align: center; }
.lg-center .lg-lead { margin-left: auto; margin-right: auto; }
.lg-head { margin-bottom: 36px; }
.lg-note { margin: 14px 0 0; font-size: 13.5px; color: var(--ll-subtle); letter-spacing: .02em; }
.lg-note a { color: var(--ll-text); text-decoration: underline; text-underline-offset: 3px; }
.lg-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px;
  font-family: var(--ll-font-display); font-weight: 600; font-size: 16px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ll-text);
}
.lg-link span { transition: transform .2s var(--lg-ease); }
.lg-link:hover { text-decoration: none; color: var(--lg-gold-hi); }
.lg-link:hover span { transform: translateY(3px); }
.lg-link--small { font-size: 13px; color: var(--ll-subtle); margin-top: 18px; }
.lg-link--small:hover span { transform: translateX(3px); }

/* ------------------------------------------------------------------ Boutons */
.lg-btn-play {
  min-height: 56px; padding: 0 30px; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 700; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ll-primary-hover) 40%, transparent), 0 12px 36px -8px color-mix(in srgb, var(--ll-ion) 55%, transparent);
  position: relative; overflow: hidden;
}
/* Reflet qui traverse le bouton : il attire l'œil sans clignoter. */
.lg-btn-play::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-20deg); animation: lg-btn-sheen 5.5s 2s infinite;
}
@keyframes lg-btn-sheen { 0%, 78% { left: -60%; } 100% { left: 130%; } }
.lg-btn-play:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ll-primary-hover) 60%, transparent), 0 16px 44px -8px color-mix(in srgb, var(--ll-ion) 75%, transparent); }
.lg-btn-xl { min-height: 62px; padding: 0 40px; font-size: 18px; }

/* ------------------------------------------------------------------ En-tête */
.lg-header .container { gap: 10px; }
.lg-header-play { margin-left: auto; padding: 10px 18px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
@media (min-width: 980px) {
  .lg-header-play { display: none; }
  .lg-header .nav-actions .ll-btn-primary { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
}

/* ------------------------------------------------------------------ Carte (composant) */
.lg-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; --px: 0; --py: 0; --depth: 0;
  --glow: rgba(0, 0, 0, 0);
  position: relative; display: block; border-radius: var(--lg-radius-card);
  transform: translate3d(calc(var(--px) * var(--depth) * 16px), calc(var(--py) * var(--depth) * 12px), 0)
             perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--lg-ease), box-shadow .4s ease;
  box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .85), 0 0 34px -8px var(--glow);
  will-change: transform;
}
.lg-card.is-tilting { transition: transform .08s linear, box-shadow .4s ease; }
.lg-card > img { display: block; width: 100%; height: auto; border-radius: var(--lg-radius-card); user-select: none; -webkit-user-drag: none; }
.lg-card[data-rarity="uncommon"] { --glow: color-mix(in srgb, var(--lg-champagne) 28%, transparent); }
.lg-card[data-rarity="rare"] { --glow: color-mix(in srgb, var(--lg-holo) 38%, transparent); }
.lg-card[data-rarity="epic"] { --glow: color-mix(in srgb, var(--lg-violet) 50%, transparent); }
.lg-card[data-rarity="legendary"] { --glow: color-mix(in srgb, var(--lg-gold) 55%, transparent); }

/* Reflet qui suit le doigt ou le curseur. Sur les finitions holographiques et cristallines,
   il se double d'un irisé : c'est ce qui distingue la matière, pas la couleur. */
.lg-glare {
  position: absolute; inset: 0; border-radius: var(--lg-radius-card); pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 48%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .35s ease;
}
.lg-card.is-tilting .lg-glare { opacity: 1; }
.lg-card[data-rarity="rare"] .lg-glare,
.lg-card[data-rarity="epic"] .lg-glare {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%),
    linear-gradient(115deg, rgba(255, 0, 132, .22), rgba(0, 200, 255, .22) 30%, rgba(140, 255, 120, .2) 50%, rgba(255, 220, 0, .2) 70%, rgba(170, 90, 255, .22));
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, var(--mx) var(--my);
  mix-blend-mode: color-dodge;
}
.lg-card[data-rarity="legendary"] .lg-glare {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 244, 214, .55), rgba(255, 244, 214, 0) 46%),
    linear-gradient(120deg, rgba(255, 215, 140, 0) 30%, rgba(255, 230, 170, .35) 50%, rgba(255, 215, 140, 0) 70%);
  background-size: 100% 100%, 240% 240%;
  background-position: 0 0, var(--mx) var(--my);
  mix-blend-mode: overlay;
}
/* Éclat doré périodique sur les Légendaires mises en avant. */
.lg-card--shine::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--lg-radius-card); pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 236, 190, .5) 48%, rgba(255, 255, 255, .7) 50%, rgba(255, 236, 190, .5) 52%, transparent 62%);
  background-size: 300% 100%; background-position: 130% 0; mix-blend-mode: overlay;
  animation: lg-shine 6s 1.6s infinite;
}
@keyframes lg-shine { 0%, 70% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* ================================================================== 1. HERO */
.lg-hero { position: relative; isolation: isolate; overflow: hidden; padding: 18px 0 40px; }
.lg-hero-bg { position: absolute; inset: 0; z-index: -2; }
.lg-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; filter: saturate(.4) blur(1px); }
.lg-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 45% at 50% 50%, color-mix(in srgb, var(--ll-ion) 18%, transparent), transparent 70%),
    radial-gradient(50% 40% at 15% 20%, color-mix(in srgb, var(--ll-volt) 16%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--ll-bg) 55%, transparent), var(--ll-bg) 96%);
}
.lg-hero-grid { display: grid; grid-template-areas: "copy" "fan" "cta"; justify-items: center; text-align: center; }
.lg-hero-copy { grid-area: copy; }
.lg-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 10px;
  font-family: var(--ll-font-display); font-weight: 600; font-size: 12.5px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ll-muted);
}
.lg-kicker span:first-child { color: var(--lg-gold); }
.lg-kicker-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--ll-volt); }
.lg-hero h1 {
  font-family: var(--ll-font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 12.5vw, 6.4rem); line-height: .9; letter-spacing: -.01em; margin: 0;
}
.lg-hero h1 em { display: block; }

/* Éventail : cinq cartes posées sur un arc. La position vient de --i (−2 à 2) ; i² sert à la fois
   à creuser l'arc, à réduire les cartes du bord et à les placer derrière. */
.lg-fan {
  grid-area: fan; position: relative; width: 100%; height: clamp(300px, 92vw, 430px); margin: 4px 0 2px;
  --w: min(44vw, 200px); --dx: min(17vw, 84px); --dy: 9px; --rot: 8deg;
}
.lg-fan-glow {
  position: absolute; left: 50%; top: 52%; width: 90%; height: 70%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ll-ion) 45%, transparent), color-mix(in srgb, var(--ll-volt) 18%, transparent) 55%, transparent);
  filter: blur(18px); animation: lg-breathe 6s ease-in-out infinite alternate;
}
@keyframes lg-breathe { from { opacity: .65; } to { opacity: 1; } }
.lg-fan-card {
  position: absolute; left: 50%; top: 50%; width: var(--w);
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--i) * var(--dx)))
    translateY(calc(var(--i) * var(--i) * var(--dy)))
    rotate(calc(var(--i) * var(--rot)))
    scale(calc(1 - var(--i) * var(--i) * .04));
  z-index: calc(10 - var(--i) * var(--i));
  animation: lg-deal .95s var(--lg-ease) both;
  animation-delay: calc((4 - var(--i) * var(--i)) * 90ms + 120ms);
}
.lg-fan-card[style*="--i:0"] { animation: lg-deal .95s var(--lg-ease) .5s both, lg-float 5s 1.6s ease-in-out infinite alternate; }
@keyframes lg-deal {
  from { opacity: 0; translate: 0 60px; scale: .82; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes lg-float { from { translate: 0 0; } to { translate: 0 -10px; } }
/* Au défilement, l'éventail s'ouvre légèrement : les cartes s'écartent selon leur profondeur. */
.lg-fan[data-parallax] .lg-fan-card { margin-left: calc(var(--i) * var(--open, 0) * 26px); }

.lg-hero-cta { grid-area: cta; display: grid; justify-items: center; width: 100%; }
.lg-hero-lead {
  margin: 0 0 18px; font-family: var(--ll-font-display); font-weight: 500; font-size: 1.22rem;
  line-height: 1.3; letter-spacing: .01em; color: var(--ll-text); max-width: 26ch; text-wrap: balance;
}
.lg-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.lg-actions .lg-btn-play { width: 100%; max-width: 340px; }

@media (min-width: 600px) {
  .lg-fan { --w: 210px; --dx: 110px; height: 440px; }
  .lg-actions { flex-direction: row; justify-content: center; gap: 18px; }
  .lg-actions .lg-btn-play { width: auto; }
}
/* PC : le héros laisse voir le bandeau des six jeux (.vt-jeux, 116 px) au bas du premier écran (Trakzz 2026-11-12,
   « remonter le bandeau des univers sur la ligne de flottaison »). --haut = hauteur disponible sous l'en-tête (66 px) ;
   l'éventail (--h, 580 px au plus) et le titre se règlent dessus, avec les mêmes proportions qu'avant sur grand écran. */
@media (min-width: 980px) {
  .lg-hero {
    --bandeau: 116px; --haut: calc(100svh - 66px - var(--bandeau));
    padding: var(--ll-espace-6) 0 var(--ll-espace-8); min-height: min(var(--haut), 860px); display: flex; align-items: center;
  }
  .lg-hero h1 { font-size: min(6.4rem, 12.5vw, calc(var(--haut) * .13)); }
  .lg-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "copy fan" "cta fan";
    align-items: end; justify-items: start; text-align: left; column-gap: var(--ll-espace-6);
  }
  .lg-hero-copy { align-self: end; }
  .lg-hero-cta { align-self: start; justify-items: start; margin-top: 22px; }
  .lg-hero-lead { font-size: 1.45rem; }
  .lg-actions { justify-content: flex-start; }
  .lg-fan { --h: min(580px, calc(var(--haut) - 64px)); height: var(--h); --w: calc(var(--h) * 220 / 580); --dx: calc(var(--h) * 104 / 580); --dy: 12px; }
  .lg-fan-card[style*="--i:0"] { --w: calc(var(--h) * 265 / 580); }
}
@media (min-width: 1200px) { .lg-fan { --w: calc(var(--h) * 228 / 580); --dx: calc(var(--h) * 108 / 580); } .lg-fan-card[style*="--i:0"] { --w: calc(var(--h) * 276 / 580); } }
@media (min-width: 1360px) { .lg-fan { --w: calc(var(--h) * 240 / 580); --dx: calc(var(--h) * 122 / 580); } .lg-fan-card[style*="--i:0"] { --w: calc(var(--h) * 290 / 580); } }

/* ================================================================== Sections */
.lg-section { position: relative; padding: 76px 0; }
.lg-section + .lg-section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(760px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ll-ion) 28%, transparent), transparent);
}
@media (min-width: 980px) { .lg-section { padding: 124px 0; } .lg-head { margin-bottom: 56px; } }

/* ================================================================== Vitrine des cartes (sélecteur piloté par landing.js) */
.lg-stage { grid-area: stage; position: relative; display: grid; justify-items: center; gap: 18px; }
.lg-card--xl { width: min(72vw, 330px); --lg-radius-card: 14px; }

.lg-picker {
  grid-area: picker; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--ll-espace-2) var(--lg-gutter) var(--ll-espace-3); margin: 0 calc(var(--lg-gutter) * -1);
  scrollbar-width: none; justify-content: safe center;
}
.lg-picker::-webkit-scrollbar { display: none; }
.lg-pick {
  flex: none; width: 62px; padding: 0; border: 0; background: none; scroll-snap-align: center;
  border-radius: var(--ll-radius); opacity: .55; transform: translateY(0); transition: opacity .25s, transform .3s var(--lg-ease), box-shadow .3s;
}
.lg-pick img { width: 100%; border-radius: var(--ll-radius); display: block; }
.lg-pick:hover { opacity: .9; }
.lg-pick[aria-selected="true"] { opacity: 1; transform: translateY(-6px); box-shadow: 0 0 0 2px var(--pick-ring, var(--lg-gold)), 0 10px 24px -6px var(--pick-ring, var(--lg-gold)); }
.lg-pick[data-rarity="epic"] { --pick-ring: var(--lg-violet); }
.lg-pick[data-rarity="rare"] { --pick-ring: var(--lg-holo); }

@media (min-width: 980px) {
  .lg-picker { align-self: start; margin: 0; padding: 10px 0; justify-content: flex-start; flex-wrap: wrap; overflow: visible; }
  .lg-pick { width: 74px; }
  .lg-card--xl { width: 360px; }
  .lg-lead { font-size: 1.2rem; }
}

/* ================================================================== Roster (démo pilotée par landing.js) */
.lg-builder {
  max-width: 980px; margin: 0 auto; padding: 18px 14px 20px; border-radius: var(--ll-radius-lg);
  border: 1px solid var(--ll-border-subtle);
  background:
    radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--ll-volt) 12%, transparent), transparent 70%),
    linear-gradient(180deg, var(--ll-surface), var(--ll-bg));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.lg-slot {
  position: relative; margin: 0; aspect-ratio: 360 / 586; border-radius: var(--ll-radius);
  border: 1.5px dashed color-mix(in srgb, var(--ll-volt-bright) 35%, transparent); background: color-mix(in srgb, var(--ll-volt-bright) 4%, transparent);
  display: grid; place-items: center; transition: border-color .2s, background .2s, transform .2s;
}
.lg-slot::before { content: attr(data-n); font-family: var(--ll-font-display); font-weight: 700; font-size: 1.6rem; color: color-mix(in srgb, var(--ll-volt-bright) 35%, transparent); }
.lg-slot.is-over { border-color: var(--lg-gold); background: color-mix(in srgb, var(--ll-ion) 8%, transparent); transform: scale(1.03); }
.lg-slot.is-full { border: 0; background: none; }
.lg-slot.is-full::before { content: none; }
.lg-slot button { position: absolute; inset: 0; padding: 0; border: 0; background: none; border-radius: var(--ll-radius); animation: lg-drop .5s var(--lg-ease) both; }
.lg-slot button img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--ll-radius); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .9); }
.lg-slot-role {
  position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--ll-font-display); font-weight: 600; font-size: var(--ll-text-legende); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ll-on-primary); background: var(--lg-gold); padding: 2px 8px; border-radius: 999px;
}
@keyframes lg-drop { from { opacity: 0; transform: translateY(-40px) scale(1.12) rotate(-4deg); } to { opacity: 1; transform: none; } }
.lg-bench-card {
  position: relative; flex: none; width: 84px; padding: 0; border: 0; background: none; border-radius: var(--ll-radius);
  scroll-snap-align: start; transition: transform .25s var(--lg-ease), opacity .25s; touch-action: manipulation;
}
.lg-bench-card img { width: 100%; border-radius: var(--ll-radius); display: block; pointer-events: none; }
.lg-bench-card:hover { transform: translateY(-5px); }
.lg-bench-card[aria-pressed="true"] { opacity: .32; transform: scale(.94); }
.lg-bench-card[aria-pressed="true"]::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 26px; font-weight: 700; color: var(--lg-gold);
}
.lg-bench-card.is-dragging { opacity: .4; }
.lg-builder.is-complete { border-color: color-mix(in srgb, var(--ll-ion) 40%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ll-ion) 20%, transparent), 0 40px 80px -40px color-mix(in srgb, var(--ll-ion) 35%, transparent); }
@media (min-width: 700px) {
  .lg-builder { padding: 28px 28px 30px; }
  .lg-bench-card { width: 92px; }
}

/* ================================================================== Raretés */
.lg-rarity { overflow: hidden; }
.lg-rarity-grid { display: grid; grid-template-areas: "copy" "stage" "controls"; gap: var(--ll-espace-6); }
.lg-rarity-copy { grid-area: copy; }
.lg-rarity-controls { grid-area: controls; display: grid; justify-items: center; }
.lg-rarity-stage { grid-area: stage; position: relative; display: grid; justify-items: center; gap: var(--ll-espace-4); --r-glow: color-mix(in srgb, var(--lg-steel) 25%, transparent); touch-action: pan-y; }
.lg-rarity-light {
  position: absolute; left: 50%; top: 45%; width: 130%; height: 90%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--r-glow), transparent); filter: blur(26px); transition: background .7s ease; pointer-events: none;
}
.lg-rarity-stage[data-rarity="uncommon"] { --r-glow: color-mix(in srgb, var(--lg-champagne) 32%, transparent); }
.lg-rarity-stage[data-rarity="rare"] { --r-glow: color-mix(in srgb, var(--lg-holo) 42%, transparent); }
.lg-rarity-stage[data-rarity="epic"] { --r-glow: color-mix(in srgb, var(--lg-violet) 55%, transparent); }
.lg-rarity-stage[data-rarity="legendary"] { --r-glow: color-mix(in srgb, var(--lg-gold) 62%, transparent); }
.lg-card--stack > img { position: absolute; inset: 0; opacity: 0; transform: scale(.97); transition: opacity .55s ease, transform .7s var(--lg-ease); }
.lg-card--stack > img:first-child { position: relative; }
.lg-card--stack > img.is-on { opacity: 1; transform: none; }
/* Le changement de finition « respire » : la carte se soulève un instant. */
.lg-card--stack.is-upgrading { animation: lg-upgrade .6s var(--lg-ease); }
@keyframes lg-upgrade { 40% { scale: 1.035; } }
/* Irisé permanent et léger sur la Rare : l'holographique vit même sans curseur. */
.lg-card--stack[data-rarity="rare"] .lg-glare,
.lg-card--stack[data-rarity="epic"] .lg-glare { opacity: .55; animation: lg-holo 5s linear infinite; }
.lg-card--stack[data-rarity="rare"].is-tilting .lg-glare,
.lg-card--stack[data-rarity="epic"].is-tilting .lg-glare { opacity: 1; animation: none; }
@keyframes lg-holo { from { background-position: 0 0, 0% 50%; } to { background-position: 0 0, 100% 50%; } }
.lg-sweep { position: absolute; inset: 0; border-radius: var(--lg-radius-card); pointer-events: none; opacity: 0; overflow: hidden; }
.lg-card--stack[data-rarity="legendary"] .lg-sweep {
  opacity: 1;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 236, 190, .55) 48%, rgba(255, 255, 255, .8) 50%, rgba(255, 236, 190, .55) 52%, transparent 62%);
  background-size: 300% 100%; mix-blend-mode: overlay; animation: lg-shine 3.2s .4s infinite;
}
.lg-rarity-dots { display: flex; gap: 6px; }
.lg-rarity-dots span { width: 22px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .15); transition: background .3s; }
.lg-rarity-dots span.is-on { background: var(--lg-gold); }
.lg-rarity-steps { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding: var(--ll-espace-1) 0; justify-content: center; }
.lg-rarity-steps::-webkit-scrollbar { display: none; }
.lg-rarity-steps button {
  flex: none; display: grid; gap: 2px; text-align: center; padding: 9px 12px; border-radius: var(--ll-radius-lg);
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .02); color: var(--ll-muted);
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--lg-ease);
}
.lg-rs-name { font-family: var(--ll-font-display); font-weight: 700; font-size: var(--ll-text-lecture); letter-spacing: .08em; text-transform: uppercase; }
.lg-rs-mat { font-size: 11.5px; color: var(--ll-subtle); display: none; }
.lg-rarity-steps button[aria-selected="true"] { color: var(--ll-text); border-color: var(--rs-c); background: color-mix(in srgb, var(--rs-c) 12%, transparent); }
.lg-rarity-steps button[aria-selected="true"] .lg-rs-mat { display: block; }
.lg-rarity-steps [data-rarity="common"] { --rs-c: var(--lg-steel); }
.lg-rarity-steps [data-rarity="uncommon"] { --rs-c: var(--lg-champagne); }
.lg-rarity-steps [data-rarity="rare"] { --rs-c: var(--lg-holo); }
.lg-rarity-steps [data-rarity="epic"] { --rs-c: var(--lg-violet); }
.lg-rarity-steps [data-rarity="legendary"] { --rs-c: var(--lg-gold); }
@media (min-width: 980px) {
  .lg-rarity-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy stage" "controls stage";
    column-gap: 40px; row-gap: var(--ll-espace-6); align-items: center;
  }
  .lg-rarity-copy { align-self: end; }
  .lg-rarity-controls { align-self: start; justify-items: start; }
  .lg-rarity-steps { flex-direction: column; flex-wrap: nowrap; max-width: 340px; }
  .lg-rarity-steps button { padding: 12px 16px; text-align: left; }
  .lg-rarity-steps button:hover { transform: translateX(4px); color: var(--ll-text); }
  .lg-rs-mat { display: block; }
}

/* ================================================================== CTA final */
.lg-final { position: relative; isolation: isolate; overflow: hidden; padding: 30px 0 90px; text-align: center; }
.lg-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 45% at 50% 35%, color-mix(in srgb, var(--ll-ion) 28%, transparent), transparent 70%),
    radial-gradient(70% 40% at 50% 100%, color-mix(in srgb, var(--ll-volt) 16%, transparent), transparent 70%);
}
.lg-final-copy { position: relative; z-index: 20; margin-top: var(--ll-espace-12); }
.lg-final-copy .lg-btn-play { width: 100%; max-width: 380px; }
@media (min-width: 980px) {
  .lg-final { padding: 60px 0 140px; }
  .lg-final-copy .lg-btn-play { width: auto; }
}

/* ================================================================== Barre d'action mobile */
.lg-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px var(--lg-gutter) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--ll-bg) 92%, transparent) 35%);
  /* Masquée pour de bon tant qu'elle ne sert pas (2026-11-12) : rangée seulement sous le bord de l'écran, son bouton
     ivoire se voyait à travers la barre d'outils translucide de Safari sur iPhone (iOS 26), qui affiche la page
     jusque dessous. `visibility` bascule après la sortie, et avant l'entrée. */
  transform: translateY(110%); visibility: hidden;
  transition: transform .35s var(--lg-ease), visibility 0s linear .35s;
}
.lg-sticky .lg-btn-play { width: 100%; }
.lg-sticky.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
@media (min-width: 980px) { .lg-sticky { display: none; } }

/* ================================================================== Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .lg-fan-card, .lg-fan-card[style*="--i:0"] { animation: none; }
  .lg-card { transition: none; }
}
