/* css/marketing.css — accueil public statique (section #seo/.landing visible avant le demarrage du
   jeu, pour le referencement et les apercus de liens), scene de duel de demonstration, bandeaux et
   pages hors-jeu (comptes, mentions). Chargee par les pages de jeu (pour l'accueil statique) ; prevue
   pour les pages hors-jeu type presse/404 si elles venaient a s'appuyer sur ce meme systeme de styles.
   Issu du decoupage de l'ancien style.css (reorganisation pure, V13.12). */

.shop-item .price { font-weight: 800; color: var(--gold-ink); white-space: nowrap; }
.shop-item.poor .price { color: var(--muted); }
.beta { font-family: var(--font-body, Inter, sans-serif); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; color: var(--accent-ink, var(--accent)); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); line-height: 1; }
/* Multijoueur */
.multi { margin: 0 auto; width: 100%; }
.multi-head h3 { margin: 4px 0 6px; }
.multi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.multi-card { display: flex; gap: 12px; align-items: flex-start; }
.multi-card p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-md); line-height: 1.45; }
.multi-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* ===== V12.34 : typographie par rôles, formulaires, accueil public, comptes, pages légales ===== */
.t-screen { font-family: var(--font-title); font-weight: 600; letter-spacing: .02em; font-size: var(--fs-2xl); line-height: 1.15; }
.t-panel { font-family: var(--font-title); font-weight: 600; letter-spacing: .02em; font-size: var(--fs-lg); line-height: 1.2; }
.t-kicker { font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.t-body { font-size: var(--fs-md); line-height: 1.5; }
.t-caption { font-size: var(--fs-sm); line-height: 1.4; color: var(--muted); }
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px) {
  .t-screen { font-size: var(--fs-3xl); }
  .t-panel { font-size: var(--fs-xl); }
}
.logo-mark { font-family: var(--font-title); font-weight: 700; letter-spacing: .06em; font-size: clamp(40px, 11vw, 56px); line-height: 1; color: var(--text); text-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 45%, transparent); }
.note { padding: 10px var(--s-3); border-radius: var(--r-md); font-size: var(--fs-sm); line-height: 1.45; }
.note-info { background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); color: var(--text); }
.note-error { background: color-mix(in srgb, var(--danger) 12%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger-ink); font-weight: 600; }
.legal-list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); }
/* Écran d'attente */
.boot-screen { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-4); padding: var(--s-5); text-align: center; }
/* Accueil public (page de vente) */
.landing { height: 100%; }
/* V13.13 (audit responsive) : largeur volontairement bornée (texte de vente, pas la zone de jeu) —
   au-delà de ~1040px les lignes de texte deviennent inconfortables à lire, donc contrairement à --edge
   (layout.css), pas d'élargissement ici. */
