/* ==========================================================================
   HABILLAGE « JEU » — se charge APRES site.css et app.css.
   Réutilise les VRAIS éléments du jeu (copiés dans assets/ui, assets/bg, assets/fx par tools/build-assets.py) :
   cadres en 9 morceaux (choice_frame / choice_option), filet orné, enseignes de bois, fonds d'écran, lumières dorées, cartes rendues par le moteur.
   Chaque image a un REPLI (dégradé) : si un fichier manque, la page reste lisible.
   ========================================================================== */

:root {
  --ui-frame: url("../assets/ui/frame.webp");
  --ui-option: url("../assets/ui/option.webp");
  --ui-divider: url("../assets/ui/divider.webp");
  --glow-gold: drop-shadow(0 0 18px rgba(245, 226, 160, 0.28));
}

/* ---------- Fond général : l'écran d'accueil du jeu, braises, lumière ---------- */
body {
  background: var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--page-bg, url("../assets/bg/route.webp")) center top / cover no-repeat;
  opacity: 0.34;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 50% 0%, transparent 0%, rgba(9, 12, 18, 0.55) 60%, var(--bg) 100%), linear-gradient(180deg, rgba(9, 12, 18, 0.35), rgba(9, 12, 18, 0.7));
  pointer-events: none;
}
body[data-bg="temple"] {
  --page-bg: url("../assets/bg/temple.webp");
}
body[data-bg="chemin"] {
  --page-bg: url("../assets/bg/chemin.webp");
}
body[data-bg="table"] {
  --page-bg: url("../assets/bg/table.webp");
}
.embers {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .embers {
    display: none;
  }
}
.section--alt {
  background: transparent;
}

/* Sections « décor » : un fond du jeu fondu en haut et en bas, pour ne jamais laisser de vide. */
.art {
  position: relative;
  isolation: isolate;
}
.art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--art, url("../assets/bg/route.webp")) center / cover no-repeat;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.art--route {
  --art: url("../assets/bg/route.webp");
}
.art--chemin {
  --art: url("../assets/bg/chemin.webp");
}
.art--table {
  --art: url("../assets/bg/table.webp");
}
.art--temple {
  --art: url("../assets/bg/temple.webp");
}
/* Lumière dorée posée derrière un titre ou un objet. */
.glow {
  position: relative;
}
.glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(900px, 120%);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: url("../assets/fx/halo.webp") center / contain no-repeat;
  opacity: 0.22;
  z-index: -1;
  pointer-events: none;
}
.glow--rays::before {
  background-image: url("../assets/fx/rayons.webp");
  opacity: 0.2;
  animation: slowspin 120s linear infinite;
}
@keyframes slowspin {
  to {
    rotate: 360deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  .glow--rays::before {
    animation: none;
  }
}

/* ---------- Titres : filet orné du jeu, lueur chaude ---------- */
.rule {
  display: block;
  width: min(460px, 82%);
  height: 30px;
  margin: 0 auto 22px;
  background: var(--ui-divider) center / contain no-repeat;
}
.rule::before,
.rule::after,
.rule i {
  display: none;
}
.h2,
.h1,
.acc-id h1,
.shop-head h1 {
  text-shadow: 0 2px 24px rgba(217, 178, 92, 0.22), 0 2px 0 rgba(0, 0, 0, 0.5);
}
.eyebrow {
  text-shadow: 0 0 14px rgba(217, 178, 92, 0.4);
}

/* ---------- En-tête : l'icône du jeu, bien visible ---------- */
.site-header {
  height: 84px;
  --header-h: 84px;
}
:root {
  --header-h: 84px;
}
.site-header.is-solid {
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.94), rgba(8, 10, 16, 0.78));
}
.site-header::after {
  inset: auto 0 -13px 0;
  height: 28px;
  background: var(--ui-divider) center / min(1100px, 92%) 100% no-repeat;
  opacity: 0;
}
.site-header.is-solid::after {
  opacity: 0.9;
}
.brand {
  gap: 14px;
}
.brand img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 0 16px rgba(170, 110, 255, 0.55)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
  transition: transform 0.4s var(--ease), filter 0.4s;
}
.brand:hover img {
  transform: scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 0 22px rgba(190, 130, 255, 0.8)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}
