/* =========================================================================
   POTOS — Boutique & cosmétiques (DA Cyber-Néon : verre sombre, lueurs néon, holo).
   Toutes les couleurs passent par les variables ci-dessous, dérivées des jetons
   globaux du design system (css/styles.css : --bg, --glass, --line, --text,
   --muted, --accent, --accent-2, --accent-3, --ok, --warn, --danger, --glow-*)
   avec une valeur de repli : la boutique suit le thème automatiquement.
   Contenu : écran #screen-shop (js/shop.js), aperçus .cx-pv / cartes .cx-card /
   effets .cx-layer (js/cosmetics.js), animations des pièces premium d'avatar (.av-*),
   skins vectoriels de Petits Vaisseaux .vxs-* (shared/vaisseaux-skins.js, utilisables en jeu)
   et de Holo-Dames .dms-* (shared/dames-skins.js, utilisables en jeu).
   ========================================================================= */
:root, body {
  --shop-bg: var(--bg, #070A1A);
  --shop-bg-2: var(--bg-2, #0D1230);
  --shop-glass: var(--glass, rgba(18, 24, 58, .62));
  --shop-glass-strong: var(--glass-strong, rgba(20, 26, 64, .92));
  --shop-line: var(--line, rgba(140, 220, 255, .18));
  --shop-text: var(--text, #E9F3FF);
  --shop-muted: var(--muted, rgba(233, 243, 255, .64));
  --shop-accent: var(--accent, #19F0FF);
  --shop-accent-2: var(--accent-2, #FF2BD6);
  --shop-accent-3: var(--accent-3, #8B5CFF);
  --shop-ok: var(--ok, #A6FF00);
  --shop-warn: var(--warn, #FFC23D);
  --shop-danger: var(--danger, #FF3B5C);
  --shop-glow: var(--glow-accent, 0 0 18px color-mix(in srgb, var(--shop-accent) 45%, transparent));
  --shop-glow-2: var(--glow-accent-2, 0 0 18px color-mix(in srgb, var(--shop-accent-2) 45%, transparent));
  --shop-credits: var(--shop-warn);
  --shop-crystals: var(--shop-accent);
  /* Texte coloré (docs/theme-soiree-jeux.md §5.2) : jamais l'aplat en texte, sa version lisible dans les deux modes */
  --shop-accent-text: var(--accent-text, var(--shop-accent));
  --shop-ok-text: var(--ok-text, var(--shop-ok));
  --shop-warn-text: var(--warn-text, var(--shop-warn));
  --shop-r-commun: var(--rarity-common, #9FB3C8);
  --shop-r-rare: var(--rarity-rare, #2E9BFF);
  --shop-r-epique: var(--rarity-epic, var(--shop-accent-3));
  --shop-r-legendaire: var(--rarity-legendary, var(--shop-warn));
  --shop-ink: #1A1033;
  --shop-white: #FFFFFF;
  --shop-shade: rgba(3, 4, 14, .72);
  --shop-shadow: 0 12px 34px rgba(0, 0, 0, .45);
  --shop-radius: var(--radius, 18px);
  --shop-radius-sm: 12px;
  --shop-font: var(--font-ui, system-ui, sans-serif);
  --shop-font-display: var(--font-display, system-ui, sans-serif);
  --shop-ease: cubic-bezier(.2, .8, .2, 1);
  --shop-top-h: 58px;
}

#screen-shop[hidden], #screen-shop [hidden] { display: none !important; }

/* ======================= Écran ======================= */
#screen-shop { min-height: 100dvh; }
.shop {
  position: relative; min-height: 100dvh; padding-bottom: calc(32px + env(safe-area-inset-bottom));
  color: var(--shop-text); font-family: var(--shop-font);
  background:
    radial-gradient(70vmax 50vmax at 0% -10%, color-mix(in srgb, var(--shop-accent-3) 26%, transparent), transparent 60%),
    radial-gradient(60vmax 40vmax at 110% 10%, color-mix(in srgb, var(--shop-accent-2) 18%, transparent), transparent 60%),
    linear-gradient(180deg, var(--shop-bg-2), var(--shop-bg));
}
.shop::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--shop-line) 1px, transparent 1px), linear-gradient(90deg, var(--shop-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 40%);
}
.shop > * { position: relative; }
.shop .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shop :focus-visible, .shop-entry:focus-visible { outline: 2px solid var(--shop-accent); outline-offset: 3px; box-shadow: var(--shop-glow); }

/* ---------- Barre du haut ---------- */
.shop-top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  height: calc(var(--shop-top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0;
  background: var(--shop-glass-strong); border-bottom: 1px solid var(--shop-line);
  /* collante : pas de backdrop-filter (re-flou à chaque image de défilement), cf. docs/fluidite.md */
}
.shop-icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; font-size: 20px;
  color: var(--shop-text); background: var(--shop-glass); border: 1px solid var(--shop-line); cursor: pointer;
  transition: transform .15s var(--shop-ease), box-shadow .2s;
}
.shop-icon-btn:hover { box-shadow: var(--shop-glow); transform: translateX(-2px); }
.shop-title {
  flex: 1; min-width: 0; margin: 0; font-family: var(--shop-font-display); font-size: 21px; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; text-shadow: 0 0 12px color-mix(in srgb, var(--shop-accent) 60%, transparent); outline: none;
}
.shop-wallet { display: flex; gap: 6px; }
.shop-coin {
  display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border-radius: 999px; font: inherit; font-size: 14px;
  color: var(--shop-text); background: var(--shop-glass); border: 1px solid var(--shop-line); white-space: nowrap;
}
.shop-coin b { font-variant-numeric: tabular-nums; }
.shop-coin--credits { border-color: color-mix(in srgb, var(--shop-credits) 45%, transparent); }
.shop-coin--credits b { color: var(--shop-warn-text); }
.shop-coin--crystals { cursor: pointer; border-color: color-mix(in srgb, var(--shop-crystals) 45%, transparent); }
.shop-coin--crystals b { color: var(--shop-accent-text); }
.shop-coin-plus { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-weight: 800; color: var(--shop-bg); background: var(--shop-crystals); }

/* ---------- Bandeaux ---------- */
.shop-banner {
  margin: 12px 12px 0; padding: 10px 12px; border-radius: var(--shop-radius-sm); font-size: 13px; line-height: 1.45;
  background: var(--shop-glass); border: 1px solid var(--shop-line);
}
.shop-banner--demo { border-color: color-mix(in srgb, var(--shop-warn) 55%, transparent); background: color-mix(in srgb, var(--shop-warn) 10%, var(--shop-glass)); }
.shop-banner--warn { border-color: var(--shop-danger); background: color-mix(in srgb, var(--shop-danger) 12%, var(--shop-glass)); }
.shop-section .shop-banner { margin: 0 0 12px; }

/* ---------- Profil (compact sur mobile : les articles doivent apparaître tôt) ---------- */
.shop-hero {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "av meta daily" "hint hint hint";
  gap: 8px 12px; align-items: center; margin: 10px 12px 0; padding: 10px 12px;
  border-radius: var(--shop-radius); background: var(--shop-glass); border: 1px solid var(--shop-line);
  box-shadow: var(--shop-shadow);
}
.shop-hero-av { grid-area: av; width: 56px; height: 56px; }
.shop-hero-av svg { width: 100%; height: 100%; }
.shop-hero-meta { grid-area: meta; min-width: 0; }
.shop-hero-name { margin: 0; font-family: var(--shop-font-display); font-weight: 800; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-level { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--shop-accent-text); white-space: nowrap; }
.shop-xpbar { flex: 1; min-width: 40px; height: 6px; border-radius: 99px; background: var(--shop-line); overflow: hidden; }
.shop-xpbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--shop-accent), var(--shop-accent-2)); box-shadow: var(--shop-glow); }
.shop-hero-hint { grid-area: hint; margin: 0; font-size: 11.5px; color: var(--shop-muted); line-height: 1.35; }
.shop-daily {
  grid-area: daily; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; border-radius: var(--shop-radius-sm);
  font: inherit; text-align: left; color: var(--shop-text); background: var(--shop-glass); border: 1px dashed var(--shop-line); cursor: pointer;
  transition: transform .15s var(--shop-ease);
}
.shop-daily:active { transform: scale(.96); }
.shop-daily-ico { font-size: 22px; line-height: 1; }
.shop-daily b { display: block; font-size: 13px; white-space: nowrap; }
.shop-daily small { display: block; color: var(--shop-muted); font-size: 11.5px; white-space: nowrap; }
/* Pulsation = opacité d'une lueur pré-dessinée (::before), pas une box-shadow animée */
.shop-daily.is-ready { position: relative; border-style: solid; border-color: var(--shop-credits); box-shadow: 0 0 16px color-mix(in srgb, var(--shop-credits) 35%, transparent); }
.shop-daily.is-ready::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 26px color-mix(in srgb, var(--shop-credits) 55%, transparent); opacity: 0; animation: shop-pulse 2.4s ease-in-out infinite; }
.shop-daily.is-ready small { color: var(--shop-warn-text); }
.shop-daily[aria-disabled="true"] { opacity: .6; cursor: default; }
/* Bonus déjà pris : simple pastille 🎁✓ sur mobile (la place va au nom et au niveau) */
.shop-daily.is-done { position: relative; }
.shop-daily.is-done::after {
  content: "✓"; position: absolute; right: -5px; top: -5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; font-weight: 900; color: var(--shop-bg); background: var(--shop-ok); box-shadow: 0 0 8px color-mix(in srgb, var(--shop-ok) 70%, transparent);
}
@media (max-width: 639.98px) {
  .shop-daily.is-done { justify-content: center; width: 48px; padding: 0; }
  .shop-daily.is-done .shop-daily-txt { display: none; }
}

/* ---------- Onglets ---------- */
.shop-tabs {
  position: sticky; top: calc(var(--shop-top-h) + env(safe-area-inset-top)); z-index: 4; display: flex; gap: 6px; padding: 8px 12px;
  overflow-x: auto; scrollbar-width: none; background: var(--shop-bg); /* opaque : sans flou, les titres défilant dessous transparaissaient */
  border-bottom: 1px solid var(--shop-line);
}
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--shop-muted); background: transparent; border: 1px solid var(--shop-line);
  transition: color .2s, background .2s, box-shadow .2s;
}
.shop-tab:hover { color: var(--shop-text); }
.shop-tab[aria-selected="true"] {
  color: var(--shop-bg); background: var(--shop-accent); border-color: var(--shop-accent); box-shadow: var(--shop-glow);
}

/* ---------- Rayons & cartes ---------- */
.shop-panel { padding: 4px 12px 0; }
.shop-section { margin-top: 18px; }
.shop-section-title { margin: 0 0 10px; font-family: var(--shop-font-display); font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.shop-note { margin: -4px 0 10px; font-size: 12.5px; color: var(--shop-muted); }
.shop-empty { padding: 40px 0; text-align: center; color: var(--shop-muted); }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shop-card {
  --r: var(--shop-r-commun);
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--shop-radius);
  background: var(--shop-glass); border: 1px solid color-mix(in srgb, var(--r) 40%, var(--shop-line));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--shop-white) 8%, transparent);
  transition: transform .2s var(--shop-ease), box-shadow .25s, border-color .25s;
  /* Cartes hors écran : ni rendu ni animations (les aperçus animés sont nombreux). Fond de la boutique = dégradés
     lisses : un flou d'arrière-plan n'y changeait rien à l'œil, il est retiré. */
  content-visibility: auto; contain-intrinsic-size: auto 280px;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: 0 0 22px color-mix(in srgb, var(--r) 35%, transparent); }
.shop-card:active { transform: scale(.98); transition-duration: .06s; }
.shop-card.r-rare { --r: var(--shop-r-rare); }
.shop-card.r-epique { --r: var(--shop-r-epique); }
.shop-card.r-legendaire { --r: var(--shop-r-legendaire); }
.shop-card.r-legendaire::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--shop-white) 14%, transparent) 50%, transparent 70%);
  transform: translateX(-100%); animation: shop-shine 4.5s linear infinite; /* reflet déplacé (transform), plus de background-position */
}
.shop-card.is-equipped { border-color: var(--shop-ok); box-shadow: 0 0 18px color-mix(in srgb, var(--shop-ok) 30%, transparent); }
.shop-card-pv {
  display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 8px; overflow: hidden;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--r) 26%, transparent), transparent 70%), color-mix(in srgb, var(--shop-bg) 55%, transparent);
  border-bottom: 1px solid var(--shop-line);
}
.shop-card-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 10px; }
.shop-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.shop-rarity, .shop-tag {
  display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.shop-rarity { color: var(--r); background: color-mix(in srgb, var(--r) 14%, transparent); border: 1px solid color-mix(in srgb, var(--r) 45%, transparent); }
.shop-tag--new { color: var(--shop-bg); background: var(--shop-ok); }
.shop-tag--limited { color: var(--shop-bg); background: var(--shop-warn); }
.shop-tag--deal { color: var(--shop-white); background: var(--shop-accent-2); box-shadow: var(--shop-glow-2); }
.shop-card-name { margin: 2px 0 0; font-family: var(--shop-font-display); font-size: 15px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.shop-card-desc, .shop-card-sub { margin: 0; font-size: 12px; line-height: 1.35; color: var(--shop-muted); }
.shop-card-desc { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card.is-spotlight { animation: shop-spot 1.2s var(--shop-ease) 2; border-color: var(--shop-accent); }
.shop-card-sub { font-size: 11px; color: var(--shop-accent-text); }
.shop-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }

/* ---------- Boutons ---------- */
.shop-price, .shop-btn {
  display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 0 10px;
  border-radius: 10px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap;
  transition: transform .12s var(--shop-ease), box-shadow .2s, filter .2s;
}
.shop-price:active, .shop-btn:active { transform: scale(.96); }
.shop-price { color: var(--shop-text); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid var(--c); }
.shop-price:hover { box-shadow: 0 0 14px color-mix(in srgb, var(--c) 55%, transparent); }
.shop-price--credits { --c: var(--shop-credits); }
.shop-price--crystals { --c: var(--shop-crystals); }
.shop-price--money { --c: var(--shop-accent-2); width: 100%; }
.shop-price s { font-size: 11px; font-weight: 600; color: var(--shop-muted); }
.shop-price.is-short { opacity: .55; }
.shop-price[disabled] { opacity: .4; cursor: not-allowed; }
.shop-btn--equip, .shop-btn--primary { color: var(--shop-bg); background: var(--shop-accent); border: 1px solid var(--shop-accent); box-shadow: var(--shop-glow); }
.shop-btn--ghost { color: var(--shop-text); background: transparent; border: 1px solid var(--shop-line); }
.shop-btn[disabled] { opacity: .5; cursor: not-allowed; }
.shop-state, .shop-lock { display: inline-flex; align-items: center; min-height: 38px; font-size: 13px; font-weight: 800; }
.shop-state { color: var(--shop-muted); }
.shop-state--on { color: var(--shop-ok-text); }
.shop-lock { color: var(--shop-muted); font-weight: 700; }

/* ---------- Packs de Crédits 💎 (id 'crystals') ---------- */
.shop-pack { text-align: center; --r: var(--shop-crystals); }
.shop-pack .shop-card-body { align-items: center; padding-top: 4px; }
.shop-pack .shop-card-actions { width: 100%; }
.shop-pack.is-featured { border-color: var(--shop-accent-2); box-shadow: var(--shop-glow-2); }
.shop-pack.is-suggested { border-color: var(--shop-ok); box-shadow: 0 0 0 1px var(--shop-ok), 0 0 22px color-mix(in srgb, var(--shop-ok) 40%, transparent); }
.shop-pack.is-suggested .shop-pack-tag { color: var(--shop-bg); background: var(--shop-ok); box-shadow: 0 0 12px color-mix(in srgb, var(--shop-ok) 60%, transparent); }
.shop-pack-tag { position: absolute; top: 8px; right: 8px; z-index: 1; }
.shop-pack-gem { padding: 22px 8px 4px; font-size: 26px; letter-spacing: -6px; filter: drop-shadow(0 0 10px var(--shop-crystals)); }
.shop-pack-bonus { color: var(--shop-ok-text); font-weight: 800; }
.shop-banner--goal { border-color: color-mix(in srgb, var(--shop-ok) 60%, transparent); background: color-mix(in srgb, var(--shop-ok) 10%, var(--shop-glass)); }
.shop-banner--soon { margin: 14px 0 0; border-color: color-mix(in srgb, var(--shop-accent) 45%, transparent); }
.shop-note--after { margin: 14px 0 0; }

/* ---------- Fenêtre de confirmation ---------- */
.shop-dialog-backdrop {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center; padding: 12px;
  background: rgba(3, 4, 14, .84); /* plus de flou plein écran */ animation: shop-fade .18s both;
}
.shop-dialog {
  width: min(100%, 420px); padding: 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); border-radius: 22px; text-align: center; color: var(--shop-text);
  background: var(--shop-glass-strong); border: 1px solid var(--shop-line); box-shadow: var(--shop-shadow), var(--shop-glow);
  animation: shop-rise .28s var(--shop-ease) both;
}
.shop-dialog-title { margin: 0 0 8px; font-family: var(--shop-font-display); font-size: 19px; font-weight: 800; }
.shop-dialog-body p { margin: 6px 0; font-size: 14px; line-height: 1.45; }
.shop-dialog-pv { display: grid; place-items: center; height: 120px; margin: 4px auto 8px; }
.shop-dialog-pv .cx-pv { height: 100%; }
.shop-dialog-price b { color: var(--shop-accent-text); font-size: 17px; }
.shop-dialog-sub { color: var(--shop-muted); font-size: 12.5px !important; }
.shop-dialog-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.shop-btn[aria-busy="true"] { cursor: progress; }
.shop-btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: av-spin .7s linear infinite; }

