/**
 * SF GAME — scènes navigables « point & click » (cale de vaisseau, baie du marchand).
 * Dépend de styles-scene.css (layout + bandeau) + sf-game.css. Scopé body.sf-theme.
 *
 * Principe : une image de décor (.sf-scene-img) + des zones cliquables (.sf-hotspot)
 * positionnées en % via variables CSS (--hx/--hy/--hw/--hh) → la scène reste alignée
 * à toutes les tailles d'écran. Les popovers (.sf-popover) proposent les choix
 * multiples (table tactique → Team Builder / ROI ; IA de bord → Observatoires).
 */

/* ====================== Scène ====================== */
body.sf-theme:has(.sf-game-main) {
  overflow-y: hidden;
}

body.sf-theme .sf-game-main {
  box-sizing: border-box;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 0.5rem;
  position: relative;
  z-index: 1;
  container-type: inline-size;
  --sf-bandeau-h: 70px;
  --sf-scene-max-h: calc(100dvh - var(--sf-bandeau-h) - 0.5rem);
}

body.sf-theme .sf-scene-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

body.sf-theme .sf-scene {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 3 / 2;
  /* Tient dans la fenêtre (bandeau → bas) sans scroll vertical ; ratio 3:2 conservé. */
  width: min(100cqw, calc(var(--sf-scene-max-h) * 3 / 2));
  height: min(var(--sf-scene-max-h), calc(100cqw * 2 / 3));
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 32px color-mix(in srgb, var(--accent-cyan, #5fd4ff) 32%, transparent);
  overflow: hidden;
  background: var(--bg-base);
}

/*
 * Cargo bay — scene-cargo-bay-v3-alt.png (1536×1024, ratio 3:2).
 * JS calcule un scale « cover » (max largeur, max hauteur) pour remplir la fenêtre
 * sans fond bleu ; débordement horizontal → swipe, vertical → centrage rogné.
 */
body.sf-theme:has(.sf-scene--crop-b3) .sf-game-main {
  max-width: none;
  padding: 0;
  margin: 0;
  height: calc(100dvh - var(--sf-bandeau-h));
  --sf-scene-max-h: calc(100dvh - var(--sf-bandeau-h));
}

body.sf-theme:has(.sf-scene--crop-b3) .sf-scene-wrap {
  position: fixed;
  top: var(--sf-bandeau-h);
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100dvh - var(--sf-bandeau-h));
  margin: 0;
  overflow: hidden;
  background: var(--bg-base);
  z-index: 1;
}

body.sf-theme .sf-scene--crop-b3 {
  aspect-ratio: unset;
  width: var(--sf-cb-scene-w, 100vw);
  height: var(--sf-cb-scene-h, var(--sf-scene-max-h));
  max-width: none;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background: transparent;
}

body.sf-theme .sf-scene--crop-b3 .sf-scene-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.sf-theme .sf-scene--crop-b3 .sf-scene-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

body.sf-theme .sf-scene--crop-b3 .sf-scene-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

body.sf-theme .sf-scene--crop-b3 .sf-hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Débordement horizontal : hauteur calée, swipe pour explorer la largeur. */
body.sf-cb-overflow-x:has(.sf-scene--crop-b3) .sf-scene-wrap {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}
body.sf-cb-overflow-x:has(.sf-scene--crop-b3) .sf-scene-wrap::-webkit-scrollbar {
  display: none;
}
body.sf-cb-overflow-x:has(.sf-scene--crop-b3) .sf-scene-pan-track {
  display: block;
  width: var(--sf-cb-scene-w);
  height: calc(100dvh - var(--sf-bandeau-h));
  flex-shrink: 0;
}

/* Débordement vertical (écran très large) : calé en haut sous le bandeau.
   Répartition du rognage haut/bas pilotée par --sf-cb-offset-y (JS,
   data-sf-crop-anchor-y sur .sf-scene : 0 = rogne en bas, 1 = rogne en haut). */
body.sf-cb-overflow-y:has(.sf-scene--crop-b3) .sf-scene-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}
body.sf-cb-overflow-y:has(.sf-scene--crop-b3) .sf-scene-pan-track {
  display: block;
  width: var(--sf-cb-scene-w);
  height: var(--sf-cb-scene-h);
  flex-shrink: 0;
  margin-top: var(--sf-cb-offset-y, 0px);
}

body.sf-cb-overflow-x:has(.sf-scene--crop-b3) .sf-scene-pan-edge,
body.sf-cb-overflow-x:has(.sf-scene--crop-b3) .sf-scene-pan-hint {
  display: block;
}

body.sf-theme:has(.sf-scene--crop-b3) .sf-scene::before,
body.sf-theme:has(.sf-scene--crop-b3) .sf-scene::after {
  display: none;
}

/*
 * Genesis Hall — scène plein écran derrière le bandeau (sans zoom supplémentaire).
 * Le haut de l'image (plafond) passe sous le header ; le cadrage vertical est
 * piloté par data-sf-crop-anchor-y sur .sf-scene (0 = haut, 1 = bas).
 */
body.sf-theme.sf-genesis-hall:has(.sf-scene--crop-b3) .sf-game-main {
  height: 100dvh;
  --sf-scene-max-h: 100dvh;
}

body.sf-theme.sf-genesis-hall:has(.sf-scene--crop-b3) .sf-scene-wrap {
  top: 0;
  height: 100dvh;
}

body.sf-cb-overflow-x.sf-genesis-hall:has(.sf-scene--crop-b3) .sf-scene-pan-track {
  height: 100dvh;
}

/*
 * Merchant bay (2375×2258) : même logique que crop-b3 (index).
 * Desktop : cadre max sous bandeau, bas rogné si l'image dépasse.
 * Mobile : hauteur plein écran, largeur = ratio natif → swipe horizontal.
 */
body.sf-theme:has(.sf-scene--crop-mb) .sf-game-main {
  max-width: none;
  padding: 0;
  --sf-scene-max-h: calc(100dvh - var(--sf-bandeau-h));
}

body.sf-theme .sf-scene--crop-mb {
  aspect-ratio: 2375 / 2258;
  width: min(100cqw, calc(var(--sf-scene-max-h) * 2375 / 2258));
  height: min(var(--sf-scene-max-h), calc(100cqw * 2258 / 2375));
  max-width: none;
  margin: 0 auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

@supports not (width: 1cqw) {
  body.sf-theme .sf-scene {
    width: min(100%, calc(var(--sf-scene-max-h) * 3 / 2));
    height: min(var(--sf-scene-max-h), calc(100% * 2 / 3));
  }
  body.sf-theme .sf-scene--crop-b3 {
    width: min(100%, calc(var(--sf-scene-max-h) * 3 / 2));
    height: min(var(--sf-scene-max-h), calc(100% * 2 / 3));
  }
  body.sf-theme .sf-scene--crop-mb {
    width: min(100%, calc(var(--sf-scene-max-h) * 2375 / 2258));
    height: min(var(--sf-scene-max-h), calc(100% * 2258 / 2375));
  }
}

/* Desktop : cadre rogné responsive — il prend la plus grande taille possible
   tout en tenant ENTIÈREMENT dans la fenêtre (largeur ET hauteur sous bandeau),
   ratio conservé, scène centrée. */
@media (min-width: 761px) {
  body.sf-theme:has(.sf-scene--crop-mb) .sf-game-main {
    max-width: none;
    padding: 0;
  }
  body.sf-theme:has(.sf-scene--crop-mb) .sf-scene-pan-track {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    overflow: visible;
  }
  body.sf-theme .sf-scene--crop-mb {
    width: 100vw;
    height: min(calc(100dvh - var(--sf-bandeau-h, 70px)), calc(100vw * 2258 / 2375));
    max-width: none;
    margin: 0;
  }
}

/* Couche animée (zoom caméra + micro-FX) */
body.sf-theme .sf-scene-stage {
  position: absolute;
  inset: 0;
  transform-origin: 12.5% 41%;
  will-change: transform;
}

body.sf-theme .sf-zone-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  --glow-x: 50%;
  --glow-y: 50%;
  background:
    radial-gradient(ellipse 38% 55% at var(--glow-x) var(--glow-y), rgba(53, 224, 255, 0.5) 0%, transparent 68%),
    radial-gradient(ellipse 22% 35% at var(--glow-x) var(--glow-y), rgba(122, 209, 255, 0.35) 0%, transparent 72%);
}

/* Couche FX visible (micro-animations au clic) */
body.sf-theme .sf-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  overflow: hidden;
}

body.sf-theme .sf-fx-portal {
  position: absolute;
  left: var(--fx-x, 50%);
  top: var(--fx-y, 50%);
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  pointer-events: none;
}

body.sf-theme .sf-hotspot--fx-active {
  background: rgba(53, 224, 255, 0.28) !important;
  filter: brightness(1.35);
  box-shadow: inset 0 0 40px rgba(53, 224, 255, 0.45);
}

body.sf-theme .sf-transition-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  background: #03060d;
  transition: opacity 0s linear;
}

body.sf-theme .sf-transition-overlay.sf-transition-overlay--fade {
  opacity: 1;
  transition: opacity calc(var(--sf-fade-dur, 220ms)) ease-in;
}

body.sf-theme.sf-transition-active .sf-scene {
  pointer-events: none;
}

/* ---------- Zoom caméra (phase 2) ---------- */
body.sf-theme .sf-scene-stage {
  transition: transform 0s linear;
  will-change: transform;
}

body.sf-theme .sf-scene-stage.sf-scene-stage--zoom {
  transition: transform var(--sf-zoom-dur, 720ms) var(--sf-zoom-ease, cubic-bezier(0.65, 0, 0.35, 1));
  transform: scale(var(--sf-zoom-scale, 5));
}

/* ---------- Micro-animations VISIBLES sur la scène (phase 1) ---------- */

/* Porte : anneau qui se désaxe + flash sur toute la scène */
@keyframes sf-fx-door-ring {
  0% { transform: rotate(0deg) scale(0.85); opacity: 0.3; border-color: rgba(53, 224, 255, 0.4); }
  35% { transform: rotate(5deg) scale(1.05); opacity: 1; border-color: rgba(122, 230, 255, 1); box-shadow: 0 0 24px rgba(53, 224, 255, 0.9); }
  62% { transform: rotate(-2deg) scale(0.98); opacity: 0.85; }
  100% { transform: rotate(0deg) scale(1); opacity: 0.5; }
}
@keyframes sf-fx-door-flash {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  40% { opacity: 0.95; transform: scale(1.2); }
  70% { opacity: 0.4; transform: scale(1.5); }
}
@keyframes sf-stage-door-bright {
  0%, 100% { filter: brightness(1); }
  35% { filter: brightness(1.35) saturate(1.15); }
  55% { filter: brightness(1.15); }
}
body.sf-theme .sf-fx-portal--door .sf-fx-portal__ring {
  position: absolute;
  inset: 12%;
  border: 3px solid rgba(53, 224, 255, 0.85);
  border-radius: 4px;
  box-shadow: inset 0 0 20px rgba(53, 224, 255, 0.5);
  animation: sf-fx-door-ring 380ms cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}
body.sf-theme .sf-fx-portal--door .sf-fx-portal__flash {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 224, 255, 0.55) 0%, transparent 70%);
  animation: sf-fx-door-flash 380ms ease-out forwards;
}
body.sf-theme .sf-scene-stage--micro-door-flash {
  animation: sf-stage-door-bright 380ms ease forwards;
}

/* Armoire : double pulse lumineux */
@keyframes sf-fx-cabinet-pulse {
  0% { transform: scale(0.4); opacity: 0; }
  45% { transform: scale(1.15); opacity: 0.75; }
  100% { transform: scale(1.45); opacity: 0; }
}
body.sf-theme .sf-fx-portal--cabinet .sf-fx-portal__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 224, 255, 0.65) 0%, rgba(53, 224, 255, 0.15) 45%, transparent 70%);
  animation: sf-fx-cabinet-pulse 340ms ease-in-out forwards;
}
body.sf-theme .sf-fx-portal--cabinet .sf-fx-portal__pulse--delayed {
  animation-delay: 90ms;
  animation-duration: 400ms;
}

/* Console : glitch sur toute la scène + scanlines locales */
@keyframes sf-stage-glitch {
  0%, 100% { transform: translate(0, 0); filter: none; }
  12% { transform: translate(-5px, 1px); filter: hue-rotate(25deg) brightness(1.2); }
  28% { transform: translate(4px, -1px); filter: hue-rotate(-15deg) brightness(1.35); }
  44% { transform: translate(-3px, 0); filter: brightness(1.25); }
  60% { transform: translate(3px, 1px); filter: hue-rotate(10deg); }
  76% { transform: translate(-2px, 0); filter: none; }
}
@keyframes sf-fx-scan-flicker {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 0.9; }
  50% { opacity: 0.35; }
}
@keyframes sf-fx-glitch-bar {
  0%, 100% { transform: translateX(0); opacity: 0; }
  25% { transform: translateX(-8px); opacity: 0.85; }
  50% { transform: translateX(6px); opacity: 0.7; }
  75% { transform: translateX(-4px); opacity: 0.5; }
}
body.sf-theme .sf-scene-stage--micro-glitch {
  animation: sf-stage-glitch 260ms steps(2) forwards;
}
body.sf-theme .sf-fx-portal--console .sf-fx-portal__scan {
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    rgba(53, 224, 255, 0.18) 3px 4px
  );
  mix-blend-mode: screen;
  animation: sf-fx-scan-flicker 240ms steps(3) forwards;
}
body.sf-theme .sf-fx-portal--console .sf-fx-portal__glitch-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  height: 8px;
  background: rgba(122, 230, 255, 0.75);
  box-shadow: 0 0 12px rgba(53, 224, 255, 0.9);
  animation: sf-fx-glitch-bar 240ms linear forwards;
}

/* Hologramme : particules + onde */
@keyframes sf-fx-holo-particle {
  0% {
    transform: translate(var(--px, 0), var(--py, 0)) scale(1);
    opacity: 0.95;
  }
  100% {
    transform: translate(calc(var(--px, 0) * 0.05), calc(var(--py, 0) * 0.05)) scale(0);
    opacity: 0;
  }
}
@keyframes sf-fx-holo-wave {
  0% { transform: scale(0.15); opacity: 0.9; box-shadow: 0 0 16px 6px rgba(53, 224, 255, 0.8); }
  100% { transform: scale(2.8); opacity: 0; box-shadow: 0 0 48px 20px rgba(53, 224, 255, 0); }
}
body.sf-theme .sf-fx-portal--hologram .sf-fx-portal__particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #7ad1ff;
  box-shadow: 0 0 12px rgba(53, 224, 255, 1);
  transform: translate(var(--px, 0), var(--py, 0));
  animation: sf-fx-holo-particle 300ms ease-in forwards;
}
body.sf-theme .sf-fx-portal--hologram .sf-fx-portal__holo-wave {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  border: 2px solid rgba(122, 230, 255, 0.85);
  animation: sf-fx-holo-wave 220ms ease-out 260ms forwards;
}

/* Personnage : aura + sursaut */
@keyframes sf-fx-char-lift {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  45% { transform: translateY(-14px); opacity: 0.95; }
  70% { transform: translateY(-4px); opacity: 0.7; }
}
@keyframes sf-fx-char-aura {
  0% { transform: scale(0.7); opacity: 0; }
  50% { transform: scale(1.1); opacity: 0.65; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes sf-stage-char-nudge {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
}
body.sf-theme .sf-fx-portal--character .sf-fx-portal__lift {
  position: absolute;
  left: 50%;
  bottom: 20%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 50% 30%, rgba(180, 230, 255, 0.9), transparent 70%);
  animation: sf-fx-char-lift 320ms cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}
body.sf-theme .sf-fx-portal--character .sf-fx-portal__aura {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 224, 255, 0.35) 0%, transparent 65%);
  animation: sf-fx-char-aura 320ms ease-out forwards;
}
body.sf-theme .sf-scene-stage--micro-character {
  animation: sf-stage-char-nudge 320ms cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  body.sf-theme .sf-scene-stage.sf-scene-stage--micro-glitch,
  body.sf-theme .sf-scene-stage.sf-scene-stage--micro-door-flash,
  body.sf-theme .sf-scene-stage.sf-scene-stage--micro-character,
  body.sf-theme .sf-scene-stage.sf-scene-stage--zoom {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Coins HUD du cadre de scène. */
body.sf-theme .sf-scene::before,
body.sf-theme .sf-scene::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  z-index: 5;
  pointer-events: none;
}
body.sf-theme .sf-scene::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--accent-cyan);
  border-left: 2px solid var(--accent-cyan);
}
body.sf-theme .sf-scene::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--accent-amber);
  border-right: 2px solid var(--accent-amber);
}

body.sf-theme .sf-scene-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/*
 * Merchant bay : calque hotspots calé sur l'image rendue (pas sur une stage surdimensionnée).
 * .sf-scene-media prend la taille exacte de l'img ; le cadre .sf-scene rogne le bas si besoin.
 */
body.sf-theme .sf-scene--crop-mb .sf-scene-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  inset: unset;
  right: auto;
  bottom: auto;
}

body.sf-theme .sf-scene--crop-mb .sf-scene-media {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
}

body.sf-theme .sf-scene--crop-mb .sf-scene-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  max-width: none;
}

body.sf-theme .sf-scene--crop-mb .sf-hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ====================== Hotspots (contours d'objets) ====================== */
/*
 * Chaque hotspot couvre toute la scène (inset: 0) et reçoit un polygone de contour
 * via --shape (coordonnées en % de la scène). clip-path restreint AUSSI la zone de
 * clic au polygone → le clic suit le contour de l'objet (porte, étagère, orbe…).
 * L'étiquette est un élément frère (.sf-hotspot-tag, data-tag-for) pour ne pas être
 * rognée par le clip-path.
 */
body.sf-theme .sf-hotspot {
  position: absolute;
  inset: 0;
  clip-path: var(--shape, none);
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  z-index: 3;
  transition: background var(--dur-fast) ease;
}
body.sf-theme .sf-hotspot[hidden],
body.sf-theme .sf-hotspot-tag[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  clip-path: none !important;
}
/* Survol : le polygone entier s'illumine → l'objet est « surligné » à sa forme. */
body.sf-theme .sf-hotspot:hover,
body.sf-theme .sf-hotspot:focus-visible,
body.sf-theme .sf-hotspot.sf-hotspot--linked-hover {
  background: color-mix(in srgb, var(--accent-cyan) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-cyan) 75%, transparent);
  outline: none;
}
body.sf-theme .sf-hotspot:active,
body.sf-theme .sf-hotspot.sf-hotspot--linked-active,
body.sf-theme.sf-transition-active .sf-hotspot.sf-hotspot--linked-hover {
  background: color-mix(in srgb, var(--accent-cyan) 28%, transparent);
}
body.sf-theme.sf-transition-active .sf-hotspot.sf-hotspot--fx-active {
  background: color-mix(in srgb, var(--accent-cyan) 34%, transparent) !important;
  filter: brightness(1.35);
  box-shadow: inset 0 0 40px color-mix(in srgb, var(--accent-cyan) 45%, transparent);
}

/* Calibrage : merchant-bay.html?sf-hotspot-debug=1 affiche les polygones en cyan. */
body.sf-theme.sf-hotspot-debug .sf-hotspot {
  background: color-mix(in srgb, var(--accent-cyan) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-cyan) 65%, transparent);
}

/* Étiquette de zone : frère du hotspot, positionnée en % scène (--tx/--ty).
   Losange au-dessus (hors flux) ; voile biseauté uniquement derrière le texte. */