.nav a::after {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-hi), transparent);
}
.nav a[aria-current="page"]::before,
.nav a:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------- Boutons du jeu ---------- */
.btn {
  position: relative;
}
/* Plaque d'or (comme « Continuer » dans le jeu) : double filet, losanges aux extrémités. */
.btn--gold {
  border: 1px solid #6b4a12;
  border-radius: 7px;
  background: linear-gradient(180deg, #fbeab0 0%, #e7c46e 38%, #c9a13b 70%, #a97f27 100%);
  box-shadow: 0 0 0 1px rgba(255, 244, 200, 0.55) inset, 0 0 0 4px rgba(120, 80, 12, 0.55) inset, 0 12px 28px -10px rgba(217, 178, 92, 0.7), 0 2px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 0 rgba(255, 244, 200, 0.6);
}
.btn--gold::before,
.btn--gold::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  background: linear-gradient(135deg, #fff3c4, #c9a13b);
  border: 1px solid #6b4a12;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 8px rgba(245, 226, 160, 0.7);
}
.btn--gold::before {
  left: -7px;
}
.btn--gold::after {
  right: -7px;
}
.btn--gold:hover {
  filter: brightness(1.08) saturate(1.05);
}
/* Plaque de pierre cerclée d'or (le cadre « option » du jeu). */
.btn--line {
  --bw: 15px;
  border: var(--bw) solid transparent;
  border-image: var(--ui-option) 60 fill / var(--bw) stretch;
  border-image-outset: 6px 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  color: var(--gold-hi);
  padding: 0 14px;
  text-shadow: 0 0 10px rgba(245, 226, 160, 0.35);
}
.btn--line.btn--lg {
  --bw: 20px;
  padding: 0 22px;
}
.btn--line.btn--sm {
  --bw: 11px;
  padding: 0 8px;
}
.btn--line:hover {
  background: none;
  border-color: transparent;
  filter: brightness(1.22) drop-shadow(0 0 8px rgba(245, 226, 160, 0.6));
}
.btn--ghost {
  background: none;
}
.btn--danger {
  border: 1px solid rgba(229, 103, 95, 0.5);
  border-radius: 7px;
  background: rgba(60, 14, 12, 0.5);
}

/* ---------- Cadres du jeu ---------- */
/* Plaques « option » : cartes d'information, produits, paquets. Le centre de pierre sombre vient de l'image. */
.panel,
.tile-i,
.product,
.pack-eur,
.consent {
  --bw: 20px;
  border: var(--bw) solid transparent;
  border-image: var(--ui-option) 60 fill / var(--bw) stretch;
  border-radius: 0;
  background: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}
.panel {
  padding: clamp(10px, 1.6vw, 20px);
}
.tile-i {
  padding: 16px 12px 14px;
  text-align: center;
}
.product {
  padding: 8px 8px 4px;
}
.pack-eur {
  padding: 16px 6px 6px;
}
.product:hover,
.pack-eur:hover,
.tile-i:hover {
  border-color: transparent;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 14px rgba(245, 226, 160, 0.4)) brightness(1.1);
}
.pack-eur[aria-pressed="true"] {
  border-color: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 16px rgba(245, 226, 160, 0.75)) brightness(1.2);
}
.panel .panel,
.panel .wallet__row,
.panel .friend,
.panel .stat {
  border-image: none;
  filter: none;
}
.wallet__row,
.friend {
  border: 1px solid rgba(217, 178, 92, 0.18);
  border-radius: 10px;
  background: rgba(6, 8, 13, 0.55);
}
.grid > .panel {
  min-height: 100%;
}
/* Grands cadres : le grand cadre à coins sertis du jeu (fenêtres de choix), sans remplissage pour garder les teintes propres à chaque bloc. */
.f-panel,
.perks,
.weekly,
.gate,
.acc-head {
  --bw: 46px;
  border: var(--bw) solid transparent;
  border-image: var(--ui-frame) 200 / var(--bw) stretch;
  border-radius: 0;
  background-clip: padding-box;
  filter: var(--glow-gold);
}
.f-panel {
  padding: clamp(10px, 2.4vw, 30px);
  background-color: rgba(10, 13, 20, 0.88);
}
.perks {
  padding: clamp(6px, 2.4vw, 30px);
  background-color: rgba(10, 13, 20, 0.88);
}
.weekly {
  padding: clamp(6px, 1.8vw, 24px);
  background-color: rgba(10, 13, 20, 0.88);
}
.gate {
  background-color: rgba(10, 13, 20, 0.88);
  max-width: 680px;
}
.acc-head {
  padding: clamp(4px, 1.4vw, 16px);
  overflow: hidden;
}
.acc-head > img.bg {
  inset: 0;
}
.auth-card {
  --bw: 46px;
  border: var(--bw) solid transparent;
  border-image: var(--ui-frame) 200 fill / var(--bw) stretch;
  padding: clamp(6px, 2vw, 22px) clamp(4px, 1.4vw, 14px);
  filter: var(--glow-gold);
  width: min(100%, 520px);
}
@media (max-width: 640px) {
  .f-panel,
  .perks,
  .weekly,
  .gate,
  .acc-head,
  .auth-card {
    --bw: 30px;
  }
  .panel,
  .tile-i,
  .product,
  .pack-eur,
  .consent {
    --bw: 14px;
  }
}
/* Captures du jeu : sertissage doré */
.shot {
  --bw: 16px;
  border: var(--bw) solid transparent;
  border-image: var(--ui-option) 60 fill / var(--bw) stretch;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
  background: none;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.7)) var(--glow-gold);
}
.shot img,
.shot video {
  aspect-ratio: 16 / 9;
}
.shot::after {
  display: none;
}
.tile {
  --bw: 12px;
  border: var(--bw) solid transparent;
  border-image: var(--ui-option) 60 fill / var(--bw) stretch;
  border-radius: 0;
  background: none;
  aspect-ratio: auto;
}
.tile img,
.tile video {
  inset: var(--bw);
  width: calc(100% - 2 * var(--bw));
  height: calc(100% - 2 * var(--bw));
}
.tile::after {
  inset: var(--bw);
}
.tile.tile-main {
  min-height: 100%;
}
.tile--sm,
.thumbs .tile {
  aspect-ratio: 16 / 9;
}
.tile:hover {
  filter: brightness(1.12) drop-shadow(0 0 14px rgba(245, 226, 160, 0.45));
}
.tile__cap {
  left: calc(var(--bw) + 12px);
  right: calc(var(--bw) + 12px);
  bottom: calc(var(--bw) + 8px);
}

/* ---------- Cartes : le rendu du jeu, tel quel ---------- */
.ec-card {
  --rc: var(--r-commune);
  position: relative;
  aspect-ratio: 1;
  border-radius: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
  isolation: auto;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 12px color-mix(in srgb, var(--rc) 38%, transparent));
  transition: transform 0.45s var(--ease), filter 0.45s;
}
.ec-card img {
  position: static;
  z-index: auto;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}
.ec-card::before,
.ec-card::after {
  display: none;
}
.ec-card .qty {
  top: 7%;
  right: 7%;
  z-index: 3;
}
.ec-card--lift:hover {
  transform: translateY(-8px) scale(1.03);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px color-mix(in srgb, var(--rc) 70%, transparent));
}
/* Carte chromatique : reflet arc-en-ciel qui balaie l'illustration. */
.ec-card.is-foil::after {
  display: block;
  content: "";
  position: absolute;
  inset: 2%;
  border-radius: 14px;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 60, 160, 0.35) 38%, rgba(70, 220, 255, 0.4) 50%, rgba(255, 235, 60, 0.35) 62%, transparent 75%);
  background-size: 250% 100%;
  mix-blend-mode: color-dodge;
  animation: foil 5s linear infinite;
  pointer-events: none;
}
@keyframes foil {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ec-card.is-foil::after {
    animation: none;
  }
}
.ec-card.is-hidden {
  background: #0c0f16 center / cover no-repeat;
  border-radius: 14px;
}
.card-fan {
  isolation: isolate;
}
.card-fan::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(760px, 130%);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: url("../assets/fx/cercle.webp") center / contain no-repeat;
  opacity: 0.55;
  z-index: -1;
}
.card-fan::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(720px, 120%);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: url("../assets/fx/halo.webp") center / contain no-repeat;
  opacity: 0.3;
  z-index: -1;
}
.f-cards .ec-card {
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 12px color-mix(in srgb, var(--rc) 40%, transparent));
}