/* Toasts : sous la barre du haut de la boutique (le portefeuille reste visible) */
body.shop-open .toasts { top: calc(66px + env(safe-area-inset-top)); }

/* ======================= Entrées de la boutique (accueil, salon) ======================= */
/* Bouton « 🛒 Boutique » : libellé masqué sous 640 px (icône seule, 44 px) */
.shop-entry {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; height: 44px; min-width: 44px; padding: 0 14px;
  border-radius: var(--r-md, 12px); cursor: pointer; font: 700 .95rem/1 var(--shop-font-display); letter-spacing: .02em; color: var(--shop-text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--shop-accent) 18%, transparent), color-mix(in srgb, var(--shop-accent) 4%, transparent));
  border: 1px solid color-mix(in srgb, var(--shop-accent) 60%, transparent); box-shadow: 0 0 16px -4px color-mix(in srgb, var(--shop-accent) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .15s var(--shop-ease), box-shadow .2s, border-color .2s;
}
.shop-entry:hover { transform: translateY(-1px); border-color: var(--shop-accent); box-shadow: var(--shop-glow); }
.shop-entry:active { transform: scale(.94); }
.shop-entry > span:first-child { font-size: 19px; line-height: 1; }
@media (max-width: 639.98px) { .shop-entry { padding: 0; width: 44px; } .shop-entry-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* Puce portefeuille ⚡ / 💎 (bouton : ouvre le rayon des Crédits 💎) */
.wallet-chip {
  display: inline-flex; align-items: center; gap: 2px; flex: none; height: 44px; padding: 0 6px; cursor: pointer; border-radius: 999px;
  font: 700 .9rem/1 var(--shop-font-display); color: var(--shop-text); background: rgba(10, 16, 40, .86);
  border: 1px solid var(--line-2, var(--shop-line)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .15s var(--shop-ease), border-color .2s, box-shadow .2s;
}
.wallet-chip[hidden] { display: none; }
.wallet-chip:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--shop-crystals) 70%, transparent); box-shadow: 0 0 16px -2px color-mix(in srgb, var(--shop-crystals) 55%, transparent); }
.wallet-chip:active { transform: scale(.96); }
.wc-cur { display: inline-flex; align-items: center; gap: 3px; padding: 0 5px; white-space: nowrap; }
.wc-cur b { font-weight: 700; font-variant-numeric: tabular-nums; }
.wc-credits b { color: var(--shop-warn-text); text-shadow: 0 0 8px color-mix(in srgb, var(--shop-credits) 45%, transparent); }
.wc-crystals b { color: var(--shop-accent-text); text-shadow: 0 0 8px color-mix(in srgb, var(--shop-crystals) 45%, transparent); }
.wc-cur + .wc-cur { border-left: 1px solid var(--shop-line); }
.wallet-chip.is-demo { border-style: dashed; }
.wallet-chip.is-bump { animation: shop-bump .6s var(--shop-ease); }
/* Petits téléphones : en-tête de l'accueil = logo + portefeuille + boutique + son, sans déborder */
@media (max-width: 399.98px) {
  #screen-home > header { gap: 8px; }
  #screen-home > header .logo { font-size: 25px; }
  .wallet-chip { height: 40px; padding: 0 3px; font-size: .84rem; }
  .wc-cur { padding: 0 4px; gap: 2px; }
  #screen-home > header .shop-entry, #screen-home > header .icon-btn { width: 40px; min-width: 40px; height: 40px; }
}
/* Très petits écrans (< 360 px) : le portefeuille reste visible dans la boutique */
@media (max-width: 359.98px) { #screen-home > header .wallet-chip { display: none; } }

/* Salon : variantes payantes verrouillées (js/lobby.js) */
.toggle-row.is-shop-locked { cursor: default; border-style: dashed; border-color: color-mix(in srgb, var(--shop-warn) 45%, transparent); background: color-mix(in srgb, var(--shop-warn) 5%, rgba(3, 6, 18, .45)); }
.toggle-row.is-shop-locked > span:first-child { min-width: 0; }
.unlock-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none; min-height: 40px; padding: 4px 12px; cursor: pointer;
  border-radius: 10px; font: 700 .82rem/1.1 var(--shop-font-display); white-space: nowrap; color: var(--shop-bg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--shop-warn) 80%, #fff), var(--shop-warn)); border: 1px solid var(--shop-warn);
  box-shadow: 0 0 14px -2px color-mix(in srgb, var(--shop-warn) 70%, transparent); transition: transform .15s var(--shop-ease), box-shadow .2s;
}
.unlock-btn small { font: 600 .66rem/1.2 var(--shop-font); opacity: .85; }
.unlock-btn:hover { transform: translateY(-1px); box-shadow: 0 0 20px color-mix(in srgb, var(--shop-warn) 75%, transparent); }
.unlock-btn:active { transform: scale(.95); }
.settings.is-locked .toggle-row.is-shop-locked { opacity: 1; }
/* Salon : interrupteur incompatible avec le contenu choisi (map.options[].forbid) ; compteur à 0 = libellé num.zero */
.toggle-row.is-forbidden { opacity: .55; cursor: not-allowed; border-style: dashed; }
.toggle-row.is-forbidden .toggle-hint { color: var(--shop-warn-text); }
.num-val.is-zero .num-v { font-size: .86rem; line-height: 1.15; white-space: normal; text-align: center; }
.lock-tag { display: inline-block; margin-left: 4px; font-size: .8em; }