body.sf-theme .sf-hotspot-tag {
  --sf-tag-pin: 11px;
  --sf-tag-gap: 0.5rem;
  --sf-tag-pin-tf: translate(-50%, calc(-100% - var(--sf-tag-gap))) rotate(45deg);
  position: absolute;
  left: var(--tx);
  top: var(--ty);
  transform: translate(-50%, -50%);
  z-index: 4;
  isolation: isolate;
  pointer-events: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #eaf4ff;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0.18rem 0.55rem 0.22rem;
  white-space: nowrap;
  overflow: visible;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  line-height: 1.2;
  text-align: center;
  transition: color var(--dur-fast) ease;
}
body.sf-theme .sf-hotspot-tag::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(4, 10, 22, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  pointer-events: none;
  transition: background var(--dur-fast) ease;
}
body.sf-theme .sf-hotspot-tag--stack {
  white-space: normal;
}
body.sf-theme .sf-hotspot-tag--soon {
  color: rgba(255, 220, 222, 0.98);
  letter-spacing: 0.06em;
}
body.sf-theme .sf-hotspot-tag--soon::after {
  background: rgba(42, 8, 12, 0.52);
}
body.sf-theme .sf-hotspot-tag--static {
  position: static;
  transform: none;
  display: inline-flex;
  pointer-events: auto;
}
body.sf-theme .sf-hotspot:hover + .sf-hotspot-tag--soon,
body.sf-theme .sf-hotspot:focus-visible + .sf-hotspot-tag--soon,
body.sf-theme .sf-hotspot--locked + .sf-hotspot-tag--soon,
body.sf-theme .sf-hotspot--locked:hover + .sf-hotspot-tag--soon,
body.sf-theme .sf-hotspot--locked:focus-visible + .sf-hotspot-tag--soon {
  color: rgba(255, 220, 222, 0.98);
}
body.sf-theme .sf-hotspot:hover + .sf-hotspot-tag--soon::after,
body.sf-theme .sf-hotspot:focus-visible + .sf-hotspot-tag--soon::after,
body.sf-theme .sf-hotspot--locked + .sf-hotspot-tag--soon::after,
body.sf-theme .sf-hotspot--locked:hover + .sf-hotspot-tag--soon::after,
body.sf-theme .sf-hotspot--locked:focus-visible + .sf-hotspot-tag--soon::after {
  background: rgba(42, 8, 12, 0.58);
}
body.sf-theme .sf-hotspot-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--sf-tag-pin);
  height: var(--sf-tag-pin);
  box-sizing: border-box;
  margin: 0;
  background: var(--accent-cyan, #5fd4ff);
  border: 1px solid rgba(255, 255, 255, 0.62);
  transform: var(--sf-tag-pin-tf);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent-cyan, #5fd4ff) 95%, transparent), 0 0 22px color-mix(in srgb, var(--accent-cyan, #5fd4ff) 40%, transparent);
}
body.sf-theme .sf-hotspot-tag--soon::before,
body.sf-theme .sf-hotspot--locked + .sf-hotspot-tag--soon::before {
  content: "";
  background: rgba(255, 196, 200, 0.98);
  border-color: rgba(255, 240, 240, 0.85);
  box-shadow: 0 0 10px rgba(255, 110, 120, 0.85);
}
body.sf-theme .sf-hotspot:hover + .sf-hotspot-tag,
body.sf-theme .sf-hotspot:focus-visible + .sf-hotspot-tag,
body.sf-theme .sf-hotspot-tag.sf-hotspot-tag--linked-hover {
  color: var(--accent-cyan, #5fd4ff);
}
body.sf-theme .sf-hotspot:hover + .sf-hotspot-tag::after,
body.sf-theme .sf-hotspot:focus-visible + .sf-hotspot-tag::after,
body.sf-theme .sf-hotspot-tag.sf-hotspot-tag--linked-hover::after {
  background: rgba(4, 14, 28, 0.62);
}
body.sf-theme .sf-hotspot:hover + .sf-hotspot-tag::before,
body.sf-theme .sf-hotspot:focus-visible + .sf-hotspot-tag::before,
body.sf-theme .sf-hotspot-tag.sf-hotspot-tag--linked-hover::before {
  transform: var(--sf-tag-pin-tf) scale(1.22);
  animation: none;
  box-shadow: 0 0 16px var(--accent-cyan, #5fd4ff), 0 0 28px color-mix(in srgb, var(--accent-cyan, #5fd4ff) 55%, transparent);
}

/* — État verrouillé (IA de bord sans autorisation) — */
body.sf-theme .sf-hotspot--locked {
  cursor: not-allowed;
}
body.sf-theme .sf-hotspot--locked:hover,
body.sf-theme .sf-hotspot--locked:focus-visible {
  background: color-mix(in srgb, var(--accent-danger) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-danger) 70%, transparent);
}
body.sf-theme .sf-hotspot--locked + .sf-hotspot-tag {
  color: var(--text-dim, rgba(190, 210, 235, 0.55));
}
body.sf-theme .sf-hotspot--locked + .sf-hotspot-tag::after {
  background: rgba(18, 8, 12, 0.5);
}
body.sf-theme .sf-hotspot--locked + .sf-hotspot-tag::before {
  content: "";
  background: var(--accent-danger, #ff5c7a);
  border-color: rgba(255, 210, 210, 0.7);
  box-shadow: 0 0 10px rgba(255, 92, 122, 0.85);
  animation: none;
}
body.sf-theme .sf-hotspot--locked:hover + .sf-hotspot-tag,
body.sf-theme .sf-hotspot--locked:focus-visible + .sf-hotspot-tag {
  color: var(--accent-danger, #ff5c7a);
}
body.sf-theme .sf-hotspot--locked:hover + .sf-hotspot-tag::after,
body.sf-theme .sf-hotspot--locked:focus-visible + .sf-hotspot-tag::after {
  background: rgba(32, 8, 12, 0.58);
}
/* Flash « accès refusé » (classe posée par JS). */
body.sf-theme .sf-hotspot--denied + .sf-hotspot-tag {
  color: var(--accent-danger, #ff5c7a);
}

/* ====================== Popovers de choix ====================== */
/* Bug fix : display:flex écrasait l'attribut hidden → encarts visibles avant le clic. */
body.sf-theme .sf-popover[hidden] {
  display: none;
}
body.sf-theme .sf-popover {
  position: absolute;
  left: var(--px);
  top: var(--py);
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 200px;
  padding: 0.6rem;
  background: linear-gradient(180deg, rgba(19, 35, 59, 0.92), rgba(7, 14, 28, 0.97));
  border: 1px solid var(--accent-cyan);
  box-shadow: var(--glow-cyan), 0 18px 40px rgba(0, 0, 0, 0.65);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  z-index: 10;
}
body.sf-theme .sf-popover-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 0.15rem;
}
body.sf-theme .sf-popover a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-hi);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
body.sf-theme .sf-popover a:hover,
body.sf-theme .sf-popover a:focus-visible {
  color: var(--bg-void);
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* ====================== Accès direct (fallback accessible) ====================== */
body.sf-theme .sf-quick-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
body.sf-theme .sf-quick-access-label {
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
body.sf-theme .sf-quick-access a {
  color: var(--accent-cyan-soft);
  text-decoration: none;
  border-bottom: 1px dotted rgba(122, 209, 255, 0.4);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
body.sf-theme .sf-quick-access a:hover {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}
body.sf-theme .sf-quick-access a:focus-visible {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  outline: 2px solid color-mix(in srgb, var(--accent-cyan, #5fd4ff) 55%, transparent);
  outline-offset: 3px;
}

/* ====================== Animations (si motion OK) ====================== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes sf-hotspot-pulse {
    0%, 100% {
      transform: var(--sf-tag-pin-tf) scale(1);
      box-shadow: 0 0 8px color-mix(in srgb, var(--accent-cyan, #5fd4ff) 70%, transparent), 0 0 0 0 color-mix(in srgb, var(--accent-cyan, #5fd4ff) 35%, transparent);
    }
    50% {
      transform: var(--sf-tag-pin-tf) scale(1.16);
      box-shadow: 0 0 16px var(--accent-cyan, #5fd4ff), 0 0 0 7px transparent;
    }
  }
  @keyframes sf-denied-shake {
    0%, 100% { transform: translate(-50%, -50%) translateX(0); }
    25% { transform: translate(-50%, -50%) translateX(-4px); }
    75% { transform: translate(-50%, -50%) translateX(4px); }
  }
  body.sf-theme .sf-hotspot-tag::before {
    animation: sf-hotspot-pulse 2.4s ease-in-out infinite;
  }
  html.sf-motion-disabled body.sf-theme .sf-hotspot-tag::before,
  body.sf-theme .sf-hotspot--locked + .sf-hotspot-tag::before {
    animation: none;
  }
  body.sf-theme .sf-hotspot--denied + .sf-hotspot-tag {
    animation: sf-denied-shake 0.3s ease 0s 2;
  }
  body.sf-theme .sf-scene {
    animation: sf-reveal var(--dur-reveal) ease both;
  }
  body.sf-theme .sf-popover {
    animation: sf-reveal var(--dur-med) ease both;
  }
}

/* ====================== Responsive ====================== */
@media (max-width: 760px) {
  body.sf-theme:has(.sf-game-main) {
    overflow-x: hidden;
  }

  body.sf-theme .sf-game-main {
    padding: 0;
    max-width: none;
    --sf-scene-max-h: calc(100dvh - var(--sf-bandeau-h));
  }

  body.sf-theme.sf-genesis-hall:has(.sf-scene--crop-b3) .sf-game-main {
    --sf-scene-max-h: 100dvh;
  }

  body.sf-theme.sf-genesis-hall:has(.sf-scene--crop-b3) .sf-scene-wrap {
    top: 0;
    height: 100dvh;
  }

  /* Mobile : hauteur plein écran sous bandeau + panoramique horizontal */
  body.sf-theme .sf-scene-wrap {
    display: block;
    height: var(--sf-scene-max-h);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
  }
  body.sf-theme .sf-scene-wrap::-webkit-scrollbar {
    display: none;
  }

  body.sf-theme .sf-scene {
    width: calc(var(--sf-scene-max-h) * 3 / 2);
    height: var(--sf-scene-max-h);
    max-width: none;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  /* Cargo bay : dimensions pilotées par JS (--sf-cb-scene-w/h). */
  body.sf-theme .sf-scene--crop-b3 {
    aspect-ratio: unset;
    width: var(--sf-cb-scene-w, calc(var(--sf-scene-max-h) * 3 / 2));
    height: var(--sf-cb-scene-h, var(--sf-scene-max-h));
  }

  body.sf-theme .sf-scene-pan-edge {
    display: block;
    position: fixed;
    top: var(--sf-bandeau-h, 56px);
    bottom: 0;
    width: 2rem;
    pointer-events: none;
    z-index: 12;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  body.sf-theme .sf-scene-pan-edge--left {
    left: 0;
    background: linear-gradient(to right, rgba(4, 10, 24, 0.72), transparent);
  }
  body.sf-theme .sf-scene-pan-edge--right {
    right: 0;
    background: linear-gradient(to left, rgba(4, 10, 24, 0.72), transparent);
  }
  body.sf-theme.sf-scene-pan-active:not(.sf-scene-at-start) .sf-scene-pan-edge--left {
    opacity: 1;
  }
  body.sf-theme.sf-scene-pan-active:not(.sf-scene-at-end) .sf-scene-pan-edge--right {
    opacity: 1;
  }

  body.sf-theme .sf-scene-pan-hint {
    display: block;
    position: fixed;
    left: 50%;
    bottom: 0.55rem;
    transform: translateX(-50%);
    z-index: 13;
    pointer-events: none;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(160, 220, 255, 0.82);
    background: rgba(3, 6, 13, 0.78);
    border: 1px solid rgba(120, 200, 255, 0.22);
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
    opacity: 1;
    transition: opacity 0.35s ease;
  }
  body.sf-theme.sf-scene-pan-hint-hidden .sf-scene-pan-hint,
  body.sf-theme:not(.sf-scene-pan-active) .sf-scene-pan-hint,
  body.sf-theme.sf-scene-pan-nav-visible .sf-scene-pan-hint {
    opacity: 0;
    visibility: hidden;
  }

  /* Boutons ← → : bas de l'écran, centrés et rapprochés (index + merchant bay) */
  body.sf-theme .sf-scene-pan-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 8rem;
    z-index: 14;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.35rem;
    padding: 0;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  body.sf-theme.sf-scene-pan-nav-visible .sf-scene-pan-nav {
    opacity: 1;
    visibility: visible;
  }
  body.sf-theme .sf-scene-pan-btn.menu-bouton {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    pointer-events: auto;
  }
  body.sf-theme .sf-scene-pan-btn.menu-bouton:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
  }
  body.sf-theme .sf-scene-pan-btn-icon {
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
  }
  body.sf-theme .sf-scene-pan-btn-icon--left {
    margin-right: 3px;
    border-right: 13px solid currentColor;
  }
  body.sf-theme .sf-scene-pan-btn-icon--right {
    margin-left: 3px;
    border-left: 13px solid currentColor;
  }

  body.sf-theme .sf-hotspot-tag {
    font-size: 0.76rem;
    padding: 0.16rem 0.48rem 0.2rem;
    white-space: normal;
    text-align: center;
    line-height: 1.22;
    max-width: 34vw;
  }
  body.sf-theme .sf-popover {
    min-width: 160px;
    padding: 0.45rem;
  }
  body.sf-theme .sf-popover a {
    font-size: 0.72rem;
    padding: 0.38rem 0.5rem;
  }
}

/*
 * Merchant bay mobile/touch : comme l'index (pleine hauteur + swipe horizontal).
 * Fenêtre source : x = 189 px, largeur 1855 px ; zoom ×1,5 (JS : MB_CROP_SRC_X, MB_MOBILE_ZOOM).
 * --sf-mb-track-w, --sf-mb-scene-w, --sf-mb-crop-x posés par sf-game.js.
 */
body.sf-mb-mobile-layout.sf-merchant-bay .sf-game-main {
  padding: 0;
  max-width: none;
}
body.sf-mb-mobile-layout.sf-merchant-bay .sf-scene-wrap {
  display: block;
  width: 100%;
  height: var(--sf-scene-max-h);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}
body.sf-mb-mobile-layout.sf-merchant-bay .sf-scene-wrap::-webkit-scrollbar {
  display: none;
}
body.sf-mb-mobile-layout.sf-merchant-bay .sf-scene-pan-track {
  display: block;
  position: relative;
  width: var(--sf-mb-track-w);
  height: var(--sf-scene-max-h);
  overflow: hidden;
  flex-shrink: 0;
}
body.sf-mb-mobile-layout.sf-merchant-bay .sf-scene--crop-mb {
  box-sizing: border-box;
  display: block;
  width: var(--sf-mb-scene-w);
  height: var(--sf-mb-scene-h);
  aspect-ratio: unset;
  margin: 0;
  overflow: visible;
  transform: translateX(calc(-1 * var(--sf-mb-crop-x, 0px)));
}
body.sf-mb-mobile-layout.sf-merchant-bay .sf-scene--crop-mb .sf-scene-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
}
body.sf-mb-mobile-layout.sf-merchant-bay .sf-scene--crop-mb .sf-scene-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body.sf-mb-mobile-layout.sf-merchant-bay .sf-scene--crop-mb .sf-scene-img {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  vertical-align: top;
}

body.sf-theme .sf-scene-pan-edge,
body.sf-theme .sf-scene-pan-hint {
  display: none;
}

body.sf-mb-mobile-layout.sf-merchant-bay .sf-scene-pan-edge,
body.sf-mb-mobile-layout.sf-merchant-bay .sf-scene-pan-hint {
  display: block;
}

/* Genesis Hall — pages zone (placeholder) */
body.sf-theme.sf-genesis-zone .sf-game-main.sf-genesis-zone-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--sf-scene-max-h, calc(100vh - 4rem));
  padding: 1.5rem;
}
body.sf-theme .sf-genesis-zone-panel {
  width: min(100%, 36rem);
  padding: 2rem 2.25rem;
  border: 1px solid rgba(120, 200, 255, 0.22);
  border-radius: 0.35rem;
  background: linear-gradient(145deg, rgba(8, 18, 32, 0.92), rgba(12, 28, 48, 0.88));
  box-shadow: 0 0 2rem rgba(60, 140, 220, 0.12);
}
body.sf-theme .sf-genesis-zone-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(160, 220, 255, 0.85);
  text-decoration: none;
}
body.sf-theme .sf-genesis-zone-back:hover {
  color: #fff;
}

/* Retour Genesis Hall — bouton visible (Blend Sphere et zones) */
body.sf-theme .sf-genesis-hall-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0 0 0.65rem;
  padding: 0.54rem 0.9rem;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(120, 200, 255, 0.55);
  background: radial-gradient(circle at 30% 20%, rgba(100, 180, 255, 0.24), rgba(0, 42, 82, 0.92));
  color: rgba(210, 235, 255, 0.98);
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
body.sf-theme .sf-genesis-hall-back-btn-icon {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.92;
}
body.sf-theme .sf-genesis-hall-back-btn-label {
  flex: 0 1 auto;
  min-width: 0;
}
body.sf-theme .sf-genesis-hall-back-btn:hover {
  color: #fff;
  background: radial-gradient(circle at 30% 20%, rgba(130, 200, 255, 0.32), rgba(0, 58, 108, 0.95));
  border-color: rgba(140, 220, 255, 0.78);
  box-shadow:
    0 4px 14px rgba(80, 160, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
body.sf-theme .sf-genesis-hall-back-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(4, 12, 28, 0.95),
    0 0 0 4px rgba(120, 200, 255, 0.42);
}

/* Genesis Hall — zone titles / soon tags */
body.sf-theme .sf-genesis-zone-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(220, 240, 255, 0.95);
}
body.sf-theme .sf-genesis-zone-lead {
  margin: 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(160, 190, 220, 0.78);
}
body.sf-theme .sf-genesis-zone-soon-wrap {
  margin: 0;
  text-align: center;
}
body.sf-theme .sf-genesis-zone-soon-wrap .sf-hotspot-tag.sf-hotspot-tag--soon,
body.sf-theme .sf-hotspot-tag.sf-hotspot-tag--soon {
  color: rgba(255, 220, 222, 0.98);
  letter-spacing: 0.06em;
}
body.sf-theme .sf-genesis-zone-soon-wrap .sf-hotspot-tag.sf-hotspot-tag--soon::after,
body.sf-theme .sf-hotspot-tag.sf-hotspot-tag--soon::after {
  background: rgba(42, 8, 12, 0.52);
}
body.sf-theme .sf-genesis-zone-soon-wrap .sf-hotspot-tag.sf-hotspot-tag--soon::before,
body.sf-theme .sf-hotspot-tag.sf-hotspot-tag--soon::before {
  content: "";
  background: rgba(255, 196, 200, 0.98);
  border-color: rgba(255, 240, 240, 0.85);
  box-shadow: 0 0 10px rgba(255, 110, 120, 0.85);
}
body.sf-theme .sf-zone-soon-screen {
  display: none;
}
body.sf-theme.sf-zone-soon-gated .sf-zone-soon-screen {
  display: flex;
}
body.sf-theme.sf-zone-soon-gated .market-gated-wrap {
  display: none !important;
}

/* Blend Sphere — page fonctionnelle (market layout + thème Genesis) */
body.blend-sphere-gated:not(.blend-sphere-unlocked) {
  overflow: hidden;
}
body.blend-sphere-unlocked #blend-sphere-gate-overlay {
  display: none !important;
}
body.blend-sphere-page .market-gated-wrap {
  min-height: calc(100vh - var(--blend-sphere-bandeau-h, 70px));
}
body.blend-sphere-gated .blend-sphere-main {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}
body.blend-sphere-gated.blend-sphere-unlocked .blend-sphere-main {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}
body.blend-sphere-page {
  --blend-sphere-sidebar-w: 320px;
  --blend-sphere-page-pad-top: 1rem;
  --blend-sphere-page-pad-x: 1.25rem;
  --blend-sphere-page-pad-bottom: calc(var(--blend-sphere-page-pad-x) * 0.5);
}
body.blend-sphere-page .blend-sphere-main {
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--blend-sphere-page-pad-top) var(--blend-sphere-page-pad-x) var(--blend-sphere-page-pad-bottom);
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-layout {
  display: grid;
  grid-template-columns: var(--blend-sphere-sidebar-w) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-col--left {
  align-items: stretch;
  width: 100%;
  max-width: var(--blend-sphere-sidebar-w);
  overflow: visible;
}
body.blend-sphere-page .blend-sphere-back {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  /* Marge haute pour le translateY + halo au survol (colonne sans overflow:hidden). */
  margin-top: 6px;
}
body.blend-sphere-page .blend-sphere-encart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  margin-bottom: 0.65rem;
}
body.blend-sphere-page .blend-sphere-encart-header .market-encart-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
body.blend-sphere-page .blend-sphere-back--mobile {
  display: none;
}
body.blend-sphere-page .blend-sphere-back--sticky-mobile {
  display: none;
}
body.blend-sphere-page .blend-sphere-mobile-sticky-head {
  display: none;
}
body.blend-sphere-page .blend-sphere-back--desktop {
  display: inline-flex;
}
body.blend-sphere-page .blend-sphere-col--right {
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
}
body.blend-sphere-page .blend-sphere-inputs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  padding: 0 0.1rem 0.15rem;
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-inputs-label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #d8ecff;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
}
body.blend-sphere-page .blend-sphere-refresh-btn {
  flex: 0 0 auto;
  max-width: 100%;
  font-size: 0.82rem;
  padding: 0.42rem 0.75rem;
  white-space: nowrap;
}
@media (min-width: 901px) {
  /* Pas de scroll global : chaque colonne gère son propre scroll interne.
     La hauteur du layout est calée sur le viewport moins la hauteur réelle
     du bandeau (--blend-sphere-bandeau-h, mesurée par blend-sphere.js). */
  body.blend-sphere-page.blend-sphere-unlocked {
    overflow: hidden;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-layout {
    height: calc(
      100dvh - var(--blend-sphere-bandeau-h, 70px) - var(--blend-sphere-page-pad-top) -
        var(--blend-sphere-page-pad-bottom)
    );
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
  }

  /* — Colonne gauche : liste des blends.
       L'encart épouse son contenu et se borne à la hauteur de la page ;
       seule la liste scrolle. */
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-col--left {
    min-height: 0;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-back {
    flex: 0 0 auto;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-sidebar {
    position: static;
    flex: 0 1 auto;
    min-height: 0;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-sidebar .market-encart {
    flex: 0 1 auto;
    min-height: 0;
  }

  /* — Colonne droite : détail du blend.
       L'encart occupe la hauteur de la page ; l'outcome et l'inventaire
       scrollent chacun en interne si besoin. */
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-col--right {
    min-height: 0;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-status {
    flex: 0 0 auto;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-detail {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-workbench {
    flex: 1 1 auto;
    min-height: 0;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-workbench-body {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-workbench-outcome {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    /* marge interne pour le halo (dégradé + drop-shadow) — surtout en haut */
    padding: 2rem 1.25rem 1.5rem;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-workbench-outcome--loot-carousel {
    padding: 3.5rem 3rem 3rem;
    overflow: visible;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-outcome-stage {
    margin-top: 0;
    margin-bottom: 0;
    max-height: none;
    overflow: visible;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-workbench-inputs {
    min-height: 0;
    overflow-x: visible;
    overflow-y: hidden;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-inputs-header {
    flex-shrink: 0;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-slots {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-market-compare {
    flex: 0 0 auto;
  }

  /* Asset de sortie plus grand sur desktop (hauteur disponible dans l'encart détail) */
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-outcome-primary {
    max-width: min(100%, 26rem);
    overflow: visible;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-outcome-hero-wrap {
    width: min(100%, 26rem);
    max-height: 26rem;
    padding: 1rem;
    overflow: visible;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-outcome-hero-wrap::before {
    inset: -1rem;
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-outcome-hero-wrap .blend-sphere-outcome-hero,
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-outcome-hero {
    width: min(100%, 24rem);
    height: min(100%, 24rem);
    max-width: min(100%, 24rem);
    max-height: min(100%, 24rem);
  }
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-outcome-hero--empty {
    width: 24rem;
    height: 24rem;
  }
}
@media (max-width: 900px) {
  body.blend-sphere-page .blend-sphere-layout {
    grid-template-columns: 1fr;
  }
  body.blend-sphere-page .blend-sphere-col--right {
    order: 2;
  }
  body.blend-sphere-page .blend-sphere-col--left {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  body.blend-sphere-page .blend-sphere-back--desktop {
    display: none;
  }
  body.blend-sphere-page .blend-sphere-mobile-sticky-head {
    display: block;
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 5.25rem);
    z-index: 70;
    margin: 0 0 0.65rem;
    padding-bottom: 0.45rem;
    background: rgb(2, 8, 20);
  }
  body.blend-sphere-page .blend-sphere-head-encart {
    margin: 0;
  }
  body.blend-sphere-page .blend-sphere-encart-header--page {
    margin-bottom: 0;
  }
  body.blend-sphere-page .blend-sphere-mobile-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    text-align: left;
    font-family: var(--font-display, "Chakra Petch", sans-serif);
    font-size: clamp(1.2rem, 0.95rem + 0.45vw, 1.42rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(238, 246, 255, 0.98);
  }
  body.blend-sphere-page .blend-sphere-back--sticky-mobile {
    display: inline-flex;
    width: auto;
    min-width: 2.35rem;
    height: 2.35rem;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    border-radius: 8px;
  }
  body.blend-sphere-page .blend-sphere-back--sticky-mobile .sf-genesis-hall-back-btn-icon {
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 400;
  }
  body.blend-sphere-page .blend-sphere-sidebar .blend-sphere-encart-header:not(.blend-sphere-encart-header--page) {
    display: none;
  }
  body.blend-sphere-page .blend-sphere-sidebar {
    position: static;
    top: auto;
  }
  body.blend-sphere-page .blend-sphere-sidebar .market-encart {
    width: 100%;
    max-width: none;
  }
  body.blend-sphere-page .blend-sphere-outcome-primary--loot-carousel {
    align-items: center;
    width: 100%;
  }
  body.blend-sphere-page .blend-sphere-outcome-loot-carousel {
    width: 100%;
    max-width: 100%;
    justify-items: center;
  }
  body.blend-sphere-page .blend-sphere-outcome-loot-viewport {
    width: 100%;
    max-width: min(100%, 17rem);
    margin-inline: auto;
  }
}
body.blend-sphere-page .blend-sphere-sidebar {
  position: sticky;
  top: calc(var(--blend-sphere-bandeau-h, 3.5rem) + 0.5rem);
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-sidebar .market-encart {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-sidebar .market-encart-title,
body.blend-sphere-page .blend-sphere-sidebar .blend-sphere-category-tabs,
body.blend-sphere-page .blend-sphere-sidebar .blend-sphere-search-wrap,
body.blend-sphere-page .blend-sphere-sidebar .blend-sphere-craft-filters {
  flex-shrink: 0;
}
body.blend-sphere-page .blend-sphere-sidebar .blend-sphere-list-box {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
body.blend-sphere-page .blend-sphere-sidebar #blend-sphere-list-loading,
body.blend-sphere-page .blend-sphere-sidebar #blend-sphere-list-empty,
body.ascend-nexus-page .blend-sphere-sidebar #ascend-nexus-list-loading,
body.ascend-nexus-page .blend-sphere-sidebar #ascend-nexus-list-empty {
  flex-shrink: 0;
}
body.blend-sphere-page .blend-sphere-sidebar .blend-sphere-list-box:has(#blend-sphere-list-empty:not([hidden])) .blend-sphere-list-scroll,
body.ascend-nexus-page .blend-sphere-sidebar .blend-sphere-list-box:has(#ascend-nexus-list-empty:not([hidden])) .blend-sphere-list-scroll {
  display: none;
}
body.blend-sphere-page .blend-sphere-sidebar #blend-sphere-list-empty:not([hidden]),
body.ascend-nexus-page .blend-sphere-sidebar #ascend-nexus-list-empty:not([hidden]) {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
  margin: 0;
  padding: 1.35rem 1rem;
  text-align: center;
  line-height: 1.45;
  border-radius: 8px;
  border: 1px dashed rgba(100, 160, 220, 0.32);
  background: radial-gradient(circle at 50% 0%, rgba(80, 150, 230, 0.1), rgba(4, 10, 22, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(200, 220, 245, 0.88);
}
body.ascend-nexus-page .blend-sphere-sidebar #ascend-nexus-list-empty:not([hidden]) {
  border-color: rgba(240, 200, 120, 0.34);
  background: radial-gradient(circle at 50% 0%, rgba(240, 200, 120, 0.1), rgba(4, 10, 22, 0.82));
  color: rgba(245, 228, 190, 0.9);
}
/* Empty détail : police jeu, hors flux dès qu’un path est affiché */
body.blend-sphere-page #blend-sphere-detail-empty[hidden],
body.ascend-nexus-page #ascend-nexus-detail-empty[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
body.blend-sphere-page #blend-sphere-detail-empty:not([hidden]),
body.ascend-nexus-page #ascend-nexus-detail-empty:not([hidden]) {
  flex: 0 0 auto;
  margin: 1.25rem auto;
  padding: 1.35rem 1.1rem;
  max-width: 28rem;
  text-align: center;
  line-height: 1.45;
  border-radius: 8px;
  border: 1px dashed rgba(100, 160, 220, 0.32);
  background: radial-gradient(circle at 50% 0%, rgba(80, 150, 230, 0.1), rgba(4, 10, 22, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(200, 220, 245, 0.88);
}
body.ascend-nexus-page #ascend-nexus-detail-empty:not([hidden]) {
  border-color: rgba(240, 200, 120, 0.34);
  background: radial-gradient(circle at 50% 0%, rgba(240, 200, 120, 0.1), rgba(4, 10, 22, 0.82));
  color: rgba(245, 228, 190, 0.9);
}
body.blend-sphere-page .blend-sphere-list-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.blend-sphere-page .blend-sphere-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-detail {
  min-width: 0;
  max-width: 100%;
}
body.blend-sphere-page .blend-sphere-search-wrap[hidden] {
  display: none !important;
}
body.blend-sphere-page .blend-sphere-search-wrap {
  display: block;
  margin-bottom: 0;
}
body.blend-sphere-page .blend-sphere-craft-material-filter[hidden] {
  display: none !important;
}
body.blend-sphere-page .blend-sphere-craft-material-filter:not([hidden]) {
  margin: 0.45rem 0 0;
}
body.blend-sphere-page .blend-sphere-craft-material-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(120, 200, 255, 0.24);
  background: rgba(0, 10, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --bs-craft-mat-chip-py: 0.15rem;
  --bs-craft-mat-chip-img: 1.35rem;
  --bs-craft-mat-chip-h: calc(var(--bs-craft-mat-chip-py) * 2 + var(--bs-craft-mat-chip-img));
  --bs-craft-mat-chip-clear: 1.15rem;
  --bs-craft-mat-chip-gap: 0.35rem;
  --bs-craft-mat-chip-w: 9rem;
}
body.blend-sphere-page .blend-sphere-craft-material-label {
  flex: 0 0 auto;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(170, 205, 240, 0.88);
  white-space: nowrap;
}
body.blend-sphere-page .blend-sphere-craft-material-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
}
body.blend-sphere-page .blend-sphere-craft-material-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  min-width: 0;
  max-width: 100%;
}
body.blend-sphere-page .blend-sphere-craft-material-chips[hidden] {
  display: none !important;
}
body.blend-sphere-page .blend-sphere-craft-material-add {
  flex-shrink: 0;
  margin: 0;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}
body.blend-sphere-page .blend-sphere-craft-material-add-glyph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 600;
  color: #d8ecff;
}
body.blend-sphere-page .blend-sphere-craft-material-add[hidden] {
  display: none !important;
}
body.blend-sphere-page .blend-sphere-craft-material-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--bs-craft-mat-chip-gap);
  box-sizing: border-box;
  width: var(--bs-craft-mat-chip-w);
  min-width: var(--bs-craft-mat-chip-w);
  max-width: var(--bs-craft-mat-chip-w);
  min-height: var(--bs-craft-mat-chip-h);
  height: var(--bs-craft-mat-chip-h);
  padding: var(--bs-craft-mat-chip-py) 0.2rem var(--bs-craft-mat-chip-py) 0.25rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 186, 100, 0.42);
  background: rgba(28, 18, 4, 0.72);
}
body.blend-sphere-page .blend-sphere-craft-material-chip.blend-sphere-craft-material-chip--add {
  justify-content: center;
  gap: 0;
  padding: var(--bs-craft-mat-chip-py) 0.25rem;
  border: 1px solid rgba(150, 215, 255, 0.42);
  background: rgba(8, 24, 44, 0.88);
}
body.blend-sphere-page .blend-sphere-craft-material-chip.blend-sphere-craft-material-chip--add:hover {
  border-color: rgba(170, 230, 255, 0.72);
  background: rgba(16, 40, 68, 0.92);
}
body.blend-sphere-page .blend-sphere-craft-material-chip.blend-sphere-craft-material-chip--add:hover .blend-sphere-craft-material-add-glyph {
  color: #f4fbff;
}
body.blend-sphere-page .blend-sphere-craft-material-chip-media {
  flex-shrink: 0;
  width: var(--bs-craft-mat-chip-img);
  height: var(--bs-craft-mat-chip-img);
  display: grid;
  place-items: center;
}
body.blend-sphere-page .blend-sphere-craft-material-chip-img {
  width: var(--bs-craft-mat-chip-img) !important;
  height: var(--bs-craft-mat-chip-img) !important;
  border-radius: 4px;
}
body.blend-sphere-page .blend-sphere-craft-material-chip-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffe8c8;
}
body.blend-sphere-page .blend-sphere-craft-material-clear {
  flex-shrink: 0;
  width: var(--bs-craft-mat-chip-clear);
  height: var(--bs-craft-mat-chip-clear);
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: rgba(220, 235, 255, 0.78);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
body.blend-sphere-page .blend-sphere-craft-material-clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
body.blend-sphere-page .blend-sphere-craft-filters[hidden] {
  display: none !important;
}
body.blend-sphere-page .blend-sphere-craft-filters:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.55rem 0 0.5rem;
}
body.blend-sphere-page .blend-sphere-filter-select-wrap {
  display: block;
  min-width: 0;
}
body.blend-sphere-page .blend-sphere-filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  margin: 0;
  padding: 0.44rem 1.85rem 0.44rem 0.55rem;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(120, 200, 255, 0.3);
  background-color: rgba(0, 10, 24, 0.92);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.5L6 6l4.5-4.5' stroke='%239ed4ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 0%, rgba(80, 150, 230, 0.16), rgba(0, 10, 24, 0.9));
  background-repeat: no-repeat, no-repeat;
  background-position: right 0.55rem center, 0 0;
  background-size: 0.72rem 0.45rem, auto;
  color: rgba(190, 215, 240, 0.95);
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}
body.blend-sphere-page .blend-sphere-filter-select:hover {
  border-color: rgba(150, 215, 255, 0.55);
  color: #f0f7ff;
}
body.blend-sphere-page .blend-sphere-filter-select:focus,
body.blend-sphere-page .blend-sphere-filter-select:focus-visible {
  outline: none;
  border-color: rgba(130, 210, 255, 0.78);
  box-shadow:
    0 0 0 1px rgba(130, 210, 255, 0.28),
    0 0 0 3px rgba(120, 200, 255, 0.28);
}
body.blend-sphere-page .blend-sphere-filter-select option {
  background: #061018;
  color: #e8f4ff;
}
body.blend-sphere-page .blend-sphere-search {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0.48rem 0.6rem;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(120, 200, 255, 0.3);
  background: radial-gradient(circle at 50% 0%, rgba(80, 150, 230, 0.16), rgba(0, 10, 24, 0.9));
  color: rgba(190, 215, 240, 0.95);
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
body.blend-sphere-page .blend-sphere-search::placeholder {
  color: rgba(150, 190, 230, 0.55);
}
body.blend-sphere-page .blend-sphere-search:focus,
body.blend-sphere-page .blend-sphere-search:focus-visible {
  outline: none;
  border-color: rgba(130, 210, 255, 0.78);
  box-shadow:
    0 0 0 1px rgba(130, 210, 255, 0.28),
    0 0 0 3px rgba(120, 200, 255, 0.28);
}
body.blend-sphere-page .blend-sphere-category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  max-width: 100%;
}
body.blend-sphere-page .blend-sphere-category-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.42rem 0.3rem;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(120, 200, 255, 0.3);
  background: radial-gradient(circle at 50% 0%, rgba(80, 150, 230, 0.16), rgba(0, 10, 24, 0.9));
  color: rgba(190, 215, 240, 0.9);
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}
body.blend-sphere-page .blend-sphere-category-tab:hover {
  border-color: rgba(150, 215, 255, 0.55);
  background: radial-gradient(circle at 50% 0%, rgba(100, 170, 240, 0.24), rgba(0, 16, 32, 0.94));
  color: #f0f7ff;
  transform: translateY(-1px);
}
body.blend-sphere-page .blend-sphere-category-tab:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(4, 12, 28, 0.95),
    0 0 0 4px rgba(120, 200, 255, 0.38);
}
body.blend-sphere-page .blend-sphere-category-tab.active {
  border-color: rgba(130, 210, 255, 0.78);
  background: radial-gradient(circle at 50% 0%, rgba(110, 190, 255, 0.38), rgba(0, 55, 110, 0.82));
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(130, 210, 255, 0.28),
    0 6px 18px rgba(0, 90, 180, 0.38),
    inset 0 1px 0 rgba(200, 230, 255, 0.14);
  transform: none;
}
body.blend-sphere-page .blend-sphere-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}
body.blend-sphere-page .blend-sphere-list-section {
  margin: 0 0 0.45rem;
  border: 1px solid rgba(100, 160, 220, 0.16);
  border-radius: 0.4rem;
  background: rgba(4, 10, 22, 0.35);
  overflow: hidden;
}
body.blend-sphere-page .blend-sphere-list-section:last-child {
  margin-bottom: 0;
}
body.blend-sphere-page .blend-sphere-list-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.48rem 0.55rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c8e4ff;
  background: linear-gradient(180deg, rgba(16, 34, 58, 0.72), rgba(8, 18, 32, 0.55));
  user-select: none;
}
body.blend-sphere-page .blend-sphere-list-section-summary::-webkit-details-marker {
  display: none;
}
body.blend-sphere-page .blend-sphere-list-section-summary::before {
  content: "▸";
  flex: 0 0 auto;
  margin-right: 0.35rem;
  font-size: 0.72rem;
  color: rgba(150, 210, 255, 0.75);
  transition: transform 0.15s ease;
}
body.blend-sphere-page .blend-sphere-list-section[open] > .blend-sphere-list-section-summary::before {
  transform: rotate(90deg);
}
body.blend-sphere-page .blend-sphere-list-section-title {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex: 1 1 auto;
  min-width: 0;
}
body.blend-sphere-page .blend-sphere-schema-icon {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  object-fit: contain;
}
body.blend-sphere-page .blend-sphere-list-section-label {
  flex: 1 1 auto;
  min-width: 0;
}
body.blend-sphere-page .blend-sphere-list-section-count {
  flex: 0 0 auto;
  min-width: 1.35rem;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: rgba(12, 32, 58, 0.85);
  border: 1px solid rgba(120, 190, 255, 0.28);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: #9ed4ff;
}
body.blend-sphere-page .blend-sphere-list-section-body {
  padding: 0.25rem 0.35rem 0.35rem;
}
body.blend-sphere-page .blend-sphere-list-section-body .blend-sphere-list-item {
  margin-bottom: 0.2rem;
}
body.blend-sphere-page .blend-sphere-list-section-body .blend-sphere-list-item:last-child {
  margin-bottom: 0;
}
body.blend-sphere-page .blend-sphere-list-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin-bottom: 0.25rem;
  padding: 0.4rem 0.5rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #ccc;
  background: rgba(0, 15, 26, 0.5);
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
body.blend-sphere-page .blend-sphere-list-item:last-child {
  margin-bottom: 0;
}
body.blend-sphere-page .blend-sphere-list-item:hover {
  background: rgba(0, 78, 146, 0.2);
  color: #eee;
  border-color: rgba(0, 78, 146, 0.4);
}
body.blend-sphere-page .blend-sphere-list-item:focus-visible {
  outline: none;
  border-color: #004e92;
  box-shadow: 0 0 0 2px rgba(0, 78, 146, 0.3);
}
body.blend-sphere-page .blend-sphere-list-item.selected,
body.blend-sphere-page .blend-sphere-list-item--active {
  background: rgba(0, 78, 146, 0.35);
  border-color: #004e92;
  color: #fff;
}
body.blend-sphere-page .blend-sphere-list-item-inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}
body.blend-sphere-page .blend-sphere-list-item-media {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.12rem;
}
body.blend-sphere-page .blend-sphere-nft-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
body.blend-sphere-page .blend-sphere-list-item-img {
  width: 100%;
  height: 100%;
}
body.blend-sphere-page .blend-sphere-list-item-body {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
body.blend-sphere-page .blend-sphere-list-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}
body.blend-sphere-page .blend-sphere-list-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  font-size: 0.72rem;
  opacity: 0.75;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
}
body.blend-sphere-page .blend-sphere-list-item-meta-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
body.blend-sphere-page .blend-sphere-list-item-max {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 2.75rem;
  font-weight: 700;
  text-align: right;
  color: #5cff8a;
}
body.blend-sphere-page .blend-sphere-list-item-max--missing {
  color: #ff5c5c;
}
body.blend-sphere-page .blend-sphere-list-item--mint-cap {
  position: relative;
  background: rgba(38, 44, 54, 0.88);
  border: 1px solid rgba(28, 32, 40, 0.72);
  color: #0a0e14;
}
body.blend-sphere-page .blend-sphere-list-item--mint-cap:hover {
  background: rgba(44, 50, 60, 0.92);
  border-color: rgba(34, 38, 46, 0.78);
  color: #0a0e14;
}
body.blend-sphere-page .blend-sphere-list-item--mint-cap.selected,
body.blend-sphere-page .blend-sphere-list-item--mint-cap.blend-sphere-list-item--active {
  background: rgba(40, 46, 56, 0.9);
  border-color: #004e92;
  color: #0a0e14;
}
body.blend-sphere-page .blend-sphere-list-item--mint-cap .blend-sphere-list-item-inner {
  width: 100%;
  opacity: 1;
  filter: none;
  color: #0a0e14;
}
body.blend-sphere-page .blend-sphere-list-item--mint-cap .blend-sphere-list-item-title {
  color: #b8c0cc;
  font-weight: 600;
}
body.blend-sphere-page .blend-sphere-list-item--mint-cap .blend-sphere-list-item-meta,
body.blend-sphere-page .blend-sphere-list-item--mint-cap .blend-sphere-list-item-meta-label {
  opacity: 1;
  color: #8a939f;
}
body.blend-sphere-page .blend-sphere-list-item--mint-cap .blend-sphere-list-item-media {
  opacity: 0.82;
  filter: grayscale(1) contrast(1.08);
  background: rgba(0, 0, 0, 0.32);
}
body.blend-sphere-page .blend-sphere-list-item--mint-cap .blend-sphere-list-item-media .blend-sphere-nft-img,
body.blend-sphere-page .blend-sphere-list-item--mint-cap .blend-sphere-list-item-img {
  filter: grayscale(1) contrast(1.08);
}
body.blend-sphere-page .blend-sphere-list-item-cap-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.45rem;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(24, 28, 36, 0.68);
}
body.blend-sphere-page .blend-sphere-list-item-cap-msg {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  color: #ff5c5c;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
body.blend-sphere-page .blend-sphere-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 0.2rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
body.blend-sphere-page .blend-sphere-badge--loot {
  background: rgba(180, 120, 255, 0.2);
  color: #d8b8ff;
}
body.blend-sphere-page .blend-sphere-detail-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
body.blend-sphere-page .blend-sphere-detail-hero {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid rgba(120, 180, 230, 0.25);
}
body.blend-sphere-page .blend-sphere-detail-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
body.blend-sphere-page .blend-sphere-detail-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted, #8aa0b8);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
}
body.blend-sphere-page .blend-sphere-workbench {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid rgba(100, 160, 220, 0.18);
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(8, 18, 32, 0.78), rgba(6, 14, 26, 0.58));
  max-width: 100%;
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-workbench-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-workbench-outcome {
  order: 1;
}
body.blend-sphere-page .blend-sphere-workbench-inputs {
  order: 2;
}
@media (min-width: 1201px) {
  body.blend-sphere-page .blend-sphere-workbench-body {
    grid-template-columns: minmax(0, 1.6fr) minmax(14rem, 0.72fr);
  }
  body.blend-sphere-page .blend-sphere-workbench-outcome,
  body.blend-sphere-page .blend-sphere-workbench-inputs {
    order: unset;
  }
}
body.blend-sphere-page .blend-sphere-workbench-outcome {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border-radius: 0.45rem;
  background: linear-gradient(145deg, rgba(12, 28, 52, 0.55), rgba(6, 16, 30, 0.35));
  border: 1px solid rgba(100, 180, 255, 0.16);
  box-shadow: inset 0 0 2.5rem rgba(80, 160, 255, 0.06);
}

/* Ascend : overflow visible pour le halo (dégradé) + panneau actions.
   Sur mobile (≤900), on garde le scroll sticky Blend — padding + side non compressé. */
@media (min-width: 901px) {
  body.ascend-nexus-page.blend-sphere-page .blend-sphere-col--right,
  body.ascend-nexus-page.blend-sphere-page .blend-sphere-content,
  body.ascend-nexus-page.blend-sphere-page .blend-sphere-detail,
  body.ascend-nexus-page.blend-sphere-page .blend-sphere-workbench,
  body.ascend-nexus-page.blend-sphere-page .blend-sphere-workbench-body,
  body.ascend-nexus-page.blend-sphere-page .blend-sphere-outcome-stage,
  body.ascend-nexus-page.blend-sphere-page .blend-sphere-outcome-primary,
  body.ascend-nexus-page.blend-sphere-page .ascend-nexus-outcome-halo {
    overflow: visible;
  }
  body.ascend-nexus-page.blend-sphere-page .blend-sphere-workbench-outcome,
  body.ascend-nexus-page.blend-sphere-page.blend-sphere-unlocked .blend-sphere-workbench-outcome,
  body.ascend-nexus-page.blend-sphere-page .ascend-nexus-outcome {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    min-height: min-content;
    padding: 2.75rem 1.5rem 2rem;
  }
}

/* Side Ascend : ne jamais compresser (sinon texte/boutons coupés par overflow) */
body.ascend-nexus-page .blend-sphere-outcome-side {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 9.75rem;
  width: auto;
  max-width: none;
  overflow: visible;
}
body.ascend-nexus-page .blend-sphere-outcome-primary {
  flex: 1 1 auto;
  min-width: 0;
}
body.ascend-nexus-page .blend-sphere-outcome-stage {
  overflow: visible;
  max-height: none;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  /* Overflow hidden conservé pour le sticky — marge pour le dégradé halo */
  body.ascend-nexus-page.blend-sphere-page .blend-sphere-workbench-outcome,
  body.ascend-nexus-page.blend-sphere-page .ascend-nexus-outcome {
    padding: 2.25rem 1.1rem 1.5rem;
  }
  body.ascend-nexus-page .blend-sphere-outcome-stage {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.85rem;
  }
  body.ascend-nexus-page .blend-sphere-outcome-side {
    min-width: min(100%, 12rem);
  }
}

/* Craft outcome : teintes de fond / bordure selon la rareté */
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="common"] {
  background: linear-gradient(145deg, rgba(48, 52, 58, 0.58), rgba(14, 16, 20, 0.4));
  border-color: rgba(170, 175, 185, 0.28);
  box-shadow: inset 0 0 2.5rem rgba(140, 145, 155, 0.08);
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="uncommon"] {
  background: linear-gradient(145deg, rgba(18, 52, 32, 0.58), rgba(6, 20, 14, 0.4));
  border-color: rgba(90, 210, 130, 0.32);
  box-shadow: inset 0 0 2.5rem rgba(70, 180, 110, 0.1);
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="rare"] {
  background: linear-gradient(145deg, rgba(12, 36, 72, 0.58), rgba(6, 16, 36, 0.4));
  border-color: rgba(90, 160, 255, 0.34);
  box-shadow: inset 0 0 2.5rem rgba(70, 140, 255, 0.1);
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="epic"] {
  background: linear-gradient(145deg, rgba(42, 18, 68, 0.58), rgba(18, 8, 34, 0.4));
  border-color: rgba(170, 110, 255, 0.36);
  box-shadow: inset 0 0 2.5rem rgba(140, 80, 230, 0.12);
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="legendary"] {
  background: linear-gradient(145deg, rgba(58, 42, 8, 0.58), rgba(28, 18, 4, 0.4));
  border-color: rgba(240, 200, 100, 0.4);
  box-shadow: inset 0 0 2.5rem rgba(230, 180, 70, 0.12);
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="mythic"] {
  background: linear-gradient(145deg, rgba(68, 16, 18, 0.58), rgba(28, 6, 8, 0.4));
  border-color: rgba(255, 90, 90, 0.4);
  box-shadow: inset 0 0 2.5rem rgba(230, 60, 70, 0.12);
}

/* Craft outcome : halo + glow selon la rareté */
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="common"] .blend-sphere-outcome-hero-wrap::before {
  background: radial-gradient(circle at 50% 50%, rgba(170, 175, 185, 0.28), transparent 72%);
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="uncommon"] .blend-sphere-outcome-hero-wrap::before {
  background: radial-gradient(circle at 50% 50%, rgba(90, 210, 130, 0.28), transparent 72%);
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="rare"] .blend-sphere-outcome-hero-wrap::before {
  background: radial-gradient(circle at 50% 50%, rgba(90, 160, 255, 0.28), transparent 72%);
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="epic"] .blend-sphere-outcome-hero-wrap::before {
  background: radial-gradient(circle at 50% 50%, rgba(170, 110, 255, 0.3), transparent 72%);
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="legendary"] .blend-sphere-outcome-hero-wrap::before {
  background: radial-gradient(circle at 50% 50%, rgba(240, 200, 100, 0.32), transparent 72%);
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="mythic"] .blend-sphere-outcome-hero-wrap::before {
  background: radial-gradient(circle at 50% 50%, rgba(255, 90, 90, 0.3), transparent 72%);
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="common"] .blend-sphere-outcome-hero {
  filter: drop-shadow(0 0 2rem rgba(170, 175, 185, 0.5));
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="uncommon"] .blend-sphere-outcome-hero {
  filter: drop-shadow(0 0 2rem rgba(90, 210, 130, 0.5));
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="rare"] .blend-sphere-outcome-hero {
  filter: drop-shadow(0 0 2rem rgba(90, 160, 255, 0.5));
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="epic"] .blend-sphere-outcome-hero {
  filter: drop-shadow(0 0 2rem rgba(170, 110, 255, 0.52));
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="legendary"] .blend-sphere-outcome-hero {
  filter: drop-shadow(0 0 2rem rgba(240, 200, 100, 0.55));
}
body.blend-sphere-page .blend-sphere-workbench-outcome[data-rarity="mythic"] .blend-sphere-outcome-hero {
  filter: drop-shadow(0 0 2rem rgba(255, 90, 90, 0.52));
}
body.blend-sphere-page .blend-sphere-workbench-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  min-height: 0;
  padding: 0.65rem 0.55rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(4, 10, 20, 0.42);
  border: 1px solid rgba(100, 160, 220, 0.12);
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-market-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(100, 160, 220, 0.16);
  overflow: hidden;
  background: rgba(4, 12, 24, 0.55);
}
body.blend-sphere-page .blend-sphere-market-compare-col {
  min-width: 0;
  padding: 0.5rem 0.55rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-market-compare-col--craft {
  border-right: 1px solid rgba(100, 160, 220, 0.16);
}
body.blend-sphere-page .blend-sphere-market-compare-col--f12 {
  cursor: pointer;
}
body.blend-sphere-page .blend-sphere-market-compare-col--f12:hover {
  background: rgba(30, 70, 120, 0.35);
}
body.blend-sphere-page .blend-sphere-market-compare-col--better {
  background: radial-gradient(circle at 50% 0, rgba(34, 197, 94, 0.2), rgba(0, 28, 22, 0.45));
}
body.blend-sphere-page .blend-sphere-market-compare-col--f12.blend-sphere-market-compare-col--better:hover {
  background: radial-gradient(circle at 50% 0, rgba(34, 197, 94, 0.32), rgba(0, 36, 28, 0.55));
}
body.blend-sphere-page .blend-sphere-market-compare-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ec4e8;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
}
body.blend-sphere-page .blend-sphere-market-compare-col--better .blend-sphere-market-compare-kicker,
body.blend-sphere-page .blend-sphere-market-compare-col--better .blend-sphere-market-compare-value {
  color: #8ef0b4;
}
body.blend-sphere-page .blend-sphere-market-compare-value {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e8f4ff;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
}
body.blend-sphere-page .blend-sphere-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 7.75rem));
  gap: 0.75rem;
  width: 100%;
  justify-content: start;
  align-content: start;
}
body.blend-sphere-page .blend-sphere-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 7.75rem;
  justify-self: stretch;
  padding: 0.55rem 0.45rem 0.65rem;
  border: 2px solid rgba(100, 160, 220, 0.22);
  border-radius: 0.45rem;
  background: rgba(4, 12, 24, 0.65);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
@media (max-width: 900px) {
  body.blend-sphere-page .blend-sphere-slots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    margin-inline: 0;
  }
  body.blend-sphere-page .blend-sphere-slot {
    flex: 0 1 calc(25% - 0.34rem);
    width: calc(25% - 0.34rem);
    max-width: 5.75rem;
    min-width: 4.25rem;
    padding: 0.35rem 0.2rem 0.45rem;
    gap: 0.25rem;
    overflow: hidden;
    box-sizing: border-box;
  }
}
body.blend-sphere-page .blend-sphere-slot:hover {
  border-color: rgba(120, 200, 255, 0.45);
}
body.blend-sphere-page .blend-sphere-slot--ready {
  border-color: rgba(100, 220, 160, 0.55);
  box-shadow: 0 0 0 1px rgba(100, 220, 160, 0.25);
}
body.blend-sphere-page .blend-sphere-slot--incomplete {
  border-color: rgba(220, 160, 80, 0.35);
}
body.blend-sphere-page .blend-sphere-slot--token {
  cursor: default;
  opacity: 0.75;
}
body.blend-sphere-page .blend-sphere-slot-inv {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  z-index: 3;
  min-width: 1.35rem;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: rgba(12, 32, 58, 0.96);
  border: 1px solid rgba(140, 210, 255, 0.5);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
}
body.blend-sphere-page .blend-sphere-slot-media {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  padding: 0.35rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
  overflow: hidden;
}
body.blend-sphere-page .blend-sphere-slot-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.35rem;
  padding: 0.35rem 0.4rem;
  border-radius: 0.3rem;
  background: rgba(8, 20, 36, 0.72);
  border: 1px solid rgba(100, 160, 220, 0.18);
}
body.blend-sphere-page .blend-sphere-slot-count-value {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: #f4f8ff;
}
body.blend-sphere-page .blend-sphere-slot-count-value--insufficient {
  color: #ff5c5c;
}
body.blend-sphere-page .blend-sphere-slot-count--projected .blend-sphere-slot-count-value {
  color: #f4f8ff;
}
body.blend-sphere-page .blend-sphere-slot-count--projected .blend-sphere-slot-count-value--insufficient {
  color: #ff5c5c;
}
body.blend-sphere-page .blend-sphere-slot-media--choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.12rem;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0.3rem;
}
body.blend-sphere-page .blend-sphere-choice-pick-thumb {
  width: 1.55rem !important;
  height: 1.55rem !important;
}
body.blend-sphere-page .blend-sphere-choice-slot-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
body.blend-sphere-page .blend-sphere-choice-slot-placeholder {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.35rem;
  background: rgba(80, 120, 180, 0.15);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 1.35rem;
  font-weight: 700;
  color: #9ed4ff;
}
body.blend-sphere-page .blend-sphere-choice-selected {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.68rem;
  color: #9ed4ff;
}
body.blend-sphere-page .blend-sphere-slot-media .blend-sphere-nft-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  flex-shrink: 1;
}
body.blend-sphere-page .blend-sphere-slot-media--token {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.75rem;
  color: #ffd080;
}
body.blend-sphere-page .blend-sphere-slot-empty {
  font-size: 1.5rem;
  opacity: 0.45;
}
/* Style partagé avec les % du carrousel loot (texte léger + lueur, sans dégradé). */
body.blend-sphere-page .blend-sphere-loot-pct {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(190, 225, 255, 0.52);
  text-shadow: 0 0 1.25rem rgba(100, 180, 255, 0.18);
  user-select: none;
  pointer-events: none;
}
body.blend-sphere-page .blend-sphere-slot-media .blend-sphere-slot-need-pct {
  position: absolute;
  right: 0.42rem;
  bottom: 0.14rem;
  z-index: 3;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.04rem;
  min-width: 1.75rem;
  padding: 0.18rem 0.4rem 0.2rem;
  border-radius: 0.38rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  pointer-events: none;
  user-select: none;
  color: rgba(228, 244, 255, 0.97);
  text-shadow:
    0 0 0.55rem rgba(100, 190, 255, 0.65),
    0 1px 2px rgba(0, 0, 0, 0.72);
  background: linear-gradient(155deg, rgba(8, 26, 50, 0.94) 0%, rgba(14, 40, 68, 0.9) 100%);
  border: 1px solid rgba(120, 200, 255, 0.48);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(100, 180, 255, 0.1),
    inset 0 1px 0 rgba(200, 230, 255, 0.14);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
body.blend-sphere-page .blend-sphere-slot-need-pct-mark {
  font-size: 0.72em;
  font-weight: 600;
  opacity: 0.82;
  transform: translateY(-0.04em);
}
body.blend-sphere-page .blend-sphere-slot-need-pct-num {
  font-size: clamp(0.82rem, 2.9vw, 1rem);
  letter-spacing: 0.02em;
}
body.blend-sphere-page .blend-sphere-slot-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.25;
  min-height: calc(0.72rem * 1.25 * 2);
  max-width: 100%;
  word-break: break-word;
}
body.blend-sphere-page .blend-sphere-outcome-stage {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
  max-height: 100%;
  min-height: 0;
}
body.blend-sphere-page .blend-sphere-outcome-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  width: auto;
  max-width: min(100%, 17rem);
}
body.blend-sphere-page .blend-sphere-outcome-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  align-self: center;
  gap: 0.5rem;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  width: min(100%, 14rem);
  padding-top: 0;
}
body.blend-sphere-page .blend-sphere-outcome-hero-wrap {
  position: relative;
  flex: 0 1 auto;
  width: min(100%, 17rem);
  height: auto;
  max-height: min(17rem, 100%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  box-sizing: border-box;
  border-radius: 0.55rem;
  overflow: visible;
  background: transparent;
}
body.blend-sphere-page .blend-sphere-outcome-hero-wrap::before {
  content: "";
  position: absolute;
  inset: -0.65rem;
  border-radius: 0.75rem;
  background: radial-gradient(circle at 50% 50%, rgba(90, 170, 255, 0.22), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
body.blend-sphere-page .blend-sphere-outcome-hero-wrap .blend-sphere-outcome-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: min(100%, 15.5rem);
  max-height: min(100%, 15.5rem);
}
body.blend-sphere-page .blend-sphere-outcome-primary--loot-carousel {
  width: 100%;
  max-width: none;
  align-self: stretch;
  max-height: none;
}
body.blend-sphere-page .blend-sphere-workbench-outcome--loot-carousel {
  /* marge pour halo (::before + box-shadow) sans rognage */
  padding: 3rem 2.25rem 2.5rem;
  box-sizing: border-box;
  overflow: visible;
}
body.blend-sphere-page .blend-sphere-outcome-loot-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem 0.65rem;
  width: 100%;
}
body.blend-sphere-page .blend-sphere-outcome-loot-viewport {
  grid-column: 2;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
body.blend-sphere-page .blend-sphere-outcome-loot-carousel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}
body.blend-sphere-page .blend-sphere-outcome-hero-wrap--carousel {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
}
/* Pas de halo circulaire ::before — le glow suit le contour via drop-shadow (comme craft). */
body.blend-sphere-page .blend-sphere-outcome-hero-wrap--carousel::before {
  content: none;
}
/* Images empilées, préchargées : opacité seule change au carrousel (pas de reload ni reflow). */
body.blend-sphere-page .blend-sphere-outcome-hero-wrap--carousel .blend-sphere-loot-outcome-img {
  grid-area: 1 / 1;
  position: relative;
  width: min(100%, 15.5rem);
  height: min(100%, 15.5rem);
  max-width: min(100%, 15.5rem);
  max-height: min(100%, 15.5rem);
  margin: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: none;
}
body.blend-sphere-page .blend-sphere-outcome-hero-wrap--carousel .blend-sphere-loot-outcome-img--active {
  opacity: 1;
  pointer-events: auto;
}
body.blend-sphere-page .blend-sphere-outcome-loot-pct {
  flex: 0 0 auto;
  font-size: clamp(1.1rem, 2.8vw, 1.65rem);
  text-align: center;
}
body.blend-sphere-page .blend-sphere-outcome-loot-carousel .blend-sphere-carousel-btn {
  align-self: center;
}
body.blend-sphere-page .blend-sphere-outcome-loot-carousel .blend-sphere-carousel-btn--prev {
  grid-column: 1;
}
body.blend-sphere-page .blend-sphere-outcome-loot-carousel .blend-sphere-carousel-btn--next {
  grid-column: 3;
}
@media (min-width: 901px) {
  body.blend-sphere-page.blend-sphere-unlocked .blend-sphere-outcome-primary--loot-carousel {
    max-width: min(100%, 32rem);
  }
}
body.blend-sphere-page .blend-sphere-outcome-category {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted, #8aa0b8);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  text-transform: capitalize;
}
body.blend-sphere-page .blend-sphere-outcome-category-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  flex-wrap: wrap;
}
body.blend-sphere-page .blend-sphere-outcome-category-row .blend-sphere-schema-icon {
  width: 0.95rem;
  height: 0.95rem;
}
body.blend-sphere-page .blend-sphere-outcome-info-btn {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 1px solid rgba(120, 200, 255, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(120, 200, 255, 0.28), rgba(0, 40, 80, 0.88));
  color: #eaf4ff;
  font-size: 0.72rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
body.blend-sphere-page .blend-sphere-outcome-info-btn:hover {
  border-color: rgba(180, 230, 255, 0.72);
  background: radial-gradient(circle at 30% 25%, rgba(160, 220, 255, 0.42), rgba(0, 70, 120, 0.92));
  transform: scale(1.06);
}
body.blend-sphere-page .blend-sphere-outcome-info-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 20, 40, 0.9), 0 0 0 4px rgba(120, 200, 255, 0.45);
}
body.blend-sphere-detail-open {
  overflow: hidden;
}
body.blend-sphere-page .blend-sphere-detail-overlay {
  position: fixed;
  top: var(--blend-sphere-bandeau-h, 70px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 92;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 1rem max(0.85rem, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.72);
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-detail-overlay[hidden] {
  display: none !important;
}
body.blend-sphere-page .blend-sphere-detail-modal {
  width: min(94vw, 640px);
  max-height: var(--blend-sphere-modal-max-h, calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 1.5rem));
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: auto;
  flex-shrink: 0;
  background: rgba(0, 30, 50, 0.98);
  border: 1px solid rgba(0, 78, 146, 0.6);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
body.blend-sphere-page .blend-sphere-detail-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem 1rem 1rem;
  min-height: 0;
  overflow: hidden;
}
body.blend-sphere-page .blend-sphere-detail-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted, #8aa0b8);
}
body.blend-sphere-page .blend-sphere-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
  gap: 0.55rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.15rem 0.1rem 0.25rem;
  min-height: 0;
  flex: 1 1 auto;
  max-height: min(calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 9rem), 28rem);
}
body.blend-sphere-page .blend-sphere-detail-grid--grouped {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
body.blend-sphere-page .blend-sphere-detail-rarity-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
body.blend-sphere-page .blend-sphere-detail-rarity-heading {
  margin: 0;
  padding: 0 0.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(190, 220, 255, 0.82);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
}
body.blend-sphere-page .blend-sphere-detail-rarity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
  gap: 0.55rem;
}
body.blend-sphere-page .blend-sphere-detail-outcome-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.2rem 0.1rem 0.35rem;
}
body.blend-sphere-page .blend-sphere-detail-outcome-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}
body.blend-sphere-page .blend-sphere-detail-outcome-media .blend-sphere-slot-need-pct {
  right: 0.28rem;
  bottom: 0.1rem;
  min-width: 1.55rem;
  padding: 0.14rem 0.32rem 0.16rem;
}
body.blend-sphere-page .blend-sphere-detail-outcome-card .blend-sphere-slot-name {
  width: 100%;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body.blend-sphere-page .blend-sphere-outcome-label {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.25;
}
body.blend-sphere-page .blend-sphere-outcome-mint {
  margin: 0.2rem 0 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: left;
  color: rgba(160, 200, 230, 0.88);
}
body.blend-sphere-page .blend-sphere-outcome-mint--cap {
  color: rgba(255, 150, 130, 0.92);
}
body.blend-sphere-page .blend-sphere-outcome-mint-sep {
  opacity: 0.7;
}
body.blend-sphere-page .blend-sphere-slot-media--single {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 1;
}
body.blend-sphere-page .blend-sphere-slot-media--single .blend-sphere-slot-img-single {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 900px) {
  body.blend-sphere-page .blend-sphere-slot-media,
  body.blend-sphere-page .blend-sphere-slot-media--single,
  body.blend-sphere-page .blend-sphere-slot-media--choice {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 1;
    padding: 0.18rem;
    box-sizing: border-box;
  }
  body.blend-sphere-page .blend-sphere-slot-media--single .blend-sphere-slot-img-single,
  body.blend-sphere-page .blend-sphere-slot-media .blend-sphere-nft-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  body.blend-sphere-page .blend-sphere-slot-count {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 0.18rem 0.12rem;
    box-sizing: border-box;
  }
  body.blend-sphere-page .blend-sphere-slot-count-value {
    font-size: clamp(0.7rem, 3vw, 0.92rem);
  }
  body.blend-sphere-page .blend-sphere-slot-media .blend-sphere-slot-need-pct {
    right: 0.28rem;
    bottom: 0.1rem;
    min-width: 1.35rem;
    padding: 0.12rem 0.28rem 0.14rem;
    border-radius: 0.28rem;
  }
  body.blend-sphere-page .blend-sphere-slot-need-pct-num {
    font-size: clamp(0.62rem, 2.5vw, 0.78rem);
  }
  body.blend-sphere-page .blend-sphere-slot-name {
    font-size: 0.58rem;
    min-height: 0;
    line-height: 1.2;
  }
  body.blend-sphere-page .blend-sphere-choice-pick-thumb {
    width: 0.95rem !important;
    height: 0.95rem !important;
  }
  body.blend-sphere-page .blend-sphere-choice-slot-img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  body.blend-sphere-page .blend-sphere-choice-slot-placeholder {
    width: 100%;
    height: 100%;
    font-size: 0.85rem;
  }
  body.blend-sphere-page .blend-sphere-choice-selected {
    font-size: 0.58rem;
  }
  body.blend-sphere-page .blend-sphere-slot-inv {
    top: 0.12rem;
    right: 0.12rem;
    min-width: 0;
    padding: 0.06rem 0.22rem;
    font-size: 0.55rem;
  }
}
body.blend-sphere-page .blend-sphere-slot-qty {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9ed4ff;
  line-height: 1;
}
body.blend-sphere-page .blend-sphere-outcome-hero {
  width: min(100%, 15.5rem);
  height: min(100%, 15.5rem);
  object-fit: contain;
  object-position: center;
  border-radius: 0.5rem;
  filter: drop-shadow(0 0 2rem rgba(100, 180, 255, 0.4));
}
body.blend-sphere-page .blend-sphere-outcome-hero--empty {
  display: grid;
  place-items: center;
  width: 11rem;
  height: 11rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  font-size: 2rem;
  opacity: 0.45;
}
body.blend-sphere-page .blend-sphere-outcome-odds {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
}
body.blend-sphere-page .blend-sphere-outcome-odds li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(100, 150, 200, 0.1);
}
body.blend-sphere-page .blend-sphere-outcome-more {
  justify-content: center;
  opacity: 0.65;
  border-bottom: none;
}
body.blend-sphere-page .blend-sphere-outcome-pct {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.78rem;
  opacity: 0.85;
}
body.blend-sphere-page .blend-sphere-burn-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
  padding-top: 0.15rem;
  border-top: none;
}
body.blend-sphere-page .blend-sphere-counter-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
}
body.blend-sphere-page .blend-sphere-repeat-control {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
body.blend-sphere-page .blend-sphere-outcome-side .blend-sphere-burn-panel {
  margin-top: 0;
  width: 100%;
}
body.blend-sphere-page .blend-sphere-outcome-side .blend-sphere-repeat {
  width: fit-content;
  max-width: 100%;
  margin-top: 0.55rem;
}
body.blend-sphere-page .blend-sphere-outcome-side #blend-sphere-exec-btn {
  width: 100%;
  min-width: 0;
  padding-inline: 0.5rem;
  font-size: 0.82rem;
}
body.blend-sphere-page .blend-sphere-burn-label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #8aa0b8);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  text-align: center;
}
body.blend-sphere-page .blend-sphere-burn-slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}
body.blend-sphere-page .blend-sphere-burn-slots--compact {
  gap: 0.5rem;
}
body.blend-sphere-page .blend-sphere-burn-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 6rem;
}
body.blend-sphere-page .blend-sphere-burn-slot-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 120, 90, 0.35);
  border-radius: 0.35rem;
  background: rgba(40, 12, 12, 0.35);
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-burn-slot-media .blend-sphere-nft-img {
  width: 100%;
  height: 100%;
}
body.blend-sphere-page .blend-sphere-burn-slot-name {
  font-size: 0.68rem;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  word-break: break-word;
}
body.blend-sphere-page .blend-sphere-burn-slot-count {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffb0a0;
}
body.blend-sphere-page .blend-sphere-repeat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.15rem;
  width: 100%;
}
body.blend-sphere-page .blend-sphere-repeat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #8aa0b8);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
}
body.blend-sphere-page .blend-sphere-repeat-control {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
body.blend-sphere-page .blend-sphere-repeat-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(120, 180, 255, 0.35);
  border-radius: 0.3rem;
  background: rgba(8, 20, 36, 0.8);
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
body.blend-sphere-page .blend-sphere-repeat-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
body.blend-sphere-page .blend-sphere-repeat-btn--max {
  width: auto;
  min-width: 2.65rem;
  padding: 0 0.55rem;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body.blend-sphere-page .blend-sphere-repeat-value {
  min-width: 2rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  color: inherit;
}
body.blend-sphere-page .blend-sphere-repeat-value--active {
  color: #6ee8a8;
}
body.blend-sphere-page .blend-sphere-repeat-hint {
  font-size: 0.72rem;
  color: var(--text-muted, #8aa0b8);
}
body.blend-sphere-page .blend-sphere-repeat-hint--warn {
  color: #e8a060;
}
body.blend-sphere-page .blend-sphere-repeat-hint--cap {
  color: #ff5c5c;
  font-weight: 700;
  font-size: 0.82rem;
}
body.blend-sphere-page #blend-sphere-exec-btn {
  width: auto;
  min-width: 0;
  margin-top: 0;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe8c8;
  background: radial-gradient(circle at 30% 20%, rgba(255, 186, 100, 0.3), rgba(38, 22, 0, 0.78));
  border: 1px solid rgba(255, 186, 100, 0.58);
  border-radius: 8px;
  padding: 0.56rem 1.15rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
body.blend-sphere-page #blend-sphere-exec-btn:hover:not(:disabled) {
  background: radial-gradient(circle at 30% 20%, rgba(255, 200, 120, 0.42), rgba(58, 34, 4, 0.9));
  border-color: rgba(255, 210, 140, 0.78);
  box-shadow:
    0 4px 16px rgba(255, 150, 50, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
body.blend-sphere-page #blend-sphere-exec-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.blend-sphere-page #blend-sphere-exec-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(4, 12, 28, 0.95),
    0 0 0 4px rgba(255, 186, 100, 0.48);
}
body.blend-sphere-page #blend-sphere-exec-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
body.blend-sphere-page .blend-sphere-ingredient-hint,
body.blend-sphere-page .blend-sphere-muted {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted, #8aa0b8);
  text-align: center;
}
body.blend-sphere-page .blend-sphere-ingredient-hint {
  color: #e8a060;
}
body.blend-sphere-page .blend-sphere-status {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  background: rgba(40, 100, 160, 0.15);
  font-size: 0.85rem;
}
body.blend-sphere-page .blend-sphere-status--error {
  background: rgba(180, 60, 60, 0.18);
  color: #ffb0b0;
}
body.blend-sphere-progress-open {
  overflow: hidden;
}
body.blend-sphere-page {
  --blend-sphere-progress-shell-min-h: min(30rem, calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 1.5rem));
  --blend-sphere-progress-body-min-h: min(24rem, calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 10rem));
  --blend-sphere-progress-loading-shell-min-h: min(34rem, calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 1.5rem));
  --blend-sphere-progress-loading-body-min-h: min(28rem, calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 10rem));
  --blend-sphere-modal-max-h: calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 1.5rem);
}
body.blend-sphere-page .blend-sphere-progress-overlay {
  position: fixed;
  top: var(--blend-sphere-bandeau-h, 70px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem 1rem max(0.75rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-progress-overlay[hidden],
body.blend-sphere-page .blend-sphere-choice-picker-overlay[hidden],
body.blend-sphere-page .blend-sphere-material-picker-overlay[hidden],
body.blend-sphere-page .blend-sphere-detail-overlay[hidden] {
  display: none !important;
}
body.blend-sphere-page .blend-sphere-progress-overlay:not([hidden]) .blend-sphere-progress-modal:not(.blend-sphere-progress-modal--open) {
  visibility: hidden;
  pointer-events: none;
}
body.blend-sphere-page .blend-sphere-progress-modal.market-chart-modal {
  flex: 0 1 auto;
}
body.blend-sphere-page.blend-sphere-progress-open .blend-sphere-progress-modal.market-chart-modal {
  width: min(calc(100vw - 2rem), 580px);
  min-height: 0;
  max-height: var(--blend-sphere-modal-max-h);
  margin: auto;
  flex-shrink: 0;
}
body.blend-sphere-page.blend-sphere-progress-loading .blend-sphere-progress-modal.market-chart-modal {
  width: min(calc(100vw - 2rem), 580px);
  min-height: var(--blend-sphere-progress-shell-min-h);
  max-height: var(--blend-sphere-modal-max-h);
}
body.blend-sphere-page.blend-sphere-progress-loading
  .blend-sphere-progress-modal.market-chart-modal.blend-sphere-progress-modal--craft-result {
  width: min(calc(100vw - 1.25rem), 35rem);
  min-height: var(--blend-sphere-progress-loading-shell-min-h);
}
body.blend-sphere-page.blend-sphere-progress-open .blend-sphere-progress-body {
  flex: 1 1 auto;
  min-height: 0;
  justify-content: center;
}
body.blend-sphere-page.blend-sphere-progress-loading .blend-sphere-progress-body {
  flex: 1 1 auto;
  min-height: var(--blend-sphere-progress-body-min-h);
  justify-content: center;
}
body.blend-sphere-page.blend-sphere-progress-loading
  .blend-sphere-progress-modal--craft-result
  .blend-sphere-progress-body {
  min-height: var(--blend-sphere-progress-loading-body-min-h);
}
body.blend-sphere-page.blend-sphere-progress-open
  .blend-sphere-progress-modal.market-chart-modal.blend-sphere-progress-modal--result {
  min-height: 0;
}
body.blend-sphere-page.blend-sphere-progress-open
  .blend-sphere-progress-modal--result
  .blend-sphere-progress-body {
  min-height: 0;
  justify-content: flex-start;
  padding: 0.35rem 0.25rem 0.45rem;
}
body.blend-sphere-page .blend-sphere-progress-modal .market-chart-modal-header {
  padding: 0.55rem 0.85rem;
}
body.blend-sphere-page .blend-sphere-progress-header {
  flex-shrink: 0;
}
body.blend-sphere-page .blend-sphere-progress-footer {
  flex-shrink: 0;
}
.blend-sphere-progress-modal {
  width: min(calc(100vw - 2rem), 480px);
  max-height: var(--blend-sphere-modal-max-h, calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 1.5rem));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  margin: auto;
  flex-shrink: 0;
}
.blend-sphere-progress-modal.market-chart-modal {
  min-height: 0;
}
.blend-sphere-progress-modal--open {
  width: min(calc(100vw - 2rem), 580px);
  min-height: 0;
  max-height: var(--blend-sphere-modal-max-h, calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 1.5rem));
}
.blend-sphere-progress-modal--result {
  width: min(calc(100vw - 2rem), 580px);
  max-height: var(--blend-sphere-modal-max-h, calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 1.5rem));
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.blend-sphere-progress-modal--result::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 38%,
    var(--blend-reveal-tier-color, rgba(100, 180, 255, 0.2)) 0%,
    transparent 65%
  );
  opacity: var(--blend-reveal-amb-opacity, 0);
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.blend-sphere-progress-modal--result > * {
  position: relative;
  z-index: 1;
}
.blend-sphere-progress-header {
  align-items: flex-start;
  gap: 0.75rem;
}
.blend-sphere-progress-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}
.blend-sphere-progress-title-row {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.3rem;
  max-width: 100%;
  min-width: 0;
}
.blend-sphere-progress-title-row .market-chart-title {
  flex: 0 1 auto;
  min-width: 0;
}
.blend-sphere-progress-tx-link {
  flex-shrink: 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1;
  color: #8a9bb0;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s ease;
}
.blend-sphere-progress-tx-link:hover {
  color: #6b7a8f;
}
.blend-sphere-progress-tx-link:active {
  color: #3d4654;
}
.blend-sphere-progress-summary {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: #8aa0b8;
  letter-spacing: 0.02em;
}
.blend-sphere-progress-body {
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 0 0.25rem;
  box-sizing: border-box;
}
.blend-sphere-progress-modal--open .blend-sphere-progress-body {
  min-height: 0;
  justify-content: center;
}
.blend-sphere-progress-modal--result .blend-sphere-progress-body {
  gap: 0;
  padding-top: 0.35rem;
  flex: 0 1 auto;
  justify-content: flex-start;
}
.blend-sphere-progress-modal--result .blend-sphere-progress-footer {
  padding: 0.55rem 0.85rem 0.65rem;
  border-top: none;
}
.blend-sphere-progress-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem 0.65rem;
  border-top: 1px solid rgba(100, 150, 200, 0.14);
}
.blend-sphere-progress-footer--claim {
  border-top: none;
}
.blend-sphere-progress-claim-actions {
  width: min(100%, 16rem);
  margin: 0.35rem auto 0.15rem;
}
.blend-sphere-progress-claim-btn {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  margin: 0;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe8c8;
  background: radial-gradient(circle at 30% 20%, rgba(255, 186, 100, 0.3), rgba(38, 22, 0, 0.78));
  border: 1px solid rgba(255, 186, 100, 0.58);
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  padding: 0.56rem 1.15rem;
  cursor: pointer;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
.blend-sphere-progress-claim-btn:hover:not(:disabled) {
  background: radial-gradient(circle at 30% 20%, rgba(255, 200, 120, 0.42), rgba(58, 34, 4, 0.9));
  border-color: rgba(255, 210, 140, 0.78);
  box-shadow:
    0 4px 16px rgba(255, 150, 50, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.blend-sphere-progress-claim-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.blend-sphere-progress-claim-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(4, 12, 28, 0.95),
    0 0 0 4px rgba(255, 186, 100, 0.48);
}
.blend-sphere-progress-footer:not(.blend-sphere-progress-footer--claim) .blend-sphere-progress-claim-actions {
  width: 100%;
  margin: 0;
}
.blend-sphere-progress-footer .blend-sphere-progress-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0 0.75rem;
  box-sizing: border-box;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
}
.blend-sphere-progress-back-btn {
  width: 100%;
  margin: 0;
}
.blend-sphere-progress-tx-btn {
  border-radius: 8px;
  border: 1px solid rgba(100, 220, 170, 0.55);
  background: radial-gradient(circle at 30% 20%, rgba(80, 200, 150, 0.22), rgba(0, 48, 38, 0.92));
  color: rgba(210, 255, 235, 0.98);
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
.blend-sphere-progress-tx-btn:hover {
  color: #fff;
  background: radial-gradient(circle at 30% 20%, rgba(100, 230, 180, 0.3), rgba(0, 62, 48, 0.95));
  border-color: rgba(120, 240, 190, 0.78);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.32),
    0 0 16px rgba(80, 200, 150, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.blend-sphere-progress-tx-btn:focus-visible {
  outline: 2px solid rgba(120, 240, 190, 0.75);
  outline-offset: 2px;
}
.blend-sphere-progress-subtitle {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #d8ecff;
}
.blend-sphere-progress-message {
  margin: 0;
  font-size: 0.92rem;
  color: #aabbd0;
  line-height: 1.45;
}
.blend-sphere-progress-tx {
  margin: 0;
}
.blend-sphere-progress-tx a {
  color: #7ec8ff;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.85rem;
}
.blend-sphere-progress-spinner {
  width: 5.5rem;
  height: 5.5rem;
  border: 5px solid rgba(120, 180, 255, 0.2);
  border-top-color: rgba(120, 200, 255, 0.95);
  border-radius: 50%;
  animation: blend-sphere-spin 0.85s linear infinite;
  flex-shrink: 0;
}
body.blend-sphere-page.blend-sphere-progress-loading .blend-sphere-progress-spinner {
  width: 6.25rem;
  height: 6.25rem;
  border-width: 5px;
}
@keyframes blend-sphere-spin {
  to { transform: rotate(360deg); }
}
.blend-sphere-progress-results {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.blend-sphere-progress-modal--result .blend-sphere-progress-results {
  flex: 0 0 auto;
}
.blend-sphere-result-carousel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.blend-sphere-carousel {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.blend-sphere-carousel-viewport,
.blend-sphere-outcome-loot-carousel-stage {
  touch-action: pan-y;
  cursor: grab;
}
.blend-sphere-carousel:active .blend-sphere-carousel-viewport,
.blend-sphere-carousel:active .blend-sphere-outcome-loot-carousel-stage {
  cursor: grabbing;
}
.blend-sphere-progress-modal--result .blend-sphere-result-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.blend-sphere-result-frame {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 0.2rem 0.35rem;
  width: 100%;
  max-width: 100%;
  padding: 0.05rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  box-sizing: border-box;
}
.blend-sphere-result-viewport {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
}
.blend-sphere-progress-modal--result .blend-sphere-result-viewport {
  min-height: 0;
  max-height: min(calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 12.5rem), 18.5rem);
}
.blend-sphere-progress-modal--result .blend-sphere-progress-results--craft {
  overflow: hidden;
}
.blend-sphere-progress-modal--result .blend-sphere-progress-results--craft .blend-sphere-result-frame {
  overflow: hidden;
}
.blend-sphere-progress-modal--result .blend-sphere-progress-results--craft .blend-sphere-result-viewport {
  max-height: var(--blend-craft-asset-max-h);
  overflow: hidden;
}
.blend-sphere-progress-modal--result .blend-sphere-progress-results--craft .blend-sphere-result-image-slide {
  overflow: hidden;
}
.blend-sphere-progress-modal--craft-result .blend-sphere-progress-body {
  overflow: hidden;
}
/*
 * Pulse craft : le glow (box-shadow) était clipé par le rectangle de la carte
 * (stage / viewport plus étroits que la modale) → bords durs L/R au max du pulse.
 * On laisse déborder le bloc carte ; le body (pleine largeur, sous le header)
 * clippe en haut à la ligne « Blend result » ; le meta (schema) recouvre le bas.
 */
.blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result
  .blend-sphere-progress-results--craft,
.blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result
  .blend-sphere-progress-results--craft .blend-sphere-result-frame,
.blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result
  .blend-sphere-progress-results--craft .blend-sphere-result-viewport,
.blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result
  .blend-sphere-progress-results--craft .blend-sphere-result-image-slide,
.blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result
  .blend-sphere-progress-results--craft .blend-sphere-result-stage,
.blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result
  .blend-sphere-progress-results--craft .blend-sphere-result-shake-wrap {
  overflow: visible;
}
.blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result
  .blend-sphere-progress-results--craft .blend-sphere-result-stage {
  contain: none;
}
.blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result
  .blend-sphere-progress-header {
  position: relative;
  z-index: 6;
  background: rgba(0, 30, 50, 0.98);
}
.blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result
  .blend-sphere-result-meta-viewport {
  position: relative;
  z-index: 5;
  width: 100%;
  background: rgba(0, 30, 50, 0.98);
  /* Remonte le schema (CREATURE…) vers la carte ; le bas reste coupé par ce bandeau. */
  margin-top: -0.55rem;
  padding: 0.1rem 0 0.45rem;
}
.blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result
  .blend-sphere-result-carousel {
  gap: 0.25rem;
}
/* Pas de barre au-dessus de « Back to blends » : le bouton suffit comme délimitation. */
.blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result
  .blend-sphere-progress-footer {
  border-top: none;
}
.blend-sphere-result-image-slide,
.blend-sphere-result-meta-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.blend-sphere-result-image-slide {
  gap: 0;
  padding: 0.05rem 0.1rem 0;
}
.blend-sphere-result-meta-slide {
  padding: 0;
}
.blend-sphere-result-image-slide[hidden],
.blend-sphere-result-meta-slide[hidden],
.blend-sphere-result-slide[hidden] {
  display: none;
}
.blend-sphere-result-slide-glow {
  position: absolute;
  inset: auto 8% 10%;
  height: 52%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(100, 180, 255, 0.24), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}
/* --- Blend result reveal stage (popup animation) --- */
.blend-sphere-result-stage {
  --blend-reveal-tier-color: #3ea0ff;
  --blend-reveal-shape-radius: 22px;
  --blend-reveal-ring-size: 72%;
  --blend-reveal-aspect-ratio: 1 / 1;
  --blend-reveal-glow-blur: 22px;
  --blend-reveal-shake-amt: 1;
  --blend-reveal-shake-dur: 0.4s;
  --blend-reveal-spin-dur: 11s;
  --blend-reveal-delay: 0.2s;
  --blend-reveal-stage-max: 16.25rem;
  --blend-reveal-ray-height: 130px;
  position: relative;
  width: min(100%, var(--blend-reveal-stage-max));
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blend-sphere-result-shake-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  isolation: isolate;
}
.blend-sphere-result-shake-wrap--playing {
  animation: blend-sphere-result-shake var(--blend-reveal-shake-dur, 0s) ease-in-out var(--blend-reveal-delay, 0s);
}
@keyframes blend-sphere-result-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(calc(-1px * var(--blend-reveal-shake-amt, 0)), calc(1px * var(--blend-reveal-shake-amt, 0)));
  }
  40% {
    transform: translate(calc(1px * var(--blend-reveal-shake-amt, 0)), calc(-1px * var(--blend-reveal-shake-amt, 0)));
  }
  60% {
    transform: translate(calc(-1px * var(--blend-reveal-shake-amt, 0)), 0);
  }
  80% {
    transform: translate(calc(1px * var(--blend-reveal-shake-amt, 0)), 0);
  }
}
.blend-sphere-result-glow {
  display: none;
}
.blend-sphere-result-encart,
.blend-sphere-result-pulse {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  margin: 0;
  padding: 0;
  transform-origin: center center;
}
.blend-sphere-result-encart {
  z-index: 1;
  border: 2px solid var(--blend-reveal-tier-color, #3ea0ff);
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0;
}
.blend-sphere-result-stage--playing .blend-sphere-result-encart {
  animation: blend-sphere-result-encart-in 0.5s ease both;
  animation-delay: var(--blend-reveal-delay, 0s);
}
.blend-sphere-result-stage--instant .blend-sphere-result-encart {
  opacity: 0.92;
  animation: none;
}
@keyframes blend-sphere-result-encart-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.92;
  }
}
.blend-sphere-result-pulse {
  z-index: 2;
  border: 3px solid transparent;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: none;
}
.blend-sphere-result-pulse--playing {
  animation: blend-sphere-result-pulse 2.2s ease-in-out infinite both;
  animation-delay: var(--blend-reveal-delay, 0s);
}
.blend-sphere-result-pulse--instant {
  animation: none;
  box-shadow: 0 0 calc(var(--blend-reveal-glow-blur, 22px) * 0.35) var(--blend-reveal-tier-color, #3ea0ff);
  opacity: 0.55;
}
/* Ascend popup : contour polygonal ; halo = drop-shadow sur host SANS clip (sinon invisible) */
body.ascend-nexus-page .ascend-nexus-reveal-media,
body.ascend-nexus-page .ascend-nexus-reveal-card-img,
body.ascend-nexus-page .ascend-nexus-reveal-flash,
body.ascend-nexus-page .ascend-nexus-reveal-encart,
body.ascend-nexus-page .ascend-nexus-reveal-glow-shape,
body.ascend-nexus-page .blend-sphere-result-encart--contour {
  clip-path: var(--pda-nft-clip, var(--card-clip, none));
  -webkit-clip-path: var(--pda-nft-clip, var(--card-clip, none));
  border-radius: 0 !important;
}
body.ascend-nexus-page .ascend-nexus-reveal-encart.blend-sphere-result-encart {
  border: 2px solid var(--ascend-reveal-tier-color, #9aa7b5);
  box-shadow: none;
  background: transparent;
  opacity: 0;
}
body.ascend-nexus-page .ascend-nexus-reveal-chevrons {
  --ascend-chevron-period: 2.85rem;
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}
body.ascend-nexus-page .ascend-nexus-reveal-chevrons--playing {
  opacity: 1;
}
body.ascend-nexus-page .ascend-nexus-reveal-chevrons--done {
  opacity: 0;
  transition: opacity 0.35s ease;
}
body.ascend-nexus-page .ascend-nexus-reveal-chevrons-track {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 48' preserveAspectRatio='none'%3E%3Cpolygon fill='rgba(255,220,20,0.38)' points='0,24 50,0 100,24 100,48 50,24 0,48'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: center 0;
  background-size: 100% var(--ascend-chevron-period);
  animation: none;
}
body.ascend-nexus-page .ascend-nexus-reveal-chevrons--playing .ascend-nexus-reveal-chevrons-track {
  animation: ascend-nexus-chevrons-rise 0.95s linear infinite;
}
@keyframes ascend-nexus-chevrons-rise {
  from {
    background-position: center 0;
  }
  to {
    background-position: center calc(-1 * var(--ascend-chevron-period));
  }
}
/* Host sans clip-path : le drop-shadow suit la forme enfant et reste visible */
body.ascend-nexus-page .ascend-nexus-reveal-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 0 0 transparent);
}
body.ascend-nexus-page .ascend-nexus-reveal-glow-shape {
  position: absolute;
  inset: 0;
  background: var(--ascend-reveal-tier-color, #9aa7b5);
  opacity: 1;
}
body.ascend-nexus-page .ascend-nexus-reveal-glow.ascend-nexus-reveal-glow--playing {
  animation: ascend-nexus-contour-glow 1.25s ease-in-out infinite both;
}
body.ascend-nexus-page .ascend-nexus-reveal-glow.ascend-nexus-reveal-glow--once {
  animation: ascend-nexus-contour-glow 1.25s ease-in-out both;
}
body.ascend-nexus-page .ascend-nexus-reveal-glow.ascend-nexus-reveal-glow--instant {
  animation: none;
  filter:
    drop-shadow(0 0 calc(var(--ascend-reveal-glow-blur, 12px) * 0.45) var(--ascend-reveal-tier-color, #9aa7b5))
    drop-shadow(0 0 calc(var(--ascend-reveal-glow-blur, 12px) * 1.05) var(--ascend-reveal-tier-color, #9aa7b5));
}
@keyframes ascend-nexus-contour-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 calc(var(--ascend-reveal-glow-blur, 12px) * 0.25) var(--ascend-reveal-tier-color, #9aa7b5));
  }
  50% {
    filter:
      drop-shadow(0 0 calc(var(--ascend-reveal-glow-blur, 12px) * 0.75) var(--ascend-reveal-tier-color, #9aa7b5))
      drop-shadow(0 0 calc(var(--ascend-reveal-glow-blur, 12px) * 1.45) var(--ascend-reveal-tier-color, #9aa7b5));
  }
}

@keyframes blend-sphere-result-pulse {
  0% {
    box-shadow:
      0 0 0 0 transparent,
      0 0 2px 0 color-mix(in srgb, var(--blend-reveal-tier-color, #3ea0ff) 8%, transparent);
    opacity: 0;
  }
  8% {
    opacity: 0.35;
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.16),
      0 0 var(--blend-reveal-glow-blur, 22px) calc(var(--blend-reveal-glow-blur, 22px) * 0.35)
        var(--blend-reveal-tier-color, #3ea0ff),
      0 0 calc(var(--blend-reveal-glow-blur, 22px) * 1.85) calc(var(--blend-reveal-glow-blur, 22px) * 0.7)
        color-mix(in srgb, var(--blend-reveal-tier-color, #3ea0ff) 42%, transparent);
    opacity: 1;
  }
  100% {
    box-shadow:
      0 0 0 0 transparent,
      0 0 2px 0 color-mix(in srgb, var(--blend-reveal-tier-color, #3ea0ff) 8%, transparent);
    opacity: 0.35;
  }
}
.blend-sphere-result-rays {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  animation: none;
  opacity: 0;
}
.blend-sphere-result-stage--playing .blend-sphere-result-rays {
  animation:
    blend-sphere-result-fx-visible 0.01s linear forwards var(--blend-reveal-delay, 0s),
    blend-sphere-result-spin var(--blend-reveal-spin-dur, 99999s) linear infinite var(--blend-reveal-delay, 0s);
}
.blend-sphere-result-stage--waiting .blend-sphere-result-rays,
.blend-sphere-result-stage--waiting .blend-sphere-result-pulse,
.blend-sphere-result-stage--waiting .blend-sphere-result-encart {
  opacity: 0 !important;
  animation: none !important;
}
.blend-sphere-result-stage--waiting .blend-sphere-result-particles {
  opacity: 0 !important;
}
.blend-sphere-result-stage--waiting .blend-sphere-result-shake-wrap--playing {
  animation: none !important;
}
.blend-sphere-result-stage--playing .blend-sphere-result-particles {
  opacity: 0;
  animation: blend-sphere-result-fx-visible 0.01s linear forwards var(--blend-reveal-delay, 0s);
}
@keyframes blend-sphere-result-fx-visible {
  to {
    opacity: 1;
  }
}
.blend-sphere-result-stage--instant .blend-sphere-result-rays {
  animation: none;
  opacity: 0;
}
@keyframes blend-sphere-result-spin {
  to {
    transform: rotate(360deg);
  }
}
.blend-sphere-progress-modal--craft-result {
  --blend-craft-popup-edge-top: 0.5rem;
  --blend-craft-popup-edge-bottom: 0.625rem;
}
.blend-sphere-progress-results--craft {
  /* Header, summary, meta, footer and internal gaps (outside asset viewport). */
  --blend-craft-popup-chrome-h: 7.85rem;
  --blend-reveal-stage-max-h: 27rem;
  --blend-reveal-stage-max-w: 20.25rem;
  --blend-reveal-stage-max: var(--blend-reveal-stage-max-w);
  --blend-craft-asset-max-h: min(
    calc(
      100dvh - var(--blend-sphere-bandeau-h, 4.375rem) - var(--blend-craft-popup-edge-top) -
        var(--blend-craft-popup-edge-bottom) - var(--blend-craft-popup-chrome-h)
    ),
    var(--blend-reveal-stage-max-h)
  );
  --blend-reveal-ray-height: 10rem;
  --blend-reveal-craft-fx-pad: 0.9rem;
  --blend-reveal-craft-fill: 0.93;
}
@media (min-width: 721px) {
  .blend-sphere-progress-modal--craft-result .blend-sphere-result-viewport {
    min-height: var(--blend-craft-asset-max-h);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.blend-sphere-progress-modal--result .blend-sphere-progress-results--craft .blend-sphere-result-stage {
  width: auto;
  max-width: min(100%, var(--blend-reveal-stage-max-w));
  max-height: var(--blend-craft-asset-max-h);
  aspect-ratio: var(--blend-reveal-aspect-ratio, 3 / 4);
  overflow: visible;
  contain: none;
}
.blend-sphere-progress-modal--result .blend-sphere-progress-results--craft .blend-sphere-result-shake-wrap {
  overflow: visible;
}
body.blend-sphere-page.blend-sphere-progress-open
  .blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--open.blend-sphere-progress-modal--result {
  min-height: 0;
  max-height: var(--blend-sphere-modal-max-h);
}
.blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result {
  width: min(calc(100vw - 1.25rem), 35rem);
  max-height: var(--blend-sphere-modal-max-h);
  overflow: hidden;
}
body.blend-sphere-page.blend-sphere-progress-open .blend-sphere-progress-overlay:has(.blend-sphere-progress-modal--craft-result) {
  padding: 0.5rem 1rem max(0.625rem, env(safe-area-inset-bottom, 0px));
  align-items: flex-start;
}
.blend-sphere-progress-modal--result .blend-sphere-progress-results--craft .blend-sphere-result-img {
  max-width: 100%;
  max-height: 100%;
}
@media (max-width: 720px) {
  body.blend-sphere-page.blend-sphere-progress-open .blend-sphere-progress-overlay:has(.blend-sphere-progress-modal--craft-result) {
    padding: 0.2rem 0.08rem max(0.35rem, env(safe-area-inset-bottom, 0px));
    align-items: flex-start;
  }
  body.blend-sphere-page.blend-sphere-progress-loading
    .blend-sphere-progress-modal.market-chart-modal.blend-sphere-progress-modal--craft-result {
    width: min(calc(100vw - 0.16rem), 100%);
  }
  body.blend-sphere-page.blend-sphere-progress-open
    .blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--open.blend-sphere-progress-modal--result {
    min-height: 0;
    max-height: var(--blend-sphere-modal-max-h);
  }
  .blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result {
    width: min(calc(100vw - 0.16rem), 100%);
    min-height: 0;
    max-height: var(--blend-sphere-modal-max-h);
    overflow: hidden;
  }
  .blend-sphere-progress-modal--craft-result .blend-sphere-progress-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    justify-content: flex-start;
  }
  .blend-sphere-progress-modal--craft-result .blend-sphere-progress-results--craft {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .blend-sphere-progress-modal--craft-result .blend-sphere-result-carousel {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 0;
  }
  .blend-sphere-progress-modal--craft-result .blend-sphere-result-frame {
    flex: 0 0 auto;
    min-height: 0;
    align-content: center;
    align-items: center;
  }
  /* Hauteur = contenu (pas de min-height géant) : évite le trou sous le titre + overlap footer */
  .blend-sphere-progress-modal--craft-result .blend-sphere-result-viewport {
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    max-height: var(--blend-craft-asset-max-h);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--blend-craft-edge-gap) 0 0;
    padding: 0;
  }
  .blend-sphere-progress-modal--craft-result {
    --blend-craft-edge-gap: 1.35rem;
    --blend-craft-asset-scale: 1.35;
    --blend-craft-popup-edge-top: 0.2rem;
    --blend-craft-popup-edge-bottom: 0.35rem;
  }
  .blend-sphere-progress-modal--craft-result .blend-sphere-progress-header {
    padding: 0.2rem 0.4rem 0.15rem;
  }
  body.blend-sphere-page
    .blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result
    .blend-sphere-result-meta-viewport {
    margin-top: var(--blend-craft-edge-gap);
    padding: 0.05rem 0 0.35rem;
  }
  .blend-sphere-progress-modal--craft-result .blend-sphere-progress-footer {
    padding: 0.35rem 0.4rem 0.45rem;
    flex-shrink: 0;
  }
  .blend-sphere-progress-results--craft {
    --blend-craft-popup-chrome-h: calc(3.4rem + (2 * var(--blend-craft-edge-gap, 1.35rem)));
    --blend-reveal-stage-max-h: 100rem;
    --blend-reveal-stage-max-w: calc(100vw - 0.2rem);
    --blend-reveal-craft-fx-pad: 0.2rem;
    --blend-reveal-craft-fill: 1;
    --blend-craft-asset-max-h: calc(
      (
          100dvh - var(--blend-sphere-bandeau-h, 4.375rem) - var(--blend-craft-popup-edge-top) -
            var(--blend-craft-popup-edge-bottom) - var(--blend-craft-popup-chrome-h)
        ) * var(--blend-craft-asset-scale, 1.35)
    );
  }
  .blend-sphere-progress-modal--result .blend-sphere-progress-results--craft .blend-sphere-result-stage {
    width: auto;
    max-width: min(100%, var(--blend-reveal-stage-max-w));
    max-height: var(--blend-craft-asset-max-h);
    margin: 0 auto;
  }
  body.blend-sphere-page.blend-sphere-progress-open
    .blend-sphere-progress-modal--craft-result.blend-sphere-progress-modal--result
    .blend-sphere-progress-body {
    padding: 0 0.02rem 0.05rem;
    gap: 0;
  }
  .blend-sphere-progress-modal--craft-result .blend-sphere-progress-summary {
    font-size: 0.58rem;
    line-height: 1.15;
    margin-bottom: 0;
  }
  .blend-sphere-progress-modal--craft-result .blend-sphere-result-meta {
    gap: 0.1rem;
  }
  .blend-sphere-progress-modal--craft-result .blend-sphere-result-meta h3 {
    font-size: 0.86rem;
  }
}
.blend-sphere-result-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: var(--blend-reveal-ray-height, 130px);
  background: linear-gradient(to top, transparent, var(--blend-reveal-tier-color, #3ea0ff), transparent);
  transform-origin: center bottom;
  opacity: 0.55;
}
.blend-sphere-result-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.blend-sphere-result-ring {
  position: relative;
  z-index: 10;
  width: var(--blend-reveal-ring-size, 72%);
  aspect-ratio: var(--blend-reveal-aspect-ratio, 1 / 1);
  height: auto;
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  display: block;
  margin: 0 auto;
  background: transparent;
  opacity: 1;
  box-sizing: border-box;
  overflow: visible;
}
.blend-sphere-result-ring .blend-sphere-result-encart,
.blend-sphere-result-ring .blend-sphere-result-pulse {
  position: absolute;
  box-sizing: border-box;
}
.blend-sphere-result-ring--revealed {
  opacity: 1;
}
.blend-sphere-result-stage .blend-sphere-result-slide-media {
  position: relative;
  z-index: 11;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}
.blend-sphere-result-stage .blend-sphere-result-img {
  position: relative;
  z-index: 12;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
  opacity: 0;
  transform: scale(0.88);
}
.blend-sphere-result-img--revealed {
  animation: blend-sphere-result-img-reveal 0.5s ease both;
  animation-delay: var(--blend-reveal-delay, 0s);
}
@keyframes blend-sphere-result-img-halo {
  0%,
  100% {
    filter:
      drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42))
      drop-shadow(
        0 0 2px color-mix(in srgb, var(--blend-reveal-tier-color, #3ea0ff) 8%, transparent)
      );
  }
  50% {
    filter:
      drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42))
      drop-shadow(0 0 1px rgba(255, 255, 255, 0.16))
      drop-shadow(
        0 0 calc(var(--blend-reveal-glow-blur, 22px) * 0.35) var(--blend-reveal-tier-color, #3ea0ff)
      )
      drop-shadow(
        0 0 calc(var(--blend-reveal-glow-blur, 22px) * 0.7)
          color-mix(in srgb, var(--blend-reveal-tier-color, #3ea0ff) 42%, transparent)
      );
  }
}
.blend-sphere-result-img--instant {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
@keyframes blend-sphere-result-img-reveal {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.blend-sphere-result-name span {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  animation: blend-sphere-result-letter-in 0.35s ease forwards;
}
.blend-sphere-result-meta-slide--revealed .blend-sphere-result-name span {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
@keyframes blend-sphere-result-letter-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
html.sf-motion-disabled .blend-sphere-result-shake-wrap--playing,
html.sf-motion-disabled .blend-sphere-result-encart,
html.sf-motion-disabled .blend-sphere-result-pulse,
html.sf-motion-disabled .blend-sphere-result-rays,
html.sf-motion-disabled .blend-sphere-result-img,
html.sf-motion-disabled .blend-sphere-result-name span {
  animation: none !important;
}
html.sf-motion-disabled .blend-sphere-result-img,
html.sf-motion-disabled .blend-sphere-result-img--revealed {
  opacity: 1;
  transform: none;
}
html.sf-motion-disabled .blend-sphere-result-encart {
  opacity: 0.92;
  transform: none;
}
html.sf-motion-disabled .blend-sphere-result-pulse {
  box-shadow: 0 0 calc(var(--blend-reveal-glow-blur, 22px) * 0.35) var(--blend-reveal-tier-color, #3ea0ff);
  opacity: 0.55;
  transform: none;
}
.blend-sphere-result-meta-viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  margin-top: 0;
}
.blend-sphere-result-carousel > .blend-sphere-carousel-counter {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9ab0c8;
}
.blend-sphere-result-slide-media {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  max-height: min(calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 13rem), 18.5rem);
  padding: 0;
  box-sizing: border-box;
}
.blend-sphere-progress-modal--result .blend-sphere-result-slide-media {
  min-height: 0;
  max-height: min(calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 12.5rem), 18.5rem);
}
.blend-sphere-result-frame .blend-sphere-carousel-btn {
  grid-row: 1;
  align-self: center;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(120, 180, 255, 0.35);
  border-radius: 999px;
  background: rgba(8, 20, 36, 0.88);
  color: #d8ecff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.blend-sphere-progress-modal--result .blend-sphere-result-frame .blend-sphere-carousel-btn {
  width: 2.15rem;
  height: 2.15rem;
}
.blend-sphere-result-frame .blend-sphere-carousel-btn:hover {
  background: rgba(30, 60, 100, 0.9);
  border-color: rgba(140, 210, 255, 0.55);
}
.blend-sphere-result-frame .blend-sphere-carousel-btn--prev {
  grid-column: 1;
}
.blend-sphere-result-frame .blend-sphere-carousel-btn--next {
  grid-column: 3;
}
.blend-sphere-carousel-viewport {
  position: relative;
  min-height: 7.5rem;
  display: grid;
  place-items: center;
}
.blend-sphere-carousel-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(120, 180, 255, 0.35);
  border-radius: 999px;
  background: rgba(8, 20, 36, 0.85);
  color: #d8ecff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.blend-sphere-carousel-btn:hover {
  background: rgba(30, 60, 100, 0.9);
  border-color: rgba(140, 210, 255, 0.55);
}
.blend-sphere-carousel-counter {
  margin: 0;
  font-size: 0.78rem;
  color: #9ab0c8;
}
.blend-sphere-result-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(100, 200, 160, 0.35);
  border-radius: 0.45rem;
  background: rgba(10, 30, 24, 0.55);
  text-align: left;
}
.blend-sphere-result-img {
  width: auto;
  max-width: 7.5rem;
  height: auto;
  max-height: 7.5rem;
  object-fit: contain;
  object-position: center;
  border-radius: 0.35rem;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}
.blend-sphere-result-stage[data-reveal-shape="card"] .blend-sphere-result-img {
  border-radius: var(--blend-reveal-shape-radius, 22px);
}
.blend-sphere-progress-modal--result .blend-sphere-result-stage .blend-sphere-result-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
}
.blend-sphere-progress-modal--result .blend-sphere-result-img {
  width: auto;
  height: auto;
  max-width: min(100%, 18.5rem);
  max-height: min(calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 12.5rem), 18.5rem);
  object-fit: contain;
  filter: drop-shadow(0 0 2rem rgba(100, 180, 255, 0.42));
}
.blend-sphere-result-img--empty {
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.25);
}
.blend-sphere-result-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}
.blend-sphere-result-schema {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 200, 255, 0.28);
  background: rgba(20, 50, 80, 0.55);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ec8ef;
}
.blend-sphere-result-meta h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
  text-align: center;
}
.blend-sphere-progress-modal--result .blend-sphere-result-meta h3 {
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #eef6ff;
}
.blend-sphere-result-pct {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  background: rgba(180, 120, 255, 0.22);
  font-size: 0.72rem;
}
.blend-sphere-result-id,
.blend-sphere-result-tpl {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.75rem;
  color: #9ab0c8;
}
.blend-sphere-progress-recap {
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(100, 150, 200, 0.15);
  text-align: left;
  font-size: 0.85rem;
}
.blend-sphere-progress-burned-label,
.blend-sphere-progress-loot-label {
  margin: 0.65rem 0 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8aa0b8;
}
.blend-sphere-progress-burned-ids {
  margin: 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.78rem;
  color: #ffb0a0;
}
.blend-sphere-progress-loot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
  font-size: 0.78rem;
}
.blend-sphere-progress-loot-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

body.blend-sphere-choice-open {
  overflow: hidden;
}
body.blend-sphere-material-picker-open {
  overflow: hidden;
}
body.blend-sphere-page .blend-sphere-material-picker-overlay {
  position: fixed;
  top: var(--blend-sphere-bandeau-h, 70px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.72);
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-material-picker-overlay[hidden] {
  display: none !important;
}
body.blend-sphere-page .blend-sphere-material-picker-modal {
  width: min(92vw, 480px);
  max-height: min(70dvh, calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 2.5rem), 28rem);
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  flex-shrink: 1;
  background: rgba(0, 30, 50, 0.98);
  border: 1px solid rgba(0, 78, 146, 0.6);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
body.blend-sphere-page .blend-sphere-material-picker-modal.market-chart-modal {
  min-height: 0;
}
body.blend-sphere-page .blend-sphere-material-picker-modal .market-chart-modal-header {
  flex-shrink: 0;
}
body.blend-sphere-page .blend-sphere-material-picker-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem 0.85rem;
  overflow: hidden;
  min-height: 0;
  flex: 1 1 auto;
}
body.blend-sphere-page .blend-sphere-material-picker-hint-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
body.blend-sphere-page .blend-sphere-material-picker-hint-row .blend-sphere-material-picker-hint {
  flex: 1 1 auto;
  min-width: 0;
}
body.blend-sphere-page .blend-sphere-material-picker-owned-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 auto;
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.25;
  color: rgba(190, 220, 245, 0.88);
  cursor: pointer;
  user-select: none;
  white-space: normal;
  text-align: right;
}
body.blend-sphere-page .blend-sphere-material-picker-owned-toggle input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: #64b4ff;
  cursor: pointer;
}
body.blend-sphere-page .blend-sphere-material-picker-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted, #8aa0b8);
  line-height: 1.45;
}
body.blend-sphere-page .blend-sphere-material-picker-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.35rem;
  flex-shrink: 0;
}
body.blend-sphere-page .blend-sphere-material-picker-actions #blend-sphere-material-picker-clear {
  margin-right: auto;
}
body.blend-sphere-page .blend-sphere-material-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.85rem, 1fr));
  gap: 0.5rem;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(42dvh, 16.5rem);
  padding: 0.15rem 0.05rem;
  -webkit-overflow-scrolling: touch;
}
body.blend-sphere-page .blend-sphere-material-picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  min-width: 0;
  min-height: 5.75rem;
  padding: 0.4rem 0.3rem 0.45rem;
  border: 1px solid rgba(100, 160, 220, 0.25);
  border-radius: 0.45rem;
  background: rgba(6, 14, 26, 0.75);
  color: inherit;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}
body.blend-sphere-page .blend-sphere-material-picker-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
  overflow: visible;
}
body.blend-sphere-page .blend-sphere-material-picker-owned-count {
  position: absolute;
  right: 0.02rem;
  bottom: 0.02rem;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.02rem;
  min-width: 1.35rem;
  padding: 0.12rem 0.28rem 0.14rem;
  border-radius: 0.3rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(228, 244, 255, 0.97);
  text-shadow:
    0 0 0.45rem rgba(100, 190, 255, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.72);
  background: linear-gradient(155deg, rgba(8, 26, 50, 0.94) 0%, rgba(14, 40, 68, 0.9) 100%);
  border: 1px solid rgba(120, 200, 255, 0.48);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(200, 230, 255, 0.12);
  pointer-events: none;
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-material-picker-card:hover {
  border-color: rgba(120, 200, 255, 0.45);
}
body.blend-sphere-page .blend-sphere-material-picker-card--selected {
  border-color: rgba(255, 186, 100, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 186, 100, 0.28);
  background: rgba(28, 18, 4, 0.62);
}
body.blend-sphere-page .blend-sphere-material-picker-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
body.blend-sphere-page .blend-sphere-material-picker-name {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: rgba(210, 230, 255, 0.92);
}
@media (max-width: 520px) {
  body.blend-sphere-page .blend-sphere-material-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: min(38dvh, 14rem);
  }
  body.blend-sphere-page .blend-sphere-material-picker-modal {
    width: min(96vw, 480px);
    max-height: min(68dvh, calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 2rem), 26rem);
  }
}
@media (max-width: 1200px) {
  body.blend-sphere-page .blend-sphere-workbench {
    padding-inline: 0.85rem;
  }
  body.blend-sphere-page .blend-sphere-workbench-inputs {
    overflow-x: visible;
  }
}
body.blend-sphere-choice-open {
  overflow: hidden;
}
body.blend-sphere-page .blend-sphere-choice-picker-overlay {
  position: fixed;
  top: var(--blend-sphere-bandeau-h, 70px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.72);
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-choice-picker-overlay[hidden] {
  display: none !important;
}
body.blend-sphere-page .blend-sphere-choice-picker-modal {
  width: min(92vw, 520px);
  max-height: min(70dvh, calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 2.5rem), 28rem);
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  flex-shrink: 1;
  background: rgba(0, 30, 50, 0.98);
  border: 1px solid rgba(0, 78, 146, 0.6);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
body.blend-sphere-page .blend-sphere-choice-picker-modal.market-chart-modal {
  min-height: 0;
}
body.blend-sphere-page .blend-sphere-choice-picker-modal .market-chart-modal-header {
  flex-shrink: 0;
}
body.blend-sphere-page .blend-sphere-choice-picker-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem 0.85rem;
  overflow: hidden;
  min-height: 0;
  flex: 1 1 auto;
}
body.blend-sphere-page .blend-sphere-choice-picker-hint-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
body.blend-sphere-page .blend-sphere-choice-picker-hint-row .blend-sphere-choice-picker-hint {
  flex: 1 1 auto;
  min-width: 0;
}
body.blend-sphere-page .blend-sphere-choice-picker-count {
  margin: 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ed4ff;
}
body.blend-sphere-page .blend-sphere-choice-picker-mint-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.25;
  color: rgba(190, 220, 245, 0.88);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