/* ---------- Accueil ---------- */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30px;
  background: var(--ui-divider) center / min(1200px, 94%) 100% no-repeat;
  opacity: 0.9;
  z-index: 2;
}
.gift {
  background: radial-gradient(70% 140% at 50% 50%, rgba(217, 178, 92, 0.18), transparent 70%), linear-gradient(180deg, rgba(10, 8, 6, 0.85), rgba(12, 10, 8, 0.85));
}
.gift::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/bg/table.webp") center / cover no-repeat;
  opacity: 0.2;
  mix-blend-mode: screen;
  pointer-events: none;
}
/* Les 3 boosters offerts : trois paquets de BASE (les seuls offerts), à gauche ; le dos des cartes et la lumière, à droite. */
.packs {
  height: clamp(170px, 22vw, 270px);
}
.packs--l img,
.packs--r img {
  position: absolute;
  bottom: 0;
  height: 100%;
  width: auto;
}
.packs--l img:nth-child(1) {
  left: 0;
  transform: rotate(-12deg) translateY(8%);
  height: 90%;
  z-index: 1;
}
.packs--l img:nth-child(2) {
  left: 26%;
  transform: rotate(0deg);
  z-index: 3;
}
.packs--l img:nth-child(3) {
  left: 52%;
  transform: rotate(12deg) translateY(8%);
  height: 90%;
  z-index: 2;
}
.gift:hover .packs--l img:nth-child(1) {
  transform: rotate(-16deg) translateY(4%);
}
.gift:hover .packs--l img:nth-child(2) {
  transform: translateY(-10px) scale(1.03);
}
.gift:hover .packs--l img:nth-child(3) {
  transform: rotate(16deg) translateY(4%);
}
.packs--r::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: url("../assets/fx/halo.webp") center / contain no-repeat;
  opacity: 0.55;
}
.packs--r img:nth-child(1) {
  right: 8%;
  transform: rotate(10deg);
  height: 74%;
  opacity: 0.95;
  z-index: 1;
}
.packs--r img:nth-child(2) {
  right: 32%;
  transform: rotate(-8deg);
  height: 74%;
  opacity: 0.95;
  z-index: 2;
}
.perks__art img {
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 20px rgba(245, 226, 160, 0.25));
}
.perks__art::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  background: url("../assets/fx/halo.webp") center / contain no-repeat;
  opacity: 0.45;
  z-index: -1;
}
/* Tuiles du compte : les enseignes de bois du menu du jeu */
.tile-i .sign {
  width: clamp(74px, 8vw, 104px);
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 12px rgba(255, 150, 50, 0.25));
  transition: transform 0.5s var(--ease);
}
.tile-i:hover .sign {
  transform: scale(1.1) rotate(-3deg);
}
.tile-i .sign--emblem {
  border-radius: 50%;
}
.tile-i h3 {
  font-size: 15px;
}
.tiles {
  gap: 10px;
}
.tile-i .badge {
  top: 4px;
  right: 4px;
}
/* Factions : pastilles rondes cerclées d'or, lueur à la couleur de la faction */
.f-tab img {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 26, 38, 0.95), rgba(8, 10, 16, 0.95));
  box-shadow: 0 0 0 2px rgba(217, 178, 92, 0.35), 0 0 0 5px rgba(8, 10, 16, 0.8), 0 8px 18px rgba(0, 0, 0, 0.6);
  padding: 8%;
  transition: box-shadow 0.4s;
}
.f-tab[aria-selected="true"] img {
  box-shadow: 0 0 0 2px var(--gold-hi), 0 0 0 5px rgba(8, 10, 16, 0.8), 0 0 26px rgba(245, 226, 160, 0.55);
}
.f-panel {
  background-image: radial-gradient(70% 120% at 100% 50%, color-mix(in srgb, var(--fc) 22%, transparent), transparent 70%);
}
/* Appel final et pied de page */
.final::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 30px;
  background: var(--ui-divider) center / min(1200px, 94%) 100% no-repeat;
  opacity: 0.8;
}
.site-footer {
  position: relative;
  border-top: 0;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.55), rgba(8, 10, 16, 0.96)), url("../assets/bg/table.webp") center bottom / cover no-repeat;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto 0;
  height: 28px;
  background: var(--ui-divider) center / min(1200px, 94%) 100% no-repeat;
}
.footer-brand img {
  width: 170px;
}