/* Accueil : bouton « ✨ Plus de styles » du personnalisateur */
.part-btn--shop { color: var(--shop-bg); background: var(--holo, linear-gradient(115deg, #22F2FF, #9D6BFF, #FF2BD1)); border-color: transparent; box-shadow: 0 0 14px -2px color-mix(in srgb, var(--shop-accent-2) 70%, transparent); }
.part-btn--shop:hover { color: var(--shop-bg); background: var(--holo, linear-gradient(115deg, #22F2FF, #9D6BFF, #FF2BD1)); filter: brightness(1.1); }

/* ======================= Aperçus (js/cosmetics.js) ======================= */
.cx-pv { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 84px; }
button.cx-pv { padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.cx-pv-avatar svg, .cx-pv-pawn svg { width: min(100%, 120px); height: auto; max-height: 100%; overflow: visible; }
.cx-pv-board svg { width: min(100%, 118px); height: auto; max-height: 100%; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--shop-accent) 30%, transparent)); }
.cx-pv-cards { display: flex; align-items: center; justify-content: center; }
.cx-pv-emote { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 8px; font-size: 26px; }
.cx-pv-icon { font-size: 44px; filter: drop-shadow(0 0 12px var(--c1, var(--shop-accent))); transition: transform .25s var(--shop-ease); }
.cx-pv-mode .cx-pv-icon { font-size: 48px; }
.cx-pv-victory { border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c1, var(--shop-accent)) 30%, transparent), color-mix(in srgb, var(--c2, var(--shop-accent-2)) 10%, transparent) 45%, transparent 70%); }
.cx-pv-victory:hover .cx-pv-icon, .cx-pv-fx:hover .cx-card { transform: scale(1.1) rotate(-4deg); }
.cx-pv-fx .cx-card { position: relative; z-index: 1; transition: transform .25s var(--shop-ease); box-shadow: 0 0 18px color-mix(in srgb, var(--c1, var(--shop-accent)) 55%, transparent); }
/* Effets de jeu NÉON : signature visible avant même l'aperçu (anneau, onde, vortex, éclats…) */
.cx-pv-fx::before { content: ""; position: absolute; left: 50%; top: 46%; width: min(96px, 82%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; }
.cx-fx--standard::before { border: 2px solid var(--c1); box-shadow: 0 0 14px var(--c1), inset 0 0 10px var(--c1); opacity: .65; }
.cx-fx--shockwave::before { background: repeating-radial-gradient(circle, transparent 0 13px, var(--c1) 13px 15px, transparent 15px 21px); -webkit-mask: radial-gradient(circle, #000 50%, transparent 71%); mask: radial-gradient(circle, #000 50%, transparent 71%); }
.cx-fx--vortex::before { background: conic-gradient(from 0deg, transparent, var(--c1), transparent 40%, var(--c2), transparent 75%); -webkit-mask: radial-gradient(circle, transparent 40%, #000 42%); mask: radial-gradient(circle, transparent 40%, #000 42%); animation: av-spin 2.6s linear infinite; }
.cx-fx--supernova::before { background: repeating-conic-gradient(var(--c1) 0 3deg, transparent 3deg 15deg); -webkit-mask: radial-gradient(circle, #000 18%, transparent 70%); mask: radial-gradient(circle, #000 18%, transparent 70%); animation: cx-em-pulse 1.6s ease-in-out infinite; }
.cx-fx--arc::before { background: repeating-linear-gradient(62deg, transparent 0 9px, var(--c1) 9px 10.5px, transparent 10.5px 19px), repeating-linear-gradient(-58deg, transparent 0 13px, var(--c2) 13px 14px, transparent 14px 23px); -webkit-mask: radial-gradient(circle, transparent 38%, #000 42% 62%, transparent 70%); mask: radial-gradient(circle, transparent 38%, #000 42% 62%, transparent 70%); animation: cx-em-pulse .9s steps(2) infinite; }
.cx-fx--glitch .cx-card { filter: drop-shadow(3px 0 0 var(--c1)) drop-shadow(-3px 1px 0 var(--c2)); }
.cx-fx--glitch::before { background: linear-gradient(transparent 30%, color-mix(in srgb, var(--c1) 70%, transparent) 30% 34%, transparent 34% 62%, color-mix(in srgb, var(--c2) 70%, transparent) 62% 65%, transparent 65%); border-radius: 0; width: 86%; }
.cx-pv-hint {
  position: absolute; bottom: 2px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  color: var(--shop-text); background: color-mix(in srgb, var(--shop-bg) 70%, transparent); border: 1px solid var(--shop-line);
}
button.cx-pv:hover .cx-pv-hint, button.cx-pv:focus-visible .cx-pv-hint { color: var(--shop-bg); background: var(--shop-accent); border-color: var(--shop-accent); }

/* Lots : vignettes du contenu (1 à 3 colonnes) */
.cx-pv-bundle { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); place-items: center stretch; gap: 6px; min-height: 0; padding: 2px; }
.cx-th {
  position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; max-height: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 10px;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--r, var(--shop-accent)) 18%, transparent), transparent 75%), color-mix(in srgb, var(--shop-bg) 60%, transparent);
  border: 1px solid var(--shop-line);
}
.cx-th > svg { width: 100%; height: 100%; padding: 6%; overflow: visible; }
.cx-th .cx-card { width: auto; height: 76%; box-shadow: 0 3px 8px rgba(0, 0, 0, .5); }
.cx-th .cx-table { position: absolute; inset: 3px; width: auto; height: auto; border-radius: 7px; }
.cx-th-emo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2px; font-size: 18px; line-height: 1.15; }
.cx-th-ico { font-size: 26px; line-height: 1; filter: drop-shadow(0 0 8px var(--c1, var(--shop-accent))); }
.cx-th-fx { color: var(--c1); text-shadow: 0 0 8px var(--c1), 0 0 16px var(--c2); }

/* ---------- Cartes NÉON : base ---------- */
.cx-card {
  position: relative; display: inline-grid; place-items: center; flex: none; width: 54px; aspect-ratio: 5 / 7; border-radius: 9px; overflow: hidden;
  border: 2px solid var(--shop-accent); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); container-type: inline-size; isolation: isolate;
}
.cx-tilt-l { transform: rotate(-9deg) translateX(8px); }
.cx-tilt-r { transform: rotate(8deg) translateX(-8px) translateY(4px); z-index: 1; }
.cx-pv-cards .cx-card + .cx-card { margin-left: -10px; }
.cx-mini { width: 34px; }

/* Dos : liseré intérieur, motif (.cx-pat), emblème (.cx-em) */
.cx-card-back::before { content: ""; position: absolute; inset: 7%; z-index: 1; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--cx-emblem, var(--shop-accent)) 45%, transparent); pointer-events: none; }
.cx-pat { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.cx-pat--grid { background: linear-gradient(var(--p) 1px, transparent 1px) 0 0 / var(--s) var(--s), linear-gradient(90deg, var(--p) 1px, transparent 1px) 0 0 / var(--s) var(--s); }
.cx-pat--grid.is-3d { inset: 42% -45% 0; transform: perspective(42px) rotateX(48deg); transform-origin: 50% 100%; -webkit-mask: linear-gradient(to top, #000 30%, transparent); mask: linear-gradient(to top, #000 30%, transparent); }
.cx-pat--scanlines { background: repeating-linear-gradient(0deg, var(--p) 0 1px, transparent 1px var(--s)); }
.cx-pat--stripes { background: repeating-linear-gradient(var(--ang), var(--p) 0 calc(var(--s) / 2), transparent 0 var(--s)); }
.cx-pat--rings { background: repeating-radial-gradient(circle at 50% 50%, transparent 0 calc(var(--s) - 1.5px), var(--p) calc(var(--s) - 1.5px) var(--s)); }
.cx-pat--circuit {
  background: var(--p); /* reflet : ::before déplacé (transform), voir .cx-a--trace-flow */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M0 6h7l4 4h6M17 10v14M6 24v-8l-3-3H0M24 18h-5M12 0v4'/%3E%3Ccircle cx='17' cy='10' r='1.8' fill='%23000'/%3E%3Ccircle cx='6' cy='16' r='1.8' fill='%23000'/%3E%3Ccircle cx='19' cy='18' r='1.5' fill='%23000'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M0 6h7l4 4h6M17 10v14M6 24v-8l-3-3H0M24 18h-5M12 0v4'/%3E%3Ccircle cx='17' cy='10' r='1.8' fill='%23000'/%3E%3Ccircle cx='6' cy='16' r='1.8' fill='%23000'/%3E%3Ccircle cx='19' cy='18' r='1.5' fill='%23000'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s);
}
.cx-pat--hex {
  background: var(--p);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13.86 24' fill='none' stroke='%23000' stroke-width='1.1'%3E%3Cpath d='M0 4l6.93-4 6.93 4M0 4v8l6.93 4 6.93-4M6.93 16v8'/%3E%3C/svg%3E") 0 0 / calc(var(--s) * .866) calc(var(--s) * 1.5);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13.86 24' fill='none' stroke='%23000' stroke-width='1.1'%3E%3Cpath d='M0 4l6.93-4 6.93 4M0 4v8l6.93 4 6.93-4M6.93 16v8'/%3E%3C/svg%3E") 0 0 / calc(var(--s) * .866) calc(var(--s) * 1.5);
}
.cx-pat--noise {
  background: color-mix(in srgb, var(--p) 100%, #fff 30%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.4 -1.1'/%3E%3C/filter%3E%3Crect width='60' height='60' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 60px 60px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.4 -1.1'/%3E%3C/filter%3E%3Crect width='60' height='60' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 60px 60px;
  opacity: .9;
}
.cx-em { position: relative; z-index: 2; display: grid; place-items: center; line-height: 1; pointer-events: none; }
.cx-em--monogram, .cx-em--glyph {
  font: 900 calc(var(--es) * 112cqw) / 1 var(--shop-font-display); color: var(--em);
  text-shadow: 0 0 4px var(--emg), 0 0 12px var(--emg);
}
.cx-em--glyph { font-family: system-ui, sans-serif; }
.cx-em.is-split { text-shadow: calc(-.035 * 100cqw) 0 var(--s1), calc(.035 * 100cqw) 0 var(--s2), 0 0 10px var(--s1); }
.cx-em--eye {
  width: calc(var(--es) * 150cqw); aspect-ratio: 2 / 1.1; border-radius: 50%; border: max(1.5px, 3cqw) solid var(--em);
  background: radial-gradient(circle, var(--em) 0 14%, transparent 16% 30%, var(--em) 32% 40%, transparent 42%);
  filter: drop-shadow(0 0 4px var(--emg));
}
.cx-em--core {
  width: calc(var(--es) * 100cqw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--em) 0 46%, color-mix(in srgb, var(--halo) 70%, #fff) 58%, var(--halo) 66%, transparent 72%);
  box-shadow: 0 0 calc(var(--es) * 30cqw) var(--emg), 0 0 calc(var(--es) * 70cqw) color-mix(in srgb, var(--halo) 60%, transparent);
}
.cx-em--sun { width: calc(var(--es) * 100cqw); aspect-ratio: 1; filter: drop-shadow(0 0 5px var(--emg)); }
.cx-em--sun::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(180deg, #FFF3B0, var(--em) 45%, #FF2BD1);
  -webkit-mask: linear-gradient(#000 0 50%, transparent 0 56%, #000 0 64%, transparent 0 69%, #000 0 76%, transparent 0 81%, #000 0 87%, transparent 0 91%, #000 0);
  mask: linear-gradient(#000 0 50%, transparent 0 56%, #000 0 64%, transparent 0 69%, #000 0 76%, transparent 0 81%, #000 0 87%, transparent 0 91%, #000 0);
}
/* Animations des dos (clés de NeonSkins.ANIMATIONS) */
.cx-a--neon-pulse .cx-em { animation: cx-em-pulse 2.6s ease-in-out infinite; }
/* Fluidité (docs/fluidite.md) : plus aucun background-position animé. Le motif / le reflet est porté par un
   pseudo-élément qu'on DÉPLACE (transform), le masque et l'arrondi restent sur .cx-pat (qui le découpe). */
.cx-a--trace-flow .cx-pat--circuit::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -100%; width: 100%;
  background: linear-gradient(115deg, transparent 14%, color-mix(in srgb, var(--p) 30%, #fff) 50%, transparent 86%);
  animation: cx-trace 1.8s linear infinite;
}
.cx-a--grid-scroll .cx-pat--grid { background: none; overflow: hidden; }
.cx-a--grid-scroll .cx-pat--grid::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--s)); bottom: 0;
  background: linear-gradient(var(--p) 1px, transparent 1px) 0 0 / var(--s) var(--s), linear-gradient(90deg, var(--p) 1px, transparent 1px) 0 0 / var(--s) var(--s);
  animation: cx-grid-scroll 1.4s linear infinite;
}
.cx-a--scan-sweep::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 24%; pointer-events: none;
  background: linear-gradient(transparent, color-mix(in srgb, var(--cx-c, var(--shop-accent)) 45%, transparent), transparent);
  animation: cx-sweep 2.2s linear infinite;
}
.cx-a--glitch-rgb .cx-em { animation: cx-glitch 3s steps(1) infinite; }
/* Holo : voile irisé qui glisse (transform + opacité) au lieu d'un filtre hue-rotate animé sur toute la carte */
.cx-a--holo-shift::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: 3; width: 300%; pointer-events: none;
  background: linear-gradient(90deg, #FF2BD6, #19F0FF, #A6FF00, #FFC23D, #FF2BD6) 0 0 / 33.3334% 100% repeat-x;
  opacity: .3; animation: cx-hue 5s linear infinite;
}
.cx-a--vortex-spin .cx-pat { animation: cx-rings 2.4s ease-in-out infinite alternate; }
.cx-a--vortex-spin .cx-em { animation: cx-em-pulse 2.4s ease-in-out infinite; }

/* Faces : coin (valeur + glyphe), symbole central de la couleur, surcouche */
.cx-card-face {
  color: var(--shop-text); border-color: var(--m, var(--cx-accent, var(--shop-accent)));
  box-shadow: 0 0 calc(var(--gl, .6) * 14px) color-mix(in srgb, var(--m, var(--shop-accent)) 65%, transparent), inset 0 0 calc(var(--gl, .6) * 10px) color-mix(in srgb, var(--m, var(--shop-accent)) 30%, transparent), 0 6px 16px rgba(0, 0, 0, .45);
  font-family: var(--shop-font-display);
}
.cx-crn {
  position: absolute; top: 5%; left: 8%; z-index: 2; display: flex; flex-direction: column; align-items: center;
  font-style: normal; font-weight: 800; font-size: 19cqw; line-height: .95; color: var(--m);
}
.cx-crn small { font-size: .78em; }
.cx-crn--tag .cx-crn { top: 0; left: 0; padding: 4cqw 7cqw 5cqw 6cqw; color: var(--d); background: var(--m); border-radius: 0 0 9cqw 0; }
.cx-ctr { position: relative; z-index: 1; display: grid; place-items: center; width: 70cqw; aspect-ratio: 1; }
.cx-ctr > * { grid-area: 1 / 1; text-decoration: none; line-height: 1; }
.cx-ctr s { font-size: 66cqw; font-family: system-ui, sans-serif; color: var(--m); opacity: .9; filter: drop-shadow(0 0 4px var(--g)); }
.cx-ctr b { font-size: 30cqw; font-weight: 900; color: var(--shop-white); text-shadow: 0 0 3px var(--d), 0 1px 2px var(--d), 0 0 6px var(--d); }
.cx-ctr--glyph .cx-ctr::before {
  content: ""; position: absolute; inset: 10%; transform: rotate(45deg); border: max(1px, 2cqw) solid color-mix(in srgb, var(--m) 70%, transparent);
  border-radius: 8cqw; background: color-mix(in srgb, var(--m) 12%, transparent); box-shadow: 0 0 8px color-mix(in srgb, var(--m) 50%, transparent);
}
.cx-ctr--outline .cx-ctr s { color: transparent; -webkit-text-stroke: max(1px, 2.2cqw) var(--m); filter: drop-shadow(0 0 3px var(--g)); }
.cx-ctr--outline .cx-ctr b, .cx-ctr--pixel .cx-ctr b { color: var(--m); text-shadow: 0 0 6px var(--g); }
.cx-ctr--pixel .cx-ctr s { font-family: ui-monospace, Consolas, monospace; filter: drop-shadow(2cqw 0 0 var(--d)) drop-shadow(0 2cqw 0 var(--d)); }
.cx-ctr--pixel .cx-ctr b { font-size: 30cqw; letter-spacing: -1cqw; }
.cx-ctr--prism .cx-ctr s { color: transparent; background: var(--wild); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 4px var(--g)); }
.cx-ctr--chrome .cx-ctr s { color: transparent; background: linear-gradient(180deg, #FFFFFF, #A9B4C8 44%, #F2F6FC 54%, #5F6B80); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 3px var(--m)); }
.cx-font--mono .cx-crn, .cx-font--mono .cx-ctr b { font-family: ui-monospace, Consolas, monospace; }
.cx-font--pixel .cx-crn, .cx-font--pixel .cx-ctr b { font-family: ui-monospace, Consolas, monospace; font-weight: 900; text-transform: uppercase; }
.cx-card-face[class*="cx-ov--"]::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; }
.cx-ov--scanlines::after { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px); }
/* Foil : grand calque irisé DÉPLACÉ (transform), sans mix-blend-mode (mélange recalculé à chaque image) */
.cx-card-face.cx-ov--foil::after { inset: -60%; background: var(--wild); opacity: .3; animation: cx-foil 4s ease-in-out infinite alternate; }
/* Reflet chromé : bande blanche d'un calque 2,6× plus large qui traverse la carte (transform) */
.cx-card-face.cx-ov--reflection::after { inset: 0 auto 0 0; width: 260%; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 48%, transparent 60%); animation: cx-reflect 3.2s ease-in-out infinite; }

/* ---------- Tables NÉON ---------- */
.cx-pv-table { min-height: 0; }
.cx-table {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--cx-ring) 70%, transparent); box-shadow: inset 0 0 24px color-mix(in srgb, var(--cx-ring) 25%, transparent);
}
.cx-table > i { position: absolute; pointer-events: none; }
.cx-tb-floor { left: -50%; right: -50%; bottom: 0; height: 58%; transform: perspective(110px) rotateX(58deg); transform-origin: 50% 100%; -webkit-mask: linear-gradient(to top, #000 25%, transparent); mask: linear-gradient(to top, #000 25%, transparent); }
.cx-tb-floor--grid { overflow: hidden; }
.cx-tb-floor--grid::before { /* quadrillage qui défile : calque déplacé d'une maille (transform), boucle sans couture */
  content: ""; position: absolute; left: 0; right: 0; top: -14px; bottom: 0;
  background: linear-gradient(var(--fl) 1px, transparent 1px) 0 0 / 18px 14px, linear-gradient(90deg, var(--fl) 1px, transparent 1px) 0 0 / 18px 14px;
  animation: cx-floor 2.2s linear infinite;
}
.cx-tb-floor--hex {
  background: var(--fl);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13.86 24' fill='none' stroke='%23000' stroke-width='1.1'%3E%3Cpath d='M0 4l6.93-4 6.93 4M0 4v8l6.93 4 6.93-4M6.93 16v8'/%3E%3C/svg%3E") 0 0 / 14px 24px, linear-gradient(to top, #000 25%, transparent);
  -webkit-mask-composite: source-in; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13.86 24' fill='none' stroke='%23000' stroke-width='1.1'%3E%3Cpath d='M0 4l6.93-4 6.93 4M0 4v8l6.93 4 6.93-4M6.93 16v8'/%3E%3C/svg%3E") 0 0 / 14px 24px, linear-gradient(to top, #000 25%, transparent);
  mask-composite: intersect;
}
.cx-tb-amb { inset: 0; }
.cx-tb-amb--particles, .cx-tb-amb--stars { inset: -24px; }
.cx-tb-amb--particles {
  background:
    radial-gradient(circle, var(--a1) 0 1.5px, transparent 2.5px) 0 0 / 37px 29px,
    radial-gradient(circle, var(--a2) 0 1.2px, transparent 2.2px) 11px 13px / 43px 31px;
  opacity: .8; animation: cx-drift 9s linear infinite;
}
.cx-tb-amb--stars {
  background:
    radial-gradient(circle, var(--a1) 0 .8px, transparent 1.4px) 0 0 / 23px 19px,
    radial-gradient(circle, var(--a2) 0 1px, transparent 1.7px) 9px 7px / 31px 27px;
  animation: cx-twinkle 3.2s ease-in-out infinite alternate, cx-drift 18s linear infinite;
}
.cx-tb-amb--skyline {
  inset: auto 0 0; height: 46%;
  background:
    radial-gradient(circle, var(--a1) 0 1px, transparent 1.5px) 0 0 / 7px 8px,
    linear-gradient(#090716, #090716) 2% 100% / 14% 70% no-repeat, linear-gradient(#0C0920, #0C0920) 18% 100% / 12% 100% no-repeat,
    linear-gradient(#090716, #090716) 33% 100% / 16% 56% no-repeat, linear-gradient(#0C0920, #0C0920) 52% 100% / 10% 88% no-repeat,
    linear-gradient(#090716, #090716) 66% 100% / 15% 64% no-repeat, linear-gradient(#0C0920, #0C0920) 84% 100% / 14% 92% no-repeat,
    linear-gradient(#090716, #090716) 100% 100% / 8% 50% no-repeat;
  filter: drop-shadow(0 -1px 0 color-mix(in srgb, var(--a2) 70%, transparent));
}
.cx-tb-amb--skyline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220%;
  background: repeating-linear-gradient(105deg, transparent 0 9px, color-mix(in srgb, var(--a2) 35%, transparent) 9px 10px); opacity: .5; animation: cx-rain .8s linear infinite;
}
.cx-tb-amb--rings { background: repeating-radial-gradient(circle at 50% 50%, transparent 0 13px, color-mix(in srgb, var(--a1) 55%, transparent) 13px 14.5px, transparent 14.5px 22px); animation: cx-beat 1s ease-in-out infinite; }
.cx-tb-amb--nebula {
  inset: -20%;
  /* Fluidité : plus de filter: blur sous l'animation (flou recalculé à chaque image) ; la douceur vient des dégradés
     (paliers intermédiaires, bord plus loin), le nuage ne fait que glisser (transform). */
  background:
    radial-gradient(46% 41% at 30% 40%, color-mix(in srgb, var(--a1) 52%, transparent), color-mix(in srgb, var(--a1) 22%, transparent) 45%, transparent 78%),
    radial-gradient(41% 46% at 70% 60%, color-mix(in srgb, var(--a2) 48%, transparent), color-mix(in srgb, var(--a2) 20%, transparent) 45%, transparent 78%),
    radial-gradient(36% 36% at 55% 25%, color-mix(in srgb, var(--a3) 38%, transparent), color-mix(in srgb, var(--a3) 15%, transparent) 45%, transparent 78%);
  animation: cx-nebula 7s ease-in-out infinite alternate;
}
.cx-tb-vig { inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(0, 0, 0, var(--vig, .5)) 100%); }
.cx-tb-core {
  left: 50%; top: 50%; width: 46%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  border: 1.5px solid var(--cx-ring); box-shadow: 0 0 12px var(--ring-g), inset 0 0 12px var(--ring-g);
}
.cx-tb-cards { position: absolute; left: 50%; top: 50%; z-index: 2; display: flex; translate: -50% -50%; }
.cx-tb-cards .cx-card + .cx-card { margin-left: -8px; }

/* Pions animés */
.cx-pawn { overflow: visible; }
.cx-rotor { transform-box: fill-box; transform-origin: center; animation: cx-rotor .35s linear infinite; }
.cx-flame { transform-box: fill-box; transform-origin: top; animation: cx-flame .18s ease-in-out infinite alternate; }
.cx-underglow, .cx-glow { animation: cx-breathe 1.8s ease-in-out infinite; }
.cx-trail { animation: cx-breathe 1.1s ease-in-out infinite; }

/* ======================= Effets plein écran ======================= */
.cx-layer { position: fixed; inset: 0; z-index: 120; overflow: hidden; pointer-events: none; }
.cx-layer i, .cx-layer b { position: absolute; display: block; }
.cx-spark {
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 10px var(--c), 0 0 18px var(--c); animation: cx-spark 1.1s var(--shop-ease) forwards;
}
.cx-shard {
  top: -30px; width: 12px; height: 18px; clip-path: polygon(50% 0, 100% 40%, 60% 100%, 0 55%);
  background: linear-gradient(135deg, var(--c), var(--c2)); filter: drop-shadow(0 0 6px var(--c)); animation: cx-fall 1.8s linear forwards;
}
.cx-streak {
  width: 46vmax; height: 2px; transform-origin: 0 50%; background: linear-gradient(90deg, transparent, var(--c));
  transform: rotate(var(--a)) scaleX(0); animation: cx-warp .9s cubic-bezier(.5, 0, .9, .4) forwards;
}
.cx-flash { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--shop-white); box-shadow: 0 0 60px 30px var(--shop-white); animation: cx-flash .7s ease-out forwards; }
.cx-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid var(--c); box-shadow: 0 0 16px var(--c); animation: cx-ring .7s ease-out forwards; }
.cx-ring-2 { animation-delay: .12s; opacity: 0; }
.cx-vortex {
  width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--c), transparent 40%, var(--c2), transparent 75%);
  -webkit-mask: radial-gradient(circle, transparent 28%, #000 30%); mask: radial-gradient(circle, transparent 28%, #000 30%);
  animation: cx-vortex .9s ease-in forwards;
}
.cx-arc { width: 70px; height: 3px; transform-origin: 0 50%; transform: rotate(var(--a)); background: var(--c); box-shadow: 0 0 10px var(--c); clip-path: polygon(0 0, 30% 100%, 55% 0, 80% 100%, 100% 0, 100% 100%, 0 100%); animation: cx-arc .45s steps(3) forwards; }
.cx-glitching { animation: cx-glitch .14s steps(2) 8; }

/* ======================= Pièces premium d'avatar (js/avatar.js) ======================= */
.av-neon { filter: drop-shadow(0 0 4px var(--av-glow, var(--shop-accent))) drop-shadow(0 0 10px var(--av-glow, var(--shop-accent))); }
.av-neon-edge, .av-neon-line, .av-led { filter: drop-shadow(0 0 3px currentColor); }
.av-anim .av-led { animation: cx-breathe 1.6s ease-in-out infinite; }
.av-anim .av-scan { animation: av-scan 1.8s ease-in-out infinite alternate; }
.av-anim .av-vox path { transform-box: fill-box; transform-origin: center; animation: av-vox .5s ease-in-out infinite alternate; }
.av-anim .av-vox path:nth-child(2n) { animation-delay: -.25s; }
.av-anim .av-vox path:nth-child(3n) { animation-delay: -.4s; }
.av-anim .av-halo { transform-box: fill-box; transform-origin: center; animation: av-spin 6s linear infinite; }
.av-anim .av-aura { animation: cx-breathe 2.4s ease-in-out infinite; }
.av-anim .av-ping { transform-box: fill-box; transform-origin: center; animation: av-ping 1.6s ease-out infinite; }
.av-anim .av-float { animation: av-float 2.2s ease-in-out infinite; }
.av-anim .av-scanbar { animation: av-scanbar 2.6s linear infinite; }
.av-anim .av-glitch { animation: cx-glitch 2.8s steps(1) infinite; }
.av-anim .av-glitch-bars { animation: av-bars 2.2s steps(1) infinite; }

/* ======================= Variantes de règles (tous les jeux) : accroche + règle complète ======================= */
.shop-grid--modes { grid-template-columns: minmax(0, 1fr); }
.shop-card--mode { flex-direction: row; }
.shop-card--mode .shop-card-pv { flex: none; width: 72px; aspect-ratio: auto; padding: 6px; border-bottom: 0; border-right: 1px solid var(--shop-line); }
.shop-card--mode .cx-pv { min-height: 56px; }
.shop-card--mode .cx-pv-mode .cx-pv-icon { font-size: 34px; }
.shop-card--mode .shop-card-body { min-width: 0; }
.shop-card-hook { margin: 0; font-size: 13px; font-weight: 800; line-height: 1.3; color: var(--shop-accent-text); }
/* Chiffre-choc d'un contenu jouable (preview.badge : mesuré, comparé au contenu classique) : texte statique, aucune animation */
.shop-card-badge, .shop-show-badge, .shop-map-badge {
  align-self: flex-start; max-width: 100%; margin: 0; padding: 3px 10px; border-radius: 12px; /* lisible aussi sur 2 lignes */
  font-size: 12px; font-weight: 800; line-height: 1.3; color: var(--shop-text); overflow-wrap: anywhere;
  background: color-mix(in srgb, var(--m1, var(--shop-accent)) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--m1, var(--shop-accent)) 55%, transparent);
}
.shop-show-badge { padding: 4px 12px; font-size: 14px; }
.shop-map-badge { display: inline-block; margin: 0 0 10px; font-size: 13px; }
.shop-card-rule { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--shop-muted); }
.shop-tag--origin { color: var(--shop-bg); background: linear-gradient(115deg, var(--shop-accent), var(--shop-accent-3) 55%, var(--shop-accent-2)); }
.shop-tag--house { color: var(--shop-text); background: color-mix(in srgb, var(--shop-white) 8%, transparent); border: 1px solid var(--shop-line); }