.land { max-width: 1040px; margin: 0 auto; padding: 0 var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: 56px; user-select: text; -webkit-user-select: text; }
.land-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-4); padding-top: 8vh; }
.land-brand .logo-mark { font-size: clamp(48px, 14vw, 96px); }
.land-tagline { max-width: 36rem; font-size: var(--fs-lg); line-height: 1.5; color: var(--muted); }
.land-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.land-cast { display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 2vw, 18px); margin-top: var(--s-4); }
.land-cast img { width: clamp(40px, 11vw, 96px); height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.land-cast .land-hero-sprite { width: clamp(64px, 18vw, 150px); }
.land-section { display: flex; flex-direction: column; gap: var(--s-3); }
.land-lead { color: var(--muted); max-width: 40rem; line-height: 1.5; }
.land-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-3); margin-top: var(--s-2); }
.land-feature { display: flex; flex-direction: column; gap: var(--s-2); }
.land-feature p { color: var(--muted); line-height: 1.5; font-size: var(--fs-md); }
.land-dungeons { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); margin-top: var(--s-2); }
.land-dungeon { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: var(--s-4) var(--s-3); border-radius: var(--r-lg); background: var(--panel); border: 1px solid color-mix(in srgb, var(--tc) 40%, var(--line)); }
.land-dungeon img { width: 72px; height: 72px; }
.land-dungeon strong { font-family: var(--font-title); font-weight: 600; font-size: var(--fs-md); color: var(--text); }
.land-dungeon small { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.land-faq { display: flex; flex-direction: column; gap: var(--s-2); }
.land-final { align-items: center; text-align: center; }
.site-footer { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); padding: var(--s-5) 0 var(--s-4); border-top: 1px solid var(--line); text-align: center; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); }
/* Pages légales */
.legal-doc { max-width: 760px; margin: 0 auto; padding: var(--s-4) var(--s-4) var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); user-select: text; -webkit-user-select: text; }
.legal-doc section { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-3); }
.legal-doc p { line-height: 1.6; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.multi-card.premium { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 10%, var(--panel)), var(--panel)); }
/* V12.34 : classements (page Multijoueur) */
.multi-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.price img.pxi { width: 18px; height: 18px; }
.noscript { padding: 2rem; }
.mail-link { position: relative; }
.mail-link::after { content: ""; position: absolute; inset: -12px -4px; }
/* ===== V12.36 : page d'accueil et pages légales ===== */
.land-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.land-multi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-2); }
.land-feature .ico-tile { margin-bottom: 2px; }
.land-dungeons { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1023px) { .land-features, .land-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* V12.70 : petits pointillés entre les cartes de la grille « Le jeu », comme le chemin des donjons
   (.dpath-link) sur la page du joueur : suggère un parcours plutôt qu'une simple liste de blocs. */
.land-features { position: relative; row-gap: var(--s-4); }
.land-feature { position: relative; }
@media (min-width: 1024px) {
  .land-feature:not(:nth-child(3n))::after { content: ''; position: absolute; top: 38%; right: calc(-1 * var(--s-3) - 1px); width: var(--s-3); border-top: 2px dashed var(--line); }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .land-feature:not(:nth-child(2n))::after { content: ''; position: absolute; top: 38%; right: calc(-1 * var(--s-3) - 1px); width: var(--s-3); border-top: 2px dashed var(--line); }
}
@media (max-width: 759px) { .land-dungeons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .land-features, .land-multi { grid-template-columns: minmax(0, 1fr); } }
/* En-tête public (pages légales) */
.site-header { position: sticky; top: 0; z-index: var(--z-bar); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  margin: 0 calc(var(--s-4) * -1); padding: var(--s-3) var(--s-4); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header-cta { display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (max-width: 599px) { .site-header { justify-content: center; } .site-header-cta { width: 100%; justify-content: center; } .site-header-cta .btn { flex: 1 1 0; min-width: 0; padding-left: 6px; padding-right: 6px; font-size: var(--fs-sm); white-space: normal; line-height: 1.15; } }
.legal-page { gap: var(--s-4); }
.legal-page .legal-doc { width: 100%; padding-top: var(--s-2); }
.multi-section-head p { font-size: var(--fs-sm); }
/* V13.14 : Multijoueur suit la largeur commune de l'app (--edge), plus de plafond propre. */
/* ===== V12.38 : bandeau des sondeurs (Multijoueur, page Jouer) ===== */
.heroes-panel { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.heroes-panel > p { margin: 0; }
.hero-marquee { position: relative; overflow: hidden; min-width: 0; padding: 6px 0 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hero-marquee.loading { -webkit-mask-image: none; mask-image: none; }
.hm-track { display: flex; width: max-content; animation: hm-scroll 36s linear infinite; }
.hero-marquee:hover .hm-track { animation-play-state: paused; }
.hm-set { display: flex; gap: 14px; padding-right: 14px; }
.hm-item { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 52px; flex: 0 0 auto; pointer-events: none; user-select: none; }
.hm-sprite { width: 40px; height: 40px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.hm-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 1.2; color: var(--muted); }
@keyframes hm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hero-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .hm-track { animation: none; }
  .hm-set + .hm-set { display: none; }
}
.ff-guide .ff-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-title); font-weight: 700; color: var(--on-gold); background: var(--gold); }
.ff-guide .ff-body { flex: 1; min-width: 0; }
.ff-guide .ff-kicker { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-ink); }
.ff-guide .ff-dots { display: inline-flex; gap: 4px; }
.ff-guide .ff-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.ff-guide .ff-dots i.on { background: var(--gold); }
.ff-guide p { margin: 2px 0 0; font-size: var(--fs-sm); line-height: 1.35; color: var(--text); }
.ff-guide .ff-ok { flex: none; }
@keyframes ffIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ffHalo { 50% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 45%, transparent), 0 0 6px color-mix(in srgb, var(--gold) 20%, transparent); } }
@keyframes ffPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); } }
/* V12.38 : états de repli illustrés (classements et Défi du jour hors connexion) */
.fallback-panel { display: flex; align-items: flex-start; gap: 14px; }
.fallback-panel .fallback-body { min-width: 0; }
.fallback-panel h3 { margin: 0 0 4px; }
.fallback-panel p { margin: 0; }
.fallback-panel .fallback-when { display: block; margin-top: 6px; }
.fallback-panel .btn { margin-top: 10px; }
/* V12.42 : badges des pseudos */
.tag-demo { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 1px 5px; border-radius: 99px; margin-left: 5px; background: color-mix(in srgb, var(--muted) 22%, transparent); color: var(--muted); vertical-align: 1px; }
.tag-soutien { font-style: normal; color: var(--gold-ink); margin-left: 4px; }
.hm-item.demo .hm-name { opacity: .8; }
.stat-cls { font-weight: 500; font-size: var(--fs-xs); }
/* ===== V12.43 : classements ===== */
.boards-layout { display: flex; flex-direction: column; gap: var(--s-3); }
.boards-top { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s-3); align-items: stretch; }
.boards-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); align-items: start; }
@media (max-width: 899px) { .boards-top, .boards-bottom { grid-template-columns: minmax(0, 1fr); } }
.heroes-side { display: flex; flex-direction: column; }
.hero-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-content: start; }
/* V12.97 (retour d'Alexandre) : grille « Tous les héros » (page Multijoueur) -- petit personnage, pseudo
   dessous, rang (pastille) et score, pour tous les sondeurs classés par Efficacité. */