/* ---------- Compte, boutique, connexion ---------- */
.acc-avatar {
  box-shadow: 0 0 0 3px #0a0c12, 0 0 0 5px var(--gold-hi), 0 0 0 9px rgba(10, 12, 18, 0.9), 0 0 0 10px var(--gold-lo), 0 0 34px rgba(245, 226, 160, 0.5);
}
.acc-rank {
  position: relative;
  width: clamp(120px, 14vw, 170px);
  aspect-ratio: 1;
  background: url("../assets/ui/sign-rang.webp") center / contain no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  filter: drop-shadow(0 0 20px rgba(245, 226, 160, 0.4));
}
.acc-rank .n {
  font-size: clamp(18px, 2.2vw, 26px);
  margin-top: 4%;
}
.acc-rank small {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  font-size: 9px;
  color: var(--gold-hi);
  text-shadow: 0 1px 4px #000;
}
@media (max-width: 980px) {
  .acc-rank {
    grid-column: auto;
    display: grid;
    margin-inline: auto;
  }
}
.acc-nav button[aria-selected="true"],
.acc-nav a[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(217, 178, 92, 0.22), rgba(217, 178, 92, 0.04));
  box-shadow: inset 3px 0 0 var(--gold), 0 0 24px -8px rgba(217, 178, 92, 0.5);
}
.tab-title {
  font-size: clamp(24px, 2.8vw, 36px);
  text-shadow: 0 2px 20px rgba(217, 178, 92, 0.22);
}
.tab-title::after {
  content: "";
  display: block;
  width: min(360px, 70%);
  height: 24px;
  margin-top: 6px;
  background: var(--ui-divider) left center / contain no-repeat;
}
.shop-tabs button[aria-selected="true"] {
  border: 1px solid #6b4a12;
  box-shadow: 0 0 0 1px rgba(255, 244, 200, 0.5) inset, 0 8px 20px -8px rgba(217, 178, 92, 0.7);
}
.product__img::before {
  background: radial-gradient(closest-side, rgba(255, 170, 70, 0.28), transparent);
}
.auth__art {
  --bw: 0px;
}
.auth__art .logo {
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
}
.input,
.select {
  border: 1px solid rgba(217, 178, 92, 0.28);
  background: rgba(6, 8, 13, 0.82);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45) inset;
}
.seg {
  border: 1px solid rgba(217, 178, 92, 0.3);
}
.chip {
  border-color: rgba(217, 178, 92, 0.3);
  background: rgba(10, 13, 20, 0.7);
}
.badge {
  background: rgba(10, 8, 6, 0.85);
}
.toast {
  border-radius: 0;
  border: 16px solid transparent;
  border-image: var(--ui-option) 60 fill / 16px stretch;
}
.menu {
  border-radius: 0;
  border: 18px solid transparent;
  border-image: var(--ui-option) 60 fill / 18px stretch;
  padding: 0;
  min-width: 250px;
}

/* Couleurs de bordure de rareté = celles du jeu (cardBorder.ts) : bronze, argent bleuté, violet, or, prismatique (rose), rouge sang. */
:root {
  --r-commune: #b9895a;
  --r-rare: #a9c8ea;
  --r-epique: #a779ee;
  --r-legendaire: #f2c342;
  --r-mythique: #ff7ad0;
  --r-secret: #e0245e;
}

/* Réglages d'équilibre (3 paquets offerts bien lisibles, icône du jeu plus grande) */
.brand img {
  height: 70px;
}
@media (min-width: 901px) {
  .gift__in {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 520px) minmax(0, 1.15fr);
  }
}
.packs {
  height: clamp(160px, 19vw, 240px);
}
.packs--l img:nth-child(1) {
  left: 2%;
}
.packs--l img:nth-child(2) {
  left: 33%;
}
.packs--l img:nth-child(3) {
  left: 63%;
}

/* Boutique : les images de paquets restent DANS leur zone (sinon elles recouvraient le titre et la description). */
.product__img {
  height: 200px;
  overflow: visible;
}
.product__img > img,
.product__img .stack img {
  height: 200px;
  width: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}
.product__img .stack {
  height: 200px;
}
.product__img .stack img {
  height: 186px;
}
.product__img img[style] {
  height: auto;
}

/* ===== Emplacements d'images fournies (docs/Prompts/PROMPTS_SITE.md) : chaque fichier déposé dans deco-source/ puis converti par build-assets.py
   est utilisé tout seul ; absent, le repli (fond du jeu, dégradé) reste affiché. ===== */