/* ---------- Plateaux jouables de PROPRIO 2099 : cartes larges + fiche ---------- */
/* Mini-cartes = SVG statiques (aucune animation) : rien à repeindre une fois affichées. */
.shop-grid.shop-grid--maps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.shop-tag--diff s, .shop-map-stars s { text-decoration: none; opacity: .28; }
.shop-card--map { flex-direction: row; contain-intrinsic-size: auto 190px; }
.shop-card-mapbtn { position: relative; flex: none; width: 128px; cursor: pointer; border-right: 1px solid var(--shop-line); }
.shop-card--map .shop-card-pv { height: 100%; aspect-ratio: auto; padding: 8px; border-bottom: 0; }
.shop-card--map .shop-card-body { min-width: 0; }
.shop-pv-cta {
  position: absolute; left: 50%; bottom: 6px; translate: -50% 0; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  font-size: 10.5px; font-weight: 800; color: var(--shop-text); background: color-mix(in srgb, var(--shop-bg) 78%, transparent); border: 1px solid var(--shop-line);
}
.shop-card-mapbtn:hover .shop-pv-cta { color: var(--shop-bg); background: var(--shop-accent); border-color: var(--shop-accent); }
.shop-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 11.5px; font-weight: 700; color: var(--shop-muted); }
.shop-tag--diff { color: var(--shop-warn-text); background: color-mix(in srgb, var(--shop-warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--shop-warn) 40%, transparent); letter-spacing: .02em; }
.shop-btn--sheet { flex: 0 1 auto; }
.cx-pv-map { min-height: 0; }
.cx-pv-map svg, .cx-th > svg.cx-map { width: 100%; height: 100%; max-height: 100%; }
.cx-map { display: block; }
.cx-map text { font-family: var(--shop-font); }
/* Textes des mini-cartes et aperçus SVG (glyphes emoji, chiffres) : rendu « géométrique ». Sans lui, Chrome crée une
   police par taille AFFICHÉE : chaque mini-carte (chacune à sa propre échelle) refaisait la mise en forme de ses
   glyphes (≈ 50 ms pour 20 emoji, mobile moyen ; image de 1,1 s à l'ouverture du rayon Proprio) ; avec, la police est
   partagée entre toutes les échelles (≈ 3 ms). Aspect identique. */