body.blend-sphere-page .blend-sphere-choice-picker-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted, #8aa0b8);
  line-height: 1.45;
}
body.blend-sphere-page .blend-sphere-choice-picker-mint-toggle input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: #64b4ff;
  cursor: pointer;
}
body.blend-sphere-page .blend-sphere-choice-picker-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  max-height: min(42dvh, 16rem);
  padding: 0.15rem 0.35rem 0.15rem 0.05rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 180, 255, 0.5) rgba(0, 12, 28, 0.72);
}
body.blend-sphere-page .blend-sphere-choice-picker-grid::-webkit-scrollbar {
  width: 8px;
}
body.blend-sphere-page .blend-sphere-choice-picker-grid::-webkit-scrollbar-track {
  background: rgba(0, 12, 28, 0.72);
  border-radius: 999px;
}
body.blend-sphere-page .blend-sphere-choice-picker-grid::-webkit-scrollbar-thumb {
  background: rgba(100, 180, 255, 0.5);
  border-radius: 999px;
  border: 2px solid rgba(0, 12, 28, 0.72);
}
body.blend-sphere-page .blend-sphere-choice-picker-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 180, 255, 0.72);
}
body.blend-sphere-page .blend-sphere-choice-picker-grid::-webkit-scrollbar-corner {
  background: transparent;
}
body.blend-sphere-page .blend-sphere-choice-picker-group {
  margin: 0;
  padding: 0.35rem 0.25rem 0.15rem;
  border: 1px solid rgba(100, 160, 220, 0.14);
  border-radius: 0.45rem;
  background: rgba(4, 10, 22, 0.35);
}
body.blend-sphere-page .blend-sphere-choice-picker-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr));
  gap: 0.4rem;
  align-items: start;
}
body.blend-sphere-page .blend-sphere-choice-picker-modal--show-mint .blend-sphere-choice-picker-group-grid {
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.55rem 0.45rem;
}
body.blend-sphere-page .blend-sphere-choice-picker-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.18rem;
  min-width: 0;
}
body.blend-sphere-page .blend-sphere-choice-picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 0.35rem;
  border: 1px solid rgba(100, 160, 220, 0.25);
  border-radius: 0.4rem;
  background: rgba(6, 14, 26, 0.75);
  color: inherit;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}