.hero__bg {
  background-image: url("../assets/deco/hero.webp"), url("../assets/img/hero.webp");
  background-size: cover, cover;
  background-position: center 40%, 62% 40%;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: heroDrift 40s ease-in-out infinite alternate;
}
.hero__bg img {
  display: none;
}
@media (max-width: 760px) {
  .hero__bg {
    background-position: 68% 30%, 70% 30%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg {
    animation: none;
  }
}
/* Fonds de section : image fournie, sinon fond du jeu. (Longhands : les valeurs se répètent sur chaque couche.) */
.art::before {
  background: none;
  background-image: var(--art);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.art--route {
  --art: url("../assets/deco/bg-jeu.webp"), url("../assets/bg/route.webp");
}
.art--chemin {
  --art: url("../assets/deco/bg-galerie.webp"), url("../assets/bg/chemin.webp");
}
.art--table {
  --art: url("../assets/deco/bg-compte.webp"), url("../assets/bg/table.webp");
}
.art--temple {
  --art: url("../assets/deco/bg-factions.webp"), url("../assets/bg/temple.webp");
}
body::before {
  background: none;
  background-image: var(--page-bg);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
body {
  --page-bg: url("../assets/deco/bg-jeu.webp"), url("../assets/bg/route.webp");
}
body[data-bg="temple"] {
  --page-bg: url("../assets/deco/bg-factions.webp"), url("../assets/bg/temple.webp");
}
body[data-bg="chemin"] {
  --page-bg: url("../assets/deco/bg-galerie.webp"), url("../assets/bg/chemin.webp");
}
body[data-bg="table"] {
  --page-bg: url("../assets/deco/bg-compte.webp"), url("../assets/bg/table.webp");
}
/* Piliers décoratifs dans les marges des grands écrans */
@media (min-width: 1500px) {
  .art::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("../assets/deco/pilier-gauche.webp") left center / auto 92% no-repeat, url("../assets/deco/pilier-droit.webp") right center / auto 92% no-repeat;
    pointer-events: none;
  }
}
.gift::before {
  background-image: url("../assets/deco/gift-banner.webp"), url("../assets/bg/table.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
.site-footer {
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.55), rgba(8, 10, 16, 0.96)), url("../assets/deco/bg-footer.webp") center bottom / cover no-repeat, url("../assets/bg/table.webp") center bottom / cover no-repeat;
}
.f-panel {
  background-image: var(--fbg, none), radial-gradient(70% 120% at 100% 50%, color-mix(in srgb, var(--fc) 22%, transparent), transparent 70%);
  background-size: cover, auto;
  background-position: center, center;
  background-blend-mode: normal;
}
.acc-avatar::after {
  content: "";
  position: absolute;
  inset: -16%;
  background: url("../assets/deco/avatar-ring.webp") center / contain no-repeat;
  pointer-events: none;
}
.tile-i .sign--profil {
  display: block;
  width: clamp(74px, 8vw, 104px);
  aspect-ratio: 1;
  margin: 0 auto 10px;
  background: url("../assets/deco/sign-profil.webp") center / contain no-repeat, url("../assets/img/brand-icon.webp") center / 64% no-repeat;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 12px rgba(160, 100, 255, 0.35));
}

/* Mobile : jamais de défilement horizontal de la page (les onglets du compte défilent DANS leur barre). */
.acc-layout > *,
.grid > * {
  min-width: 0;
}
@media (max-width: 980px) {
  .acc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Remises : le badge doré « -15 % » (il était invisible : texte sombre sur fond sombre) ===== */
.badge.tag--disc {
  background: linear-gradient(180deg, #fbeab0 0%, #e7c46e 45%, #b98f33 100%);
  color: #1a1305;
  border: 1px solid #6b4a12;
  text-shadow: 0 1px 0 rgba(255, 244, 200, 0.55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55), 0 0 14px rgba(245, 226, 160, 0.35);
}
.product .tag,
.pack-eur .tag {
  top: 6px;
  left: 6px;
  font-size: 12.5px;
  padding: 7px 12px;
  letter-spacing: 0.06em;
  z-index: 3;
}
.price .was {
  font: 500 14px var(--font-body);
  color: var(--mute);
  text-decoration: line-through;
  text-decoration-color: rgba(229, 103, 95, 0.9);
  margin-right: 4px;
}
.pack-eur .badge.off {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(180deg, #fbeab0 0%, #e7c46e 45%, #b98f33 100%);
  color: #1a1305;
  border: 1px solid #6b4a12;
  font-size: 12px;
  padding: 6px 10px;
}
.pack-eur .tag {
  left: 6px;
  font-size: 10.5px;
}
.product__foot {
  flex-wrap: wrap;
}

/* Prix barré : même présentation partout (lots, Fragments, Cristaux en euros, pack de démarrage, brisages). */
.pack-eur .eur {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 20px;
}
.pack-eur .was {
  font: 500 15px var(--font-body);
  color: var(--mute);
  text-decoration: line-through;
  text-decoration-color: rgba(229, 103, 95, 0.9);
}

/* Pied de carte de produit : prix (avec prix barré) et bouton restent sur une seule ligne. */
.product__foot {
  flex-wrap: nowrap;
  gap: 6px;
}
.product__foot .price {
  font-size: 18px;
  gap: 6px;
  white-space: nowrap;
}
.product__foot .price img {
  width: 20px;
  height: 20px;
}
.product__foot .btn {
  padding: 0 11px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

/* Images claires fournies : un léger voile garde le texte lisible (les fonds sombres du jeu, eux, n'en ont presque pas besoin). */
.art::before {
  background-image: linear-gradient(rgba(9, 12, 18, 0.22), rgba(9, 12, 18, 0.22)), var(--art);
  background-size: auto, cover, cover;
  background-position: center, center, center;
}
body::before {
  background-image: linear-gradient(rgba(9, 12, 18, 0.22), rgba(9, 12, 18, 0.22)), var(--page-bg);
  background-size: auto, cover, cover;
  background-position: center, center top, center top;
}
/* Fonds de faction : dégradé qui assombrit le tiers gauche (texte) quelle que soit la luminosité de l'image. */
.f-panel {
  background-image: linear-gradient(90deg, rgba(10, 13, 20, 0.88) 0%, rgba(10, 13, 20, 0.6) 46%, rgba(10, 13, 20, 0.12) 100%), var(--fbg, none), radial-gradient(70% 120% at 100% 50%, color-mix(in srgb, var(--fc) 22%, transparent), transparent 70%);
  background-size: auto, cover, auto;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

/* ===== Images livrées : réglages d'ajustement ===== */
/* Icônes dorées : sur une plaque d'or, silhouette sombre (sinon or sur or). */
.btn--gold .ic-gold image {
  filter: brightness(0) opacity(0.72);
}
.ic-gold {
  overflow: visible;
}
/* Anneau d'avatar : son trou (59 % de la largeur) épouse exactement la photo ronde. */
.acc-avatar {
  overflow: visible;
  margin: clamp(22px, 3.6vw, 44px);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.7);
}
.acc-avatar::after {
  inset: -35%;
  z-index: 2;
  filter: drop-shadow(0 0 14px rgba(245, 226, 160, 0.45));
}
.acc-avatar img {
  border-radius: 50%;
}
.acc-avatar .lvl {
  z-index: 3;
  bottom: -14%;
}

/* ===== Bandeau « 3 boosters offerts » avec l'image livrée : les paquets restent dans leur colonne, le texte garde un fond sombre lisible ===== */
.packs {
  height: auto;
  aspect-ratio: 1.25 / 1;
  width: 100%;
}
.packs--l img,
.packs--r img {
  height: auto;
  width: 46%;
}
.packs--l img:nth-child(1) {
  left: 0;
  height: auto;
}
.packs--l img:nth-child(2) {
  left: 27%;
}
.packs--l img:nth-child(3) {
  left: 54%;
  height: auto;
}
.packs--r img:nth-child(1) {
  right: 4%;
  height: auto;
}
.packs--r img:nth-child(2) {
  right: 30%;
  height: auto;
}
.gift::before {
  opacity: 0.95;
  mix-blend-mode: normal;
}
.gift::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 7, 4, 0.2), rgba(10, 7, 4, 0.35));
  pointer-events: none;
}
.gift__in {
  position: relative;
  z-index: 1;
}
.gift__txt {
  padding: clamp(18px, 3vw, 34px) clamp(12px, 2vw, 28px);
  background: radial-gradient(closest-side, rgba(14, 9, 5, 0.82) 0%, rgba(14, 9, 5, 0.6) 62%, transparent 100%);
}
.gift__txt p {
  color: #f1e6cd;
}

/* Correctif : site.css fixait une hauteur de 1 px sur ces pseudo-éléments (filets dorés du bandeau) : l'image du bandeau n'apparaissait donc pas. */
.gift::before,
.gift::after {
  height: auto;
  bottom: 0;
  top: 0;
}

/* Fonds de faction clairs : le dégradé de lisibilité couvre un peu plus du panneau. */
.f-panel {
  background-image: linear-gradient(90deg, rgba(10, 13, 20, 0.92) 0%, rgba(10, 13, 20, 0.74) 55%, rgba(10, 13, 20, 0.2) 100%), var(--fbg, none), radial-gradient(70% 120% at 100% 50%, color-mix(in srgb, var(--fc) 22%, transparent), transparent 70%);
}

/* Piliers livrés : largeur fixe (≈ la marge des grands écrans) au lieu d'une hauteur relative à la section, qui les faisait empiéter sur le contenu. */
@media (min-width: 1500px) {
  .art::after {
    background: url("../assets/deco/pilier-gauche.webp") left center / 230px auto no-repeat, url("../assets/deco/pilier-droit.webp") right center / 230px auto no-repeat;
  }
}

/* ===== Retours (v0.2.1) ===== */
/* Panneaux survolés ou sélectionnés : plus de fond rectangulaire derrière le cadre (les coins ornés restent transparents). */
.tile-i:hover,
.product:hover,
.pack-eur:hover,
.pack-eur[aria-pressed="true"],
.panel:hover {
  background: none;
  box-shadow: none;
}
/* Section « Prêt ? » : le paragraphe d'introduction est centré comme le reste. */
.final .lead {
  margin-inline: auto;
}
/* Fenêtre vidéo : les flèches « précédent / suivant » n'apparaissent que s'il y a plusieurs éléments (l'attribut hidden perdait contre display:grid). */
.lightbox__nav[hidden] {
  display: none;
}

/* ===== Séparateurs longs (v0.2.2) : l'ornement central garde ses proportions (le rond reste rond), seule la ligne s'étire =====
   Avant : tout le filet du jeu (prévu pour ~460 px) était étiré sur 1100 px : ornement ovale et flou. */
.site-header::after,
.hero::after,
.final::after,
.site-footer::before {
  --dh: 44px;
  height: var(--dh);
  background: url("../assets/ui/divider-center.webp") center / auto 100% no-repeat, linear-gradient(90deg, transparent 0%, rgba(217, 178, 92, 0.9) 16%, rgba(217, 178, 92, 0.9) calc(50% - var(--dh) * 1.4), transparent calc(50% - var(--dh) * 1.4), transparent calc(50% + var(--dh) * 1.4), rgba(217, 178, 92, 0.9) calc(50% + var(--dh) * 1.4), rgba(217, 178, 92, 0.9) 84%, transparent 100%) center / min(1200px, 94%) 1px no-repeat;
}
.site-header::after {
  inset: auto 0 -22px 0;
}
.site-footer::before {
  inset: -22px 0 auto 0;
}

/* ===== Séparateurs (v0.2.4) : les images livrées sont utilisées ENTIÈRES, jamais coupées ni étirées =====
   Long : divider-centre.webp en entier (ornement + lignes effilées), rapport 5,32 ; --dh = sa hauteur (40 px, moins de la moitié de l'ancien 72 px).
   Court : divider-court.webp, rapport 7,19. */
.site-header::after,
.hero::after,
.final::after,
.site-footer::before {
  --dh: 40px;
  height: var(--dh);
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(1200px, 94%);
  background: url("../assets/deco/divider-centre.webp") center / auto 100% no-repeat;
}
.site-header::after {
  inset: auto 0 calc(var(--dh) / -2) 0;
}
.hero::after {
  inset: auto 0 0 0;
}
.final::after {
  inset: 0 0 auto 0;
}
.site-footer::before {
  inset: calc(var(--dh) / -2) 0 auto 0;
}
.rule {
  width: min(460px, 82%);
  height: auto;
  aspect-ratio: 7.19;
  background: url("../assets/deco/divider-court.webp") center / 100% 100% no-repeat;
}
.tab-title::after {
  width: min(360px, 70%);
  height: auto;
  aspect-ratio: 7.19;
  background: url("../assets/deco/divider-court.webp") left center / 100% 100% no-repeat;
}
/* L'indicateur de défilement ne passe plus sous le séparateur du bas du hero. */
.scroll-cue {
  bottom: 56px;
}

/* ===== v0.2.5 : les lignes de chaque côté reviennent, mais derrière l'image entière du séparateur =====
   Ornement entier (rapport 5,32, largeur --dw) + une ligne de chaque côté (hauteur 7 px = moitié de l'ancienne). Le bout vif de chaque ligne passe
   SOUS la pointe effilée de l'ornement (recouvrement --ov) : la jonction est cachée par l'aile, il n'y a plus de coupure. */
.site-header::after,
.hero::after,
.final::after,
.site-footer::before {
  --dw: calc(var(--dh) * 5.32);
  --ov: calc(var(--dw) * 0.36);
  background: url("../assets/deco/divider-centre.webp") center / auto 100% no-repeat, url("../assets/deco/divider-ligne.webp") left center / calc(50% - var(--dw) / 2 + var(--ov)) 7px no-repeat, url("../assets/deco/divider-ligne-r.webp") right center / calc(50% - var(--dw) / 2 + var(--ov)) 7px no-repeat;
}

/* Menu du profil et notifications : le fond rectangulaire sombre dépassait des coins du cadre ; seule l'image du cadre fait le fond. */
.menu,
.toast {
  background: none;
  backdrop-filter: none;
  box-shadow: none;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55));
}