.heroes-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
/* ================================================================ V12.43 : accueil, scène de duel du hero */
.land-hero .land-brand .logo-mark { font-size: clamp(34px, 8vw, 56px); }
.land-over { color: var(--accent-ink); }
.land-title { font-family: var(--font-title); font-weight: 700; font-size: clamp(26px, 4.2vw, 44px); line-height: 1.15; max-width: 22em; color: var(--text); text-wrap: balance; }
.land-hero .land-tagline { font-size: var(--fs-md); max-width: 32rem; }
.hero-duel { width: min(680px, 100%); aspect-ratio: 16 / 7; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--e-3); background: #16151b url('../data/themes/le-gouffre/arena/couloir_a.png') center 70% / cover no-repeat; image-rendering: pixelated; }
html:not(.dark) .hero-duel { background-image: url('../data/themes/le-gouffre/arena/couloir_a_light.png'); }
.hd-stage { position: relative; width: 100%; height: 100%; perspective: 700px; }
.hd-fig { position: absolute; bottom: 5%; height: 66%; width: auto; image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.hd-hero { left: 7%; }
.hd-mob { right: 7%; height: 60%; }
.hd-vs { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); font-family: var(--font-title); font-weight: 700; font-size: clamp(14px, 2.6vw, 22px); color: #ece6da; text-shadow: 0 2px 0 #000; opacity: .8; }
.hd-card { position: absolute; top: 12%; width: 12.5%; aspect-ratio: 5 / 7; }
.hd-me { left: 31%; }
.hd-foe { right: 31%; }
.hd-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.hd-face { position: absolute; inset: 0; border-radius: 10%/7%; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.hd-back { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #2b2735 0 6px, #24212d 6px 12px); border: 2px solid var(--gold); }
.hd-back span { font-family: var(--font-title); font-weight: 700; font-size: clamp(16px, 3.4vw, 30px); color: var(--gold); text-shadow: 0 2px 0 #000; }
.hd-front { border: 2px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 55%, #1a1920), #1a1920); }
.hd-front img.pxi { width: 58%; height: auto; }
.hd-atk { --c: var(--atk); }
.hd-def { --c: var(--def); }
.hd-flash { position: absolute; right: 4%; bottom: 8%; width: 32%; height: 72%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 245, 220, .95), rgba(224, 72, 90, .6) 55%, transparent); opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.hd-dmg { position: absolute; right: 16%; top: 16%; font-family: var(--font-title); font-weight: 700; font-size: clamp(20px, 4vw, 36px); color: #ff6b6b; text-shadow: 0 2px 0 #000, 0 0 12px rgba(224, 72, 90, .7); }
/* Boucle de 6 s : cartes posées face cachée (0-0,5 s), attente (jusqu'à 2 s), retournement (2-2,5 s),
   frappe et éclair (2,8-3,4 s), puis les cartes repartent (4,6-5,2 s) et tout recommence. */
@media (prefers-reduced-motion: no-preference) {
  .hd-card { animation: hdDeal 6s ease-in-out infinite; }
  .hd-me { animation-name: hdDealMe; }
  .hd-inner { animation: hdFlip 6s ease-in-out infinite; }
  .hd-back span { animation: hdAsk 6s ease-in-out infinite; }
  .hd-flash { animation: hdFlash 6s linear infinite; }
  .hd-dmg { animation: hdDmg 6s ease-out infinite; }
  .hd-mob { animation: hdShake 6s linear infinite; }
  .hd-hero { animation: hdLunge 6s ease-in-out infinite; }
}
@keyframes hdDeal { 0% { transform: translateY(60%); opacity: 0; } 8%, 76% { transform: none; opacity: 1; } 86%, 100% { transform: translateY(-30%); opacity: 0; } }
@keyframes hdDealMe { 0% { transform: translateY(60%); opacity: 0; } 8%, 44% { transform: none; opacity: 1; } 49% { transform: translateX(120%) rotate(8deg) scale(1.08); opacity: 1; } 56%, 76% { transform: none; opacity: 1; } 86%, 100% { transform: translateY(-30%); opacity: 0; } }
@keyframes hdFlip { 0%, 33% { transform: rotateY(180deg); } 42%, 100% { transform: rotateY(0deg); } }
@keyframes hdAsk { 0%, 12% { transform: scale(1); } 20% { transform: scale(1.25); } 28%, 100% { transform: scale(1); } }
@keyframes hdFlash { 0%, 47% { opacity: 0; } 50% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes hdDmg { 0%, 48% { opacity: 0; transform: translateY(30%) scale(.7); } 52% { opacity: 1; transform: scale(1.15); } 70% { opacity: 1; transform: translateY(-40%); } 78%, 100% { opacity: 0; transform: translateY(-60%); } }
@keyframes hdShake { 0%, 48% { transform: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); } 50% { transform: translateX(6%); filter: brightness(2.2) drop-shadow(0 0 8px #e0485a); } 53% { transform: translateX(-4%); } 56% { transform: translateX(2%); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); } 60%, 100% { transform: none; } }
@keyframes hdLunge { 0%, 44% { transform: none; } 48% { transform: translateX(10%); } 56%, 100% { transform: none; } }
.land-hero .land-cast { margin-top: 0; opacity: .85; }
.land-hero .land-cast img { width: clamp(26px, 6vw, 52px); }
.land-hero .land-cast .land-hero-sprite { width: clamp(34px, 8vw, 68px); }
.land-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); width: min(680px, 100%); }
.land-shot { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: zoom-in; text-align: center; }
.land-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--e-2); transition: transform .15s ease, border-color .15s ease; }
.land-shot:hover img, .land-shot:focus-visible img { transform: translateY(-2px); border-color: var(--accent); }
.land-shot:focus-visible { outline: none; }
.land-shot:focus-visible span { color: var(--text); text-decoration: underline; }
@media (max-width: 479px) { .land-shot { font-size: var(--fs-xs); } }
.shot-full { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.fs-dl { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: var(--fs-sm); line-height: 1.35; }
.fs-dl dt { color: var(--muted); font-weight: 700; }
.fs-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.fs-dl dd.hl { color: var(--accent); font-weight: 700; }
.fs-dl dd.warn { color: var(--danger); font-weight: 700; }
.fs-dl dt b { color: var(--text); font-variant-numeric: tabular-nums; }
.fs-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.fs-relic { display: inline-flex; align-items: center; gap: 4px; }
.fs-relic img.pxi { width: 16px; height: 16px; }
.fs-cards { gap: 4px; }
.fs-tag { flex-basis: 100%; padding-left: 30px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.fs-empty { margin: 6px 0 0; font-size: var(--fs-sm); }
/* V12.52 : parrainage */
.ref-panel .ref-link { width: 100%; min-width: 0; padding: 8px 10px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--bg-2); color: var(--text);
  font: 600 var(--fs-sm) / 1.3 var(--font-ui); letter-spacing: .01em; text-overflow: ellipsis; }
.ref-panel .ref-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; }
.ref-panel .ref-count { font-size: var(--fs-sm); font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.ref-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); flex-wrap: wrap; padding: 10px 14px;
  border-radius: var(--r-md); border: 1px dashed color-mix(in srgb, var(--gold) 45%, var(--line)); background: color-mix(in srgb, var(--gold) 6%, transparent); }
.ref-banner p { margin: 0; flex: 1 1 220px; min-width: 0; font-size: var(--fs-sm); color: var(--muted); }
.ref-banner .btn { flex: 0 0 auto; }
/* V12.54 : modes de jeu. Cartes à hauteur égale (accroche, 3 puces, pied collé en bas) et une teinte par mode (--mc). */
.multi-grid { grid-auto-rows: 1fr; align-items: stretch; }
.multi-grid > .multi-card { --mc: var(--accent); display: flex; flex-direction: column; align-items: stretch; gap: 10px; height: 100%; min-width: 0;
  background: color-mix(in srgb, var(--mc) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--mc) 45%, var(--line)); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--mc) 70%, transparent); }