body.blend-sphere-page .blend-sphere-choice-picker-card:hover {
  border-color: rgba(120, 200, 255, 0.45);
}
body.blend-sphere-page .blend-sphere-choice-picker-card--selected {
  border-color: rgba(100, 220, 160, 0.65);
  box-shadow: 0 0 0 1px rgba(100, 220, 160, 0.35);
  background: rgba(10, 30, 24, 0.65);
}
body.blend-sphere-page .blend-sphere-choice-picker-img {
  width: 3.25rem !important;
  height: 3.25rem !important;
}
body.blend-sphere-page .blend-sphere-choice-picker-mint {
  display: none;
  width: 100%;
  padding: 0 0.05rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: rgba(158, 212, 255, 0.9);
  text-align: center;
  white-space: normal;
  overflow: visible;
  word-break: break-all;
  overflow-wrap: anywhere;
}
body.blend-sphere-page .blend-sphere-choice-picker-modal--show-mint .blend-sphere-choice-picker-mint {
  display: block;
}
body.blend-sphere-page .blend-sphere-choice-picker-price {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: #9ed4ff;
  text-align: center;
}
body.blend-sphere-page .blend-sphere-choice-picker-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.45rem;
  flex-shrink: 0;
}
body.blend-sphere-page .blend-sphere-choice-picker-actions #blend-sphere-choice-picker-clear {
  margin-right: auto;
}
@media (max-width: 520px) {
  body.blend-sphere-page .blend-sphere-choice-picker-grid {
    max-height: min(38dvh, 14rem);
  }
  body.blend-sphere-page .blend-sphere-choice-picker-modal {
    width: min(96vw, 520px);
    max-height: min(68dvh, calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 2rem), 26rem);
  }
}
body.blend-sphere-page .blend-sphere-picker-btn,
body.ascend-nexus-page .blend-sphere-picker-btn {
  flex: 0 0 auto;
  min-width: 6.5rem;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    opacity 0.15s ease;
}
body.blend-sphere-page .blend-sphere-picker-btn--clear,
body.ascend-nexus-page .blend-sphere-picker-btn--clear {
  color: #cfe6ff;
  background: linear-gradient(180deg, rgba(18, 42, 72, 0.88), rgba(8, 20, 40, 0.95));
  border: 1px solid rgba(120, 170, 220, 0.38);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
body.blend-sphere-page .blend-sphere-picker-btn--clear:hover,
body.ascend-nexus-page .blend-sphere-picker-btn--clear:hover {
  background: linear-gradient(180deg, rgba(28, 58, 96, 0.95), rgba(12, 30, 56, 0.98));
  border-color: rgba(160, 210, 255, 0.55);
  transform: translateY(-1px);
}
body.blend-sphere-page .blend-sphere-picker-btn--buy,
body.ascend-nexus-page .blend-sphere-picker-btn--buy {
  color: #e8fbff;
  background: radial-gradient(circle at 30% 20%, rgba(100, 230, 255, 0.28), rgba(6, 48, 62, 0.88));
  border: 1px solid rgba(120, 230, 255, 0.55);
  box-shadow:
    0 2px 12px rgba(0, 40, 60, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
body.blend-sphere-page .blend-sphere-picker-btn--buy:hover:not(:disabled),
body.ascend-nexus-page .blend-sphere-picker-btn--buy:hover:not(:disabled) {
  background: radial-gradient(circle at 30% 20%, rgba(130, 240, 255, 0.4), rgba(8, 62, 78, 0.95));
  border-color: rgba(160, 245, 255, 0.75);
  box-shadow:
    0 4px 16px rgba(40, 180, 220, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
body.blend-sphere-page .blend-sphere-picker-btn--confirm,
body.ascend-nexus-page .blend-sphere-picker-btn--confirm {
  color: #ffe8c8;
  background: radial-gradient(circle at 30% 20%, rgba(255, 186, 100, 0.32), rgba(38, 22, 0, 0.82));
  border: 1px solid rgba(255, 186, 100, 0.6);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
body.blend-sphere-page .blend-sphere-picker-btn--confirm:hover:not(:disabled),
body.ascend-nexus-page .blend-sphere-picker-btn--confirm:hover:not(:disabled) {
  background: radial-gradient(circle at 30% 20%, rgba(255, 200, 120, 0.45), rgba(58, 34, 4, 0.92));
  border-color: rgba(255, 210, 140, 0.8);
  box-shadow:
    0 4px 16px rgba(255, 150, 50, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
body.blend-sphere-page .blend-sphere-picker-btn--confirm:disabled,
body.ascend-nexus-page .blend-sphere-picker-btn--confirm:disabled,
body.blend-sphere-page .blend-sphere-picker-btn--buy:disabled,
body.ascend-nexus-page .blend-sphere-picker-btn--buy:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
body.blend-sphere-page .blend-sphere-picker-btn:focus-visible,
body.ascend-nexus-page .blend-sphere-picker-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(4, 12, 28, 0.95),
    0 0 0 4px rgba(100, 180, 255, 0.4);
}
body.blend-sphere-page .blend-sphere-picker-btn--confirm:focus-visible,
body.ascend-nexus-page .blend-sphere-picker-btn--confirm:focus-visible {
  box-shadow:
    0 0 0 2px rgba(4, 12, 28, 0.95),
    0 0 0 4px rgba(255, 186, 100, 0.48);
}
body.blend-sphere-page .blend-sphere-choice-hint {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #9ab0c8;
  text-align: left;
}
@media (max-width: 900px) {
  body.blend-sphere-page .blend-sphere-workbench-body {
    grid-template-columns: 1fr;
  }
  body.blend-sphere-page .blend-sphere-workbench-outcome {
    order: 1;
  }
  body.blend-sphere-page .blend-sphere-workbench-inputs {
    order: 2;
  }
}
@media (max-width: 720px) {
  body.blend-sphere-page .blend-sphere-outcome-stage {
    flex-direction: column;
    max-width: none;
    align-items: center;
  }
  body.blend-sphere-page .blend-sphere-outcome-primary {
    width: 100%;
    max-width: 17rem;
    margin-inline: auto;
  }
  body.blend-sphere-page .blend-sphere-outcome-side {
    width: 100%;
    max-width: none;
    align-items: center;
    text-align: center;
  }
  body.blend-sphere-page .blend-sphere-repeat {
    align-items: center;
  }
  body.blend-sphere-page .blend-sphere-outcome-loot-carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: center;
  }
  body.blend-sphere-page .blend-sphere-outcome-loot-viewport {
    justify-self: center;
  }
}

body.sacrificial-altar-page .market-gated-wrap {
  min-height: calc(100vh - var(--sacrificial-altar-bandeau-h, 70px));
}
/* Sacrificial Altar — sacrifice ascend.pdef */
body.sacrificial-altar-gated:not(.sacrificial-altar-unlocked) {
  overflow: hidden;
}
body.sacrificial-altar-unlocked #sacrificial-altar-gate-overlay,
body.ascend-nexus-unlocked #ascend-nexus-gate-overlay {
  display: none !important;
}
body.sacrificial-altar-gated .sacrificial-altar-main,
body.ascend-nexus-gated .blend-sphere-main {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}
body.sacrificial-altar-gated.sacrificial-altar-unlocked .sacrificial-altar-main,
body.ascend-nexus-gated.ascend-nexus-unlocked .blend-sphere-main {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}
body.ascend-nexus-gated:not(.ascend-nexus-unlocked) {
  overflow: hidden;
}
body.sacrificial-altar-page {
  --sacrificial-altar-accent: #93fcfc;
  --sacrificial-altar-page-pad-top: 1rem;
  --sacrificial-altar-page-pad-x: 1.25rem;
  --sacrificial-altar-page-pad-bottom: calc(var(--sacrificial-altar-page-pad-x) * 0.5);
  --sacrificial-altar-font: "Chakra Petch", "Segoe UI", sans-serif;
  --sacrificial-altar-mono: "JetBrains Mono", "Consolas", monospace;
  --font-display: var(--sacrificial-altar-font);
  --font-mono: var(--sacrificial-altar-mono);
}

/* Thème SF — polices + encarts (bouton Sacrifice / workbench inchangés) */
body.sacrificial-altar-page .sacrificial-altar-main,
body.sacrificial-altar-page .inventory-gate-screen,
body.sacrificial-altar-page .sacrificial-altar-progress-overlay,
body.sacrificial-altar-page .sacrificial-altar-pending-recovery {
  font-family: var(--sacrificial-altar-font);
}
body.sacrificial-altar-page .bandeau-wallet-btn,
body.sacrificial-altar-page .menu-settings-btn,
body.sacrificial-altar-page .pda-settings-title,
body.sacrificial-altar-page .pda-settings-section-title,
body.sacrificial-altar-page .inventory-gate-screen .market-wallet-gate-title,
body.sacrificial-altar-page .inventory-gate-screen .market-wallet-gate-message,
body.sacrificial-altar-page .market-encart-title,
body.sacrificial-altar-page .market-chart-title,
body.sacrificial-altar-page .sacrificial-altar-filter .market-select {
  font-family: var(--sacrificial-altar-font);
}
body.sacrificial-altar-page .sacrificial-altar-stat-value,
body.sacrificial-altar-page .sacrificial-altar-list-section-count,
body.sacrificial-altar-page .sacrificial-altar-progress-tx-link,
body.sacrificial-altar-page .sacrificial-altar-confirm-qty,
body.sacrificial-altar-page .sacrificial-altar-confirm-qty-num,
body.sacrificial-altar-page .sacrificial-altar-slot-empty {
  font-family: var(--sacrificial-altar-mono);
}
body.sacrificial-altar-page .inventory-gate-screen .market-wallet-gate-title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.sacrificial-altar-page .market-encart:not(.sacrificial-altar-workbench) {
  background: radial-gradient(circle at 0 0, rgba(100, 180, 255, 0.2), rgba(0, 8, 24, 0.92));
  border: 1px solid rgba(120, 200, 255, 0.38);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.sacrificial-altar-page .market-encart-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(190, 210, 235, 0.88);
}
body.sacrificial-altar-page .market-chart-title {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #eaf4ff;
}
body.sacrificial-altar-page .sacrificial-altar-clear-btn,
body.sacrificial-altar-page .sacrificial-altar-refresh-btn {
  font-family: var(--sacrificial-altar-font);
  background: radial-gradient(circle at 30% 20%, rgba(100, 180, 255, 0.24), rgba(0, 42, 82, 0.92));
  border: 1px solid rgba(120, 200, 255, 0.55);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
body.sacrificial-altar-page .sacrificial-altar-clear-btn:hover:not(:disabled),
body.sacrificial-altar-page .sacrificial-altar-refresh-btn:hover:not(:disabled) {
  background: radial-gradient(circle at 30% 20%, rgba(130, 200, 255, 0.32), rgba(0, 58, 108, 0.95));
  border-color: rgba(140, 220, 255, 0.78);
  box-shadow:
    0 4px 14px rgba(80, 160, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* Ascending Portal — Blend Sphere layout, gold accent */
body.ascend-nexus-page {
  --ascend-nexus-accent: #f0c878;
  --ascend-nexus-font: "Chakra Petch", "Segoe UI", sans-serif;
  --ascend-nexus-mono: "JetBrains Mono", "Consolas", monospace;
  --font-display: var(--ascend-nexus-font);
  --font-mono: var(--ascend-nexus-mono);
}

/* Thème SF — polices + encarts (bouton Ascend / Buy / Confirm / raretés inchangés) */
body.ascend-nexus-page .blend-sphere-main,
body.ascend-nexus-page .inventory-gate-screen,
body.ascend-nexus-page .ascend-nexus-progress-overlay,
body.ascend-nexus-page .ascend-nexus-picker-overlay {
  font-family: var(--ascend-nexus-font);
}
body.ascend-nexus-page .bandeau-wallet-btn,
body.ascend-nexus-page .menu-settings-btn,
body.ascend-nexus-page .pda-settings-title,
body.ascend-nexus-page .pda-settings-section-title,
body.ascend-nexus-page .inventory-gate-screen .market-wallet-gate-title,
body.ascend-nexus-page .inventory-gate-screen .market-wallet-gate-message,
body.ascend-nexus-page .market-encart-title,
body.ascend-nexus-page .market-chart-title,
body.ascend-nexus-page .blend-sphere-search,
body.ascend-nexus-page .blend-sphere-filter-select,
body.ascend-nexus-page .blend-sphere-list-item,
body.ascend-nexus-page .blend-sphere-list-item-title,
body.ascend-nexus-page .ascend-nexus-config-status,
body.ascend-nexus-page .blend-sphere-status,
body.ascend-nexus-page .ascend-nexus-picker-hint,
body.ascend-nexus-page .ascend-nexus-picker-card-name,
body.ascend-nexus-page .ascend-nexus-progress-message {
  font-family: var(--ascend-nexus-font);
}
body.ascend-nexus-page .ascend-nexus-list-row .blend-sphere-list-item-max,
body.ascend-nexus-page .ascend-nexus-picker-count,
body.ascend-nexus-page .ascend-nexus-progress-tx-link,
body.ascend-nexus-page .blend-sphere-list-section-count,
body.ascend-nexus-page .blend-sphere-list-item-meta {
  font-family: var(--ascend-nexus-mono);
}
body.ascend-nexus-page .inventory-gate-screen .market-wallet-gate-title,
body.ascend-nexus-page .blend-sphere-mobile-title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(53, 224, 255, 0.22);
}
body.ascend-nexus-page .market-encart:not(.blend-sphere-workbench) {
  background: radial-gradient(circle at 0 0, rgba(100, 180, 255, 0.2), rgba(0, 8, 24, 0.92));
  border: 1px solid rgba(120, 200, 255, 0.38);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.ascend-nexus-page .market-encart-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(190, 210, 235, 0.88);
}
body.ascend-nexus-page .blend-sphere-mobile-title.market-encart-title {
  font-size: clamp(1.2rem, 0.95rem + 0.45vw, 1.42rem);
  font-weight: 700;
  color: #eaf4ff;
}
body.ascend-nexus-page .market-chart-title {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #eaf4ff;
}
body.ascend-nexus-page .market-schema-box {
  background: linear-gradient(180deg, rgba(8, 18, 36, 0.72), rgba(2, 8, 18, 0.88));
  border: 1px solid rgba(80, 140, 200, 0.28);
}
body.ascend-nexus-page .blend-sphere-list-item {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(210, 230, 250, 0.9);
  background: linear-gradient(145deg, rgba(12, 28, 52, 0.48), rgba(6, 14, 28, 0.38));
  border: 1px solid rgba(80, 140, 200, 0.22);
}
body.ascend-nexus-page .blend-sphere-list-item:hover {
  background: linear-gradient(145deg, rgba(20, 50, 90, 0.58), rgba(8, 22, 42, 0.48));
  border-color: rgba(120, 200, 255, 0.42);
  color: #fff;
}
body.ascend-nexus-page .blend-sphere-list-item.selected,
body.ascend-nexus-page .blend-sphere-list-item--active {
  background: linear-gradient(180deg, rgba(0, 90, 160, 0.58), rgba(0, 45, 95, 0.78));
  border-color: rgba(140, 210, 255, 0.55);
  color: #eaf4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
body.ascend-nexus-page .blend-sphere-search,
body.ascend-nexus-page .blend-sphere-filter-select {
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 8px;
  border: 1px solid rgba(120, 200, 255, 0.32);
  background-color: rgba(0, 12, 28, 0.88);
  color: #e8eef8;
}
body.ascend-nexus-page .blend-sphere-search:focus,
body.ascend-nexus-page .blend-sphere-filter-select:focus,
body.ascend-nexus-page .blend-sphere-filter-select:focus-visible {
  border-color: rgba(140, 210, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(4, 12, 28, 0.9), 0 0 0 4px rgba(100, 180, 255, 0.25);
}
body.ascend-nexus-page .ascend-nexus-config-status {
  margin: 0 0 0.45rem;
  font-family: var(--ascend-nexus-font);
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(255, 170, 120, 0.95);
}
body.ascend-nexus-page .ascend-nexus-filters {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
body.ascend-nexus-page .ascend-nexus-list-rows {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  width: 100%;
  margin-top: 0.2rem;
}
body.ascend-nexus-page .ascend-nexus-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
}
body.ascend-nexus-page .ascend-nexus-list-stars {
  font-family: var(--ascend-nexus-font);
  font-size: 0.72rem;
  font-weight: 600;
  color: #f0c878;
  letter-spacing: 0.02em;
}
body.ascend-nexus-page .ascend-nexus-list-frags {
  font-family: var(--ascend-nexus-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #93fcfc;
}
body.ascend-nexus-page .ascend-nexus-list-row .blend-sphere-list-item-max {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 2.75rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
  color: #ff5c5c;
  opacity: 0.95;
}
body.ascend-nexus-page .ascend-nexus-list-row .blend-sphere-list-item-max--missing {
  color: #ff5c5c;
}
body.ascend-nexus-page .ascend-nexus-list-pill {
  display: none;
}
body.ascend-nexus-page .ascend-nexus-list-item .blend-sphere-list-item-meta {
  display: none;
}
body.ascend-nexus-page .ascend-nexus-filters,
body.ascend-nexus-page .ascend-nexus-config-status {
  flex-shrink: 0;
}

/* Colonne gauche : filtres + liste — bas visible, scroll dans la list-box */
@media (min-width: 901px) {
  body.ascend-nexus-page.blend-sphere-unlocked .blend-sphere-col--left {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  body.ascend-nexus-page.blend-sphere-unlocked .blend-sphere-sidebar {
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }
  body.ascend-nexus-page.blend-sphere-unlocked .blend-sphere-sidebar .market-encart {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.ascend-nexus-page.blend-sphere-unlocked .blend-sphere-list-box {
    flex: 1 1 auto;
    min-height: 0;
  }
}

body.ascend-nexus-page .ascend-nexus-outcome {
  background: linear-gradient(145deg, rgba(12, 28, 52, 0.55), rgba(6, 16, 30, 0.35));
  border-color: rgba(100, 180, 255, 0.16);
  box-shadow: inset 0 0 2.5rem rgba(80, 160, 255, 0.06);
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="common"] {
  background: linear-gradient(145deg, rgba(48, 52, 58, 0.58), rgba(14, 16, 20, 0.4));
  border-color: rgba(170, 175, 185, 0.28);
  box-shadow: inset 0 0 2.5rem rgba(140, 145, 155, 0.08);
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="uncommon"] {
  background: linear-gradient(145deg, rgba(18, 52, 32, 0.58), rgba(6, 20, 14, 0.4));
  border-color: rgba(90, 210, 130, 0.32);
  box-shadow: inset 0 0 2.5rem rgba(70, 180, 110, 0.1);
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="rare"] {
  background: linear-gradient(145deg, rgba(12, 36, 72, 0.58), rgba(6, 16, 36, 0.4));
  border-color: rgba(90, 160, 255, 0.34);
  box-shadow: inset 0 0 2.5rem rgba(70, 140, 255, 0.1);
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="epic"] {
  background: linear-gradient(145deg, rgba(42, 18, 68, 0.58), rgba(18, 8, 34, 0.4));
  border-color: rgba(170, 110, 255, 0.36);
  box-shadow: inset 0 0 2.5rem rgba(140, 80, 230, 0.12);
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="legendary"] {
  background: linear-gradient(145deg, rgba(58, 42, 8, 0.58), rgba(28, 18, 4, 0.4));
  border-color: rgba(240, 200, 100, 0.4);
  box-shadow: inset 0 0 2.5rem rgba(230, 180, 70, 0.12);
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="mythic"] {
  background: linear-gradient(145deg, rgba(68, 16, 18, 0.58), rgba(28, 6, 8, 0.4));
  border-color: rgba(255, 90, 90, 0.4);
  box-shadow: inset 0 0 2.5rem rgba(230, 60, 70, 0.12);
}
body.ascend-nexus-page .blend-sphere-outcome-primary {
  max-width: min(100%, 26rem);
}
/* Halo : glow en ::before (inset négatif) — border-radius:50% sur l’hôte portrait
   coupait le dégradé en barre nette en haut (ellipse). */
body.ascend-nexus-page .ascend-nexus-outcome-halo {
  position: relative;
  z-index: 0;
  width: min(100%, 24rem, 56vh);
  margin: 0;
  padding: 0.85rem;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
body.ascend-nexus-page .ascend-nexus-outcome-halo::before {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(90, 170, 255, 0.3) 0%,
    rgba(90, 170, 255, 0.12) 38%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}
body.ascend-nexus-page .ascend-nexus-outcome-halo > * {
  position: relative;
  z-index: 1;
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="common"] .ascend-nexus-outcome-halo::before {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(170, 175, 185, 0.32) 0%,
    rgba(170, 175, 185, 0.12) 38%,
    transparent 72%
  );
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="uncommon"] .ascend-nexus-outcome-halo::before {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(90, 210, 130, 0.32) 0%,
    rgba(90, 210, 130, 0.12) 38%,
    transparent 72%
  );
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="rare"] .ascend-nexus-outcome-halo::before {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(90, 160, 255, 0.32) 0%,
    rgba(90, 160, 255, 0.12) 38%,
    transparent 72%
  );
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="epic"] .ascend-nexus-outcome-halo::before {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(170, 110, 255, 0.34) 0%,
    rgba(170, 110, 255, 0.14) 38%,
    transparent 72%
  );
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="legendary"] .ascend-nexus-outcome-halo::before {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(240, 200, 100, 0.36) 0%,
    rgba(240, 200, 100, 0.14) 38%,
    transparent 72%
  );
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="mythic"] .ascend-nexus-outcome-halo::before {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 90, 90, 0.34) 0%,
    rgba(255, 90, 90, 0.14) 38%,
    transparent 72%
  );
}
body.ascend-nexus-page .ascend-nexus-outcome .ascend-nexus-outcome-img,
body.ascend-nexus-page .ascend-nexus-outcome .blend-sphere-outcome-hero {
  filter: drop-shadow(0 0 2rem rgba(100, 180, 255, 0.4));
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="common"] .ascend-nexus-outcome-img,
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="common"] .blend-sphere-outcome-hero {
  filter: drop-shadow(0 0 2rem rgba(170, 175, 185, 0.5));
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="uncommon"] .ascend-nexus-outcome-img,
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="uncommon"] .blend-sphere-outcome-hero {
  filter: drop-shadow(0 0 2rem rgba(90, 210, 130, 0.5));
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="rare"] .ascend-nexus-outcome-img,
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="rare"] .blend-sphere-outcome-hero {
  filter: drop-shadow(0 0 2rem rgba(90, 160, 255, 0.5));
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="epic"] .ascend-nexus-outcome-img,
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="epic"] .blend-sphere-outcome-hero {
  filter: drop-shadow(0 0 2rem rgba(170, 110, 255, 0.52));
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="legendary"] .ascend-nexus-outcome-img,
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="legendary"] .blend-sphere-outcome-hero {
  filter: drop-shadow(0 0 2rem rgba(240, 200, 100, 0.55));
}
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="mythic"] .ascend-nexus-outcome-img,
body.ascend-nexus-page .ascend-nexus-outcome[data-rarity="mythic"] .blend-sphere-outcome-hero {
  filter: drop-shadow(0 0 2rem rgba(255, 90, 90, 0.52));
}
body.ascend-nexus-page .ascend-nexus-outcome-img,
body.ascend-nexus-page .ascend-nexus-outcome-halo .blend-sphere-nft-img,
body.ascend-nexus-page .ascend-nexus-outcome-halo .blend-sphere-outcome-hero {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(52vh, 24rem);
  object-fit: contain;
}
body.ascend-nexus-page .ascend-nexus-outcome-meta {
  margin: 0;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0c878;
  line-height: 1.25;
}
body.ascend-nexus-page .ascend-nexus-outcome-meta-sub {
  display: inline;
  margin-left: 0.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(240, 200, 120, 0.72);
}
body.ascend-nexus-page .ascend-nexus-exec-btn,
body.ascend-nexus-page #ascend-nexus-exec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  margin: 0.15rem 0 0;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe8c8;
  background: radial-gradient(circle at 30% 20%, rgba(255, 186, 100, 0.3), rgba(38, 22, 0, 0.78));
  border: 1px solid rgba(255, 186, 100, 0.58);
  border-radius: 8px;
  padding: 0.56rem 1.15rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