/* ===== v0.3.1 ===== */
[data-shop][hidden] {
  display: none !important;
}
/* A propos : textes centres, trois blocs de MEME taille (le premier etait plus haut : il n'avait pas la marge des deux autres) */
.about-hero .lead,
.contact .lead {
  margin-inline: auto;
  text-align: center;
}
.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.about-grid > .panel,
.about-grid > .panel + .panel {
  margin-top: 0 !important;
  height: 100%;
}
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Connexion / inscription : colonne de gauche plus etroite et centree verticalement, formulaire plus large et plus compact (plus de defilement) */
.auth {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}
.auth__art {
  justify-content: center;
  align-items: center;
  padding: clamp(28px, 4vw, 64px);
}
.auth__art ul {
  width: 100%;
}
.auth__form {
  padding: calc(var(--header-h) + 4px) clamp(12px, 2vw, 32px) 28px;
}
.auth-card {
  --bw: 34px;
  width: min(100%, 640px);
}
.auth-card .seg {
  margin: 22px 0 20px;
}
@media (max-width: 960px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Pages de connexion / inscription : pas de pied de page (la page tient sur un ecran, sans defilement inutile) ; les liens legaux sont dans le formulaire. */
body[data-mode] .site-footer {
  display: none;
}
/* Inscription : champs un peu plus serres pour que le formulaire tienne sur un ecran de 900 px de haut. */
.auth-card .field + .field {
  margin-top: 14px;
}
.auth-card .btn {
  margin-top: 20px;
}
.auth__form {
  padding-top: calc(var(--header-h) - 12px);
  padding-bottom: 12px;
}

/* ==========================================================================
   CADRES A CENTRE TRANSPARENT (choice_frame_transparent / choice_option_transparent du jeu, rognes par tools/build-assets.py).
   Le centre etant vide, l'image de fond passe SOUS le cadre et vient s'arreter contre le bord exterieur des barres :
   - grand cadre (« frame-t ») : sur .f-panel, .perks, .acc-head (bordure de l'element, le fond s'etend jusqu'au bord) ;
   - petit cadre (« option-t ») : sur .shot et .tile, dessine par un pseudo-element AU-DESSUS de l'image (les coins debordent sur la capture).
   --bw = taille d'un coin ; le halo transparent autour des barres est rejete hors de la boite par border-image-outset (valeurs = proportions de l'image).
   ========================================================================== */
:root {
  --ui-frame-t: url("../assets/ui/frame-t.webp");
  --ui-option-t: url("../assets/ui/option-t.webp");
}
.f-panel,
.perks {
  border-image: var(--ui-frame-t) 155 / var(--bw) / calc(var(--bw) * 0.2516) calc(var(--bw) * 0.187) calc(var(--bw) * 0.258) calc(var(--bw) * 0.1968) stretch;
  background-clip: border-box;
  background-origin: border-box;
}
/* Bandeau du compte : son image de fond est un <img> (z-index negatif = peint AU-DESSUS de la bordure de l'element) ; le cadre est donc dessine
   par un pseudo-element place au-dessus de l'image. */
.acc-head {
  border-image: none;
  background-clip: border-box;
}
.acc-head::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--bw));
  z-index: 1;
  pointer-events: none;
  border: var(--bw) solid transparent;
  border-image: var(--ui-frame-t) 155 / var(--bw) / calc(var(--bw) * 0.2516) calc(var(--bw) * 0.187) calc(var(--bw) * 0.258) calc(var(--bw) * 0.1968) stretch;
}
/* Le fond d'un bloc doit couvrir aussi la bordure (sinon un liseré apparait entre la barre et l'image). */
.acc-head {
  overflow: visible;
}
.acc-head > img.bg,
.acc-head::after {
  inset: calc(-1 * var(--bw));
}
.acc-head > img.bg {
  width: calc(100% + 2 * var(--bw));
  height: calc(100% + 2 * var(--bw));
}