.multi-grid > .multi-card.premium { background: color-mix(in srgb, var(--mc) 12%, var(--panel)); border-color: color-mix(in srgb, var(--mc) 45%, var(--line)); }
.multi-grid > .multi-card.soon { background: color-mix(in srgb, var(--mc) 5%, var(--panel)); border-color: color-mix(in srgb, var(--mc) 24%, var(--line)); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--mc) 30%, transparent); }
.multi-card .mc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.multi-card .mc-head .multi-title { flex: 1 1 auto; min-width: 0; }
.multi-card .mc-head strong { font-family: var(--font-title); font-size: var(--fs-lg); letter-spacing: .02em; line-height: 1.2; }
.multi-card .ico-tile { background: color-mix(in srgb, var(--mc) 24%, var(--panel)); border-color: color-mix(in srgb, var(--mc) 55%, var(--line)); }
.multi-card.soon .ico-tile { background: color-mix(in srgb, var(--mc) 10%, var(--panel-2)); border-color: color-mix(in srgb, var(--mc) 28%, var(--line)); }
.multi-card .ico-tile img.pxi { filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--mc) 60%, #000)); }
.multi-card.soon .ico-tile img.pxi { filter: saturate(.75); }
.multi-card p.mc-hook { margin: 0; color: var(--text); font-size: var(--fs-md); line-height: 1.45; }
.multi-card .mc-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.multi-card .mc-points li { position: relative; padding-left: 16px; }
.multi-card .mc-points li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 6px; height: 6px; border-radius: 1px; transform: rotate(45deg); background: color-mix(in srgb, var(--mc) 75%, var(--text)); }
.multi-card.soon .mc-points li::before { background: color-mix(in srgb, var(--mc) 40%, var(--muted)); }
.multi-card .mc-foot { margin-top: auto; padding-top: 4px; min-height: 44px; display: flex; align-items: center; }
.multi-card .mc-foot .btn { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mc) 60%, var(--line)), 0 2px 0 color-mix(in srgb, var(--mc) 35%, transparent); }
.multi-card .mc-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.multi-card .mc-status img.pxi { width: 16px; height: 16px; opacity: .8; }
/* V12.54 : intro du donjon */
.dungeon-intro { position: relative; padding: 10px 14px 11px 16px; border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--tc, var(--accent)) 38%, var(--line));
  background: color-mix(in srgb, var(--tc, var(--accent)) 6%, var(--panel)); }