body.ascend-nexus-page .ascend-nexus-exec-btn:hover:not(:disabled),
body.ascend-nexus-page #ascend-nexus-exec-btn:hover:not(:disabled) {
  background: radial-gradient(circle at 30% 20%, rgba(255, 200, 120, 0.42), rgba(58, 34, 4, 0.9));
  border-color: rgba(255, 210, 140, 0.78);
  box-shadow:
    0 4px 16px rgba(255, 150, 50, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
body.ascend-nexus-page .ascend-nexus-exec-btn:active:not(:disabled),
body.ascend-nexus-page #ascend-nexus-exec-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.ascend-nexus-page .ascend-nexus-exec-btn:focus-visible,
body.ascend-nexus-page #ascend-nexus-exec-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(4, 12, 28, 0.95),
    0 0 0 4px rgba(255, 186, 100, 0.48);
}
body.ascend-nexus-page .ascend-nexus-exec-btn:disabled,
body.ascend-nexus-page #ascend-nexus-exec-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
body.ascend-nexus-page .ascend-nexus-action-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
  width: 100%;
}
body.ascend-nexus-page .ascend-nexus-action-stack .ascend-nexus-exec-btn {
  margin: 0;
}
@media (min-width: 901px) {
  body.ascend-nexus-page .ascend-nexus-action-stack {
    align-items: flex-start;
    width: auto;
  }
}
body.ascend-nexus-page.ascend-nexus-progress-open {
  overflow: hidden;
}
/* Bandeau toujours au-dessus de la popup (comme le reste du site) */
body.ascend-nexus-page.ascend-nexus-progress-open .bandeau {
  z-index: 1100;
}
/*
 * Popup Ascend (preview / loading / complete) :
 * centrage géométrique sous le bandeau, marges G/D égales.
 * Pas de 100vw (DevTools / scrollbar) ; left:50% + translateX.
 * --ascend-vv-* peut être posé en JS via visualViewport (mobile).
 */