/* Captures (.shot) : le cadre est dessine par le conteneur .shot-glow (hors du clip de .shot, pour que coins et halo debordent) ;
   l'image occupe toute la boite de .shot = le bord exterieur des barres. */
.shot {
  border: 0;
  border-image: none;
}
.shot-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: var(--bw, 16px) solid transparent;
  border-image: var(--ui-option-t) 85 / var(--bw, 16px) / calc(var(--bw, 16px) * 0.2588) calc(var(--bw, 16px) * 0.2235) calc(var(--bw, 16px) * 0.2706) calc(var(--bw, 16px) * 0.2235) stretch;
}
.shot-glow {
  --bw: 16px;
}
/* Vignettes (.tile) : bouton qui rogne ses images (zoom au survol). La bordure transparente a l'epaisseur du halo du cadre : le bord de la boite
   de rognage (overflow) tombe donc exactement sur le bord exterieur des barres, et l'image ne peut jamais deborder meme zoomee.
   Le cadre (pseudo-element) deborde de cette boite de l'epaisseur du halo : la partie rognee est transparente. */
.tile {
  --hT: calc(var(--bw) * 0.2588);
  --hR: calc(var(--bw) * 0.2235);
  --hB: calc(var(--bw) * 0.2706);
  --hL: calc(var(--bw) * 0.2235);
  border: 0 solid transparent;
  border-width: var(--hT) var(--hR) var(--hB) var(--hL);
  border-image: none;
  background: linear-gradient(var(--bg-3), var(--bg-3)) padding-box; /* fond sombre pendant le chargement */
}
.tile::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--hT)) calc(-1 * var(--hR)) calc(-1 * var(--hB)) calc(-1 * var(--hL));
  z-index: 3;
  pointer-events: none;
  border: var(--bw) solid transparent;
  border-image: var(--ui-option-t) 85 / var(--bw) stretch;
}
.tile img,
.tile video,
.tile::after {
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Page d'indisponibilite (boutique fermee, erreurs) : le code en tres grand, l'explication courte, au milieu de l'ecran ---------- */
.errpage {
  min-height: calc(100vh - 260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 6vw, 72px) 0;
}
.errpage__code {
  font: 700 clamp(110px, 22vw, 240px)/0.95 var(--font-title);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(245, 226, 160, 0.28)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
}
.errpage h1 {
  font: 600 clamp(24px, 3.4vw, 40px)/1.15 var(--font-title);
  margin-top: clamp(8px, 2vw, 20px);
}
.errpage p {
  max-width: 560px;
  margin-top: 16px;
  color: var(--muted, #aaa);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
}
.downloadpage__logo { display:block; width:min(320px,100%); height:auto; margin:0 auto 24px; }
.errpage .downloadpage__lang {
  width: min(820px, 100%);
  max-width: none;
  margin: 0 0 12px;
  text-align: right;
  font-size: 14px;
}
.downloadpage__lang a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.downloadpage__lang a:hover { color: #fff3c9; }
.downloadpage__intro { margin-bottom: clamp(22px, 4vw, 34px); }
.downloadpage__notice {
  width: min(820px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(217, 178, 92, 0.52);
  border-radius: 14px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(217, 178, 92, 0.10), transparent 45%),
    rgba(8, 11, 18, 0.88);
  box-shadow: inset 0 1px 0 rgba(245, 226, 160, 0.10), 0 22px 60px rgba(0, 0, 0, 0.34);
}
.errpage .downloadpage__badge {
  max-width: none;
  margin: 0 0 9px;
  color: var(--gold);
  font: 600 11px/1.3 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.downloadpage__notice h2 {
  margin: 0;
  color: var(--gold-hi);
  font: 600 clamp(20px, 2.6vw, 28px)/1.2 var(--font-title);
}
.errpage .downloadpage__notice > p:not(.downloadpage__badge) {
  max-width: none;
  margin-top: 12px;
  font-size: clamp(14px, 1.4vw, 16px);
}
.downloadpage__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: download-step;
}
.downloadpage__steps li {
  position: relative;
  min-height: 100%;
  padding: 17px 17px 17px 54px;
  border: 1px solid rgba(217, 178, 92, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  counter-increment: download-step;
}
.downloadpage__steps li::before {
  content: counter(download-step);
  position: absolute;
  top: 17px;
  left: 17px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-hi);
  font: 600 12px/1 var(--font-body);
}
.downloadpage__steps strong,
.downloadpage__steps span { display: block; }
.downloadpage__steps strong { margin-bottom: 7px; color: #fff3c9; font-size: 14px; }
.downloadpage__steps span { color: var(--muted, #aaa); font-size: 13px; line-height: 1.55; }
.downloadpage__steps b { color: #e9dfc4; font-weight: 600; }
.errpage .downloadpage__safety {
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  color: #c9c2b1;
}
.downloadpage__safety strong { color: #fff3c9; }
.errpage .downloadpage__status {
  max-width: 820px;
  margin-top: clamp(22px, 4vw, 34px);
  color: #d8d2c2;
}
#launcher-download[hidden] { display:none; }
.errpage__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(24px, 4vw, 40px);
}
@media (max-width: 680px) {
  .downloadpage__steps { grid-template-columns: 1fr; }
  .downloadpage__notice { padding: 20px 17px; }
}

/* ===== Survol d'une carte : zoom + capacites (js/peek.js) ===== */
.card-peek {
  position: fixed;
  z-index: 400;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.16s, transform 0.16s;
}
.card-peek.is-on {
  opacity: 1;
  transform: none;
}
.card-peek.is-info-left {
  flex-direction: row-reverse;
}
.card-peek.is-stack {
  flex-direction: column;
  align-items: center;
}
.peek__img {
  width: var(--peek-card, 300px);
  height: var(--peek-card, 300px);
  object-fit: cover;
  border-radius: 12px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 22px rgba(245, 226, 160, 0.3));
}
.peek__info {
  width: var(--peek-info, 300px);
  max-height: 80vh;
  overflow: hidden;
  padding: 16px 18px 14px;
  border: 1px solid rgba(217, 178, 92, 0.55);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.97), rgba(9, 12, 18, 0.97));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  color: var(--text);
}
.peek__info h4 {
  font: 700 18px/1.2 var(--font-title);
  color: var(--gold-hi);
  letter-spacing: 0.03em;
}
.peek__meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--dim);
}
.peek__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}
.peek__stats li {
  display: grid;
  gap: 2px;
  text-align: center;
  padding: 6px 0;
  border: 1px solid rgba(217, 178, 92, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}
.peek__stats span {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.peek__stats b {
  font: 700 18px/1 var(--font-title);
  color: var(--text);
}
.peek__power {
  padding-top: 10px;
  border-top: 1px solid rgba(217, 178, 92, 0.25);
}
.peek__power b {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--gold);
}
.peek__power p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
}
.peek__power--none p {
  color: var(--dim);
  font-style: italic;
}
@media (prefers-reduced-motion: reduce) {
  .card-peek {
    transition: none;
  }
}

/* Accueil : jouer maintenant, soutenir la sortie Steam. */
.home .hero__in { padding-top: calc(var(--header-h) + 24px); padding-bottom: 100px; }
.hero__branding { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); }
.home .hero__logo { width: clamp(230px, 28vw, 380px); margin-left: -2%; }
.hero__branding .hero__logo { flex-shrink: 0; }
.hero__prebeta { display: block; width: min(52vw, 660px); max-width: 100%; min-width: 0; height: auto; margin-inline: auto; }
.hero__genre { margin-top: -12px; margin-bottom: 16px; }
.hero__title { max-width: 22ch; font: 600 clamp(32px, 4.3vw, 60px)/1.12 var(--font-title); color: var(--text); text-shadow: 0 3px 24px #000; }
.home .hero__tag { max-width: 58ch; margin-top: 20px; font: 400 clamp(15px, 1.35vw, 18px)/1.7 var(--font-body); letter-spacing: 0; }
.hero__tag strong { color: var(--gold-hi); font-weight: 600; }
.home .hero__actions { margin-top: 28px; gap: 20px; align-items: flex-start; }
.hero__choice { min-width: 0; max-width: 100%; }
.hero__choice .btn { min-height: 60px; white-space: normal; text-align: center; }
.hero__hint { margin-top: 10px; font-size: 12px; color: var(--dim); text-align: center; }
.home .gift__big { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.15; }
@media (max-width: 760px) {
  .home .hero__in { padding-bottom: 60px; }
  .hero__branding { flex-direction: column; align-items: flex-start; gap: 0; }
  .home .hero__logo { width: 250px; max-width: 90%; }
  .hero__prebeta { width: min(100%, 480px); margin: -12px 0 28px; }
  .hero__genre { font-size: 10px; letter-spacing: .12em; }
  .home .hero__actions { flex-direction: column; gap: 20px; }
  .hero__choice { width: 100%; }
  .hero__choice .btn { width: 100%; padding-inline: 18px; font-size: 12px; letter-spacing: .06em; }
  .home .final .btn { white-space: normal; text-align: center; }
}

.home .hero__genre { color: var(--text); text-shadow: 0 2px 12px #000, 0 1px 4px #000; }
.home .gift__txt { min-width: 0; }
.home .gift__txt .btn { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 760px) {
  .home .gift__in { grid-template-columns: minmax(0, 1fr); }
  .home .gift__txt .btn { font-size: 12px; letter-spacing: .06em; }
}