.dungeon-intro::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px;
  background: color-mix(in srgb, var(--tc, var(--accent)) 70%, transparent); }
.dungeon-intro .dungeon-intro-name { color: color-mix(in srgb, var(--tc, var(--accent)) 55%, var(--muted)); margin-bottom: 3px; }
.dungeon-intro p { margin: 0; font-size: var(--fs-sm); font-style: italic; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.dungeon-intro p + p { margin-top: 6px; }
@media (max-width: 479px) { .dungeon-intro { padding: 9px 12px 10px 14px; } }
.ff-guide .ff-num, .ff-guide .ff-num.ff-num { font-size: 16px; }
.hd-vs { font-size: clamp(16px, 2.6vw, 22px); }
.land-dungeon strong { font-size: max(16px, var(--fs-lg)); }
.ff-guide .ff-ok { min-height: 44px; min-width: 88px; }
.legal-footer a, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
/* D13 : surtitre de donjon contrasté en thème clair (au moins 4,5 : 1). */
html:not(.dark) .dungeon-intro .dungeon-intro-name { color: color-mix(in srgb, var(--tc, var(--accent)) 35%, #3a3228); }
.tag-demo { font-size: 11px; }
.legal-summary ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; line-height: 1.55; }
/* V13 (i18n) : sélecteur de langue FR | EN (accueil, en haut à droite du hero ; Options > Affichage). */
.land-hero { position: relative; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--panel-2); }
.lang-switch button { min-width: 40px; min-height: 32px; padding: 0 10px; border: 0; background: transparent; color: inherit; font-weight: 700; font-size: var(--fs-xs); letter-spacing: .06em; cursor: pointer; }
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button.active { background: var(--accent); color: var(--ink-dark); }
.lang-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.land-hero .land-lang { position: absolute; top: 12px; right: 0; z-index: 2; }
/* T756 : Gardien du monde (écran, bandeau de l'écran Jouer, bilan de fin de descente). Réutilise .panel, .chip,
   .bar, .board-list et .stat-tile ; seules les pièces propres au Gardien sont définies ici. */
.wb-panel { border-color: color-mix(in srgb, var(--tc, var(--danger)) 40%, var(--line)); }
.wb-hero { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.wb-portrait { flex: 0 0 auto; width: 128px; aspect-ratio: 1; border-radius: var(--r-lg); display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--tc, var(--danger)) 35%, transparent), transparent 70%), var(--panel-2); }
.wb-portrait img { width: 128px; height: 128px; image-rendering: pixelated; }
.wb-portrait img.wb-down { filter: grayscale(1) brightness(.75); }
.wb-id { flex: 1 1 200px; min-width: 0; gap: var(--s-2); }
.wb-id h3 { margin: 0; }
.wb-bar { height: 28px; border-radius: 14px; }
.wb-bar > i { border-radius: 14px; }
.wb-bar > span { font-size: var(--fs-sm); line-height: 28px; }
@keyframes wb-drain { from { width: var(--from, 100%); } }
.wb-bar > i.wb-drain { animation: wb-drain 1.2s .3s cubic-bezier(.2, .7, .2, 1) backwards; }
@media (prefers-reduced-motion: reduce) { .wb-bar > i.wb-drain { animation: none; } }
.wb-victory { display: flex; align-items: center; gap: 6px; margin: 0; font-family: var(--font-title); font-size: var(--fs-xl); color: var(--ok-ink); }
.wb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.wb-stats .stat-tile .v { font-size: clamp(1.1rem, 4.4vw, 1.6rem); overflow-wrap: anywhere; }
.wb-stats .stat-tile { min-width: 0; padding: 10px 8px; }
.wb-stats .stat-tile .l, .wb-stats .stat-tile .p { font-size: var(--fs-xs); }
.wb-stats .stat-tile .p { overflow-wrap: anywhere; }
.board-list.wb-top { max-height: none; overflow: visible; }
.wb-who { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.wb-who .lb-name { max-width: 100%; }
@media (min-width: 600px) { .wb-who { flex-direction: row; align-items: center; gap: var(--s-2); } }
.wb-title { height: auto; min-height: 22px; padding: 2px var(--s-2); max-width: 100%; }
.wb-title > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-title img.pxi { width: 14px; height: 14px; }
.wb-prev { padding-top: var(--s-2); border-top: 1px dashed var(--line); }
.wb-banner { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 56px; padding: var(--s-2) var(--s-3); text-align: left; cursor: pointer; font-family: var(--font-ui); color: var(--text); border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line)); }
.wb-banner:hover { border-color: var(--danger); }
.wb-banner:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wb-banner-img { width: 48px; height: 48px; flex: 0 0 auto; image-rendering: pixelated; }
.wb-banner-body { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.wb-banner-body b { font-size: var(--fs-md); line-height: 1.25; }
.wb-mini { display: block; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--line) 80%, transparent); overflow: hidden; }
.wb-mini > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--danger) 65%, #000), var(--danger)); }
.wb-banner-go { font-size: var(--fs-xl); color: var(--muted); }
.wb-summary { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
@media (max-width: 479px) { .wb-hero { justify-content: center; text-align: center; } .wb-id .row { justify-content: center; } .wb-stats { gap: 6px; } .wb-stats .stat-tile .l { font-size: 10px; letter-spacing: .02em; } } /* « AUJOURD'HUI » tient dans une tuile à 375 px */