body.ascend-nexus-page .ascend-nexus-progress-overlay:not([hidden]) {
  --ascend-progress-pad: 0.75rem;
  --ascend-vv-left: 0px;
  --ascend-vv-width: 100%;
  --ascend-vv-top: var(--blend-sphere-bandeau-h, var(--sf-bandeau-h, 70px));
  --ascend-vv-height: calc(100dvh - var(--blend-sphere-bandeau-h, var(--sf-bandeau-h, 70px)));
  --ascend-progress-avail-h: calc(var(--ascend-vv-height) - 1.5rem);
  position: fixed;
  top: var(--ascend-vv-top);
  left: var(--ascend-vv-left);
  width: var(--ascend-vv-width);
  height: var(--ascend-vv-height);
  right: auto;
  bottom: auto;
  z-index: 1000;
  display: block;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body.ascend-nexus-page .ascend-nexus-progress-modal.market-chart-modal,
body.ascend-nexus-page .ascend-nexus-progress-modal.ascend-nexus-progress-modal--result {
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(30rem, calc(100% - (2 * var(--ascend-progress-pad))));
  max-width: calc(100% - (2 * var(--ascend-progress-pad)));
  min-height: 0;
  max-height: var(--ascend-progress-avail-h);
  margin: 0;
  flex: none;
  overflow: hidden;
  box-sizing: border-box;
}
body.ascend-nexus-page .ascend-nexus-progress-modal.ascend-nexus-progress-modal--result {
  min-height: min(32rem, var(--ascend-progress-avail-h));
}
body.ascend-nexus-page .ascend-nexus-progress-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}
body.ascend-nexus-page .ascend-nexus-progress-body > * {
  max-width: 100%;
  margin-inline: auto;
}
body.ascend-nexus-page .ascend-nexus-progress-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  min-height: min(12rem, 36vh);
  text-align: center;
}
body.ascend-nexus-page .ascend-nexus-progress-spinner {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto;
  border: 3px solid rgba(240, 200, 120, 0.18);
  border-top-color: rgba(240, 200, 120, 0.85);
  border-radius: 50%;
  animation: blend-sphere-spin 0.8s linear infinite;
  flex: 0 0 auto;
}
body.ascend-nexus-page .ascend-nexus-progress-message {
  margin: 0;
  max-width: 22rem;
  font-family: var(--ascend-nexus-font);
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(220, 230, 245, 0.92);
  text-align: center;
}
body.ascend-nexus-page .ascend-nexus-progress-body:has(.ascend-nexus-reveal) {
  justify-content: center;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
  overflow: hidden;
}
body.ascend-nexus-page .ascend-nexus-reveal,
body.ascend-nexus-page .ascend-nexus-reveal-stage {
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  body.ascend-nexus-page .ascend-nexus-progress-overlay:not([hidden]) {
    --ascend-progress-pad: 0.65rem;
    --ascend-progress-avail-h: calc(var(--ascend-vv-height) - 1rem);
  }
  body.ascend-nexus-page .ascend-nexus-progress-modal.market-chart-modal,
  body.ascend-nexus-page .ascend-nexus-progress-modal.ascend-nexus-progress-modal--result {
    width: min(30rem, calc(100% - (2 * var(--ascend-progress-pad))));
    max-width: calc(100% - (2 * var(--ascend-progress-pad)));
    min-height: 0;
  }
  body.ascend-nexus-page .ascend-nexus-progress-modal.ascend-nexus-progress-modal--result {
    min-height: min(26rem, var(--ascend-progress-avail-h));
  }
  body.ascend-nexus-page .ascend-nexus-progress-body,
  body.ascend-nexus-page .ascend-nexus-progress-loading,
  body.ascend-nexus-page .ascend-nexus-reveal {
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  body.ascend-nexus-page .ascend-nexus-progress-spinner {
    width: 3.75rem;
    height: 3.75rem;
  }
  body.ascend-nexus-page .ascend-nexus-progress-message {
    font-size: 0.86rem;
    max-width: min(18rem, 100%);
  }
  body.ascend-nexus-page .ascend-nexus-reveal-stage {
    width: min(100%, 11.5rem, 38vh);
  }
}
body.ascend-nexus-page .ascend-nexus-progress-header {
  align-items: flex-start;
  gap: 0.75rem;
}
body.ascend-nexus-page .ascend-nexus-progress-title-row {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.3rem;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}
body.ascend-nexus-page .ascend-nexus-progress-title-row .market-chart-title {
  flex: 0 1 auto;
  min-width: 0;
}
body.ascend-nexus-page .ascend-nexus-progress-tx-link {
  flex-shrink: 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1;
  color: #8a9bb0;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s ease;
}
body.ascend-nexus-page .ascend-nexus-progress-tx-link:hover {
  color: #6b7a8f;
}
body.ascend-nexus-page .ascend-nexus-progress-tx-link:active {
  color: #3d4654;
}
body.ascend-nexus-page .ascend-nexus-reveal {
  --ascend-reveal-tier-color: #9aa7b5;
  --ascend-reveal-glow-blur: 12px;
  --blend-reveal-tier-color: var(--ascend-reveal-tier-color);
  --blend-reveal-glow-blur: var(--ascend-reveal-glow-blur);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  margin-top: 0.35rem;
}
body.ascend-nexus-page .ascend-nexus-reveal-stage {
  position: relative;
  width: min(100%, 12.75rem, 40vh);
  aspect-ratio: var(--ascend-reveal-aspect, 300 / 435);
  height: auto;
  max-width: 100%;
  margin: 0.85rem auto 0;
  overflow: visible;
}
@keyframes ascend-nexus-reveal-shake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-7px, 4px); }
  40% { transform: translate(6px, -5px); }
  60% { transform: translate(-5px, 3px); }
  80% { transform: translate(4px, -2px); }
  100% { transform: translate(0, 0); }
}
body.ascend-nexus-page .ascend-nexus-reveal-stage--shake {
  animation: ascend-nexus-reveal-shake 0.4s ease;
}
body.ascend-nexus-page .ascend-nexus-reveal-card-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: visible;
  z-index: 5;
  box-shadow: none;
}
body.ascend-nexus-page .ascend-nexus-reveal-media {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: 0;
  pointer-events: none;
  background: #070b14;
  filter: drop-shadow(0 0.45rem 0.9rem rgba(0, 0, 0, 0.45));
}
body.ascend-nexus-page .ascend-nexus-reveal-card-wrap .blend-sphere-result-encart {
  z-index: 4;
}
body.ascend-nexus-page .ascend-nexus-reveal-card-wrap .blend-sphere-result-encart,
body.ascend-nexus-page .ascend-nexus-reveal-flash {
  inset: auto;
  right: auto;
  bottom: auto;
  box-sizing: border-box;
  pointer-events: none;
}
body.ascend-nexus-page .ascend-nexus-reveal-card-img {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
  filter: none;
}
@keyframes ascend-nexus-reveal-card-pop {
  0% { transform: scale(0.85); filter: brightness(1.35) saturate(1.05); }
  55% { transform: scale(1.06); filter: brightness(1.12) saturate(1.02); }
  100% { transform: scale(1); filter: brightness(1) saturate(1); }
}
body.ascend-nexus-page .ascend-nexus-reveal-card-img--pop {
  animation: ascend-nexus-reveal-card-pop 0.6s cubic-bezier(0.2, 0.8, 0.25, 1);
}
body.ascend-nexus-page .ascend-nexus-reveal-flash {
  position: absolute;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle,
    var(--ascend-reveal-tier-color, #9aa7b5) 0%,
    var(--ascend-reveal-tier-color, #9aa7b5) 28%,
    transparent 72%
  );
}
body.ascend-nexus-page .ascend-nexus-reveal-flash--show {
  transition: opacity 0.22s ease;
  opacity: 1;
}
body.ascend-nexus-page .ascend-nexus-reveal-flash--hide {
  transition: opacity 0.55s ease;
  opacity: 0;
}
body.ascend-nexus-page .ascend-nexus-reveal-shockwave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin: -1.25rem 0 0 -1.25rem;
  border-radius: 50%;
  border: 3px solid var(--ascend-reveal-tier-color, #9aa7b5);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 1.5rem var(--ascend-reveal-tier-color, #9aa7b5);
  z-index: 7;
}
body.ascend-nexus-page .ascend-nexus-reveal-shockwave--burst {
  animation: ascend-nexus-reveal-shockwave 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes ascend-nexus-reveal-shockwave {
  0% { opacity: 0.95; transform: scale(1); }
  100% { opacity: 0; transform: scale(9); }
}
body.ascend-nexus-page .ascend-nexus-reveal-sparks,
body.ascend-nexus-page .ascend-nexus-reveal-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}
/* Pas de z-index sur orbit : les frags gèrent devant/derrière vs card-wrap (z-index:5) */
body.ascend-nexus-page .ascend-nexus-reveal-orbit {
  z-index: auto;
}
body.ascend-nexus-page .ascend-nexus-reveal-sparks {
  z-index: 7;
}
body.ascend-nexus-page .ascend-nexus-reveal-spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--ascend-reveal-tier-color, #9aa7b5);
  box-shadow: 0 0 6px var(--ascend-reveal-tier-color, #9aa7b5);
  opacity: 1;
  transition: transform 0.65s cubic-bezier(0.15, 0.7, 0.3, 1), opacity 0.65s ease;
}
body.ascend-nexus-page .ascend-nexus-reveal-frag {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--frag-size, 44px);
  height: var(--frag-size, 44px);
  margin: calc(var(--frag-size, 44px) / -2) 0 0 calc(var(--frag-size, 44px) / -2);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  border-radius: 0.35rem;
  background: transparent;
  box-shadow: none;
  z-index: 3;
}
body.ascend-nexus-page .ascend-nexus-reveal-frag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px var(--ascend-reveal-tier-color, #9aa7b5));
}
body.ascend-nexus-page .ascend-nexus-reveal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  width: min(100%, 16rem);
  margin: 1.75rem auto 0.45rem;
  opacity: 0;
  transform: none;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
body.ascend-nexus-page .ascend-nexus-reveal-footer--show {
  opacity: 1;
  pointer-events: auto;
}
body.ascend-nexus-page .ascend-nexus-reveal-claim-actions {
  width: 100%;
  margin-top: 0;
}
body.ascend-nexus-page .ascend-nexus-reveal-claim-btn {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe8c8;
  background: radial-gradient(circle at 30% 20%, rgba(255, 186, 100, 0.3), rgba(38, 22, 0, 0.78));
  border: 1px solid rgba(255, 186, 100, 0.58);
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  padding: 0.56rem 1.15rem;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
body.ascend-nexus-page .ascend-nexus-reveal-claim-btn:hover:not(:disabled) {
  background: radial-gradient(circle at 30% 20%, rgba(255, 200, 120, 0.42), rgba(58, 34, 4, 0.9));
  border-color: rgba(255, 210, 140, 0.78);
  box-shadow:
    0 4px 16px rgba(255, 150, 50, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
body.ascend-nexus-page .ascend-nexus-reveal-claim-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.ascend-nexus-page .ascend-nexus-reveal-claim-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(4, 12, 28, 0.95),
    0 0 0 4px rgba(255, 186, 100, 0.48);
}
html.sf-motion-disabled body.ascend-nexus-page .ascend-nexus-reveal-stage--shake,
html.sf-motion-disabled body.ascend-nexus-page .ascend-nexus-reveal-card-img--pop,
html.sf-motion-disabled body.ascend-nexus-page .ascend-nexus-reveal-shockwave--burst,
html.sf-motion-disabled body.ascend-nexus-page .ascend-nexus-reveal-glow--once,
html.sf-motion-disabled body.ascend-nexus-page .ascend-nexus-reveal-glow--playing {
  animation: none !important;
}
html.sf-motion-disabled body.ascend-nexus-page .ascend-nexus-reveal-footer {
  opacity: 1;
  transform: none;
  transition: none;
}
html.sf-motion-disabled body.ascend-nexus-page .ascend-nexus-reveal-chevrons,
html.sf-motion-disabled body.ascend-nexus-page .ascend-nexus-reveal-chevrons-track {
  display: none !important;
  animation: none !important;
}
html.sf-motion-disabled body.sacrificial-altar-page .sacrifice-burn-rays,
html.sf-motion-disabled body.sacrificial-altar-page .sacrifice-burn-particles {
  display: none !important;
  animation: none !important;
}

/* Inventory : 2 slots plus larges, badge stock + X/Y fragments */
body.ascend-nexus-page .ascend-nexus-required-slots {
  grid-template-columns: repeat(2, minmax(5.75rem, 8.25rem));
  gap: 0.75rem;
  justify-content: center;
  justify-items: center;
}
body.ascend-nexus-page .ascend-nexus-required-slots .blend-sphere-slot {
  position: relative;
  max-width: 8.25rem;
}
@media (min-width: 901px) {
  body.ascend-nexus-page .ascend-nexus-required-slots {
    justify-content: start;
    justify-items: stretch;
  }
}
body.ascend-nexus-page .ascend-nexus-slot-title-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  line-height: 1.05;
}
body.ascend-nexus-page .ascend-nexus-slot-title-row .blend-sphere-slot-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.05;
}
body.ascend-nexus-page .ascend-nexus-slot-stars {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  font-family: var(--ascend-nexus-font);
  font-size: 0.72rem;
  font-weight: 600;
  color: #f0c878;
  text-align: center;
  line-height: 1.05;
  white-space: nowrap;
}
body.ascend-nexus-page .ascend-nexus-frag-slot .blend-sphere-slot-name {
  width: 100%;
  text-align: center;
}

/* Mobile : centrer panneau Ascend + slots (après les règles Blend qui forcent flex-start) */
@media (max-width: 900px) {
  body.ascend-nexus-page.blend-sphere-page .blend-sphere-outcome-side,
  body.ascend-nexus-page .blend-sphere-outcome-side {
    width: 100%;
    max-width: none;
    align-items: center;
    text-align: center;
  }
  body.ascend-nexus-page .ascend-nexus-outcome-meta {
    text-align: center;
  }
  body.ascend-nexus-page .blend-sphere-outcome-category-row,
  body.ascend-nexus-page .blend-sphere-outcome-label {
    text-align: center;
  }
  body.ascend-nexus-page.blend-sphere-page .ascend-nexus-required-slots,
  body.ascend-nexus-page .ascend-nexus-required-slots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    align-items: stretch;
    width: 100%;
  }
  body.ascend-nexus-page .blend-sphere-inputs-header {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
}

/* Popup picker : zone sous le bandeau, grille scrollable à l’intérieur */
body.ascend-nexus-page.ascend-nexus-picker-open {
  overflow: hidden;
}
body.ascend-nexus-page .ascend-nexus-picker-overlay:not([hidden]) {
  --ascend-picker-avail-h: calc(100dvh - var(--blend-sphere-bandeau-h, 70px) - 1.5rem);
  position: fixed;
  top: var(--blend-sphere-bandeau-h, 70px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
body.ascend-nexus-page .ascend-nexus-picker-modal {
  width: min(94vw, 42rem);
  max-width: calc(100vw - 1.5rem);
  height: min(var(--ascend-picker-avail-h, 90dvh), 46rem);
  min-height: 0;
  max-height: var(--ascend-picker-avail-h, min(90vh, 46rem));
  margin: 0;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(18, 28, 44, 0.78), rgba(8, 14, 26, 0.88)),
    rgba(6, 12, 22, 0.6);
  border: 1px solid rgba(240, 200, 120, 0.28);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}
body.ascend-nexus-page .ascend-nexus-picker-modal.market-chart-modal {
  width: min(94vw, 42rem);
  min-height: 0;
  height: min(var(--ascend-picker-avail-h, 90dvh), 46rem);
  max-height: var(--ascend-picker-avail-h, min(90vh, 46rem));
}
body.ascend-nexus-page .ascend-nexus-picker-modal .market-chart-modal-header {
  flex-shrink: 0;
}
body.ascend-nexus-page .ascend-nexus-picker-modal--frag {
  border-color: rgba(147, 252, 252, 0.38);
}
body.ascend-nexus-page .ascend-nexus-picker-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem 1rem 1rem;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
body.ascend-nexus-page .ascend-nexus-picker-hint {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--ascend-nexus-font);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted, #8aa0b8);
}
body.ascend-nexus-page .ascend-nexus-picker-count {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.85rem;
  font-weight: 600;
  color: #f0c878;
}
body.ascend-nexus-page .ascend-nexus-picker-modal--frag .ascend-nexus-picker-count {
  color: #9ed4ff;
}
/* Bloc scrollable : toutes les cartes fragments / assets dedans */
body.ascend-nexus-page .ascend-nexus-picker-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.55rem 0.55rem 0.65rem;
  border: 1px solid rgba(100, 150, 200, 0.22);
  border-radius: 0.65rem;
  background: rgba(4, 10, 20, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 200, 120, 0.55) rgba(0, 12, 28, 0.72);
}
body.ascend-nexus-page .ascend-nexus-picker-modal--frag .ascend-nexus-picker-scroll {
  border-color: rgba(147, 252, 252, 0.28);
  scrollbar-color: rgba(100, 180, 255, 0.55) rgba(0, 12, 28, 0.72);
}
body.ascend-nexus-page .ascend-nexus-picker-scroll::-webkit-scrollbar {
  width: 8px;
}
body.ascend-nexus-page .ascend-nexus-picker-scroll::-webkit-scrollbar-track {
  background: rgba(0, 12, 28, 0.72);
  border-radius: 999px;
}
body.ascend-nexus-page .ascend-nexus-picker-scroll::-webkit-scrollbar-thumb {
  background: rgba(240, 200, 120, 0.55);
  border-radius: 999px;
  border: 2px solid rgba(0, 12, 28, 0.72);
}
body.ascend-nexus-page .ascend-nexus-picker-modal--frag .ascend-nexus-picker-scroll::-webkit-scrollbar-thumb {
  background: rgba(100, 180, 255, 0.55);
}
body.ascend-nexus-page .ascend-nexus-picker-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 200, 120, 0.75);
}
body.ascend-nexus-page .ascend-nexus-picker-modal--frag .ascend-nexus-picker-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 180, 255, 0.75);
}
body.ascend-nexus-page .ascend-nexus-picker-scroll::-webkit-scrollbar-corner {
  background: transparent;
}
body.ascend-nexus-page .ascend-nexus-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  overflow: visible;
  min-height: 0;
  max-height: none;
  padding: 0;
  align-content: start;
}
body.ascend-nexus-page .ascend-nexus-picker-modal--frag .ascend-nexus-picker-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.ascend-nexus-page .ascend-nexus-picker-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(240, 200, 120, 0.45);
  border-radius: 0.55rem;
  background: radial-gradient(circle at 0 0, rgba(240, 200, 120, 0.14), rgba(4, 10, 22, 0.92));
  color: inherit;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