#screen-shop svg text, .cx-map text { text-rendering: geometricPrecision; }
.shop-banner--note { border-color: color-mix(in srgb, var(--shop-ok) 55%, transparent); background: color-mix(in srgb, var(--shop-ok) 9%, var(--shop-glass)); }

/* Fiche (fenêtre) : défile si l'écran est petit */
.shop-dialog--map { width: min(100%, 560px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; text-align: left; }
.shop-dialog--map .shop-dialog-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-right: 4px; }
.shop-map-rar { font-size: 10px; --r: var(--shop-r-commun); }
.shop-map-rar.r-rare { --r: var(--shop-r-rare); }
.shop-map-rar.r-epique { --r: var(--shop-r-epique); }
.shop-map-rar.r-legendaire { --r: var(--shop-r-legendaire); }
.shop-map-hero {
  display: grid; place-items: center; margin: 2px 0 8px; padding: 8px; border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--m1) 18%, transparent), transparent 70%), color-mix(in srgb, var(--shop-bg) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--m1) 35%, var(--shop-line));
}
.shop-map-hero svg { width: min(100%, 300px); height: auto; }
.shop-map-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 11.5px; color: var(--shop-muted); }
.shop-map-legend li { display: inline-flex; align-items: center; gap: 5px; }
.shop-map-key { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--c, var(--shop-accent)); }
.shop-map-key--portal { --c: var(--m2); border-top-style: dashed; }
.shop-map-key--hot { width: 10px; height: 10px; border: 1.5px solid var(--m2); border-radius: 2px; }
.shop-map-key--up { --c: var(--m1); }
.shop-map-key--down { --c: var(--m2); border-top-style: dashed; }
.shop-map-key--storm { width: 14px; height: 10px; border: 1px solid #FF6A3D; border-radius: 2px; background: rgba(255, 59, 47, .4); }
.shop-map-key--junction { width: 12px; height: 12px; border: 1.5px solid var(--m1); border-radius: 50%; }
.shop-map-q { color: var(--m1, var(--shop-accent)); }
.shop-dialog-body .shop-map-hook { margin: 4px 0; font-family: var(--shop-font-display); font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--shop-accent-text); }
.shop-dialog-body .shop-map-pitch { margin: 4px 0 8px; font-size: 13.5px; color: var(--shop-text); }
.shop-map-h { margin: 12px 0 6px; font-family: var(--shop-font-display); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--shop-muted); }
.shop-map-changes { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.45; }
.shop-map-changes li::marker { color: var(--shop-accent-text); }
.shop-map-facts, .shop-map-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 10px 0 0; }
.shop-map-facts > div, .shop-map-stats > div { min-width: 0; padding: 7px 9px; border-radius: 10px; background: color-mix(in srgb, var(--shop-white) 5%, transparent); border: 1px solid var(--shop-line); }
.shop-map-facts .shop-map-wide { grid-column: 1 / -1; }
.shop-map-facts dt, .shop-map-stats dt { font-size: 11px; font-weight: 700; color: var(--shop-muted); }
.shop-map-facts dd, .shop-map-stats dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 800; line-height: 1.3; }
.shop-map-facts small, .shop-map-stats small { font-size: 11px; font-weight: 600; color: var(--shop-muted); }
.shop-map-stars { color: var(--shop-warn-text); letter-spacing: .05em; }
.shop-dialog-body .shop-map-sizes-t { margin: 10px 0 4px; font-size: 12px; color: var(--shop-muted); }
.shop-map-sizes { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.shop-map-district {
  display: grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px;
  font-size: 12px; font-weight: 900; color: #0B0B18; background: var(--d); box-shadow: 0 0 8px color-mix(in srgb, var(--d) 45%, transparent);
}
.shop-dialog-body .shop-map-foot { margin: 8px 0 0; font-size: 11px; color: var(--shop-muted); }
.shop-dialog-body .shop-map-own { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; font-size: 13px; background: color-mix(in srgb, var(--shop-accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--shop-accent) 30%, transparent); }
.shop-dialog-body .shop-map-own.is-owned { color: var(--shop-ok-text); background: color-mix(in srgb, var(--shop-ok) 8%, transparent); border-color: color-mix(in srgb, var(--shop-ok) 35%, transparent); }
.shop-dialog-body .shop-map-trial-note { margin: 8px 0 0; font-size: 12.5px; color: var(--shop-muted); }
.shop-dialog--map .shop-dialog-actions {
  position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); flex-direction: row; flex-wrap: wrap; margin: 14px -18px calc(-18px - env(safe-area-inset-bottom));
  padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--shop-bg-2); border-top: 1px solid var(--shop-line); box-shadow: 0 -10px 18px rgba(3, 4, 14, .55);
}
.shop-dialog--map .shop-dialog-actions .shop-btn { flex: 1 1 40%; min-height: 42px; white-space: normal; line-height: 1.15; text-align: center; }
.shop-map-glyph { display: inline-grid; place-items: center; min-width: 16px; font-size: 13px; line-height: 1; color: var(--m1, var(--shop-accent)); }
.cx-map--fallback { display: block; width: 100%; height: 100%; }

/* ======================= Ce qui CHANGE LA PARTIE (contenus jouables + variantes, docs/contenus-jouables.md) ======================= */
/* Pastille « pour toute la table », bouton Essayer, groupes du rayon d'un jeu. Tout est statique (aucune animation). */
.shop-tag--table { color: var(--shop-ok-text); background: color-mix(in srgb, var(--shop-ok) 10%, transparent); border: 1px solid color-mix(in srgb, var(--shop-ok) 42%, transparent); letter-spacing: .03em; }
.shop-btn--try { flex: 0 1 auto; color: var(--shop-text); background: color-mix(in srgb, var(--shop-accent-3) 22%, transparent); border: 1px solid color-mix(in srgb, var(--shop-accent-3) 75%, transparent); }
.shop-btn--try:hover { box-shadow: 0 0 14px color-mix(in srgb, var(--shop-accent-3) 55%, transparent); }
.shop-btn--try.shop-btn--primary { color: var(--shop-bg); background: var(--shop-accent); border-color: var(--shop-accent); box-shadow: var(--shop-glow); }
.shop-card-rule { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-modebtn { width: 72px; }
.shop-card--mode .shop-card-modebtn .shop-card-pv { width: 100%; height: 100%; border-right: 0; }
.shop-group { margin-top: 22px; }
.shop-group-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-family: var(--shop-font-display); font-size: 19px; font-weight: 800; line-height: 1.2; }
.shop-group-badge { padding: 3px 9px; border-radius: 999px; font-family: var(--shop-font); font-size: 11px; font-weight: 800; letter-spacing: .03em; color: var(--shop-bg); background: var(--shop-ok); }
.shop-group-badge--me { color: var(--shop-text); background: color-mix(in srgb, var(--shop-white) 9%, transparent); border: 1px solid var(--shop-line); }
.shop-group-note { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--shop-muted); }
.shop-group--play { padding: 12px 8px 14px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--shop-ok) 28%, var(--shop-line)); background: color-mix(in srgb, var(--shop-ok) 4%, transparent); }
/* Mobile : « 📋 » seul sur les cartes (la mini-carte ouvre aussi la fiche) : Essayer + fiche tiennent sur une ligne */
@media (max-width: 639.98px) {
  .shop-card .shop-btn--sheet { flex: 0 0 auto; min-width: 42px; padding: 0 9px; }
  .shop-card .shop-btn--sheet .shop-btn-txt { display: none; }
  .shop-show-art svg { max-height: 190px; }
}
.shop-group .shop-section { margin-top: 14px; }
.shop-group .shop-section-title { font-size: 15.5px; }

/* ---------- Vitrine d'un rayon de jeu : le contenu ou la variante à découvrir (mobile d'abord) ---------- */
.shop-show {
  --m1: var(--shop-accent); --m2: var(--shop-accent-2); --r: var(--shop-r-commun);
  position: relative; display: grid; gap: 10px; margin: 14px 0 0; padding: 12px; overflow: hidden; border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--m1) 55%, var(--shop-line));
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--m1) 20%, transparent), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--m2) 16%, transparent), transparent 60%),
    var(--shop-glass);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--m1) 16%, transparent), 0 14px 34px rgba(0, 0, 0, .45);
  contain: layout paint;
}
.shop-show.r-rare { --r: var(--shop-r-rare); }
.shop-show.r-epique { --r: var(--shop-r-epique); }
.shop-show.r-legendaire { --r: var(--shop-r-legendaire); }
.shop-show-art {
  display: grid; place-items: center; width: 100%; min-height: 120px; padding: 8px; border-radius: 16px; cursor: pointer; font: inherit; color: inherit;
  background: color-mix(in srgb, var(--shop-bg) 70%, transparent); border: 1px solid var(--shop-line); transition: transform .15s var(--shop-ease);
}
.shop-show-art:active { transform: scale(.98); transition-duration: .06s; }
.shop-show-art svg { display: block; width: 100%; max-width: 380px; height: auto; max-height: 230px; }
.shop-show-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.shop-show-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--m1); }
.shop-show-kicker b { color: var(--shop-ok-text); white-space: nowrap; }
.shop-show-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-family: var(--shop-font-display); font-size: 21px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.shop-show-name .shop-rarity { font-size: 10px; }
.shop-show-hook { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--shop-text); }
.shop-show-pitch { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 13px; line-height: 1.45; color: var(--shop-muted); }
.shop-show-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.shop-show-actions .shop-btn--try { flex: 1 1 100%; min-height: 46px; font-size: 16px; }
.shop-show-actions .shop-btn--sheet { flex: 0 1 auto; }
.shop-show-note { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--shop-muted); }

/* ---------- Fiche d'une variante : exemple illustré + règle ---------- */
.shop-ex { margin: 2px 0 10px; padding: 0; }
.cx-scene { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--shop-line); }
.cx-scene text { font-family: var(--shop-font); }
.shop-ex figcaption { margin: 6px 4px 0; font-size: 12.5px; line-height: 1.4; text-align: center; color: var(--shop-muted); }
.shop-mode-rule { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
p.shop-mode-rule { padding-left: 0; }
.shop-mode-rule li + li { margin-top: 4px; }
.shop-mode-rule li::marker { color: var(--shop-accent-text); }
.shop-dialog-body .shop-mode-origin, .shop-dialog-body .shop-mode-note, .shop-dialog-body .shop-mode-how { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--shop-muted); }
.shop-dialog-body .shop-mode-origin b { color: var(--shop-text); }
.shop-dialog-body .shop-mode-note { color: var(--shop-warn-text); }
.shop-dialog-body .shop-mode-how b { color: var(--shop-accent-text); }
/* Seul l'élément mis en avant de l'exemple pulse (opacité), et seulement dans la fenêtre ouverte */
.shop-dialog .cx-ex-hl { animation: cx-ex-pulse 1.8s ease-in-out infinite; }
@keyframes cx-ex-pulse { 50% { opacity: .45; } }

/* ======================= PETITS VAISSEAUX : skins vectoriels (shared/vaisseaux-skins.js) ======================= */
/* Classes .vxs-* posées par VaisseauxSkins.shipSVG / dieSVG / boardSVG / boardBackgroundSVG / fxPreviewSVG :
   utilisables partout (boutique ET plateau de jeu, ce fichier est chargé sur toutes les pages).
   Effets plein écran de Potos.Cosmetics.playShipFx : .vxs-p, .vxs-trail, .vxs-beam… dans un .cx-layer. */
.vxs-ship, .vxs-die, .vxs-board, .vxs-fxpv { overflow: visible; }
.vxs-body { transform-box: fill-box; transform-origin: 50% 50%; }
.vxs-a-hover .vxs-body, .vxs-a-lights .vxs-body, .vxs-a-spin .vxs-body, .vxs-a-flare .vxs-body { animation: vxs-hover 2.6s ease-in-out infinite; }
.vxs-a-rotor .vxs-body { animation: vxs-hover 1.1s ease-in-out infinite; }
.vxs-a-wobble .vxs-body { animation: vxs-wobble 2.4s ease-in-out infinite; }
.vxs-a-ripple .vxs-body { animation: vxs-ripple 1.8s ease-in-out infinite; }
.vxs-a-flare .vxs-part--wing, .vxs-a-flare .vxs-part--tail { animation: vxs-flare 1.4s ease-in-out infinite; }
.vxs-part.vxs-a-blink { animation: vxs-blink 1.2s steps(1) infinite; }
.vxs-part.vxs-a-pulse { animation: vxs-pulse 1.8s ease-in-out infinite; }
.vxs-part.vxs-a-spin { transform-box: fill-box; transform-origin: 50% 50%; animation: vxs-spin 4s linear infinite; }
.vxs-part.vxs-a-rotor { transform-box: fill-box; transform-origin: 50% 50%; animation: vxs-rotor .28s linear infinite; }
.vxs-part.vxs-delay { animation-delay: -.6s; }
.vxs-flame { transform-box: fill-box; transform-origin: 50% 0; animation: vxs-flame .16s ease-in-out infinite alternate; }
.vxs-aura { animation: vxs-pulse 1.6s ease-in-out infinite; }
/* Dé : animation PENDANT le lancer, durée = VaisseauxEngine.ANIM.roll (850 ms), identique pour tous les skins */
.vxs-rolling { transform-origin: 50% 50%; }
.vxs-rolling.vxs-roll--tumble { animation: vxs-tumble .85s cubic-bezier(.2, .7, .3, 1) both; }
.vxs-rolling.vxs-roll--step { animation: vxs-step .85s steps(6) both; }
.vxs-rolling.vxs-roll--smoke { animation: vxs-smoke .85s ease-out both; }
.vxs-rolling.vxs-roll--pulse { animation: vxs-dpulse .85s ease-in-out both; }
.vxs-rolling.vxs-roll--superposition { animation: vxs-super .85s steps(8) both; }
.vxs-rolling.vxs-roll--superposition .vxs-die-ghost { animation: vxs-ghost .85s steps(5) both; }
/* Plateau : ambiance animée (fond seulement) */
.vxs-amb-a--twinkle .vxs-tw { animation: vxs-twinkle 2.4s ease-in-out infinite alternate; }
.vxs-amb-a--fall { animation: vxs-fall 6s linear infinite alternate; }
.vxs-amb-a--rise { animation: vxs-rise 7s linear infinite alternate; }
.vxs-amb-a--drift { animation: vxs-drift 12s ease-in-out infinite alternate; }
.vxs-amb-a--scroll { animation: vxs-scroll 2.4s linear infinite; }
.vxs-amb-a--spin { transform-box: fill-box; transform-origin: 50% 50%; animation: vxs-spin 40s linear infinite; }

/* Aperçus boutique */
.cx-pv-ship { display: flex; align-items: center; justify-content: center; gap: 6%; }
.cx-ship-main { display: grid; place-items: center; width: 58%; height: 100%; }
.cx-ship-main svg { width: min(100%, 104px); height: auto; max-height: 100%; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--vxs-sq, var(--shop-accent)) 45%, transparent)); }
.cx-ship-wing { display: flex; flex-direction: column; gap: 4px; }
.cx-ship-wing svg { display: block; width: 28px; height: 28px; }
.cx-pv-vboard svg { width: min(100%, 124px); height: auto; max-height: 100%; border-radius: 10px; box-shadow: 0 0 16px color-mix(in srgb, var(--shop-accent) 25%, transparent); }
.cx-pv-dice { display: flex; align-items: center; justify-content: center; }
.cx-die { display: grid; width: 44%; max-width: 72px; }
.cx-die svg { width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)) drop-shadow(0 0 8px color-mix(in srgb, var(--vxs-edge, var(--shop-accent)) 45%, transparent)); }
.cx-pv-dice .cx-die + .cx-die { margin-left: -4%; }
.cx-pv-vfx svg { width: min(100%, 156px); height: auto; max-height: 100%; transition: transform .25s var(--shop-ease); }
.cx-pv-vfx:hover svg, .cx-pv-vfx:focus-visible svg { transform: scale(1.05); }
.cx-pv-vx .cx-th-ico { font-size: 40px; }
.cx-th > svg.vxs-board, .cx-th > svg.vxs-fxpv { padding: 0; }