body.ascend-nexus-page .ascend-nexus-picker-card:hover {
  border-color: rgba(240, 200, 120, 0.75);
  transform: translateY(-1px);
}
body.ascend-nexus-page .ascend-nexus-picker-card.is-selected {
  border-color: rgba(240, 200, 120, 0.95);
  box-shadow:
    0 0 0 1px rgba(240, 200, 120, 0.35),
    0 6px 18px rgba(80, 50, 0, 0.35);
}
body.ascend-nexus-page .ascend-nexus-picker-modal--frag .ascend-nexus-picker-card {
  border-color: rgba(147, 252, 252, 0.4);
}
body.ascend-nexus-page .ascend-nexus-picker-modal--frag .ascend-nexus-picker-card.is-selected {
  border-color: rgba(147, 252, 252, 0.9);
  box-shadow:
    0 0 0 1px rgba(147, 252, 252, 0.32),
    0 6px 18px rgba(0, 60, 70, 0.35);
}
body.ascend-nexus-page .ascend-nexus-picker-card-media {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(4, 10, 20, 0.65);
  padding: 0.35rem;
  box-sizing: border-box;
}
body.ascend-nexus-page .ascend-nexus-picker-card-media .blend-sphere-nft-img,
body.ascend-nexus-page .ascend-nexus-picker-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  transform-origin: center;
}
body.ascend-nexus-page .ascend-nexus-picker-card-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  width: 100%;
  padding: 0.45rem 0.4rem 0.5rem;
  background: rgba(22, 28, 40, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
body.ascend-nexus-page .ascend-nexus-picker-card-name {
  font-family: var(--ascend-nexus-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff6e8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
body.ascend-nexus-page .ascend-nexus-picker-card-meta {
  font-family: var(--ascend-nexus-font);
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(240, 200, 120, 0.95);
  line-height: 1.25;
}
body.ascend-nexus-page .ascend-nexus-picker-modal--frag .ascend-nexus-picker-card-meta {
  color: rgba(147, 252, 252, 0.95);
}
body.ascend-nexus-page .ascend-nexus-picker-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.45rem;
  flex-shrink: 0;
}
body.ascend-nexus-page .ascend-nexus-picker-actions #ascend-nexus-picker-clear {
  margin-right: auto;
}
body.ascend-nexus-page .ascend-nexus-picker-actions .bandeau-wallet-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
body.ascend-nexus-page .ascend-nexus-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  width: 100%;
  min-width: 0;
  padding: 0.15rem 0 0.1rem;
}
body.ascend-nexus-page .ascend-nexus-confirm-nfts {
  margin: 0;
  padding: 0.7rem 0.65rem;
  max-height: min(38vh, 16.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}
body.ascend-nexus-page .ascend-nexus-confirm-nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 5.75rem);
  justify-content: center;
  justify-items: center;
  align-items: start;
  gap: 0.55rem;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(34vh, 14.5rem);
  padding: 0.1rem 0.35rem 0.2rem 0.15rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 200, 120, 0.45) rgba(8, 20, 36, 0.65);
}
body.ascend-nexus-page .ascend-nexus-confirm-nft-grid::-webkit-scrollbar {
  width: 0.45rem;
}
body.ascend-nexus-page .ascend-nexus-confirm-nft-grid::-webkit-scrollbar-track {
  background: rgba(8, 20, 36, 0.55);
  border-radius: 999px;
}
body.ascend-nexus-page .ascend-nexus-confirm-nft-grid::-webkit-scrollbar-thumb {
  background: rgba(240, 200, 120, 0.4);
  border-radius: 999px;
}
body.ascend-nexus-page .ascend-nexus-confirm-nft-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 200, 120, 0.62);
}
body.ascend-nexus-page .ascend-nexus-confirm-nft-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 5.75rem;
  max-width: 5.75rem;
  min-width: 5.75rem;
  box-sizing: border-box;
}
body.ascend-nexus-page .ascend-nexus-confirm-nft-media {
  position: relative;
  width: 5.75rem;
  height: 5.75rem;
  flex: 0 0 5.75rem;
  aspect-ratio: 1;
  border-radius: 0.45rem;
  border: 1px solid rgba(240, 200, 120, 0.32);
  background: rgba(4, 12, 24, 0.75);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
body.ascend-nexus-page .ascend-nexus-confirm-nft-img,
body.ascend-nexus-page .ascend-nexus-confirm-nft-media .blend-sphere-nft-img,
body.ascend-nexus-page .ascend-nexus-confirm-nft-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
}
body.ascend-nexus-page .ascend-nexus-confirm-qty {
  position: absolute;
  right: 0.18rem;
  bottom: 0.14rem;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05rem;
  min-width: 2.15rem;
  padding: 0.26rem 0.46rem 0.28rem;
  border-radius: 0.4rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 240, 220, 0.97);
  text-shadow:
    0 0 0.45rem rgba(255, 186, 100, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.72);
  background: linear-gradient(155deg, rgba(38, 22, 0, 0.94) 0%, rgba(58, 34, 4, 0.9) 100%);
  border: 1px solid rgba(255, 186, 100, 0.48);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 230, 200, 0.12);
  pointer-events: none;
  box-sizing: border-box;
}
body.ascend-nexus-page .ascend-nexus-confirm-qty-mark {
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.82;
}
body.ascend-nexus-page .ascend-nexus-confirm-qty-num {
  font-size: 1.12rem;
}
body.ascend-nexus-page .ascend-nexus-confirm-nft-name {
  display: block;
  width: 100%;
  font-size: 0.68rem;
  line-height: 1.25;
  color: rgba(230, 215, 190, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.ascend-nexus-page .ascend-nexus-confirm-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  width: 100%;
  max-width: 26rem;
}
body.ascend-nexus-page .ascend-nexus-confirm-count {
  margin: 0.15rem 0 0;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff6e8;
  text-align: center;
  line-height: 1.35;
}
body.ascend-nexus-page .ascend-nexus-confirm-frags {
  margin: 0;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(147, 252, 252, 0.95);
  text-align: center;
  line-height: 1.3;
}
body.ascend-nexus-page .ascend-nexus-confirm-message {
  margin: 0;
  max-width: 22rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(210, 200, 180, 0.9);
}
body.ascend-nexus-page .ascend-nexus-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.2rem;
}
body.ascend-nexus-page .ascend-nexus-confirm-btn {
  min-width: 7.5rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
body.ascend-nexus-page .ascend-nexus-confirm-btn--ghost {
  color: rgba(230, 215, 190, 0.92);
  background: rgba(36, 28, 16, 0.75);
  border-color: rgba(200, 160, 100, 0.35);
}
body.ascend-nexus-page .ascend-nexus-confirm-btn--ghost:hover {
  background: rgba(50, 38, 20, 0.88);
  border-color: rgba(240, 200, 120, 0.5);
}
body.ascend-nexus-page .ascend-nexus-confirm-actions .ascend-nexus-exec-btn {
  min-width: 7.5rem;
  width: auto;
  margin: 0;
}
body.ascend-nexus-page .blend-sphere-list-item.selected,
body.ascend-nexus-page .blend-sphere-list-item--active {
  border-color: rgba(240, 200, 120, 0.55);
  background: rgba(240, 200, 120, 0.1);
}
body.ascend-nexus-page .blend-sphere-slot--filled {
  border-color: rgba(240, 200, 120, 0.45);
}
body.ascend-nexus-page .ascend-nexus-frag-slot.blend-sphere-slot--filled,
body.ascend-nexus-page .ascend-nexus-frag-slot.blend-sphere-slot--ready {
  border-color: rgba(147, 252, 252, 0.5);
}

@media (min-width: 901px) {
  /* Après overflow-x/y Blend @901 — spécificité + ordre pour gagner */
  body.ascend-nexus-page.blend-sphere-page.blend-sphere-unlocked .blend-sphere-col--right,
  body.ascend-nexus-page.blend-sphere-page.blend-sphere-unlocked .blend-sphere-content,
  body.ascend-nexus-page.blend-sphere-page.blend-sphere-unlocked .blend-sphere-detail,
  body.ascend-nexus-page.blend-sphere-page.blend-sphere-unlocked .blend-sphere-workbench,
  body.ascend-nexus-page.blend-sphere-page.blend-sphere-unlocked .blend-sphere-workbench-body,
  body.ascend-nexus-page.blend-sphere-page.blend-sphere-unlocked .blend-sphere-outcome-stage {
    overflow: visible;
  }
  body.ascend-nexus-page.blend-sphere-page.blend-sphere-unlocked .blend-sphere-workbench-outcome,
  body.ascend-nexus-page.blend-sphere-page.blend-sphere-unlocked .ascend-nexus-outcome {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    min-height: min-content;
    padding: 2.75rem 1.5rem 2rem;
  }
}
@media (min-width: 1201px) {
  body.ascend-nexus-page.blend-sphere-unlocked .blend-sphere-workbench-body {
    grid-template-columns: minmax(0, 1.75fr) minmax(13rem, 0.58fr);
    gap: 0.85rem;
  }
  body.ascend-nexus-page.blend-sphere-page.blend-sphere-unlocked .blend-sphere-workbench-outcome,
  body.ascend-nexus-page.blend-sphere-page.blend-sphere-unlocked .ascend-nexus-outcome {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    min-height: min-content;
    padding: 2.75rem 1.5rem 2rem;
  }
  body.ascend-nexus-page.blend-sphere-unlocked .blend-sphere-workbench-inputs {
    overflow-y: auto;
    padding: 0.55rem 0.5rem 0.5rem;
  }
  body.ascend-nexus-page.blend-sphere-unlocked .ascend-nexus-outcome-halo {
    width: min(100%, 28rem, 60vh);
  }
  body.ascend-nexus-page.blend-sphere-unlocked .ascend-nexus-outcome-halo::before {
    inset: -20%;
  }
  body.ascend-nexus-page.blend-sphere-unlocked .ascend-nexus-outcome-img,
  body.ascend-nexus-page.blend-sphere-unlocked .ascend-nexus-outcome-halo .blend-sphere-nft-img,
  body.ascend-nexus-page.blend-sphere-unlocked .ascend-nexus-outcome-halo .blend-sphere-outcome-hero {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: min(56vh, 26rem);
  }
  body.ascend-nexus-page.blend-sphere-unlocked .blend-sphere-outcome-primary {
    max-width: min(100%, 28rem);
  }
}
@media (max-width: 700px) {
  body.ascend-nexus-page .ascend-nexus-picker-grid,
  body.ascend-nexus-page .ascend-nexus-picker-modal--frag .ascend-nexus-picker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }
  body.ascend-nexus-page .ascend-nexus-picker-overlay:not([hidden]) {
    padding: 0.55rem 0.55rem max(0.65rem, env(safe-area-inset-bottom, 0px));
  }
  body.ascend-nexus-page .ascend-nexus-picker-modal,
  body.ascend-nexus-page .ascend-nexus-picker-modal.market-chart-modal {
    width: min(calc(100vw - 0.85rem), 42rem);
  }
  body.ascend-nexus-page .ascend-nexus-picker-scroll {
    padding: 0.4rem;
  }
  body.ascend-nexus-page .ascend-nexus-picker-card-media .blend-sphere-nft-img,
  body.ascend-nexus-page .ascend-nexus-picker-card-media img {
    transform: scale(1);
  }
  body.ascend-nexus-page .ascend-nexus-picker-card-name {
    font-size: 0.68rem;
  }
  body.ascend-nexus-page .ascend-nexus-picker-card-meta {
    font-size: 0.6rem;
  }
}