/* Effets de vol (Potos.Cosmetics.playShipFx) */
.vxs-p { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--c); box-shadow: 0 0 8px var(--c); animation: vxs-p var(--d, .8s) cubic-bezier(.15, .7, .3, 1) forwards; }
.vxs-p--spark { width: 11px; height: 3px; margin: -1.5px 0 0 -5.5px; border-radius: 2px; }
.vxs-p--dot { border-radius: 50%; }
.vxs-p--ember { border-radius: 50%; box-shadow: 0 0 10px 2px var(--c); }
.vxs-p--pixel { width: 8px; height: 8px; margin: -4px 0 0 -4px; box-shadow: none; }
.vxs-p--shard { width: 9px; height: 13px; margin: -6.5px 0 0 -4.5px; clip-path: polygon(50% 0, 100% 45%, 55% 100%, 0 55%); box-shadow: none; }
.vxs-p--star { width: 12px; height: 12px; margin: -6px 0 0 -6px; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); box-shadow: none; }
.vxs-p--ring { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: none; border: 2px solid var(--c); border-radius: 50%; }
.vxs-trail {
  height: var(--w); margin-top: calc(var(--w) / -2); transform-origin: 0 50%; transform: rotate(var(--a)); border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 70%, transparent) 55%, var(--c2));
  filter: drop-shadow(0 0 6px var(--c)); animation: vxs-fade var(--d) ease-out forwards;
}
.vxs-trail--comet { border-radius: 0; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.vxs-trail--lightning { border-radius: 0; clip-path: polygon(0 45%, 20% 10%, 40% 70%, 60% 15%, 80% 75%, 100% 30%, 100% 60%, 80% 100%, 60% 45%, 40% 100%, 20% 40%, 0 60%); }
.vxs-trail--plasma { filter: blur(1px) drop-shadow(0 0 10px var(--c2)); }
.vxs-tr-dot { width: var(--w); height: var(--w); margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2); background: var(--c); transform: rotate(var(--a)); opacity: 0; animation: vxs-fade var(--d) ease-out forwards; }
.vxs-tr-dot--warp { background: none; border: 2px solid var(--c); border-radius: 50%; width: calc(var(--w) * .6); height: calc(var(--w) * 1.6); margin: calc(var(--w) * -.8) 0 0 calc(var(--w) * -.3); }
.vxs-beam {
  width: 26px; height: 42vh; margin: calc(10px - 42vh) 0 0 -13px; transform-origin: 50% 100%;
  background: linear-gradient(to top, var(--c), color-mix(in srgb, var(--c2) 40%, transparent) 60%, transparent);
  filter: drop-shadow(0 0 12px var(--c)); animation: vxs-beam var(--d) ease-out forwards;
}
.vxs-beam--pixel { background: repeating-linear-gradient(to top, var(--c) 0 8px, transparent 8px 12px); }
.vxs-wave { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 4px solid var(--c); box-shadow: 0 0 24px var(--c), inset 0 0 18px var(--c); animation: vxs-wave var(--d) ease-out forwards; }
.vxs-blink { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: var(--c); animation: vxs-blinkfx .25s steps(2) 3 forwards; }
.cx-layer .vxs-screen-flash { inset: 0; background: radial-gradient(circle, #FFFFFF, color-mix(in srgb, var(--c) 60%, transparent) 60%, transparent); opacity: 0; animation: vxs-sflash .5s ease-out forwards; }
.vxs-shake { animation: vxs-shake .4s linear; }

/* ======================= HOLO-DAMES : skins vectoriels (shared/dames-skins.js) ======================= */
/* Classes .dms-* posées par DamesSkins.pieceSVG / boardSVG / boardBackgroundSVG / fxPreviewSVG : utilisables
   partout (boutique ET holo-damier de jeu, ce fichier est chargé sur toutes les pages). Les animations ne touchent
   ni la couleur du camp, ni le glyphe, ni la couronne : reflets, néon, anneaux, rotors, lune… Les calques qui
   tournent autour de la pièce sont enveloppés dans .dms-anim (boîte centrée sur la pièce, SVG imbriqué compris).
   Effets par-dessus la page de Potos.Cosmetics.playDamesFx : éclats .cx-* / .vxs-* + couronne .dms-crownfx. */
.dms-piece { overflow: visible; }
.dms-anim, .dms-float { transform-box: fill-box; transform-origin: 50% 50%; }
.dms-anim.dms-a-spin { animation: dms-spin 6s linear infinite; }
.dms-anim.dms-a-spin.dms-delay { animation-direction: reverse; }
.dms-anim.dms-a-orbit { animation: dms-spin 10s linear infinite; }
.dms-part.dms-a-shimmer { animation: dms-shimmer 2.8s ease-in-out infinite; }
.dms-part.dms-a-pulse, .dms-decor .dms-a-pulse { animation: dms-pulse 1.8s ease-in-out infinite; }
.dms-part.dms-a-blink, .dms-anim.dms-a-blink { animation: dms-blink 1.1s steps(1) infinite; }
.dms-part.dms-a-sparkle { animation: dms-sparkle 2.2s ease-in-out infinite; }
.dms-part.dms-a-rotor { transform-box: fill-box; transform-origin: 50% 50%; animation: dms-rotor .26s linear infinite; }
.dms-part.dms-a-echo, .dms-crown-echo.dms-a-echo { animation: dms-echo 1.6s steps(2) infinite; }
.dms-part.dms-delay { animation-delay: -.7s; }
.dms-piece.dms-a-hover .dms-float { animation: dms-hover 2.4s ease-in-out infinite; }
.dms-piece.dms-a-superposition .dms-float { animation: dms-super 3.2s steps(1) infinite; }
.dms-halo { animation: dms-halo 2.2s ease-in-out infinite; }
/* Fond du holo-damier : ambiance animée */
.dms-amb-a--scroll .dms-sweep { animation: dms-sweep 4s linear infinite; }
.dms-amb-a--sweep .dms-sweep { animation: dms-sweepx 5s ease-in-out infinite; }
.dms-amb--grid.dms-amb-a--scroll { animation: dms-scroll 2.4s linear infinite; }
.dms-amb .dms-tw { animation: dms-tw 2.4s ease-in-out infinite alternate; }
.dms-amb-a--fall { animation: dms-fall 7s linear infinite alternate; }
.dms-amb-a--drift { animation: dms-drift 12s ease-in-out infinite alternate; }
.dms-amb-a--spin { transform-box: fill-box; transform-origin: 50% 50%; animation: dms-spin 60s linear infinite; }

/* Aperçus boutique */
.cx-pv.cx-pv-dpieces { grid-template-columns: repeat(2, auto); align-content: center; justify-content: center; gap: 2px 14px; }
.cx-dp { display: grid; place-items: center; }
.cx-dp svg { display: block; width: 46px; height: 46px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)) drop-shadow(0 0 8px color-mix(in srgb, var(--dms-side, var(--shop-accent)) 35%, transparent)); }
.cx-pv-dboard svg { width: min(100%, 150px); height: auto; max-height: 100%; border-radius: 8px; box-shadow: 0 0 16px color-mix(in srgb, var(--shop-accent-3) 28%, transparent); }
.cx-pv-dfx svg { width: min(100%, 156px); height: auto; max-height: 100%; border-radius: 8px; transition: transform .25s var(--shop-ease); }
.cx-pv-dfx:hover svg, .cx-pv-dfx:focus-visible svg { transform: scale(1.05); }
.cx-pv-dm .cx-th-ico { font-size: 40px; }
.cx-th > svg.dms-board, .cx-th > svg.dms-fxpv { padding: 0; }
.cx-th > svg.dms-piece { padding: 12%; }
/* Effets de prise (Potos.Cosmetics.playDamesFx) */
.vxs-trail--rgb { filter: drop-shadow(3px 0 0 var(--c2)) drop-shadow(-3px 0 0 var(--c)); }
.dms-crownfx {
  width: 46px; height: 30px; margin: -46px 0 0 -23px; background: var(--dms-crown, #FFC53D);
  clip-path: polygon(10% 100%, 0 28%, 28% 55%, 50% 0, 72% 55%, 100% 28%, 90% 100%);
  filter: drop-shadow(0 0 10px var(--dms-crown, #FFC53D)); animation: dms-crownfx var(--d, .8s) cubic-bezier(.2, .8, .2, 1) forwards;
}

/* ======================= L'OIE GALACTIQUE : skins vectoriels (shared/oie-skins.js) ======================= */
/* Classes .ois-* posées par OieSkins.pawnSVG / dieSVG / boardSVG / boardBackgroundSVG / fxPreviewSVG : utilisables
   partout (boutique ET Spirale de jeu, ce fichier est chargé sur toutes les pages). Fluidité (docs/fluidite.md) :
   UNE seule boucle par vaisseau (.ois-anim), en transform / opacity, jamais de filtre sur un élément animé ;
   Spirale 100 % statique sauf le Noyau de l'aperçu ; tout est coupé en perf-lite et en mouvement réduit.
   Effets par-dessus la page de Potos.Cosmetics.playOieFx : éclats .cx-* / .vxs-* (+ particules plume / maillon). */
.ois-pawn, .ois-die, .ois-board, .ois-fxpv { overflow: visible; }
.ois-anim { transform-box: fill-box; transform-origin: 50% 50%; }
.ois-a-hover .ois-anim { animation: ois-hover 2.6s ease-in-out infinite; }
.ois-a-bob .ois-anim { animation: ois-bob 2.8s ease-in-out infinite; }
.ois-a-spin .ois-anim { animation: ois-spin 5s linear infinite; }
.ois-a-flap .ois-anim { animation: ois-flap 1.3s ease-in-out infinite; }
.ois-a-blink .ois-anim { animation: ois-blink 1.2s steps(1) infinite; }
.ois-a-pulse .ois-anim { animation: ois-pulse 2s ease-in-out infinite; }
.ois-anim--core { animation: ois-core 4s ease-in-out infinite; }
/* Dés : animation PENDANT le lancer, durée = OieEngine.ANIM.roll (900 ms), identique pour tous les skins */
.ois-rolling { transform-origin: 50% 50%; }
.ois-rolling.ois-roll--tumble { animation: ois-tumble .9s cubic-bezier(.2, .7, .3, 1) both; }
.ois-rolling.ois-roll--step { animation: ois-step .9s steps(6) both; }
.ois-rolling.ois-roll--blink { animation: ois-qblink .9s steps(8) both; }

/* Aperçus boutique : Spirale en image (.cx-svgimg = SVG dans un <img>, un seul nœud) ; vaisseaux, dés et effets en
   SVG (une seule boucle par carte : le vaisseau principal). Aucun filtre sur ce qui s'anime. */
.cx-svgimg { display: block; max-width: 100%; max-height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.cx-pv-opawn { display: flex; align-items: center; justify-content: center; gap: 6%; }
.cx-opawn-main { display: grid; place-items: center; width: 54%; height: 100%; }
.cx-opawn-main svg { width: min(100%, 96px); height: auto; max-height: 100%; }
.cx-opawn-wing { display: block; width: 50px; height: auto; max-height: 100%; }
.cx-pv-oboard .cx-svgimg { width: auto; height: 100%; max-height: 128px; border-radius: 8px; box-shadow: 0 0 14px color-mix(in srgb, var(--shop-accent-2) 25%, transparent); }
.cx-odice-pair { width: min(100%, 150px); height: auto; max-height: 100%; }
.cx-pv-ofx svg { width: min(100%, 156px); height: auto; max-height: 100%; border-radius: 8px; transition: transform .25s var(--shop-ease); }
.cx-pv-ofx:hover svg, .cx-pv-ofx:focus-visible svg { transform: scale(1.05); }
.cx-pv-oie .cx-th-ico { font-size: 40px; }
.cx-th > .cx-svgimg { width: 100%; height: 100%; padding: 6%; }
.cx-th > .cx-svgimg--full { padding: 0; object-fit: cover; }
/* Effets de vol (Potos.Cosmetics.playOieFx) : particules propres à L'Oie */
.vxs-p--feather { width: 13px; height: 4px; margin: -2px 0 0 -6.5px; border-radius: 50%; box-shadow: none; }
.vxs-p--link { width: 11px; height: 7px; margin: -3.5px 0 0 -5.5px; background: none; border: 2px solid var(--c); border-radius: 40%; box-shadow: none; }

/* ======================= Animations ======================= */
@keyframes shop-fade { from { opacity: 0; } }
@keyframes shop-rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes shop-pulse { 50% { opacity: 1; } }
@keyframes shop-shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes shop-spot { 0%, 100% { box-shadow: 0 0 0 1px var(--shop-accent), 0 0 18px color-mix(in srgb, var(--shop-accent) 40%, transparent); } 50% { box-shadow: 0 0 0 3px var(--shop-accent), 0 0 34px color-mix(in srgb, var(--shop-accent) 70%, transparent); transform: translateY(-3px); } }
@keyframes shop-bump { 30% { transform: scale(1.08); box-shadow: 0 0 22px color-mix(in srgb, var(--shop-credits) 70%, transparent); } }
@keyframes cx-rotor { 50% { transform: scaleX(.35); } }
@keyframes cx-flame { to { transform: scaleY(.7); } }
@keyframes cx-breathe { 50% { opacity: .45; } }
@keyframes cx-spark { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@keyframes cx-fall { to { transform: translateY(115vh) rotate(540deg); } }
@keyframes cx-warp { 30% { opacity: 1; } to { transform: rotate(var(--a)) scaleX(1) translateX(30vmax); opacity: 0; } }
@keyframes cx-flash { to { transform: scale(6); opacity: 0; } }
@keyframes cx-ring { from { opacity: 1; } to { transform: scale(7); opacity: 0; } }
@keyframes cx-vortex { from { transform: rotate(0) scale(.3); opacity: 1; } to { transform: rotate(540deg) scale(1.4); opacity: 0; } }
@keyframes cx-arc { to { opacity: 0; } }
@keyframes cx-glitch {
  0% { transform: translate(0); filter: none; }
  25% { transform: translate(-3px, 1px); filter: drop-shadow(3px 0 0 var(--shop-accent)) drop-shadow(-3px 0 0 var(--shop-accent-2)); }
  50% { transform: translate(2px, -1px); clip-path: inset(10% 0 30% 0); }
  75% { transform: translate(-1px, 2px); clip-path: inset(40% 0 5% 0); }
  100% { transform: translate(0); clip-path: none; filter: none; }
}
@keyframes av-scan { from { transform: translateX(-20px); } to { transform: translateX(20px); } }
@keyframes av-vox { to { transform: scaleY(.35); } }
@keyframes av-spin { to { transform: rotate(360deg); } }
@keyframes av-ping { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.4); opacity: 0; } }
@keyframes av-float { 50% { transform: translateY(-3px); } }
@keyframes av-scanbar { from { transform: translateY(-10px); } to { transform: translateY(100px); } }
@keyframes av-bars { 0%, 70% { opacity: 0; } 72%, 80% { opacity: 1; transform: translateX(4px); } 82%, 100% { opacity: 0; } }
@keyframes cx-em-pulse { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
@keyframes cx-trace { from { transform: translateX(0); } to { transform: translateX(300%); } }
@keyframes cx-grid-scroll { to { transform: translateY(var(--s)); } }
@keyframes cx-sweep { from { transform: translateY(-100%); } to { transform: translateY(420%); } }
@keyframes cx-hue { to { transform: translateX(-33.3334%); } }
@keyframes cx-rings { from { transform: scale(1); } to { transform: scale(1.28); opacity: .7; } }
@keyframes cx-foil { from { transform: translate(-27%, -27%); } to { transform: translate(27%, 27%); } }
@keyframes cx-reflect { 0%, 30% { transform: translateX(-80%); } 100% { transform: translateX(80%); } }
@keyframes cx-floor { to { transform: translateY(14px); } }
@keyframes cx-drift { to { transform: translate(-18px, -12px); } }
@keyframes cx-twinkle { from { opacity: .45; } to { opacity: 1; } }
@keyframes cx-rain { to { transform: translateY(20px); } }
@keyframes cx-beat { 0%, 100% { transform: scale(1); opacity: .75; } 30% { transform: scale(1.08); opacity: 1; } }
@keyframes cx-nebula { from { transform: translate(-6%, -4%) scale(1); } to { transform: translate(6%, 4%) scale(1.12); } }
/* Petits Vaisseaux (.vxs-*) */
@keyframes vxs-hover { 50% { transform: translateY(-3px); } }
@keyframes vxs-wobble { 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes vxs-ripple { 50% { transform: scale(.92, 1.03); } }
@keyframes vxs-flare { 50% { opacity: .78; filter: drop-shadow(0 0 4px var(--vxs-glow, #FFFFFF)); } }
@keyframes vxs-blink { 50% { opacity: .15; } }
@keyframes vxs-pulse { 50% { opacity: .4; } }
@keyframes vxs-spin { to { transform: rotate(360deg); } }
@keyframes vxs-rotor { 50% { transform: scaleX(.3); } }
@keyframes vxs-flame { to { transform: scaleY(.65); opacity: .8; } }
@keyframes vxs-tumble { 0% { transform: rotate(-200deg) scale(.6); } 60% { transform: rotate(18deg) scale(1.08); } 100% { transform: none; } }
@keyframes vxs-step { 0% { transform: rotate(-270deg) scale(.8); } 100% { transform: none; } }
@keyframes vxs-smoke { 0% { transform: translateY(-30%) rotate(-40deg); filter: brightness(1.8) blur(1px); } 70% { transform: translateY(3%) rotate(4deg); } 100% { transform: none; filter: none; } }
@keyframes vxs-dpulse { 0%, 50% { transform: scale(.7); filter: brightness(1.6); } 75% { transform: scale(1.12); } 100% { transform: none; filter: none; } }
@keyframes vxs-super { 0%, 80% { opacity: .55; transform: scale(.94) rotate(-6deg); } 100% { opacity: 1; transform: none; } }
@keyframes vxs-ghost { 0%, 80% { opacity: .9; } 100% { opacity: .12; } }
@keyframes vxs-twinkle { from { opacity: .25; } to { opacity: 1; } }
@keyframes vxs-fall { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
@keyframes vxs-rise { from { transform: translateY(5px); } to { transform: translateY(-5px); } }
@keyframes vxs-drift { from { transform: translate(-3px, -2px); } to { transform: translate(3px, 2px); } }
@keyframes vxs-scroll { from { transform: translateY(0); } to { transform: translateY(5px); } }
@keyframes vxs-p { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.4) rotate(160deg); opacity: 0; } }
@keyframes vxs-fade { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vxs-beam { 0% { transform: scaleY(0); opacity: 0; } 25% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes vxs-wave { from { transform: scale(.3); opacity: 1; } to { transform: scale(9); opacity: 0; } }
@keyframes vxs-blinkfx { 50% { opacity: 0; } }
@keyframes vxs-sflash { from { opacity: var(--o, .4); } to { opacity: 0; } }
@keyframes vxs-shake {
  20% { transform: translate(calc(var(--vxs-amp, 4px) * -1), 1px); } 40% { transform: translate(var(--vxs-amp, 4px), -1px); }
  60% { transform: translate(calc(var(--vxs-amp, 4px) * -.6), -1px); } 80% { transform: translate(calc(var(--vxs-amp, 4px) * .6), 1px); }
}
/* Holo-Dames (.dms-*) */
@keyframes dms-spin { to { transform: rotate(360deg); } }
@keyframes dms-shimmer { 0%, 100% { opacity: .25; } 50% { opacity: .85; } }
@keyframes dms-pulse { 50% { opacity: .35; } }
@keyframes dms-blink { 50% { opacity: .2; } }
@keyframes dms-sparkle { 0%, 70%, 100% { opacity: .2; } 80% { opacity: .95; } }
@keyframes dms-rotor { 50% { transform: scaleX(.3); } }
@keyframes dms-echo { 0% { transform: translate(3px, -2px); } 50% { transform: translate(-3px, 2px); } }
@keyframes dms-hover { 50% { transform: translateY(-3px); } }
@keyframes dms-super { 0%, 88% { opacity: 1; } 90% { opacity: .82; } 94% { opacity: 1; } 96% { opacity: .86; } }
@keyframes dms-halo { 50% { opacity: .55; } }
@keyframes dms-sweep { from { transform: translateY(-15px); } to { transform: translateY(100px); } }
@keyframes dms-sweepx { from { transform: translateX(-45px); } to { transform: translateX(140px); } }
@keyframes dms-scroll { from { transform: translateY(0); } to { transform: translateY(4px); } }
@keyframes dms-tw { from { opacity: .25; } to { opacity: 1; } }
@keyframes dms-fall { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
@keyframes dms-drift { from { transform: translate(-3px, -2px); } to { transform: translate(3px, 2px); } }
/* L'Oie Galactique (.ois-*) : transform / opacity seulement */
@keyframes ois-hover { 50% { transform: translateY(-4%); } }
@keyframes ois-bob { 25% { transform: translateY(-3%) rotate(-4deg); } 75% { transform: translateY(2%) rotate(4deg); } }
@keyframes ois-spin { to { transform: rotate(360deg); } }
@keyframes ois-flap { 50% { transform: scaleX(.8); } }
@keyframes ois-blink { 50% { opacity: .2; } }
@keyframes ois-pulse { 50% { opacity: .12; } }
@keyframes ois-core { 50% { opacity: .78; transform: scale(1.05); } }
@keyframes ois-tumble { 0% { transform: rotate(-200deg) scale(.6); } 60% { transform: rotate(18deg) scale(1.08); } 100% { transform: none; } }
@keyframes ois-step { 0% { transform: rotate(-270deg) scale(.8); } 100% { transform: none; } }
@keyframes ois-qblink { 0%, 80% { opacity: .5; transform: scale(.94) rotate(-6deg); } 100% { opacity: 1; transform: none; } }
@keyframes dms-crownfx { 0% { transform: translateY(-30px) scale(.4); opacity: 0; } 35% { transform: translateY(0) scale(1.15); opacity: 1; } 100% { transform: translateY(-6px) scale(1); opacity: 0; } }

/* ======================= PACKS (rayon « Packs » + fin des rayons de jeu) ======================= */
/* Tout est statique (aucune animation en boucle) : mosaïque du contenu, pastilles, liste du contenu. */
.shop-dialog .sr-only, .bv .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shop-tab--packs { color: var(--shop-text); border-color: color-mix(in srgb, var(--shop-accent-2) 70%, var(--shop-line)); background: color-mix(in srgb, var(--shop-accent-2) 12%, transparent); }
.shop-tab--packs[aria-selected="true"] { color: var(--shop-white); background: var(--shop-accent-2); border-color: var(--shop-accent-2); box-shadow: var(--shop-glow-2); }
.shop-tab-deal { padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 900; color: var(--on-accent, #1B1608); background: var(--shop-warn); }
.shop-tag--count { color: var(--shop-text); background: color-mix(in srgb, var(--shop-white) 8%, transparent); border: 1px solid var(--shop-line); }
.shop-tag--partial { color: var(--shop-ok-text); background: color-mix(in srgb, var(--shop-ok) 10%, transparent); border: 1px solid color-mix(in srgb, var(--shop-ok) 42%, transparent); text-transform: none; letter-spacing: .01em; }
.shop-grid.shop-grid--packsx { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.shop-card--pack { flex-direction: row; contain-intrinsic-size: auto 210px; }
.shop-card--pack .shop-card-pv { height: 100%; aspect-ratio: auto; padding: 8px; border-bottom: 0; }
.shop-card--pack .shop-card-body { min-width: 0; }
.shop-card--pack .cx-pv-bundle { width: 100%; height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; align-content: center; }
/* Fenêtres (confirmation, fiche du pack) : vignettes de taille fixe, centrées, sur 1 ou 2 lignes */
.shop-dialog-pv .cx-pv-bundle { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 6px; width: 100%; height: 100%; }
.shop-dialog-pv .cx-pv-bundle .cx-th { flex: none; width: 54px; height: 54px; }
.shop-card-packbtn { padding-bottom: 26px; }
.shop-card-hook { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--shop-text); }
.shop-pack-list { display: flex; flex-wrap: wrap; gap: 3px 4px; margin: 2px 0 0; padding: 0; list-style: none; }
.shop-pack-list li { padding: 1px 7px; border-radius: 7px; font-size: 11px; font-weight: 700; line-height: 1.5; color: var(--shop-muted); background: color-mix(in srgb, var(--shop-white) 5%, transparent); border: 1px solid var(--shop-line); }
.shop-pack-list li.is-owned { color: var(--shop-ok-text); border-color: color-mix(in srgb, var(--shop-ok) 40%, transparent); }
.cx-th.is-owned::after {
  content: "✓"; position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  font-size: 10px; font-weight: 900; line-height: 1; color: var(--on-accent, #1B1608); background: var(--shop-ok);
}
.cx-th--more b { font-family: var(--shop-font-display); font-size: 18px; font-weight: 900; color: var(--shop-accent-text); }
.shop-packs-intro { margin-top: 14px; padding: 12px 14px; border-radius: var(--shop-radius); background: color-mix(in srgb, var(--shop-accent-2) 10%, var(--shop-glass)); border: 1px solid color-mix(in srgb, var(--shop-accent-2) 45%, var(--shop-line)); }
.shop-packs-intro-t { margin: 0; font-size: 15px; line-height: 1.35; }
.shop-packs-intro-t b { color: var(--shop-text); }
.shop-packs-intro-s { margin: 4px 0 0; font-size: 12.5px; color: var(--shop-muted); }
.shop-packs-link {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 10px; padding: 8px 14px; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--shop-text); text-align: left;
  background: color-mix(in srgb, var(--shop-accent-2) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--shop-accent-2) 60%, var(--shop-line));
}
.shop-packs-link small { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--shop-muted); }
.shop-packs-link:active { transform: scale(.98); transition-duration: 0s; }
/* Fiche d'un pack */
.shop-dialog-pv--pack { height: 142px; }
.shop-dialog-pv--pack .cx-pv-bundle { max-width: 320px; margin: 0 auto; }
.shop-dialog-pv--pack .cx-pv-bundle .cx-th { width: 66px; height: 66px; }
.shop-packrows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.shop-packrow { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 5px 8px 5px 5px; border-radius: 12px; background: color-mix(in srgb, var(--shop-white) 4%, transparent); border: 1px solid var(--shop-line); }
.shop-packrow.is-owned { border-color: color-mix(in srgb, var(--shop-ok) 40%, transparent); }
.shop-packrow > .cx-th { flex: none; width: 44px; height: 44px; }
.shop-packrow-txt { display: grid; flex: 1; min-width: 0; }
.shop-packrow-txt b { overflow: hidden; font-size: 13.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.shop-packrow-txt small { font-size: 11px; color: var(--shop-muted); }
.shop-packrow-p { flex: none; font-size: 12.5px; font-weight: 800; color: var(--shop-muted); white-space: nowrap; }
.shop-packrow-own { color: var(--shop-ok-text); }
.shop-packrow-zoom { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 17px; background: transparent; border: 1px solid var(--shop-line); }
.shop-pack-sums { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.shop-pack-sums dd s { color: var(--shop-muted); font-weight: 600; }
.shop-pack-sums .shop-tag { margin-left: 2px; vertical-align: 1px; }
.shop-pack-adj { color: var(--shop-ok-text); }
.shop-dialog-body .shop-pack-gifts { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; color: var(--shop-muted); background: color-mix(in srgb, var(--shop-white) 4%, transparent); border: 1px dashed var(--shop-line); }
.shop-pack-gifts b { color: var(--shop-text); }
/* Boutique universelle : jeu d'un article (rayons Tapis, Cartes, Dés, Pions…), thèmes à venir, lien vers un pack */
.shop-tag--game { color: var(--shop-text); background: color-mix(in srgb, var(--shop-white) 7%, transparent); border: 1px solid var(--shop-line); text-transform: none; letter-spacing: .01em; }
.shop-note--cat { margin: 14px 0 0; }
.shop-inline-link { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; margin-left: 4px; padding: 0 10px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; color: var(--shop-text); background: color-mix(in srgb, var(--shop-accent-2) 14%, transparent); border: 1px solid color-mix(in srgb, var(--shop-accent-2) 55%, var(--shop-line)); }
.shop-themes-soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.shop-themes-soon li { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ico name soon" "ico desc desc"; align-items: center; gap: 2px 10px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--shop-white) 4%, transparent); border: 1px dashed var(--shop-line); }
.shop-themes-ico { grid-area: ico; font-size: 26px; line-height: 1; }
.shop-themes-soon b { grid-area: name; font-family: var(--shop-font-display); font-size: 15px; }
.shop-themes-soon small { grid-area: desc; font-size: 12px; line-height: 1.35; color: var(--shop-muted); }
.shop-themes-soon em { grid-area: soon; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-style: normal; font-weight: 800; color: var(--shop-muted); border: 1px solid var(--shop-line); }

/* ======================= PLATEAU EN GRAND : boutons d'ouverture + visionneuse plein écran ======================= */
.shop-map-hero--zoom { position: relative; width: 100%; cursor: zoom-in; font: inherit; color: inherit; }
.shop-map-hero--zoom:active { transform: scale(.98); transition-duration: 0s; }
.shop-show-art { position: relative; }
.shop-card-mapbtn[data-board-view] { cursor: zoom-in; }
.shop-zoom-cta {
  position: absolute; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap;
  color: var(--on-accent, #1B1608); background: var(--shop-accent); box-shadow: var(--shop-glow);
}
/* Bouton du salon, sous le carrousel des plateaux (js/lobby.js) */
.map-zoom {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 8px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text, #E9F3FF); background: color-mix(in srgb, var(--accent, #19F0FF) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #19F0FF) 45%, transparent);
}
.map-zoom:active { transform: scale(.96); transition-duration: 0s; }
html.bv-open, html.bv-open body { overflow: hidden; }
.bv {
  position: fixed; inset: 0; z-index: 140; display: flex; flex-direction: column; color: var(--shop-text); font-family: var(--shop-font);
  background: var(--shop-bg); opacity: 0; transition: opacity .18s ease; overscroll-behavior: contain;
}
.bv.is-in { opacity: 1; }
.bv-top {
  display: flex; align-items: center; gap: 8px; flex: none; min-height: 56px; padding: calc(6px + env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 6px max(14px, env(safe-area-inset-left));
  background: var(--shop-bg-2); border-bottom: 1px solid var(--shop-line);
}
.bv-title { flex: 1; min-width: 0; margin: 0; overflow: hidden; font-family: var(--shop-font-display); font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bv-tools { display: flex; flex: none; gap: 6px; }
.bv-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 22px; font-weight: 800; line-height: 1;
  color: var(--shop-text); background: color-mix(in srgb, var(--shop-white) 6%, transparent); border: 1px solid var(--shop-line);
}
.bv-btn:active { transform: scale(.94); transition-duration: 0s; }
.bv-close { color: var(--on-accent, #1B1608); background: var(--shop-accent); border-color: var(--shop-accent); }
.bv-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; contain: strict; }
.bv-stage:active { cursor: grabbing; }
.bv-board { position: absolute; top: 0; left: 0; transform-origin: 0 0; user-select: none; -webkit-user-select: none; }
.bv-board.is-moving { will-change: transform; }
.bv-board.is-anim { transition: transform .24s var(--shop-ease); }
.bv-board > svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.cx-bigboard text { font-family: var(--shop-font); text-rendering: geometricPrecision; }
.cx-bigboard .bb-title { font-family: var(--shop-font-display); }
.bv-hint {
  position: absolute; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); translate: -50% 0; max-width: calc(100% - 24px); margin: 0; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-align: center; color: var(--shop-muted); background: var(--shop-bg-2); border: 1px solid var(--shop-line); pointer-events: none;
  transition: opacity .3s ease;
}
.bv.is-used .bv-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .bv, .bv-board.is-anim { transition: none; } }

/* ======================= Grands écrans ======================= */
@media (min-width: 640px) {
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .shop-hero { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "av meta daily" "av hint daily"; row-gap: 4px; padding: 12px 14px; }
  .shop-hero-av { width: 76px; height: 76px; }
  .shop-hero-name { font-size: 19px; }
  .shop-level { max-width: 340px; }
  .shop-hero-hint { align-self: start; }
  .shop-daily { padding: 8px 14px; }
  .shop-dialog-backdrop { place-items: center; }
  .shop-dialog-actions { flex-direction: row-reverse; }
  .shop-grid.shop-grid--modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-card-mapbtn { width: 146px; }
  .shop-card-modebtn { width: 84px; }
  .shop-dialog--map .shop-dialog-actions { flex-direction: row-reverse; }
  .shop-show { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; gap: 18px; padding: 16px; }
  .shop-show-actions .shop-btn--try { flex: 0 1 auto; min-height: 42px; font-size: 15px; }
  .shop-group--play { padding: 14px 14px 16px; }
}
@media (min-width: 1024px) {
  .shop { --shop-top-h: 64px; }
  .shop-top, .shop-tabs { padding-left: max(16px, calc((100vw - 1120px) / 2)); padding-right: max(16px, calc((100vw - 1120px) / 2)); }
  /* Entre 1024 et ~1150 px, « margin: auto » valait 0 : cartes collées aux bords de l'écran → gouttière de 16 px (comme la barre et les onglets) */
  .shop-banner, .shop-hero, .shop-panel { max-width: 1120px; margin-left: auto; margin-right: auto; }
  .shop > .shop-banner, .shop-hero, .shop-panel { max-width: min(1120px, calc(100% - 32px)); }
  .shop-panel { padding: 4px 0 0; }
  .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-grid--packs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shop-grid.shop-grid--modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ======================= Mouvement réduit ======================= */
@media (prefers-reduced-motion: reduce) {
  .shop *, .shop *::before, .shop *::after, .cx-pawn *, .av-anim *,
  .cx-card, .cx-card *, .cx-card::after, .cx-card *::before, .cx-table *, .cx-table *::before, .cx-table *::after,
  .vxs-ship *, .vxs-die, .vxs-die *, .vxs-board *, .vxs-bg *, .vxs-fxpv *, .vxs-shake,
  .dms-piece *, .dms-board *, .dms-bg *, .dms-fxpv *,
  .ois-pawn *, .ois-die, .ois-die *, .ois-board *, .ois-fxpv * { animation: none !important; transition: none !important; }
  .cx-layer { display: none; }
  .cx-glitching { animation: none !important; }
}

/* ======================= Fluidité : perf-lite (cf. docs/fluidite.md) ======================= */
/* Aperçus des cartes : on fige les boucles qui repeignent à chaque image (filtre, fond qui défile,
   mélange de couleurs, flou). Les aperçus restent visibles, et s'animent dans la fenêtre d'achat. */
.perf-lite .shop-card :is(.cx-a--holo-shift, .cx-pat, .cx-tb-floor, .cx-tb-amb),
.perf-lite .shop-card .cx-tb-amb::after,
.perf-lite .shop-card :is(.cx-pat, .cx-tb-floor)::before,
.perf-lite .shop-card .cx-a--holo-shift::after,
.perf-lite .shop-card .cx-card-face::after,
.perf-lite .shop-card.r-legendaire::after,
.perf-lite .shop-daily.is-ready::before { animation: none; }
/* La boutique couvre tout l'écran (fond opaque) : les décors flottants de l'accueil (.bg-party, filtres animés)
   continuaient d'être repeints dessous à chaque image. Masqués tant que la boutique est ouverte. */
body.shop-open .bg-party { display: none; }
/* L'Oie Galactique : la seule boucle d'un vaisseau ou du Noyau est coupée (partout : boutique et Spirale) */
.perf-lite .ois-anim { animation: none; }
/* Exemple illustré d'une variante : pas de pulsation en perf-lite ni en mouvement réduit (l'exemple reste lisible) */
.perf-lite .cx-ex-hl { animation: none; }
@media (prefers-reduced-motion: reduce) { .cx-ex-hl { animation: none !important; } }

/* ======================= Fluidité : animations SVG des aperçus de la grille ======================= */
/* Charte (docs/fluidite.md) : une animation DANS un SVG n'est pas accélérée par la carte graphique, l'aperçu entier
   est repeint à chaque image (rayon Holo-Dames : ~110 animations de pièces et de halos). Dans la grille, elles ne
   tournent que sur la carte mise en avant (survol, focus, toucher) ; elles jouent toujours dans les fenêtres. */
.shop-grid .shop-card :is(.dms-piece, .dms-board, .dms-fxpv, .vxs-ship, .vxs-die, .vxs-board, .vxs-fxpv, .ois-pawn, .ois-die, .ois-fxpv) * { animation-play-state: paused !important; }
.shop-grid .shop-card:is(:hover, :focus-within, .is-spotlight) :is(.dms-piece, .dms-board, .dms-fxpv, .vxs-ship, .vxs-die, .vxs-board, .vxs-fxpv, .ois-pawn, .ois-die, .ois-fxpv) * { animation-play-state: running !important; }