body.sacrificial-altar-page .sacrificial-altar-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--sacrificial-altar-page-pad-top) var(--sacrificial-altar-page-pad-x)
    var(--sacrificial-altar-page-pad-bottom);
  box-sizing: border-box;
  min-height: 0;
}
body.sacrificial-altar-page .sacrificial-altar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.96fr);
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrificial-altar-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrificial-altar-col--left {
  align-items: stretch;
  width: 100%;
  max-width: none;
  overflow: visible;
}
body.sacrificial-altar-page .sacrificial-altar-col--right {
  align-items: stretch;
  min-width: 0;
}
body.sacrificial-altar-page .sacrificial-altar-col--right > .sacrificial-altar-pending-recovery {
  width: 100%;
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrificial-altar-left-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
}
body.sacrificial-altar-page .sacrificial-altar-back {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  margin: 6px 0 0;
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrificial-altar-back--desktop {
  display: inline-flex;
  width: var(--blend-sphere-sidebar-w, 320px);
  max-width: 100%;
  margin-bottom: 0;
  white-space: nowrap;
}
body.sacrificial-altar-page .sacrificial-altar-back--mobile,
body.sacrificial-altar-page .sacrificial-altar-back--sticky-mobile {
  display: none;
}
body.sacrificial-altar-page .sacrificial-altar-mobile-sticky-head {
  display: none;
}
body.sacrificial-altar-page .sacrificial-altar-encart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  margin-bottom: 0;
}
body.sacrificial-altar-page .sacrificial-altar-page-title,
body.sacrificial-altar-page .sacrificial-altar-mobile-title {
  margin: 0;
  font-family: var(--sacrificial-altar-font, "Chakra Petch", sans-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eaf4ff;
  text-shadow: 0 0 18px rgba(53, 224, 255, 0.22);
}
body.sacrificial-altar-page .sacrificial-altar-tools {
  margin: 6px 0 0;
  padding: 0.42rem 0.7rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrificial-altar-tools-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}
body.sacrificial-altar-page .sacrificial-altar-filter {
  flex: 1 1 0;
  min-width: 0;
}
body.sacrificial-altar-page .sacrificial-altar-filter .market-select {
  width: 100%;
  min-width: 0;
  font-family: var(--sacrificial-altar-font);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.55rem;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(120, 200, 255, 0.32);
  background: rgba(0, 12, 28, 0.88);
  color: #e8eef8;
}
body.sacrificial-altar-page .sacrificial-altar-filter .market-select:focus {
  border-color: rgba(140, 210, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(4, 12, 28, 0.9), 0 0 0 4px rgba(100, 180, 255, 0.25);
}
body.sacrificial-altar-page .sacrificial-altar-clear-btn {
  flex: 0 0 auto;
  margin-left: 0.15rem;
  font-size: 0.74rem;
  padding: 0.4rem 0.95rem;
  white-space: nowrap;
}
body.sacrificial-altar-page .sacrificial-altar-picker-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}
body.sacrificial-altar-page .sacrificial-altar-refresh-btn {
  flex: 0 0 auto;
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}
body.sacrificial-altar-page.sacrificial-altar-progress-open {
  overflow: hidden;
}
body.sacrificial-altar-page .sacrificial-altar-progress-overlay:not([hidden]) {
  --sacrificial-progress-avail-h: calc(
    100dvh - var(--sacrificial-altar-bandeau-h, 70px) - 1.5rem
  );
  top: var(--sacrificial-altar-bandeau-h, 70px);
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrificial-altar-progress-modal.sacrificial-altar-progress-modal--result {
  width: min(28rem, calc(100vw - 1.5rem));
  min-height: min(32rem, var(--sacrificial-progress-avail-h, 82vh));
  max-height: var(--sacrificial-progress-avail-h, 88vh);
}
body.sacrificial-altar-page .sacrificial-altar-progress-header {
  align-items: flex-start;
  gap: 0.75rem;
}
body.sacrificial-altar-page .sacrificial-altar-progress-title-row {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.3rem;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}
body.sacrificial-altar-page .sacrificial-altar-progress-title-row .market-chart-title {
  flex: 0 1 auto;
  min-width: 0;
}
body.sacrificial-altar-page .sacrificial-altar-progress-tx-link {
  flex-shrink: 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1;
  color: #8a9bb0;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s ease;
}
body.sacrificial-altar-page .sacrificial-altar-progress-tx-link:hover {
  color: #6b7a8f;
}
body.sacrificial-altar-page .sacrificial-altar-progress-tx-link:active {
  color: #3d4654;
}
body.sacrificial-altar-page .sacrificial-altar-progress-body:has(.sacrifice-burn-reveal) {
  justify-content: center;
  padding-top: 0.55rem;
  padding-bottom: 0.85rem;
  overflow: hidden;
}
body.sacrificial-altar-page .sacrifice-burn-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}
body.sacrificial-altar-page .sacrifice-burn-claim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: min(100%, 22rem);
  margin: -0.15rem auto 0;
  opacity: 0;
  transform: none;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
body.sacrificial-altar-page .sacrifice-burn-claim.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
body.sacrificial-altar-page .sacrifice-burn-claim-stat {
  width: 100%;
}
body.sacrificial-altar-page .sacrifice-burn-claim-actions {
  width: 100%;
  margin-top: 0;
}
body.sacrificial-altar-page .sacrifice-burn-claim-actions .sacrificial-altar-exec-btn {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.56rem 1.15rem;
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
body.sacrificial-altar-page .sacrifice-burn-arena {
  --sacrifice-burn-card-h: 17.5rem;
  --sacrifice-burn-card-w: calc(var(--sacrifice-burn-card-h) * 130 / 189);
  --sacrifice-burn-edge: 0.55rem;
  --sacrifice-burn-deck-left: var(--sacrifice-burn-edge);
  --sacrifice-burn-pile-left: calc(100% - var(--sacrifice-burn-card-w) - var(--sacrifice-burn-edge));
  --sacrifice-burn-deck-extra: 0px;
  position: relative;
  width: min(100%, 26rem);
  height: calc(var(--sacrifice-burn-card-h) + 1.1rem + var(--sacrifice-burn-deck-extra));
  margin: 0 auto;
  overflow: visible;
}
body.sacrificial-altar-page .sacrifice-burn-deal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: visible;
  transition: opacity 0.5s ease;
}
body.sacrificial-altar-page .sacrifice-burn-deal.hidden,
body.sacrificial-altar-page .sacrifice-burn-deal.burn-phase {
  opacity: 0;
  pointer-events: none;
}
body.sacrificial-altar-page .sacrifice-burn-flip {
  --card-clip: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  --spread-x: 0px;
  --spread-y: 0px;
  --spread-rot: 0deg;
  --flip-dur: 0.65s;
  --deal-move-dur: 0.55s;
  position: absolute;
  width: var(--sacrifice-burn-card-w);
  height: var(--sacrifice-burn-card-h);
  /* Pile retournée (desktop : à droite ; mobile : près du paquet) */
  top: calc((100% - var(--sacrifice-burn-card-h)) / 2);
  left: var(--sacrifice-burn-pile-left);
  perspective: 900px;
  transition:
    left var(--deal-move-dur) cubic-bezier(0.3, 0.7, 0.2, 1),
    top var(--deal-move-dur) cubic-bezier(0.3, 0.7, 0.2, 1),
    transform var(--deal-move-dur) cubic-bezier(0.3, 0.7, 0.2, 1),
    opacity 0.5s ease;
  z-index: 2;
}
body.sacrificial-altar-page .sacrifice-burn-flip.deck-pos {
  left: var(--sacrifice-burn-deck-left);
  top: calc((100% - var(--sacrifice-burn-card-h)) / 2 + var(--deck-offset, 0px));
  z-index: var(--deck-z, 2);
}
body.sacrificial-altar-page .sacrifice-burn-flip.slot-back {
  transform: translate(var(--spread-x), var(--spread-y)) rotate(var(--spread-rot));
}
body.sacrificial-altar-page .sacrifice-burn-flip.flipped:not(.slot-back):not(.pile-aligned) {
  z-index: 80;
}
body.sacrificial-altar-page .sacrifice-burn-flip.pile-aligned {
  left: var(--sacrifice-burn-pile-left) !important;
  top: calc((100% - var(--sacrifice-burn-card-h)) / 2) !important;
  transform: translate(0, 0) rotate(0deg) !important;
}
body.sacrificial-altar-page .sacrifice-burn-flip.pile-aligned.pile-centered {
  left: calc(50% - var(--sacrifice-burn-card-w) / 2) !important;
}
body.sacrificial-altar-page .sacrifice-burn-deal.pile-straightening .sacrifice-burn-flip {
  transition:
    left 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
body.sacrificial-altar-page .sacrifice-burn-deal.pile-centering .sacrifice-burn-flip {
  transition:
    left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
body.sacrificial-altar-page .sacrifice-burn-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform var(--flip-dur) cubic-bezier(0.3, 0.7, 0.2, 1);
}
body.sacrificial-altar-page .sacrifice-burn-flip.flipped .sacrifice-burn-flip-inner {
  transform: rotateY(180deg);
}
body.sacrificial-altar-page .sacrifice-burn-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0b1626;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  clip-path: var(--card-clip);
  -webkit-clip-path: var(--card-clip);
}
body.sacrificial-altar-page .sacrifice-burn-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
body.sacrificial-altar-page .sacrifice-burn-face.face-front {
  transform: rotateY(180deg);
}
body.sacrificial-altar-page .sacrifice-burn-fx {
  --sacrifice-halo: var(--r-primordial, #93fcfc);
  --sacrifice-halo-blur: 32px;
  position: absolute;
  left: var(--sacrifice-burn-pile-left);
  top: calc((100% - var(--sacrifice-burn-card-h)) / 2);
  width: var(--sacrifice-burn-card-w);
  height: var(--sacrifice-burn-card-h);
  transform: none;
  display: block;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  overflow: visible;
  transition: opacity 0.5s ease;
}
body.sacrificial-altar-page .sacrifice-burn-fx.active {
  opacity: 1;
}
body.sacrificial-altar-page .sacrifice-burn-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
body.sacrificial-altar-page .sacrifice-burn-rays,
body.sacrificial-altar-page .sacrifice-burn-particles {
  position: absolute;
  top: -28%;
  left: -28%;
  width: 156%;
  height: 156%;
  right: auto;
  bottom: auto;
  z-index: 0;
  pointer-events: none;
}
body.sacrificial-altar-page .sacrifice-burn-ray {
  background: linear-gradient(to top, transparent, var(--sacrifice-halo, #93fcfc), transparent);
}
body.sacrificial-altar-page .sacrifice-burn-halo {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  filter: drop-shadow(0 0 0 transparent);
}
body.sacrificial-altar-page .sacrifice-burn-halo-bloom {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--sacrifice-halo, #93fcfc) 58%, transparent) 0%,
    color-mix(in srgb, var(--sacrifice-halo, #93fcfc) 18%, transparent) 42%,
    transparent 72%
  );
  filter: blur(10px);
  opacity: 0.45;
}
body.sacrificial-altar-page .sacrifice-burn-halo-shape {
  position: absolute;
  inset: 0;
  background: var(--sacrifice-halo, #93fcfc);
  opacity: 0.9;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mask-mode: alpha;
}
body.sacrificial-altar-page .sacrifice-burn-halo--playing {
  opacity: 1;
  animation: sacrifice-burn-halo-pulse 2.2s ease-in-out infinite both;
}
body.sacrificial-altar-page .sacrifice-burn-halo--playing .sacrifice-burn-halo-bloom {
  animation: sacrifice-burn-halo-bloom 2.2s ease-in-out infinite both;
}
@keyframes sacrifice-burn-halo-pulse {
  0%,
  100% {
    filter:
      drop-shadow(0 0 calc(var(--sacrifice-halo-blur, 32px) * 0.35) var(--sacrifice-halo, #93fcfc))
      drop-shadow(
        0 0 calc(var(--sacrifice-halo-blur, 32px) * 0.7)
          color-mix(in srgb, var(--sacrifice-halo, #93fcfc) 42%, transparent)
      );
  }
  50% {
    filter:
      drop-shadow(0 0 calc(var(--sacrifice-halo-blur, 32px) * 0.75) var(--sacrifice-halo, #93fcfc))
      drop-shadow(
        0 0 calc(var(--sacrifice-halo-blur, 32px) * 1.85)
          color-mix(in srgb, var(--sacrifice-halo, #93fcfc) 48%, transparent)
      );
  }
}
@keyframes sacrifice-burn-halo-bloom {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}
body.sacrificial-altar-page .sacrifice-burn-glass {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      transparent 30%,
      rgba(255, 255, 255, 0.35) 48%,
      rgba(180, 220, 255, 0.2) 52%,
      transparent 68%
    ),
    radial-gradient(circle at 50% 50%, rgba(150, 200, 255, 0.08), transparent 70%);
  background-size: 220% 220%, 100% 100%;
  background-position: -40% -40%, 0 0;
  backdrop-filter: blur(0px);
  z-index: 2;
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrifice-burn-glass.is-frag {
  border-radius: 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mask-mode: alpha;
}
body.sacrificial-altar-page .sacrifice-burn-glass.show {
  animation: sacrifice-burn-glass-sweep 1.1s ease forwards;
}
@keyframes sacrifice-burn-glass-sweep {
  0% {
    opacity: 0;
    background-position: -60% -60%, 0 0;
    backdrop-filter: blur(0px);
  }
  35% {
    opacity: 1;
    backdrop-filter: blur(1px);
  }
  70% {
    opacity: 1;
    background-position: 60% 60%, 0 0;
    backdrop-filter: blur(1.5px);
  }
  100% {
    opacity: 0;
    background-position: 120% 120%, 0 0;
    backdrop-filter: blur(0px);
  }
}
body.sacrificial-altar-page .sacrifice-burn-result {
  margin: 0.15rem 0 0;
  font-family: var(--sacrificial-altar-font);
  font-size: 0.85rem;
  color: rgba(160, 190, 220, 0.9);
  opacity: 0;
  transition: opacity 0.45s ease;
  text-align: center;
}
body.sacrificial-altar-page .sacrifice-burn-result.show {
  opacity: 1;
}
body.sacrificial-altar-page .sacrifice-burn-result b {
  color: #93fcfc;
}
@media (prefers-reduced-motion: reduce) {
  body.sacrificial-altar-page .sacrifice-burn-flip,
  body.sacrificial-altar-page .sacrifice-burn-flip-inner {
    transition-duration: 0.01ms !important;
  }
  body.sacrificial-altar-page .sacrifice-burn-glass.show {
    animation: none;
    opacity: 0;
  }
  body.sacrificial-altar-page .sacrifice-burn-halo--playing,
  body.sacrificial-altar-page .sacrifice-burn-halo--playing .sacrifice-burn-halo-bloom {
    animation: none;
  }
}
html.sf-motion-disabled body.sacrificial-altar-page .sacrifice-burn-claim,
html.sf-motion-disabled body.sacrificial-altar-page .sacrifice-burn-claim.show {
  transition: none;
  opacity: 1;
  transform: none;
}
html.sf-motion-disabled body.sacrificial-altar-page .sacrifice-burn-halo--playing {
  animation: none;
  opacity: 1;
  filter:
    drop-shadow(0 0 calc(var(--sacrifice-halo-blur, 32px) * 0.45) var(--sacrifice-halo, #93fcfc))
    drop-shadow(0 0 calc(var(--sacrifice-halo-blur, 32px) * 1.05) var(--sacrifice-halo, #93fcfc));
}
html.sf-motion-disabled body.sacrificial-altar-page .sacrifice-burn-halo--playing .sacrifice-burn-halo-bloom {
  animation: none;
  opacity: 0.55;
  transform: none;
}
body.sacrificial-altar-page .sacrificial-altar-sidebar {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}
body.sacrificial-altar-page .sacrificial-altar-sidebar .market-encart {
  margin: 0;
}
body.sacrificial-altar-page .sacrificial-altar-config-status {
  margin: 0 0 0.5rem;
  font-family: var(--sacrificial-altar-font);
  font-size: 0.78rem;
  color: rgba(255, 120, 130, 0.92);
}
body.sacrificial-altar-page .sacrificial-altar-config-status--error {
  color: rgba(255, 120, 130, 0.92);
}
body.sacrificial-altar-page .sacrificial-altar-status {
  margin: 0 0 0.5rem;
  font-family: var(--sacrificial-altar-font);
  font-size: 0.85rem;
  color: rgba(160, 190, 220, 0.88);
}
body.sacrificial-altar-page .sacrificial-altar-status--error {
  color: rgba(255, 120, 130, 0.95);
}

/* Bandeau de récupération : sacrifices restés en escrow (reveal manquant).
   Dans la colonne droite, même largeur que le bloc Fragment. */
body.sacrificial-altar-page .sacrificial-altar-pending-recovery {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem 0.9rem;
  border: 1px solid rgba(255, 210, 140, 0.75);
  border-radius: 0.55rem;
  background:
    linear-gradient(180deg, rgba(62, 40, 12, 0.96), rgba(28, 18, 8, 0.97)),
    rgba(255, 170, 70, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 230, 180, 0.14),
    0 6px 18px rgba(0, 0, 0, 0.28);
}
body.sacrificial-altar-page .sacrificial-altar-pending-recovery[hidden] {
  display: none !important;
}
body.sacrificial-altar-page .sacrificial-altar-pending-recovery-title {
  margin: 0 0 0.35rem;
  font-family: var(--sacrificial-altar-font, "Chakra Petch", "Segoe UI", sans-serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #fff4d6;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}
body.sacrificial-altar-page .sacrificial-altar-pending-recovery-hint {
  margin: 0 0 0.65rem;
  font-family: var(--sacrificial-altar-font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  max-width: 52rem;
}
body.sacrificial-altar-page .sacrificial-altar-pending-recovery-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
body.sacrificial-altar-page .sacrificial-altar-pending-recovery-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 220, 160, 0.22);
  font-family: var(--sacrificial-altar-font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
}
body.sacrificial-altar-page .sacrificial-altar-pending-recovery-text {
  flex: 1 1 12rem;
  min-width: 0;
  color: #ffffff;
}
body.sacrificial-altar-page .sacrificial-altar-pending-recovery-actions {
  margin: 0.55rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
body.sacrificial-altar-page .sacrificial-altar-pending-btn {
  flex: 0 0 auto;
  min-height: 2.15rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
body.sacrificial-altar-page .sacrificial-altar-pending-btn:disabled {
  opacity: 0.78;
  cursor: not-allowed;
}
body.sacrificial-altar-page .sacrificial-altar-pending-btn--primary {
  font-weight: 700;
}
body.sacrificial-altar-page .sacrificial-altar-picker-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  padding: 0.9rem 0.85rem 0.95rem;
  overflow: hidden;
}
body.sacrificial-altar-page .sacrificial-altar-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex: 0 0 auto;
}
body.sacrificial-altar-page .sacrificial-altar-picker-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 auto;
}
body.sacrificial-altar-page .sacrificial-altar-picker-head .market-encart-title {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}
body.sacrificial-altar-page .sacrificial-altar-picker-bonus-help {
  position: relative;
  flex: 0 0 auto;
}
body.sacrificial-altar-page .sacrificial-altar-picker-bonus-info-btn {
  position: static;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.78rem;
  border-color: rgba(147, 252, 252, 0.55);
  color: var(--sacrificial-altar-accent, #93fcfc);
  background: radial-gradient(circle at 30% 25%, rgba(147, 252, 252, 0.28), rgba(0, 48, 58, 0.9));
  box-shadow: 0 2px 10px rgba(0, 40, 50, 0.35);
}
body.sacrificial-altar-page .sacrificial-altar-picker-bonus-info-btn:hover {
  border-color: rgba(147, 252, 252, 0.85);
  color: #eaffff;
  background: radial-gradient(circle at 30% 25%, rgba(147, 252, 252, 0.42), rgba(0, 58, 68, 0.92));
  box-shadow: 0 4px 14px rgba(40, 160, 170, 0.35);
}
body.sacrificial-altar-page .sacrificial-altar-picker-bonus-info-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 20, 40, 0.9), 0 0 0 4px rgba(147, 252, 252, 0.45);
}
body.sacrificial-altar-page .sacrificial-altar-picker-bonus-tip {
  position: fixed;
  z-index: 90;
  width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 24rem);
  overflow-y: auto;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(147, 252, 252, 0.35);
  background: radial-gradient(circle at 0% 0%, rgba(147, 252, 252, 0.18), rgba(4, 10, 26, 0.96));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(147, 252, 252, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(208, 235, 240, 0.92);
  font-family: var(--sacrificial-altar-font);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: left;
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrificial-altar-picker-bonus-tip[hidden] {
  display: none !important;
}
body.sacrificial-altar-page .sacrificial-altar-picker-bonus-tip p {
  margin: 0 0 0.55rem;
}
body.sacrificial-altar-page .sacrificial-altar-picker-bonus-tip p:last-child {
  margin-bottom: 0;
}
body.sacrificial-altar-page .sacrificial-altar-picker-bonus-tip strong {
  color: var(--sacrificial-altar-accent, #93fcfc);
  font-weight: 700;
}
body.sacrificial-altar-page .sacrificial-altar-picker-bonus-tip em {
  font-style: normal;
  color: rgba(180, 240, 245, 0.95);
}
body.sacrificial-altar-page .sacrificial-altar-picker-summary {
  margin: 0;
  font-family: var(--sacrificial-altar-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(160, 190, 220, 0.85);
  flex: 0 0 auto;
}
body.sacrificial-altar-page .sacrificial-altar-empty {
  margin: 0;
  color: rgba(150, 175, 205, 0.75);
  font-family: var(--sacrificial-altar-font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  grid-column: 1 / -1;
  padding: 1.25rem 0.5rem;
  text-align: center;
}
body.sacrificial-altar-page .sacrificial-altar-picker-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.15rem 0.35rem 0.85rem 0.05rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 252, 252, 0.45) rgba(8, 20, 36, 0.65);
}
body.sacrificial-altar-page .sacrificial-altar-picker-grid::-webkit-scrollbar {
  width: 0.45rem;
}
body.sacrificial-altar-page .sacrificial-altar-picker-grid::-webkit-scrollbar-track {
  background: rgba(8, 20, 36, 0.55);
  border-radius: 999px;
}
body.sacrificial-altar-page .sacrificial-altar-picker-grid::-webkit-scrollbar-thumb {
  background: rgba(147, 252, 252, 0.4);
  border-radius: 999px;
}
body.sacrificial-altar-page .sacrificial-altar-picker-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(147, 252, 252, 0.62);
}
body.sacrificial-altar-page .sacrificial-altar-list-section {
  border: 1px solid rgba(100, 160, 220, 0.2);
  border-radius: 0.45rem;
  background: rgba(4, 12, 24, 0.55);
  overflow: visible;
  flex: 0 0 auto;
}
body.sacrificial-altar-page .sacrificial-altar-list-section-summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c8e4ff;
  background: linear-gradient(180deg, rgba(16, 34, 58, 0.72), rgba(8, 18, 32, 0.55));
  user-select: none;
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrificial-altar-list-section-summary::-webkit-details-marker {
  display: none;
}
body.sacrificial-altar-page .sacrificial-altar-list-section-summary::before {
  content: "▸";
  flex: 0 0 auto;
  margin-right: 0.15rem;
  font-size: 0.72rem;
  color: rgba(147, 252, 252, 0.75);
  transition: transform 0.15s ease;
}
body.sacrificial-altar-page .sacrificial-altar-list-section[open] > .sacrificial-altar-list-section-summary::before {
  transform: rotate(90deg);
}
body.sacrificial-altar-page .sacrificial-altar-schema-icon {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  object-fit: contain;
}
body.sacrificial-altar-page .sacrificial-altar-list-section-label {
  flex: 1 1 auto;
  min-width: 0;
}
body.sacrificial-altar-page .sacrificial-altar-list-section-count {
  flex: 0 0 auto;
  min-width: 1.35rem;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: rgba(12, 32, 58, 0.85);
  border: 1px solid rgba(147, 252, 252, 0.28);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--sacrificial-altar-accent, #93fcfc);
}
body.sacrificial-altar-page .sacrificial-altar-list-section-body {
  padding: 0.35rem 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
body.sacrificial-altar-page .sacrificial-altar-rarity-label {
  margin: 0 0 0.35rem;
  font-family: var(--sacrificial-altar-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(160, 195, 225, 0.78);
}
body.sacrificial-altar-page .sacrificial-altar-rarity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
  gap: 0.55rem;
  align-items: stretch;
}
body.sacrificial-altar-page .sacrificial-altar-picker-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-height: 11rem;
  height: auto;
  padding: 0.55rem 0.45rem 0.55rem;
  border: 1px solid rgba(120, 200, 255, 0.28);
  border-radius: 0.45rem;
  background: radial-gradient(circle at 0 0, rgba(100, 180, 255, 0.16), rgba(4, 10, 22, 0.92));
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  text-align: center;
  overflow: visible;
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrificial-altar-picker-card--selected {
  border-color: rgba(147, 252, 252, 0.7);
  box-shadow: 0 0 0 1px rgba(147, 252, 252, 0.28);
}
body.sacrificial-altar-page .sacrificial-altar-picker-info-btn {
  top: 0.3rem;
  right: 0.3rem;
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.72rem;
  z-index: 2;
}
body.sacrificial-altar-page .sacrificial-altar-picker-card-overlay {
  border-radius: 0.45rem;
  padding: 0.7rem 0.65rem 0.65rem;
}
body.sacrificial-altar-page .sacrificial-altar-picker-card-overlay .market-template-card-overlay-title {
  font-family: var(--sacrificial-altar-font);
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
  padding-right: 1.6rem;
}
body.sacrificial-altar-page .sacrificial-altar-picker-card-overlay .market-template-card-overlay-content {
  font-family: var(--sacrificial-altar-font);
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-word;
}
body.sacrificial-altar-page .sacrificial-altar-picker-card-overlay .market-template-card-overlay-close {
  top: 0.35rem;
  right: 0.35rem;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 1rem;
  border-radius: 6px;
}
body.sacrificial-altar-page .sacrificial-altar-picker-media {
  flex: 0 0 auto;
  width: 5.25rem;
  height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
body.sacrificial-altar-page .sacrificial-altar-picker-img,
body.sacrificial-altar-page .sacrificial-altar-picker-media .sacrificial-altar-nft-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
body.sacrificial-altar-page .sacrificial-altar-picker-name {
  font-family: var(--sacrificial-altar-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #eaf4ff;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.sacrificial-altar-page .sacrificial-altar-picker-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-family: var(--sacrificial-altar-font);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(150, 175, 205, 0.82);
  line-height: 1.3;
}
body.sacrificial-altar-page .sacrificial-altar-picker-meta-line {
  display: block;
}
body.sacrificial-altar-page .sacrificial-altar-picker-meta-line--bonus {
  color: rgba(147, 252, 252, 0.92);
}
body.sacrificial-altar-page .sacrificial-altar-fragment-media .sacrificial-altar-nft-img,
body.sacrificial-altar-page .sacrificial-altar-fragment-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.sacrificial-altar-page .sacrificial-altar-workbench {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(34rem, 72vh);
  padding: 1.5rem 1.5rem 1.45rem;
  /* visible : sinon le halo (::before / drop-shadow) est coupé → barre nette en haut */
  overflow: visible;
  background:
    radial-gradient(circle at 50% 28%, rgba(147, 252, 252, 0.3), transparent 52%),
    radial-gradient(circle at 50% 78%, rgba(40, 170, 175, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(6, 48, 54, 0.92), rgba(4, 18, 30, 0.94));
  border: 1px solid rgba(147, 252, 252, 0.38);
  border-radius: 10px;
  box-shadow:
    inset 0 0 2.8rem rgba(147, 252, 252, 0.1),
    0 0 2.2rem rgba(147, 252, 252, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.45);
}
body.sacrificial-altar-page .sacrificial-altar-workbench-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: center;
  padding: 1.15rem 1.1rem 1.15rem;
  box-sizing: border-box;
  overflow: visible;
}
body.sacrificial-altar-page .sacrificial-altar-fragment-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: auto;
  max-width: 100%;
  overflow: visible;
  flex: 0 0 auto;
  min-height: 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
}
body.sacrificial-altar-page .sacrificial-altar-fragment-halo {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 22rem, 42vh);
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  box-sizing: border-box;
  overflow: visible;
  background: transparent;
}
body.sacrificial-altar-page .sacrificial-altar-fragment-halo::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(147, 252, 252, 0.42) 0%,
    rgba(147, 252, 252, 0.18) 34%,
    rgba(60, 180, 190, 0.08) 55%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}
body.sacrificial-altar-page .sacrificial-altar-fragment-media {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: transparent;
  overflow: visible;
  filter:
    drop-shadow(0 0 1.55rem rgba(147, 252, 252, 0.45))
    drop-shadow(0 0 2.8rem rgba(147, 252, 252, 0.18))
    drop-shadow(0 8px 22px rgba(0, 0, 0, 0.4));
}
body.sacrificial-altar-page .sacrificial-altar-fragment-img,
body.sacrificial-altar-page .sacrificial-altar-fragment-media .sacrificial-altar-nft-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
}
body.sacrificial-altar-page .sacrificial-altar-slot-empty {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 2.8rem;
  color: rgba(150, 180, 210, 0.45);
}
body.sacrificial-altar-page .sacrificial-altar-fragment-label {
  margin: 0;
  position: relative;
  z-index: 2;
  font-family: var(--sacrificial-altar-font, "Chakra Petch", sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eaf4ff;
  text-shadow: 0 0 18px rgba(53, 224, 255, 0.22);
}
body.sacrificial-altar-page .sacrificial-altar-outcome-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: min(100%, 26rem);
  margin-inline: auto;
  margin-top: 0.2rem;
  align-items: stretch;
  justify-content: center;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}
body.sacrificial-altar-page .sacrificial-altar-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.85rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(120, 200, 255, 0.28);
  background: radial-gradient(circle at 0 0, rgba(100, 180, 255, 0.16), rgba(4, 10, 22, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
  box-sizing: border-box;
  min-height: 100%;
}
body.sacrificial-altar-page .sacrificial-altar-stat-head,
body.sacrificial-altar-page .sacrificial-altar-stat-bonus-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 1.35rem;
}
body.sacrificial-altar-page .sacrificial-altar-stat-head .sacrificial-altar-stat-label,
body.sacrificial-altar-page .sacrificial-altar-stat--bonus .sacrificial-altar-stat-label {
  display: inline;
}
body.sacrificial-altar-page .sacrificial-altar-stat-label {
  display: block;
  font-family: var(--sacrificial-altar-font);
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: #d7e7f8;
  line-height: 1.25;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
body.sacrificial-altar-page .sacrificial-altar-stat-value {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 700;
  color: rgba(120, 226, 178, 0.95);
  line-height: 1;
}
body.sacrificial-altar-page .sacrificial-altar-workbench-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}
body.sacrificial-altar-page .sacrificial-altar-exec-btn {
  min-width: 12rem;
  font-family: var(--sacrificial-altar-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: radial-gradient(circle at 30% 20%, rgba(147, 252, 252, 0.32), rgba(0, 48, 58, 0.94));
  border-color: rgba(147, 252, 252, 0.62);
  color: #eaffff;
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(147, 252, 252, 0.12),
    0 6px 18px rgba(0, 40, 50, 0.35);
}
body.sacrificial-altar-page .sacrificial-altar-exec-btn:hover:not(:disabled) {
  border-color: rgba(147, 252, 252, 0.85);
  background: radial-gradient(circle at 30% 20%, rgba(147, 252, 252, 0.42), rgba(0, 58, 68, 0.96));
  box-shadow:
    0 0 0 1px rgba(147, 252, 252, 0.2),
    0 8px 22px rgba(0, 60, 70, 0.4);
}
body.sacrificial-altar-page .sacrificial-altar-exec-btn:disabled {
  opacity: 0.45;
  filter: saturate(0.7);
}
body.sacrificial-altar-page .sacrificial-altar-progress-overlay {
  top: var(--sacrificial-altar-bandeau-h, 70px);
}
body.sacrificial-altar-page .sacrificial-altar-progress-spinner {
  width: 4.75rem;
  height: 4.75rem;
  margin: 0 auto;
  border: 3px solid rgba(120, 200, 255, 0.18);
  border-top-color: rgba(120, 200, 255, 0.85);
  border-radius: 50%;
  animation: blend-sphere-spin 0.8s linear infinite;
  flex: 0 0 auto;
}
body.sacrificial-altar-page .sacrificial-altar-progress-modal.market-chart-modal {
  display: flex;
  flex-direction: column;
  width: min(34rem, calc(100vw - 1.5rem));
  min-height: min(22rem, var(--sacrificial-progress-avail-h, 72vh));
  max-height: var(--sacrificial-progress-avail-h, min(88vh, 46rem));
  margin: 0;
  flex: 0 1 auto;
  overflow: hidden;
}
body.sacrificial-altar-page .sacrificial-altar-progress-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1rem 1.1rem 1.15rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
body.sacrificial-altar-page .sacrificial-altar-progress-body:has(.sacrificial-altar-progress-loading) {
  justify-content: center;
  overflow: hidden;
}
body.sacrificial-altar-page .sacrificial-altar-progress-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  width: 100%;
  min-height: min(14rem, 42vh);
  flex: 1 1 auto;
}
body.sacrificial-altar-page .sacrificial-altar-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  width: 100%;
  min-width: 0;
  padding: 0.15rem 0 0.1rem;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-nfts {
  margin: 0;
  padding: 0.7rem 0.65rem;
  max-height: min(38vh, 16.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 5.75rem);
  justify-content: center;
  justify-items: center;
  align-items: start;
  gap: 0.55rem;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(34vh, 14.5rem);
  padding: 0.1rem 0.35rem 0.2rem 0.15rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 252, 252, 0.45) rgba(8, 20, 36, 0.65);
}
body.sacrificial-altar-page .sacrificial-altar-confirm-nft-grid::-webkit-scrollbar {
  width: 0.45rem;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-nft-grid::-webkit-scrollbar-track {
  background: rgba(8, 20, 36, 0.55);
  border-radius: 999px;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-nft-grid::-webkit-scrollbar-thumb {
  background: rgba(147, 252, 252, 0.4);
  border-radius: 999px;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-nft-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(147, 252, 252, 0.62);
}
body.sacrificial-altar-page .sacrificial-altar-confirm-nft-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 5.75rem;
  max-width: 5.75rem;
  min-width: 5.75rem;
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-nft-media {
  position: relative;
  width: 5.75rem;
  height: 5.75rem;
  flex: 0 0 5.75rem;
  aspect-ratio: 1;
  border-radius: 0.45rem;
  border: 1px solid rgba(100, 160, 220, 0.28);
  background: rgba(4, 12, 24, 0.75);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-nft-img,
body.sacrificial-altar-page .sacrificial-altar-confirm-nft-media .sacrificial-altar-nft-img,
body.sacrificial-altar-page .sacrificial-altar-confirm-nft-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-qty {
  position: absolute;
  right: 0.18rem;
  bottom: 0.14rem;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05rem;
  min-width: 2.15rem;
  padding: 0.26rem 0.46rem 0.28rem;
  border-radius: 0.4rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(228, 244, 255, 0.97);
  text-shadow:
    0 0 0.45rem rgba(100, 190, 255, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.72);
  background: linear-gradient(155deg, rgba(8, 26, 50, 0.94) 0%, rgba(14, 40, 68, 0.9) 100%);
  border: 1px solid rgba(120, 200, 255, 0.48);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(200, 230, 255, 0.12);
  pointer-events: none;
  box-sizing: border-box;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-qty-mark {
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.82;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-qty-num {
  font-size: 1.12rem;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-nft-name {
  display: block;
  width: 100%;
  font-family: var(--sacrificial-altar-font);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(190, 210, 235, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-stats {
  width: min(100%, 22rem);
  max-width: 22rem;
  margin-inline: auto;
  align-self: center;
  justify-self: center;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-count {
  margin: 0.15rem 0 0;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #eaf4ff;
}
body.sacrificial-altar-page .sacrificial-altar-confirm .sacrificial-altar-progress-message {
  margin: 0;
  max-width: none;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(190, 210, 235, 0.9);
}
body.sacrificial-altar-page .sacrificial-altar-confirm-meta {
  margin: 0;
  font-family: var(--sacrificial-altar-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(140, 200, 255, 0.9);
}
body.sacrificial-altar-page .sacrificial-altar-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.2rem;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-btn {
  min-width: 7.5rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
body.sacrificial-altar-page .sacrificial-altar-confirm-btn--ghost {
  color: rgba(190, 210, 235, 0.92);
  background: rgba(20, 36, 58, 0.75);
  border-color: rgba(120, 160, 200, 0.35);
}
body.sacrificial-altar-page .sacrificial-altar-confirm-btn--ghost:hover {
  background: rgba(30, 50, 78, 0.88);
  border-color: rgba(140, 190, 240, 0.45);
}
body.sacrificial-altar-page .sacrificial-altar-confirm-actions .sacrificial-altar-exec-btn {
  min-width: 7.5rem;
  width: auto;
  margin: 0;
}
body.sacrificial-altar-page .sacrificial-altar-progress-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 1rem;
  color: #eaf4ff;
}
body.sacrificial-altar-page .sacrificial-altar-progress-message {
  margin: 0;
  font-family: var(--sacrificial-altar-font);
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(190, 210, 235, 0.92);
  max-width: 22rem;
}
body.sacrificial-altar-page .sacrificial-altar-progress-tx {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
}
@media (max-width: 900px) {
  /* Tel : masquer seulement le gros "Open transaction", garder le petit Tx du titre */
  body.sacrificial-altar-page .sacrificial-altar-progress-tx {
    display: none !important;
  }
  body.sacrificial-altar-page .sacrificial-altar-progress-modal.market-chart-modal {
    width: min(calc(100vw - 0.85rem), 34rem);
    min-height: min(20rem, var(--sacrificial-progress-avail-h, 70vh));
  }
  body.sacrificial-altar-page .sacrificial-altar-progress-loading {
    min-height: min(12rem, 36vh);
    gap: 1.15rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-progress-spinner {
    width: 4rem;
    height: 4rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-progress-message {
    font-size: 0.88rem;
    max-width: 18rem;
  }
}
@media (min-width: 901px) {
  body.sacrificial-altar-page.sacrificial-altar-unlocked {
    overflow: hidden;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-layout {
    height: calc(
      100dvh - var(--sacrificial-altar-bandeau-h, 70px) - var(--sacrificial-altar-page-pad-top) -
        var(--sacrificial-altar-page-pad-bottom)
    );
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-col--left {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-col--right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: visible;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-col--right > .sacrificial-altar-pending-recovery,
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-col--right > .sacrificial-altar-status,
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-col--right > .sacrificial-altar-config-status {
    flex: 0 0 auto;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.65rem 0.55rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery-title {
    margin-bottom: 0.18rem;
    font-size: 0.86rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery-hint {
    margin-bottom: 0.38rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery-list {
    gap: 0.32rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery-row {
    padding: 0.28rem 0.4rem;
    gap: 0.3rem 0.45rem;
    font-size: 0.72rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery-actions {
    margin-top: 0.32rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-btn {
    min-height: 1.7rem;
    padding: 0.18rem 0.5rem;
    font-size: 0.7rem;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-col--left {
    display: flex;
    flex-direction: column;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-left-top {
    flex: 0 0 auto;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-sidebar {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-sidebar .market-encart {
    flex: 1 1 auto;
    min-height: 0;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-picker-panel {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-picker-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-workbench {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: visible;
    padding: 1.5rem 1.5rem 1.45rem;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-workbench-body {
    overflow: visible;
    justify-content: center;
    padding: 1.15rem 1.15rem 1.15rem;
    gap: 1rem;
    min-height: 0;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-fragment-stage {
    flex: 1 1 auto;
    min-height: 0;
    justify-content: center;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-fragment-halo {
    width: min(100%, 22rem, 42vh);
    max-height: none;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-fragment-halo::before {
    inset: -12%;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-outcome-stats {
    width: min(100%, 24rem);
    flex: 0 0 auto;
  }
  body.sacrificial-altar-page.sacrificial-altar-unlocked .sacrificial-altar-workbench-actions {
    flex: 0 0 auto;
  }
}
@media (max-width: 900px) {
  /* FAB remonter : bas droite (tel) */
  body.sacrificial-altar-page .sacrificial-altar-scroll-top.market-scroll-top {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
  }
  body.sacrificial-altar-page .sacrificial-altar-scroll-top .market-scroll-top-icon {
    font-size: 18px;
  }
}
@media (min-width: 901px) {
  body.sacrificial-altar-page .sacrificial-altar-scroll-top.market-scroll-top {
    display: none !important;
  }
}
@media (max-width: 1200px) {
  body.sacrificial-altar-page {
    --sacrificial-altar-page-pad-x: 1rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-layout {
    gap: 1rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-workbench {
    padding-inline: 1.25rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-back--desktop {
    width: min(100%, 17.5rem);
  }
  body.sacrificial-altar-page .sacrificial-altar-fragment-halo {
    width: min(100%, 20rem, 40vh);
  }
}
@media (max-width: 900px) {
  body.sacrificial-altar-page {
    --sacrificial-altar-page-pad-x: 0.85rem;
    --sacrificial-altar-page-pad-top: 0.45rem;
    overflow-x: clip;
  }
  body.sacrificial-altar-page .sacrificial-altar-layout {
    grid-template-columns: 1fr;
  }
  body.sacrificial-altar-page .sacrificial-altar-col--right {
    order: 1;
    isolation: isolate;
  }
  body.sacrificial-altar-page .sacrificial-altar-col--left {
    order: 2;
    max-width: none;
    width: 100%;
  }
  body.sacrificial-altar-page .sacrificial-altar-back--desktop {
    display: none;
  }
  /* Plein écran sous le header : le padding de main ne doit plus rétrécir le bandeau. */
  body.sacrificial-altar-page .sacrificial-altar-mobile-sticky-head {
    display: block;
    position: sticky;
    top: var(--sacrificial-altar-bandeau-h, 5.25rem);
    z-index: 70;
    box-sizing: border-box;
    width: calc(100% + 2 * var(--sacrificial-altar-page-pad-x));
    max-width: none;
    margin: 0 calc(-1 * var(--sacrificial-altar-page-pad-x)) 0.55rem;
    padding: 0 0 0.35rem;
    background: rgb(2, 8, 20);
    isolation: isolate;
  }
  body.sacrificial-altar-page .sacrificial-altar-head-encart {
    margin: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-left: var(--sacrificial-altar-page-pad-x);
    padding-right: var(--sacrificial-altar-page-pad-x);
  }
  body.sacrificial-altar-page .sacrificial-altar-mobile-title {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    font-size: clamp(1.2rem, 0.95rem + 0.45vw, 1.42rem);
    letter-spacing: 0.05em;
    color: rgba(238, 246, 255, 0.98);
    overflow-wrap: anywhere;
  }
  /* Reveal en échec : même largeur que le bloc Fragment, au-dessus du halo. */
  body.sacrificial-altar-page .sacrificial-altar-col--right > .sacrificial-altar-pending-recovery,
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery {
    position: relative;
    z-index: 8;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 0.85rem;
    padding: 0.8rem 0.85rem 0.85rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery-hint {
    max-width: none;
    overflow-wrap: anywhere;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery-row {
    align-items: stretch;
    min-width: 0;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery-actions {
    width: 100%;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-btn {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  body.sacrificial-altar-page .sacrificial-altar-fragment-stage {
    z-index: 0;
  }
  body.sacrificial-altar-page.sacrificial-altar-has-pending .sacrificial-altar-workbench {
    z-index: 1;
  }
  body.sacrificial-altar-page.sacrificial-altar-has-pending .sacrificial-altar-fragment-halo::before {
    inset: -4%;
  }
  body.sacrificial-altar-page .sacrificial-altar-back--sticky-mobile {
    display: inline-flex;
    width: auto;
    min-width: 2.35rem;
    height: 2.35rem;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    border-radius: 8px;
  }
  body.sacrificial-altar-page .sacrificial-altar-back--sticky-mobile .sf-genesis-hall-back-btn-icon {
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 400;
  }
  body.sacrificial-altar-page .sacrificial-altar-left-top {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  body.sacrificial-altar-page .sacrificial-altar-tools {
    margin-top: 0;
    flex: 1 1 100%;
  }
  body.sacrificial-altar-page .sacrificial-altar-tools-filters {
    flex-wrap: wrap;
  }
  body.sacrificial-altar-page .sacrificial-altar-workbench {
    min-height: 0;
    padding: 1.25rem 1.1rem 1.25rem;
    overflow: visible;
  }
  body.sacrificial-altar-page .sacrificial-altar-workbench-body {
    padding: 1rem;
    gap: 0.85rem;
    overflow: visible;
    justify-content: center;
  }
  body.sacrificial-altar-page .sacrificial-altar-fragment-halo {
    width: min(100%, 17.5rem, 40vh);
  }
  body.sacrificial-altar-page .sacrificial-altar-fragment-halo::before {
    inset: -12%;
  }
  body.sacrificial-altar-page .sacrificial-altar-outcome-stats {
    width: min(100%, 22rem);
  }
  body.sacrificial-altar-page .sacrificial-altar-picker-grid {
    max-height: min(58vh, 34rem);
    min-height: 14rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-rarity-grid {
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  }
}
@media (max-width: 560px) {
  body.sacrificial-altar-page {
    --sacrificial-altar-page-pad-x: 0.7rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery-title {
    font-size: 1rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery-hint {
    font-size: 0.86rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-pending-recovery-row {
    flex-direction: column;
    gap: 0.45rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-filter {
    flex: 1 1 calc(50% - 0.35rem);
  }
  body.sacrificial-altar-page .sacrificial-altar-clear-btn {
    flex: 1 1 100%;
    margin-left: 0;
  }
  body.sacrificial-altar-page .sacrificial-altar-fragment-halo {
    width: min(100%, 15.5rem, 40vh);
  }
  body.sacrificial-altar-page .sacrificial-altar-stat {
    padding: 0.7rem 0.65rem;
  }
  body.sacrificial-altar-page .sacrificial-altar-stat-value {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }
  body.sacrificial-altar-page .sacrificial-altar-rarity-grid {
    grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr));
  }
  /* Burn preview : paquets rapprochés, deck non coupé — pas de scrollbar pendant l’anim */
  body.sacrificial-altar-page .sacrificial-altar-progress-modal.sacrificial-altar-progress-modal--result {
    width: min(calc(100vw - 0.85rem), 26rem);
    max-width: calc(100vw - 0.85rem);
    overflow: hidden;
  }
  body.sacrificial-altar-page .sacrificial-altar-progress-body:has(.sacrifice-burn-reveal) {
    overflow: hidden;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
  body.sacrificial-altar-page .sacrifice-burn-reveal {
    overflow: hidden;
    max-width: 100%;
  }
  body.sacrificial-altar-page .sacrifice-burn-arena {
    --sacrifice-burn-card-h: 13rem;
    --sacrifice-burn-edge: 0.25rem;
    --sacrifice-burn-pack-gap: 0.55rem;
    /* Groupe deck + pile centré horizontalement */
    --sacrifice-burn-deck-left: calc(
      (100% - (2 * var(--sacrifice-burn-card-w) + var(--sacrifice-burn-pack-gap))) / 2
    );
    --sacrifice-burn-pile-left: calc(
      var(--sacrifice-burn-deck-left) + var(--sacrifice-burn-card-w) + var(--sacrifice-burn-pack-gap)
    );
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  body.sacrificial-altar-page .sacrifice-burn-deal {
    overflow: visible;
  }
  body.sacrificial-altar-page .sacrifice-burn-claim {
    width: 100%;
  }
}
@media (max-width: 400px) {
  body.sacrificial-altar-page .sacrifice-burn-arena {
    --sacrifice-burn-card-h: 11.25rem;
    --sacrifice-burn-pack-gap: 0.4rem;
    --sacrifice-burn-deck-left: calc(
      (100% - (2 * var(--sacrifice-burn-card-w) + var(--sacrifice-burn-pack-gap))) / 2
    );
    --sacrifice-burn-pile-left: calc(
      var(--sacrifice-burn-deck-left) + var(--sacrifice-burn-card-w) + var(--sacrifice-burn-pack-gap)
    );
  }
}

body.pda-kit .loot-car .lc-img,
body.pda-kit .loot-car .blend-sphere-nft-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}


