/* ============================================================================
   POKETPOKET - Styles Ultra-Holo, Shiny, 3D Foil Shaders & Interface Enfant
   ============================================================================ */

:root {
  --font-main: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Cinzel', 'Orbitron', serif;
  --font-tech: 'Orbitron', 'Rajdhani', sans-serif;
  --gold: #e6b800;
  --cyan: #00e5ff;
  --magenta: #ff0055;
  --rainbow-grad: linear-gradient(
    125deg,
    #ff1744 0%,
    #ff9100 16%,
    #ffee00 32%,
    #00e676 48%,
    #00e5ff 64%,
    #2979ff 80%,
    #d500f9 100%
  );
}

* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background:
    radial-gradient(ellipse at 50% 0%, #1a102e 0%, #090612 55%, #030206 100%);
  color: #eceff1;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0.3px;
}

/* Grille tactique subtile + Nébuleuse sombre AAA */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 215, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 25%, rgba(213, 0, 249, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 82% 20%, rgba(0, 229, 255, 0.12) 0%, transparent 45%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: 0;
}

@keyframes bgPulse {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(35deg) brightness(1.18); }
}

/* Canvas de particules plein écran */
#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9000;
}

/* Flash lumineux plein écran */
.screen-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9500;
  opacity: 0;
  transition: opacity 0.45s ease-out;
}
.screen-flash.active {
  opacity: 0.85;
  transition: none;
}
.flash-gold {
  background: radial-gradient(circle, #ffffff 10%, #ffd700 60%, transparent 100%);
}
.flash-rainbow {
  background: var(--rainbow-grad);
}
.flash-cyan {
  background: radial-gradient(circle, #ffffff 10%, #00e5ff 65%, transparent 100%);
}

/* Tremblement d'écran */
.shake-normal {
  animation: shakeNormal 0.36s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.shake-heavy {
  animation: shakeHeavy 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shakeNormal {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-8px, 6px); }
  40% { transform: translate(8px, -6px); }
  60% { transform: translate(-6px, -4px); }
  80% { transform: translate(6px, 4px); }
}
@keyframes shakeHeavy {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(-16px, 10px) rotate(-1.5deg); }
  30% { transform: translate(16px, -12px) rotate(1.5deg); }
  45% { transform: translate(-14px, -8px) rotate(-1deg); }
  60% { transform: translate(14px, 10px) rotate(1deg); }
  75% { transform: translate(-8px, 6px) rotate(-0.5deg); }
}

/* Bannières flottantes épiques */
#epic-banner-Zone {
  position: fixed;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9600;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.epic-floating-banner {
  padding: 14px 36px;
  border-radius: 999px;
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 3px 0 #000, 0 0 20px rgba(255,255,255,0.9);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 35px currentColor;
  border: 4px solid #ffffff;
  animation: bannerPop 2.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  white-space: nowrap;
}
.banner-gold {
  background: linear-gradient(90deg, #ff6f00, #ffd700, #ff6f00);
  color: #ffd700;
}
.banner-rainbow, .banner-shiny {
  background: var(--rainbow-grad);
  background-size: 200% 200%;
  animation: bannerPop 2.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards, rainbowShift 1.5s linear infinite;
}

@keyframes bannerPop {
  0% { transform: scale(0.2) translateY(60px); opacity: 0; }
  18% { transform: scale(1.12) translateY(0); opacity: 1; }
  30% { transform: scale(1) translateY(0); opacity: 1; }
  80% { transform: scale(1.04) translateY(-10px); opacity: 1; }
  100% { transform: scale(0.8) translateY(-45px); opacity: 0; }
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================================
   BARRE SUPÉRIEURE & NAVIGATION AAA (STYLE DARK FANTASY / CYBER ESPORT)
   ============================================================================ */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(11, 8, 22, 0.96) 0%, rgba(18, 12, 34, 0.9) 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(230, 184, 0, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75);
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 2.5px;
  background: linear-gradient(90deg, #ffd700 0%, #fff3b0 40%, #00e5ff 80%, #ffd700 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(255,215,0,0.35));
  animation: rainbowShift 6s linear infinite;
  cursor: pointer;
}

.brand-ball {
  font-size: 1.6rem;
  color: #ffd700;
  -webkit-text-fill-color: #ffd700;
}

.status-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 11, 26, 0.85);
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 700;
  color: #eceff1;
  box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.12);
}

.pill-coins {
  border-color: #ffd700;
  color: #ffd700;
}

.btn-magic-gift {
  background: linear-gradient(135deg, #b26a00 0%, #ffd700 50%, #ff8f00 100%);
  border: 1.5px solid #fff8e1;
  border-radius: 6px;
  padding: 7px 16px;
  color: #0b0716;
  font-family: var(--font-tech);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.45);
  transition: transform 0.2s, filter 0.2s;
}
.btn-magic-gift:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.btn-icon-toggle {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon-toggle:hover {
  border-color: #00e5ff;
  background: rgba(0, 229, 255, 0.15);
}
.btn-icon-toggle.muted {
  opacity: 0.4;
  filter: grayscale(1);
}

/* Barre d'onglets tactiques AAA */
.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 14px 4px;
  position: relative;
  z-index: 10;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(28, 22, 48, 0.9) 0%, rgba(12, 9, 24, 0.95) 100%);
  color: #b0bec5;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: all 0.22s ease;
}

.nav-tab:hover {
  color: #ffffff;
  border-color: #00e5ff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
}

.nav-tab.active {
  background: linear-gradient(135deg, rgba(230, 184, 0, 0.28) 0%, rgba(0, 229, 255, 0.22) 100%);
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4), inset 0 0 15px rgba(255, 215, 0, 0.2);
}

.nav-tab .tab-emoji {
  font-size: 1.2rem;
}

/* Conteneur de vues */
.view-section {
  display: none;
  max-width: 1380px;
  margin: 0 auto;
  padding: 12px 18px 60px;
  position: relative;
  z-index: 5;
}
.view-section.active {
  display: block;
  animation: fadeInView 0.3s ease-out;
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffd700;
  margin: 8px 0 4px;
  text-shadow: 0 4px 16px rgba(0,0,0,0.85), 0 0 24px rgba(255,215,0,0.3);
}
.section-subtitle {
  text-align: center;
  color: #90a4ae;
  font-size: 1.02rem;
  margin: 0 0 20px;
}

/* ============================================================================
   SACHETS BOOSTERS PHYSIQUES 3D (AVEC ÉPAISSEUR, SOUDURES ALU & VRAIE OUVERTURE)
   ============================================================================ */
.boosters-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 34px;
  padding: 28px 12px 36px;
}

.booster-shop-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  perspective: 1200px;
  position: relative;
}

/* Conteneur 3D du Sachet Physique Mylar Illustré */
.booster-3d-scene {
  --pack-mx: 50%;
  --pack-my: 50%;
  --pack-rx: 0deg;
  --pack-ry: 0deg;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-12deg) rotateX(5deg);
  transition: transform 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.booster-3d-scene.is-pack-tilting {
  transition: transform 0.08s ease-out;
  transform: rotateX(var(--pack-rx)) rotateY(var(--pack-ry)) translateY(-10px) scale(1.05);
}

.booster-shop-item:hover .booster-3d-scene:not(.is-pack-tilting) {
  transform: rotateY(10deg) rotateX(-5deg) translateY(-12px) scale(1.06);
}

/* Tailles et Épaisseurs 3D (--pack-depth) selon la gamme du booster */
.pack-size-small {
  --pack-w: 178px;
  --pack-h: 272px;
  --pack-depth: 18px;
  --pack-edge: linear-gradient(180deg, #b2dfdb, #004d40, #80cbc4, #00251a);
  --pack-glow: rgba(38, 166, 154, 0.68);
}
.pack-size-medium {
  --pack-w: 192px;
  --pack-h: 292px;
  --pack-depth: 22px;
  --pack-edge: linear-gradient(180deg, #84ffff, #01579b, #00e5ff, #002f6c);
  --pack-glow: rgba(0, 229, 255, 0.78);
}
.pack-size-large {
  --pack-w: 212px;
  --pack-h: 320px;
  --pack-depth: 28px;
  --pack-edge: linear-gradient(180deg, #ea80fc, #311b92, #ffd740, #1a093b);
  --pack-glow: rgba(224, 64, 251, 0.82);
}
.pack-size-giant {
  --pack-w: 234px;
  --pack-h: 350px;
  --pack-depth: 36px;
  --pack-edge: linear-gradient(180deg, #ffff8d, #ff8f00, #ffd700, #bf360c);
  --pack-glow: rgba(255, 215, 0, 0.92);
}
.pack-size-colossal {
  --pack-w: 252px;
  --pack-h: 376px;
  --pack-depth: 44px;
  --pack-edge: linear-gradient(180deg, #ff1744, #ffee00, #00e5ff, #d500f9, #ffd700);
  --pack-glow: rgba(255, 0, 128, 0.92);
}

.booster-3d-object {
  width: var(--pack-w);
  height: var(--pack-h);
  position: relative;
  transform-style: preserve-3d;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.82)) drop-shadow(0 0 24px var(--pack-glow));
}

/* TRANCHES LATÉRALES 3D (Soufflets métalliques Mylar sur les côtés du sachet) */
.booster-side-right,
.booster-side-left {
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: var(--pack-depth);
  background: var(--pack-edge);
  border-top: 1.5px solid rgba(255,255,255,0.75);
  border-bottom: 1.5px solid rgba(255,255,255,0.75);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.65);
}

.booster-side-right::after,
.booster-side-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.28) 0px,
      rgba(255,255,255,0.28) 2px,
      rgba(0,0,0,0.42) 2px,
      rgba(0,0,0,0.42) 5px
    ),
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 20%, rgba(255,255,255,0.45) 50%, transparent 80%, rgba(0,0,0,0.6) 100%);
}

.booster-side-right {
  right: calc(var(--pack-depth) * -0.5);
  transform: rotateY(90deg) translateZ(0px);
}
.booster-side-left {
  left: calc(var(--pack-depth) * -0.5);
  transform: rotateY(-90deg) translateZ(0px);
}

/* FACE ARRIÈRE 3D DU BOOSTER */
.booster-back-plate {
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--pack-depth) * -0.5));
  background: linear-gradient(160deg, #160d29 0%, #090414 100%);
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.35);
  box-shadow: 0 24px 44px rgba(0,0,0,0.9);
}

/* ============================================================================
   POCHE INTÉRIEURE EN ALUMINIUM MYLAR & VRAIE PILE DE CARTES 3D
   ============================================================================ */
.booster-interior-pocket {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 18px;
  bottom: 16px;
  transform: translateZ(0px);
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,0.45) 0%, transparent 62%),
    linear-gradient(180deg, #94a3b8 0%, #475569 32%, #1e293b 70%, #090d16 100%);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow: inset 0 14px 28px rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Scène d'ouverture physique : sachet bien de face pour que la déchirure du haut et l'ouverture du centre soient réalistes */
.opening-stage-pack-scene {
  transform: rotateY(0deg) rotateX(0deg) !important;
  transform-style: flat !important;
}

.opening-stage-pack-object {
  width: 248px !important;
  height: 368px !important;
  position: relative;
  transform-style: flat !important;
  cursor: pointer;
  filter: drop-shadow(0 24px 36px rgba(0,0,0,0.88)) drop-shadow(0 0 28px var(--pack-glow, rgba(255,215,0,0.55)));
}

.opening-stage-pocket {
  left: 10px !important;
  right: 10px !important;
  top: 22px !important;
  bottom: 20px !important;
  z-index: 8;
  overflow: hidden !important;
}

/* Canvas haute définition qui dessine le sachet qui se déchire légèrement en haut puis s'ouvre au centre */
.booster-peel-canvas {
  position: absolute;
  left: -70px;
  top: -40px;
  width: 388px;
  height: 448px;
  z-index: 18;
  pointer-events: none;
}

.booster-mylar-lining {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.08) 0px,
    rgba(255,255,255,0.08) 2px,
    transparent 2px,
    transparent 6px
  );
  pointer-events: none;
}

/* Faisceaux volumétriques qui jaillissent de l'intérieur du sachet ouvert */
.booster-godrays {
  position: absolute;
  top: -120px;
  left: -60px;
  right: -60px;
  height: 260px;
  background:
    conic-gradient(
      from 180deg at 50% 85%,
      transparent 120deg,
      rgba(255, 215, 0, 0.55) 142deg,
      rgba(255, 255, 255, 0.85) 158deg,
      rgba(0, 229, 255, 0.65) 175deg,
      rgba(255, 255, 255, 0.9) 185deg,
      rgba(255, 0, 128, 0.6) 202deg,
      rgba(255, 215, 0, 0.55) 218deg,
      transparent 240deg
    );
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: screen;
}

/* Notifications désactivées */
#epic-banner-Zone,
.epic-floating-banner {
  display: none !important;
}

/* La carte logée dans le sachet (révélée par l'ouverture du centre après la déchirure du haut) */
.inside-card-stack {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: flat;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
  cursor: pointer;
}

.packet-revealed-card-target .poke-card {
  transform-style: flat !important;
}

.inner-real-card-slab {
  position: absolute;
  width: 192px;
  height: 274px;
  border-radius: 14px;
  background: #080412;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 6px 16px rgba(0,0,0,0.85);
  pointer-events: none;
}

.slab-layer-1 { z-index: 4; transform: translateY(-4px) scale(0.97); }
.slab-layer-2 { z-index: 3; transform: translateY(-8px) scale(0.94); }

/* Carte principale révélée à l'intérieur du sachet ouvert au centre */
.packet-revealed-card-target {
  position: relative;
  z-index: 10;
  width: 215px;
  min-width: 215px;
  height: 305px;
  min-height: 305px;
  flex-shrink: 0;
  transform: scale(0.88);
  transform-origin: center center;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.92);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), filter 0.25s ease;
}

.inside-card-stack:hover .packet-revealed-card-target {
  transform: scale(0.91) translateY(-6px);
  filter: brightness(1.06);
}

/* ============================================================================
   SURFACE D'EMBALLAGE DU BOOSTER (SÉPARÉE EN 2 VOLETS VERTICAUX DEPUIS LE MILIEU)
   ============================================================================ */
.booster-paper-flap {
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--pack-depth) * 0.5 + 1px));
  transform-style: preserve-3d;
  z-index: 14;
  pointer-events: none;
}

.paper-flap-inner {
  position: absolute;
  inset: 0;
  background-color: #120824;
  border-left: 1.5px solid rgba(255,255,255,0.72);
  border-right: 1.5px solid rgba(255,255,255,0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  /* Dents de sertissage en haut et en bas du sachet */
  clip-path: polygon(
    0% 1.5%, 3% 0%, 6% 1.5%, 9% 0%, 12% 1.5%, 15% 0%, 18% 1.5%, 21% 0%, 24% 1.5%, 27% 0%, 30% 1.5%, 33% 0%,
    36% 1.5%, 39% 0%, 42% 1.5%, 45% 0%, 48% 1.5%, 51% 0%, 54% 1.5%, 57% 0%, 60% 1.5%, 63% 0%, 66% 1.5%, 69% 0%,
    72% 1.5%, 75% 0%, 78% 1.5%, 81% 0%, 84% 1.5%, 87% 0%, 90% 1.5%, 93% 0%, 96% 1.5%, 100% 0%,
    100% 98.5%, 96% 100%, 93% 98.5%, 90% 100%, 87% 98.5%, 84% 100%, 81% 98.5%, 78% 100%, 75% 98.5%, 72% 100%,
    69% 98.5%, 66% 100%, 63% 98.5%, 60% 100%, 57% 98.5%, 54% 100%, 51% 98.5%, 48% 100%, 45% 98.5%, 42% 100%,
    39% 98.5%, 36% 100%, 33% 98.5%, 30% 100%, 27% 98.5%, 24% 100%, 21% 98.5%, 18% 100%, 15% 98.5%, 12% 100%,
    9% 98.5%, 6% 100%, 3% 98.5%, 0% 100%
  );
}

/* Découpe verticale exactement au milieu (50%) sur .paper-flap-inner pour préserver la vraie rotation 3D */
.paper-flap-left {
  transform-origin: 0% 50%;
}
.paper-flap-left > .paper-flap-inner {
  clip-path: polygon(
    0% 1.5%, 6% 0%, 12% 1.5%, 18% 0%, 24% 1.5%, 30% 0%, 36% 1.5%, 42% 0%, 48% 1.5%, 50.4% 0%,
    49.4% 12%, 50.6% 24%, 49.3% 36%, 50.5% 48%, 49.2% 60%, 50.6% 72%, 49.4% 84%, 50.4% 100%,
    42% 98.5%, 36% 100%, 30% 98.5%, 24% 100%, 18% 98.5%, 12% 100%, 6% 98.5%, 0% 100%
  );
}

.paper-flap-right {
  transform-origin: 100% 50%;
}
.paper-flap-right > .paper-flap-inner {
  clip-path: polygon(
    50.1% 0%, 56% 1.5%, 62% 0%, 68% 1.5%, 74% 0%, 80% 1.5%, 86% 0%, 92% 1.5%, 96% 0%, 100% 1.5%,
    100% 100%, 94% 98.5%, 88% 100%, 82% 98.5%, 76% 100%, 70% 98.5%, 64% 100%, 58% 98.5%, 50.1% 100%,
    49.1% 84%, 50.4% 72%, 49.0% 60%, 50.3% 48%, 49.1% 36%, 50.4% 24%, 49.2% 12%
  );
}

/* Tranche de papier/aluminium déchiré au milieu vertical (visible quand le papier s'ouvre) */
.paper-vertical-tear-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #e2e8f0, #ffffff, #94a3b8, #ffffff, #cbd5e1);
  opacity: 0;
  z-index: 20;
  pointer-events: none;
}
.paper-vertical-tear-edge.edge-left {
  left: calc(50% - 3px);
}
.paper-vertical-tear-edge.edge-right {
  left: calc(50% - 1px);
}

.paper-center-vertical-seam {
  display: none;
}

.booster-full-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  pointer-events: none;
  filter: saturate(1.16) contrast(1.08);
}

.booster-vertical-seam-fold {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 8px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.35) 0%,
    rgba(255,255,255,0.28) 45%,
    rgba(0,0,0,0.42) 100%
  );
  opacity: 0.45;
  z-index: 2;
  pointer-events: none;
}

.booster-pillow-shading {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(255, 255, 255, 0.34) 8%,
      rgba(255, 255, 255, 0.04) 20%,
      transparent 50%,
      rgba(0, 0, 0, 0.1) 80%,
      rgba(255, 255, 255, 0.26) 92%,
      rgba(0, 0, 0, 0.52) 100%
    ),
    radial-gradient(
      circle at var(--pack-mx, 50%) var(--pack-my, 40%),
      rgba(255, 255, 255, 0.25) 0%,
      transparent 52%
    );
}

.booster-vignette-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 4, 20, 0.38) 0%,
    transparent 20%,
    transparent 62%,
    rgba(6, 3, 16, 0.78) 84%,
    rgba(4, 2, 10, 0.95) 100%
  );
}

.booster-crimp-top {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 20px;
  flex-shrink: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(203,213,225,0.88) 48%, rgba(71,85,105,0.95) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.98) 0px,
      rgba(255,255,255,0.98) 2px,
      rgba(100,116,139,0.9) 2px,
      rgba(51,65,85,0.95) 4px
    );
  background-blend-mode: overlay;
  border-bottom: 1.5px solid rgba(255,255,255,0.9);
  box-shadow: 0 3px 8px rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 3px;
}

.crimp-hang-slot {
  width: 36px;
  height: 5px;
  border-radius: 99px;
  background: rgba(8, 4, 18, 0.92);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 2px #000;
}

.pack-top-series-strip {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 5px 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.46rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  white-space: nowrap;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px #000, 0 0 8px rgba(0,0,0,0.95);
}
.strip-set-code {
  color: var(--pack-border, #ffd700);
}

.booster-crimp-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18px;
  background:
    linear-gradient(0deg, rgba(255,255,255,0.95) 0%, rgba(203,213,225,0.86) 48%, rgba(71,85,105,0.95) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.98) 0px,
      rgba(255,255,255,0.98) 2px,
      rgba(100,116,139,0.9) 2px,
      rgba(51,65,85,0.95) 4px
    );
  background-blend-mode: overlay;
  border-top: 1.5px solid rgba(255,255,255,0.9);
  z-index: 8;
}

.booster-foil-sheen {
  position: absolute;
  inset: -60%;
  background: linear-gradient(
    118deg,
    transparent 28%,
    rgba(255, 255, 255, 0.32) 40%,
    rgba(0, 229, 255, 0.28) 46%,
    rgba(255, 0, 128, 0.28) 51%,
    rgba(255, 215, 0, 0.35) 56%,
    transparent 68%
  );
  mix-blend-mode: screen;
  animation: foilSweep 4.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes foilSweep {
  0% { transform: translateX(-48%) rotate(14deg); }
  50% { transform: translateX(48%) rotate(14deg); }
  100% { transform: translateX(-48%) rotate(14deg); }
}

.pack-top-row-badges {
  position: relative;
  z-index: 6;
  width: 100%;
  padding: 6px 8px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.pack-series-ribbon {
  background: linear-gradient(90deg, rgba(8, 4, 20, 0.92), rgba(28, 12, 56, 0.94));
  color: var(--pack-border, #ffd700);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.48rem;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--pack-border, #ffd700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.8);
  white-space: nowrap;
}

.pack-foil-seal-stamp {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8e1 0%, #ffd700 45%, #ff8f00 85%, #4e2600 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.85), 0 0 12px rgba(255,215,0,0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  transform: rotate(8deg);
}
.seal-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  color: #140726;
}
.seal-lbl {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.36rem;
  font-weight: 900;
  color: #2b1100;
  letter-spacing: 0.3px;
}

.pack-wrapper-band {
  position: relative;
  z-index: 6;
  width: 104%;
  margin-top: auto;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(8, 3, 20, 0.85) 0%, rgba(4, 1, 10, 0.96) 100%);
  border-top: 2px solid var(--pack-border, #ffd700);
  border-bottom: 1.5px solid rgba(255,255,255,0.45);
  padding: 6px 8px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.8);
}

.cartouche-sub {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.44rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--pack-accent, #00e5ff);
  text-transform: uppercase;
}

.pack-title-label {
  font-family: 'Cinzel', serif;
  text-align: center;
  font-weight: 900;
  font-size: 0.84rem;
  color: #ffffff;
  text-shadow: 0 2px 6px #000, 0 0 12px var(--pack-accent, #ffd700);
  line-height: 1.12;
}
.pack-size-giant .pack-title-label,
.pack-size-colossal .pack-title-label {
  font-size: 0.98rem;
}

.booster-buy-btn {
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2.5px solid rgba(255,255,255,0.9);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #00c853, #009624);
  box-shadow: 0 5px 0 #005005, 0 8px 20px rgba(0,0,0,0.55);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.booster-buy-btn:hover {
  transform: translateY(-2px);
}
.booster-buy-btn.cost-coins {
  background: linear-gradient(135deg, #ffab00, #ff6d00);
  box-shadow: 0 5px 0 #bf360c, 0 8px 20px rgba(0,0,0,0.55);
}

/* ============================================================================
   SCÈNE D'OUVERTURE DU BOOSTER (PAPIER S'OUVRANT PAR LE MILIEU VERTICAL)
   & EFFET D'ARRIÈRE-PLAN POUR LES CARTES SPÉCIALES
   ============================================================================ */
.opening-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  background: radial-gradient(circle at 50% 42%, rgba(24, 10, 56, 0.97) 0%, rgba(4, 2, 12, 0.99) 100%);
  backdrop-filter: blur(18px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 16px 45px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.opening-overlay.active {
  display: flex;
}

.opening-sunburst {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 140vmax;
  height: 140vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 215, 0, 0.04) 0deg 8deg,
    transparent 8deg 20deg
  );
  animation: spinSunburst 34s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes spinSunburst {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================================
   EFFET D'ARRIÈRE-PLAN POUR LES CARTES SPÉCIALES (#opening-special-bg)
   ============================================================================ */
.opening-special-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.opening-special-bg.active-bg-rare,
.opening-special-bg.active-bg-epic,
.opening-special-bg.active-bg-legendary,
.opening-special-bg.active-bg-mythic,
.opening-special-bg.active-bg-shiny {
  opacity: 1;
}

.special-bg-aurora {
  position: absolute;
  inset: -20%;
  opacity: 0;
  filter: blur(42px);
  transition: opacity 0.5s ease, background 0.5s ease;
}

.special-bg-godrays {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 130vmax;
  height: 130vmax;
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: screen;
  animation: spinSunburst 22s linear infinite;
  transition: opacity 0.5s ease;
}

.special-bg-ring-outer,
.special-bg-ring-inner {
  position: absolute;
  top: 44%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.special-bg-ring-outer {
  width: 580px;
  height: 580px;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  animation: spinRingCW 18s linear infinite;
}

.special-bg-ring-inner {
  width: 440px;
  height: 440px;
  border: 3px double rgba(255, 255, 255, 0.45);
  animation: spinRingCCW 12s linear infinite;
}

.special-bg-core-halo {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0;
  animation: specialCoreBreath 1.8s ease-in-out infinite alternate;
  transition: opacity 0.45s ease, background 0.45s ease;
}

@keyframes spinRingCW {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes spinRingCCW {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}
@keyframes specialCoreBreath {
  from { transform: translate(-50%, -50%) scale(0.92); }
  to { transform: translate(-50%, -50%) scale(1.12); }
}

/* Palier RARE : Halo d'Éther Cyan / Saphir */
.opening-special-bg.active-bg-rare .special-bg-core-halo {
  opacity: 0.75;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.58) 0%, rgba(41, 121, 255, 0.28) 50%, transparent 72%);
}
.opening-special-bg.active-bg-rare .special-bg-ring-inner {
  opacity: 0.7;
  border-color: rgba(0, 229, 255, 0.75);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.55), inset 0 0 24px rgba(0, 229, 255, 0.35);
}

/* Palier ÉPIQUE : Vortex Nébuleuse Améthyste & Plasma */
.opening-special-bg.active-bg-epic .special-bg-aurora {
  opacity: 0.65;
  background: radial-gradient(circle at 50% 44%, rgba(213, 0, 249, 0.45) 0%, rgba(101, 31, 255, 0.32) 42%, transparent 72%);
}
.opening-special-bg.active-bg-epic .special-bg-godrays {
  opacity: 0.55;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(224, 64, 251, 0.24) 0deg 6deg,
    transparent 6deg 18deg,
    rgba(0, 229, 255, 0.18) 18deg 24deg,
    transparent 24deg 36deg
  );
}
.opening-special-bg.active-bg-epic .special-bg-ring-outer,
.opening-special-bg.active-bg-epic .special-bg-ring-inner {
  opacity: 0.85;
  border-color: #e040fb;
  box-shadow: 0 0 38px rgba(224, 64, 251, 0.75), inset 0 0 28px rgba(124, 77, 255, 0.55);
}
.opening-special-bg.active-bg-epic .special-bg-core-halo {
  opacity: 0.88;
  background: radial-gradient(circle, rgba(224, 64, 251, 0.68) 0%, rgba(124, 77, 255, 0.42) 48%, transparent 75%);
}

/* Palier LÉGENDAIRE : Supernova Solaire Or 24K */
.opening-special-bg.active-bg-legendary .special-bg-aurora {
  opacity: 0.85;
  background: radial-gradient(circle at 50% 44%, rgba(255, 215, 0, 0.55) 0%, rgba(255, 109, 0, 0.35) 45%, transparent 74%);
}
.opening-special-bg.active-bg-legendary .special-bg-godrays {
  opacity: 0.85;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 215, 0, 0.36) 0deg 7deg,
    transparent 7deg 15deg,
    rgba(255, 171, 0, 0.26) 15deg 22deg,
    transparent 22deg 30deg
  );
}
.opening-special-bg.active-bg-legendary .special-bg-ring-outer,
.opening-special-bg.active-bg-legendary .special-bg-ring-inner {
  opacity: 0.95;
  border-color: #ffd700;
  box-shadow: 0 0 55px #ffd700, 0 0 95px #ff6d00, inset 0 0 38px #ffd700;
}
.opening-special-bg.active-bg-legendary .special-bg-core-halo {
  opacity: 0.96;
  background: radial-gradient(circle, #fff8e1 0%, rgba(255, 215, 0, 0.82) 38%, rgba(255, 109, 0, 0.48) 62%, transparent 80%);
}

/* Palier MYTHIQUE & SHINY : Singularité Prismatique Arc-en-Ciel */
.opening-special-bg.active-bg-mythic .special-bg-aurora,
.opening-special-bg.active-bg-shiny .special-bg-aurora {
  opacity: 0.92;
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 0, 128, 0.48) 0%, transparent 50%),
    radial-gradient(circle at 62% 38%, rgba(0, 229, 255, 0.48) 0%, transparent 50%),
    radial-gradient(circle at 50% 56%, rgba(255, 215, 0, 0.48) 0%, transparent 52%);
  animation: auroraShift 5s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.12) rotate(12deg); }
}

.opening-special-bg.active-bg-mythic .special-bg-godrays,
.opening-special-bg.active-bg-shiny .special-bg-godrays {
  opacity: 0.95;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 23, 68, 0.34) 0deg 6deg,
    rgba(255, 214, 0, 0.34) 6deg 12deg,
    rgba(0, 230, 118, 0.34) 12deg 18deg,
    rgba(0, 229, 255, 0.34) 18deg 24deg,
    rgba(213, 0, 249, 0.34) 24deg 30deg,
    transparent 30deg 36deg
  );
}
.opening-special-bg.active-bg-mythic .special-bg-ring-outer,
.opening-special-bg.active-bg-shiny .special-bg-ring-outer,
.opening-special-bg.active-bg-mythic .special-bg-ring-inner,
.opening-special-bg.active-bg-shiny .special-bg-ring-inner {
  opacity: 1;
  border-color: #ffffff;
  box-shadow: 0 0 50px #ff007f, 0 0 90px #00e5ff, 0 0 120px #ffd700, inset 0 0 40px #ffffff;
}
.opening-special-bg.active-bg-mythic .special-bg-core-halo,
.opening-special-bg.active-bg-shiny .special-bg-core-halo {
  opacity: 1;
  background: radial-gradient(circle, #ffffff 0%, rgba(0, 229, 255, 0.78) 32%, rgba(255, 0, 128, 0.65) 58%, transparent 80%);
}

/* ============================================================================
   THÉÂTRE D'OUVERTURE : PAQUET + CARTE EN GRAND AU MILIEU
   ============================================================================ */
.opening-stage-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.opening-ceremony-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.ceremony-edition-pill {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.45);
  padding: 4px 16px;
  border-radius: 999px;
  text-transform: uppercase;
}

.opening-instruction {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2vw, 1.38rem);
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffd700;
  text-align: center;
  margin: 2px 0 8px;
  text-shadow: 0 0 22px rgba(255, 215, 0, 0.75), 0 3px 8px #000;
}

/* ============================================================================
   PRÉSENTATION ÉPURÉE DES CARTES DE DOS + SECOUSSE EXAGÉRÉE FAÇON DISNEY
   ============================================================================ */
.pulled-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  max-width: 1240px;
  margin: 18px auto 26px;
  padding: 12px 16px;
}

.pulled-card-slot {
  position: relative;
  width: 215px;
  height: 305px;
  flex-shrink: 0;
  cursor: pointer;
  transform-origin: center bottom;
  transition: transform 0.22s cubic-bezier(0.2, 0.85, 0.3, 1.25);
}

.pulled-card-slot:hover {
  transform: translateY(-10px) scale(1.04);
  z-index: 20;
}

/* Entrée fluide des cartes présentées de dos */
.pulled-card-slot.card-deal-in {
  animation: cardDealInBack 0.48s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
  animation-delay: var(--deal-delay, 0ms);
}

@keyframes cardDealInBack {
  0% {
    opacity: 0;
    transform: translateY(45px) scale(0.75);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Secousse exagérée façon Disney (Squash & Stretch + Anticipation + Tremblement Cartoon) avant retournement */
.pulled-card-slot.is-disney-shaking {
  z-index: 45;
  pointer-events: none;
  animation: disneyExaggeratedShake 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

.pulled-card-slot.is-disney-shaking .card-back {
  box-shadow: 0 0 48px #ffd700, 0 0 85px #00e5ff !important;
  border-color: #ffffff !important;
}

@keyframes disneyExaggeratedShake {
  0% {
    transform: translateY(0) scaleX(1) scaleY(1) rotate(0deg);
  }
  /* 1. Anticipation cartoon : la carte s'écrase vers le bas (Squash) */
  15% {
    transform: translateY(16px) scaleX(1.22) scaleY(0.78) rotate(-5deg);
  }
  /* 2. Élongation vers le haut (Stretch) + début des oscillations exagérées */
  30% {
    transform: translateY(-24px) scaleX(0.84) scaleY(1.22) rotate(11deg);
  }
  44% {
    transform: translateY(-8px) scaleX(1.16) scaleY(0.86) rotate(-14deg);
  }
  58% {
    transform: translateY(-28px) scaleX(0.84) scaleY(1.24) rotate(15deg);
  }
  72% {
    transform: translateY(-14px) scaleX(1.18) scaleY(0.85) rotate(-16deg);
  }
  /* 3. Dernier grand écrasement d'élan puis pivot sur la tranche pour se retourner ! */
  86% {
    transform: translateY(12px) scaleX(1.24) scaleY(0.76) rotate(7deg);
  }
  100% {
    transform: translateY(-18px) scaleX(0.12) scaleY(1.16) rotate(0deg);
  }
}

/* Rebond élastique joyeux au moment où la carte se retourne */
.pulled-card-slot.is-disney-flip-pop {
  animation: disneyFlipRevealBounce 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes disneyFlipRevealBounce {
  0% {
    transform: translateY(-22px) scaleX(0.12) scaleY(1.18);
  }
  45% {
    transform: translateY(-10px) scaleX(1.14) scaleY(0.90);
  }
  75% {
    transform: translateY(4px) scaleX(0.95) scaleY(1.05);
  }
  100% {
    transform: translateY(0) scaleX(1) scaleY(1);
  }
}

.opening-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}

.btn-big-action {
  padding: 12px 28px;
  border-radius: 999px;
  border: 3px solid #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,0.45), 0 0 24px rgba(255, 215, 0, 0.5);
  transition: transform 0.2s;
}
.btn-big-action:hover {
  transform: translateY(-3px) scale(1.04);
}
.btn-flip-all {
  background: linear-gradient(135deg, #00e5ff 0%, #2979ff 50%, #aa00ff 100%);
}
.btn-open-again {
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
}
.btn-done-pack {
  background: linear-gradient(135deg, #ff9100 0%, #ff1744 100%);
}

/* ============================================================================
   SYSTÈME DE CARTES POKETPOKET ULTRA-HOLO, COSMOS, OR 24K, ARC-EN-CIEL & SHINY
   ============================================================================ */
.card-slot-3d {
  width: 215px;
  min-width: 215px;
  height: 305px;
  min-height: 305px;
  flex-shrink: 0;
  perspective: 1100px;
  position: relative;
}

.poke-card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  --holo-angle: 135deg;
  width: 215px;
  min-width: 215px;
  height: 305px;
  min-height: 305px;
  flex-shrink: 0;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.85, 0.3, 1.15);
  cursor: pointer;
  border-radius: 18px;
}

.poke-card.is-tilting {
  transition: transform 0.08s ease-out;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(1.06);
  z-index: 30;
}

.poke-card.is-facedown-unflipped {
  transform: none;
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* DOS DE CARTE OFFICIEL GÉNÉRÉ PAR IA (IDENTIQUE POUR TOUTES LES CARTES, STYLE MTG / POKÉMON) */
.card-back {
  transform: translateZ(2px);
  background: #080410;
  border: 4px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.8);
  padding: 0;
}

/* Sécurité absolue : tant qu'une carte est face cachée (.is-facedown-unflipped), sa face avant est 100% masquée */
.poke-card.is-facedown-unflipped .card-front {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.poke-card:not(.is-facedown-unflipped) .card-back {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.imperial-card-back-design {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-back-ai-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.icb-foil-shimmer {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(255, 215, 0, 0.14) 45deg,
    transparent 90deg,
    rgba(0, 229, 255, 0.14) 180deg,
    transparent 240deg,
    rgba(255, 0, 128, 0.14) 310deg,
    transparent 360deg
  );
  animation: spinSlow 14s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Halos de suspense sur les cartes face cachée (sans filter qui casserait la 3D !) */
.poke-card.is-facedown-unflipped.hint-rare .card-back {
  border-color: #00e5ff;
  box-shadow: 0 0 25px #00e5ff;
}
.poke-card.is-facedown-unflipped.hint-epic .card-back {
  border-color: #e040fb;
  box-shadow: 0 0 35px #e040fb, 0 0 60px #7c4dff;
  animation: cardSuspensePulse 1.1s ease-in-out infinite alternate;
}
.poke-card.is-facedown-unflipped.hint-legendary .card-back {
  border-color: #ffd700;
  box-shadow: 0 0 45px #ffd700, 0 0 85px #ff6d00;
  animation: cardSuspensePulse 0.7s ease-in-out infinite alternate;
}
.poke-card.is-facedown-unflipped.hint-mythic .card-back,
.poke-card.is-facedown-unflipped.hint-shiny .card-back {
  border-color: #ffffff;
  box-shadow: 0 0 50px #ff1744, 0 0 80px #00e5ff, 0 0 110px #ffd700;
  animation: cardSuspensePulse 0.5s ease-in-out infinite alternate;
}

@keyframes cardSuspensePulse {
  from { transform: translateZ(2px) scale(1); }
  to { transform: translateZ(2px) scale(1.05); }
}

/* FACE AVANT DE LA CARTE */
.card-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotateY(0deg) translateZ(1px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px;
  border: 5px solid #e0e0e0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.55);
  isolation: isolate;
}

/* Bordures et Halos selon la Rareté */
.rarity-common .card-front {
  border-color: #b0bec5;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45), 0 0 15px rgba(255,255,255,0.25);
}
.rarity-rare .card-front {
  border-color: #80d8ff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5), 0 0 22px rgba(0, 229, 255, 0.7);
}
.rarity-epic .card-front {
  border-color: #ea80fc;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 32px rgba(224, 64, 251, 0.85);
}
.rarity-legendary .card-front {
  border: 6px solid #ffd700;
  background: linear-gradient(145deg, #2a1b05 0%, #5c3a08 45%, #ffb300 100%) !important;
  box-shadow: 0 10px 35px rgba(0,0,0,0.65), 0 0 42px #ffd700;
}
.rarity-mythic .card-front {
  border: 6px solid transparent;
  background:
    linear-gradient(160deg, #160b2e 0%, #2a114b 50%, #091e3a 100%) padding-box,
    var(--rainbow-grad) border-box !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 45px #ff007f, 0 0 75px #00e5ff;
}

/* ============================================================================
   SHADERS HOLOGRAPHIQUES MULTI-COUCHES (FOIL, COSMOS, PRISM, GLARE)
   Calibrés avec masque radial pour laisser l'illustration 100% nette au centre !
   ============================================================================ */

/* Couche 1 : Spectre Holographique Arc-en-Ciel (Masqué au centre pour ne jamais voiler l'image) */
.card-holo-foil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  border-radius: 12px;
  background-image:
    repeating-linear-gradient(
      var(--holo-angle, 125deg),
      rgba(255, 23, 68, 0.42) 0%,
      rgba(255, 145, 0, 0.42) 7%,
      rgba(255, 238, 0, 0.42) 14%,
      rgba(0, 230, 118, 0.42) 21%,
      rgba(0, 229, 255, 0.42) 28%,
      rgba(41, 121, 255, 0.42) 35%,
      rgba(213, 0, 249, 0.42) 42%,
      rgba(255, 23, 68, 0.42) 50%
    );
  background-size: 260% 260%;
  background-position: var(--mx, 50%) var(--my, 50%);
  mix-blend-mode: soft-light;
  opacity: 0.22;
  /* Masque radial : laisse le coeur de l'illustration ultra-net tout en illuminant les bords */
  -webkit-mask-image: radial-gradient(circle at 50% 42%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.42) 48%, rgba(0,0,0,1) 88%);
  mask-image: radial-gradient(circle at 50% 42%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.42) 48%, rgba(0,0,0,1) 88%);
  animation: autoHoloDrift 6s ease-in-out infinite alternate;
  transition: opacity 0.25s ease;
}

/* Intensité progressive selon la rareté (sans jamais brûler les blancs de l'image) */
.rarity-rare .card-holo-foil {
  opacity: 0.28;
}
.rarity-epic .card-holo-foil {
  opacity: 0.34;
}
.rarity-legendary .card-holo-foil {
  opacity: 0.38;
  background-image:
    repeating-linear-gradient(
      var(--holo-angle, 135deg),
      rgba(255, 215, 0, 0.5) 0%,
      rgba(255, 145, 0, 0.45) 14%,
      rgba(0, 229, 255, 0.45) 28%,
      rgba(255, 215, 0, 0.5) 42%
    );
}
.rarity-mythic .card-holo-foil,
.is-shiny-card .card-holo-foil {
  opacity: 0.42;
}

/* Quand on incline la carte à la souris, le reflet holo s'anime davantage */
.poke-card.is-tilting .card-holo-foil {
  opacity: 0.58;
}

@keyframes autoHoloDrift {
  0% { background-position: 15% 20%; }
  50% { background-position: 85% 80%; }
  100% { background-position: 30% 75%; }
}

/* Couche 2 : Paillettes Cosmos / Étoiles fines en parallaxe */
.card-cosmos-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  background-image:
    radial-gradient(circle at 16% 22%, #ffffff 1.2px, transparent 2.2px),
    radial-gradient(circle at 82% 16%, #ffd700 1.6px, transparent 2.6px),
    radial-gradient(circle at 12% 78%, #00e5ff 1.5px, transparent 2.5px),
    radial-gradient(circle at 88% 74%, #ff4081 1.5px, transparent 2.5px),
    radial-gradient(circle at 24% 86%, #ffffff 1.2px, transparent 2.2px),
    radial-gradient(circle at 76% 36%, #ffff00 1.4px, transparent 2.4px);
  background-size: 110px 110px;
  background-position: calc(100% - var(--mx, 50%)) calc(100% - var(--my, 50%));
  mix-blend-mode: screen;
  opacity: 0.3;
  animation: twinkleSparkles 2.4s ease-in-out infinite alternate;
}
.rarity-epic .card-cosmos-layer,
.rarity-legendary .card-cosmos-layer,
.rarity-mythic .card-cosmos-layer,
.is-shiny-card .card-cosmos-layer {
  opacity: 0.65;
}

@keyframes twinkleSparkles {
  0% { opacity: 0.25; }
  100% { opacity: 0.68; }
}

/* Couche 3 : Reflet Spéculaire (Uniquement visible quand on incline la carte en 3D) */
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  background: linear-gradient(
    135deg,
    transparent 25%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(0, 229, 255, 0.22) 52%,
    transparent 75%
  );
  background-size: 220% 220%;
  background-position: var(--mx, 50%) var(--my, 50%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.poke-card.is-tilting .card-glare {
  opacity: 0.55;
}

/* Couche 4 : Grille Prismatique Diamant (Subtile sur les bordures) */
.card-prism-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.12) 0px,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 14px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(0, 229, 255, 0.12) 0px,
      rgba(0, 229, 255, 0.12) 1px,
      transparent 1px,
      transparent 14px
    );
  mix-blend-mode: overlay;
  opacity: 0.15;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, transparent 25%, rgba(0,0,0,0.85) 85%);
  mask-image: radial-gradient(circle at 50% 42%, transparent 25%, rgba(0,0,0,0.85) 85%);
}
.rarity-epic .card-prism-grid,
.rarity-legendary .card-prism-grid,
.rarity-mythic .card-prism-grid,
.is-shiny-card .card-prism-grid {
  opacity: 0.32;
}

/* Effet Spécial Carte CHROMATIQUE / SHINY : Cadre Or/Prisme & Aura sans voiler l'image ! */
.poke-card.is-shiny-card .card-front {
  border-color: #ffd700 !important;
  box-shadow:
    0 0 25px #ffd700,
    0 0 50px rgba(255, 0, 127, 0.75),
    0 0 75px rgba(0, 229, 255, 0.65),
    inset 0 0 18px rgba(255, 215, 0, 0.75) !important;
}

.shiny-floating-tag {
  position: absolute;
  top: 40px;
  left: 8px;
  z-index: 25;
  background: linear-gradient(90deg, #ffd700, #ff007f, #00e5ff, #ffd700);
  background-size: 200% 100%;
  animation: rainbowShift 1.5s linear infinite;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.75), 0 0 12px #ffd700;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
  pointer-events: none;
}

.new-card-tag {
  position: absolute;
  top: 40px;
  right: 8px;
  z-index: 25;
  background: #00e676;
  color: #002900;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.65);
  white-space: nowrap;
  pointer-events: none;
}

/* Contenu interne de la carte */
.card-top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.92);
  padding: 3px 6px;
  border-radius: 7px;
  border: 1.5px solid rgba(0,0,0,0.18);
  flex-shrink: 0;
}

.card-monster-name {
  font-weight: 900;
  font-size: 0.69rem;
  letter-spacing: -0.3px;
  line-height: 1.15;
  color: #1a0b36;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.card-hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 900;
  font-size: 0.69rem;
  color: #d50000;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Fenêtre d'illustration du monstre (Grande fenêtre HD自适应 ou FULL-ART sur les Épiques/Légendaires/Mythiques !) */
.card-art-frame {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 0;
  margin: 4px 0;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.45), 0 4px 10px rgba(0,0,0,0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MODE FULL-ART (VMAX / ALT-ART) pour les cartes Épiques, Légendaires, Mythiques et Shiny ! */
.rarity-epic .card-art-frame,
.rarity-legendary .card-art-frame,
.rarity-mythic .card-art-frame,
.is-shiny-card .card-art-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 11px;
  z-index: 2;
}

.rarity-epic .card-top-bar,
.rarity-legendary .card-top-bar,
.rarity-mythic .card-top-bar,
.is-shiny-card .card-top-bar,
.rarity-epic .card-move-box,
.rarity-legendary .card-move-box,
.rarity-mythic .card-move-box,
.is-shiny-card .card-move-box {
  background: rgba(10, 5, 24, 0.82);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 215, 0, 0.75);
  color: #ffffff;
}

.rarity-epic .card-monster-name,
.rarity-legendary .card-monster-name,
.rarity-mythic .card-monster-name,
.is-shiny-card .card-monster-name,
.rarity-epic .card-move-title,
.rarity-legendary .card-move-title,
.rarity-mythic .card-move-title,
.is-shiny-card .card-move-title {
  color: #ffffff;
  text-shadow: 0 2px 4px #000;
}

.rarity-epic .card-hp-badge,
.rarity-legendary .card-hp-badge,
.rarity-mythic .card-hp-badge,
.is-shiny-card .card-hp-badge {
  color: #ff5252;
  text-shadow: 0 1px 3px #000;
}

/* Conteneur de l'image Gemini HD */
.monster-img-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.monster-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
  animation: subtleArtZoom 5s ease-in-out infinite alternate;
}

/* Cadrage dynamique alternatif pour les sous-espèces */
.alt-crop-view .monster-real-img {
  object-position: center 12%;
  transform: scale(1.16);
  filter: contrast(1.06) saturate(1.12);
}

/* Finition Chromatique Shiny sur l'illustration Gemini (nette + halo doré interne) */
.shiny-img-wrap .monster-real-img {
  filter: contrast(1.08) saturate(1.18) brightness(1.03);
}
.shiny-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 22px rgba(255, 215, 0, 0.55), inset 0 0 8px rgba(0, 229, 255, 0.4);
  z-index: 3;
}

@keyframes subtleArtZoom {
  0% { transform: scale(1.01); }
  100% { transform: scale(1.07); }
}

/* Rayons de soleil tournants (pour les cartes d'Énergie) */
.card-art-rays {
  position: absolute;
  width: 240%;
  height: 240%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.18) 0deg 12deg,
    transparent 12deg 24deg
  );
  animation: spinSlow 14s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.svg-spin-slow {
  transform-origin: 100px 105px;
  animation: spinSlow 9s linear infinite;
}
.svg-spin-reverse {
  transform-origin: 100px 105px;
  animation: spinSlow 12s linear infinite reverse;
}

.monster-svg {
  width: 82%;
  height: 82%;
  max-width: 165px;
  max-height: 165px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.55));
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Bandeau de Type Non-Créature (Style MTG : Mur, Véhicule, Terre/Nature, Relique) */
.card-noncreature-type-bar {
  position: relative;
  z-index: 10;
  margin-top: auto;
  margin-bottom: 3px;
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(14, 10, 28, 0.92), rgba(38, 26, 68, 0.92));
  border: 1px solid rgba(255, 215, 0, 0.65);
  color: #ffd700;
  font-family: var(--font-tech);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.card-noncreature-type-bar + .card-move-box {
  margin-top: 0;
}

/* Style Spécial Série III : Moebius // Ligne Claire & Aquarelle */
.card-moebius-type-bar {
  background: linear-gradient(90deg, rgba(26, 18, 36, 0.94), rgba(34, 87, 122, 0.92), rgba(231, 111, 81, 0.92));
  border: 1.5px solid #ffd166;
  color: #fff8e7;
  text-shadow: 0 1px 2px #1a1224;
}

.poke-card.is-moebius-card .card-art-frame {
  border-color: #1a1224;
  box-shadow: inset 0 0 0 1.5px rgba(255, 248, 231, 0.85), 0 4px 10px rgba(0,0,0,0.35);
}

/* Style Spécial Série IV : Patrick Nagel // Sérigraphie Pop-Art Déco 1982 */
.card-nagel-type-bar {
  background: linear-gradient(90deg, #0b0910 0%, #ff2a55 48%, #00d2c4 100%);
  border: 1.5px solid #faf7f2;
  color: #ffffff;
  text-shadow: 0 1px 2px #000000;
  letter-spacing: 0.6px;
}

.poke-card.is-nagel-card .card-art-frame {
  border: 2.5px solid #0b0910;
  box-shadow: inset 0 0 0 2px #faf7f2, 0 4px 10px rgba(0,0,0,0.45);
}

/* Zone d'attaque et rareté en bas de la carte */
.card-move-box {
  position: relative;
  z-index: 10;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 7px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  border: 1.5px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.card-move-title {
  font-size: 0.64rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: #1a0b36;
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.card-move-cost-pill {
  font-size: 0.54rem;
  background: #1a0b36;
  color: #fff;
  padding: 1px 4px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255,215,0,0.4);
}

.card-move-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.card-atk-value {
  background: linear-gradient(135deg, #ff1744, #d50000);
  color: #fff;
  font-weight: 900;
  font-size: 0.66rem;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

.card-bottom-meta {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  flex-shrink: 0;
}

.card-rarity-pill {
  font-size: 0.56rem;
  font-weight: 900;
  color: #fff;
  padding: 2px 6px;
  border-radius: 999px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85);
  box-shadow: 0 2px 5px rgba(0,0,0,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 156px;
}

.card-count-badge {
  background: rgba(0,0,0,0.82);
  color: #ffd700;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #ffd700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================================
   ALBUM / CLASSEUR DE COLLECTION
   ============================================================================ */
.album-progress-bar-wrap {
  max-width: 720px;
  margin: 0 auto 20px;
  background: rgba(0,0,0,0.45);
  border: 3px solid rgba(255,215,0,0.6);
  border-radius: 999px;
  padding: 6px;
  position: relative;
}

.album-progress-fill {
  height: 26px;
  border-radius: 999px;
  background: var(--rainbow-grad);
  background-size: 200% 100%;
  animation: rainbowShift 3s linear infinite;
  transition: width 0.5s ease-out;
}

.album-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  text-shadow: 0 2px 4px #000;
}

.album-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: linear-gradient(135deg, #ffd700, #ff6d00);
  color: #1a0b36;
  border-color: #fff;
  transform: scale(1.06);
}

.album-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

/* Carte non encore obtenue dans le Codex ou le Deck : reste grisée tant qu'on n'en possède aucun exemplaire */
.card-slot-3d.card-unowned-preview .poke-card,
body.light-fx-mode .card-slot-3d.card-unowned-preview .poke-card,
.card-slot-3d.card-unowned-preview:hover .poke-card {
  filter: grayscale(1) brightness(0.58) contrast(0.92) !important;
  opacity: 0.75 !important;
}
.locked-card-tag {
  position: absolute;
  top: 40px;
  right: 8px;
  z-index: 25;
  background: rgba(15, 10, 28, 0.92);
  color: #b0bec5;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.65);
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================================================
   MODAL ZOOM 3D INTERACTIF D'UNE CARTE (INSPECTEUR HOLO)
   ============================================================================ */
.card-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(8, 3, 20, 0.9);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.card-zoom-modal.active {
  display: flex;
  animation: fadeInView 0.25s ease-out;
}

.zoom-modal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
}

.zoom-card-holder {
  transform: scale(1.38);
  margin: 45px;
}

.zoom-card-details {
  max-width: 360px;
  background: rgba(255,255,255,0.09);
  border: 3px solid rgba(255,215,0,0.6);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.3);
}

.zoom-card-details h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: #ffd700;
}

.zoom-card-details p {
  font-size: 1.15rem;
  line-height: 1.45;
  color: #f3e5f5;
}

/* ============================================================================
   CHAMP DE BATAILLE AAA (STYLE MTG ARENA / YU-GI-OH! MASTER DUEL)
   Table de jeu en perspective 3D, Main en Éventail, Cut-In & Chiffres flottants
   ============================================================================ */
.aaa-battlefield-wrapper {
  position: relative;
  max-width: 1340px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(28, 19, 56, 0.92) 0%, rgba(8, 5, 18, 0.98) 75%);
  border: 2px solid rgba(230, 184, 0, 0.55);
  border-radius: 14px;
  padding: 14px 18px 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), inset 0 0 60px rgba(0, 229, 255, 0.08);
  overflow: hidden;
}

/* Barre de sélection des Ligues de Difficulté & Série de Victoires */
.aaa-league-selector-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 6px 12px;
  background: rgba(12, 8, 26, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 10px;
}

.aaa-league-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aaa-diff-pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #cfd8dc;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
}
.aaa-diff-pill:hover {
  border-color: #00e5ff;
  color: #fff;
}
.aaa-diff-pill.active {
  background: linear-gradient(135deg, #ff1744, #ff9100);
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 23, 68, 0.65);
}

.aaa-streak-badge {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: #ffd700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.45);
}

.frontline-shield-tag {
  background: rgba(0, 229, 255, 0.18);
  border: 1px solid rgba(0, 229, 255, 0.6);
  color: #84ffff;
  padding: 1px 7px;
  border-radius: 4px;
  margin-left: 6px;
  font-size: 0.66rem;
}

/* Barre de commandement supérieure + Seigneur Adverse */
.aaa-top-command-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 14px;
  background: rgba(6, 4, 14, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.aaa-turn-badge {
  display: flex;
  flex-direction: column;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(230, 184, 0, 0.25), rgba(0, 0, 0, 0.6));
  border-left: 4px solid #ffd700;
  font-family: var(--font-tech);
}
.aaa-turn-badge span {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 1.5px;
}
.aaa-turn-badge small {
  font-size: 0.72rem;
  color: #00e5ff;
  letter-spacing: 1px;
}

/* Portrait & Barre de vie des Invocateurs (Planeswalkers) */
.aaa-hero-avatar-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, rgba(20, 14, 38, 0.95), rgba(10, 7, 20, 0.9));
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 10px;
  padding: 6px 16px 6px 8px;
  min-width: 320px;
  position: relative;
  transition: all 0.25s;
}
.aaa-hero-avatar-box.enemy-hero {
  border-color: rgba(255, 23, 68, 0.65);
  cursor: pointer;
}
.aaa-hero-avatar-box.hero-targetable-pulse {
  border-color: #ff1744;
  box-shadow: 0 0 30px #ff1744, inset 0 0 20px rgba(255, 23, 68, 0.45);
  animation: pulseBounce 0.9s infinite;
}

.hero-portrait-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.5);
}

.hero-details {
  flex: 1;
}
.hero-title {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #eceff1;
  margin-bottom: 5px;
}
.target-cta {
  background: #ff1744;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  font-size: 0.74rem;
}

.hero-hp-track {
  width: 100%;
  height: 20px;
  background: rgba(0, 0, 0, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.hero-hp-bar {
  height: 100%;
  transition: width 0.35s ease-out;
}
.hero-hp-bar.enemy-bar {
  background: linear-gradient(90deg, #b71c1c, #ff1744, #ff9100);
}
.hero-hp-bar.player-bar {
  background: linear-gradient(90deg, #00695c, #00e676, #76ff03);
}
.hero-hp-track span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 900;
  text-shadow: 0 1px 3px #000;
}

/* Bannière de journal tactique */
.aaa-tactical-log {
  margin: 10px 0;
  padding: 8px 16px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.14) 50%, transparent 100%);
  border-top: 1px solid rgba(0, 229, 255, 0.35);
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
  text-align: center;
  font-family: var(--font-tech);
  font-size: 0.92rem;
  font-weight: 700;
  color: #84ffff;
  letter-spacing: 0.8px;
}

/* ============================================================================
   SURFACE DU PLATEAU DE JEU 3D (6 EMPLACEMENTS DE CRÉATURES : 3v3)
   ============================================================================ */
.aaa-3d-table-surface {
  perspective: 1100px;
  padding: 10px 12px;
  margin: 4px 0 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 65%),
    linear-gradient(180deg, rgba(14, 10, 28, 0.75) 0%, rgba(22, 15, 42, 0.85) 50%, rgba(12, 8, 24, 0.85) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.85);
}

.aaa-battle-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 0;
}

.aaa-battle-row.enemy-row {
  border-bottom: 1.5px dashed rgba(255, 215, 0, 0.22);
}

.aaa-board-slot {
  height: 238px;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.aaa-board-slot.empty-slot {
  border: 2px dashed rgba(255, 255, 255, 0.14);
  background: rgba(6, 4, 14, 0.45);
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
}

.slot-rune-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 229, 255, 0.22);
  margin-bottom: 8px;
}

/* Unité invoquée sur le champ de bataille */
.aaa-board-slot.occupied-slot {
  cursor: pointer;
}

.unit-card-frame {
  width: 190px;
  height: 196px;
  border-radius: 12px;
  border: 2.5px solid rgba(255, 255, 255, 0.65);
  position: relative;
  overflow: hidden;
  background: #0b0716;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.85);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* Halo vert/cyan quand l'unité est prête à attaquer (comme dans MTG Arena / Hearthstone) */
.unit-ready-glow .unit-card-frame {
  border-color: #00e676;
  box-shadow: 0 0 22px rgba(0, 230, 118, 0.75);
}

.unit-selected-attack .unit-card-frame {
  border-color: #ffd700;
  transform: scale(1.07) translateY(-6px);
  box-shadow: 0 0 35px #ffd700, 0 0 60px #ff1744;
}

.unit-targetable-enemy .unit-card-frame {
  border-color: #ff1744;
  box-shadow: 0 0 28px #ff1744;
  animation: pulseBounce 0.9s infinite;
}

.has-divine-shield .unit-card-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 3px solid #00e5ff;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, rgba(255, 215, 0, 0.18) 100%);
  box-shadow: inset 0 0 22px #00e5ff;
  pointer-events: none;
  z-index: 6;
}

.unit-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.unit-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 4px 7px;
  background: linear-gradient(180deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.65) 75%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  z-index: 5;
}

.unit-name-badge {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.unit-orbs-strip {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.unit-mini-orb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
}

.unit-keywords-row {
  position: absolute;
  top: 26px;
  left: 6px;
  right: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  z-index: 5;
}

.aaa-kw-tag {
  background: rgba(10, 6, 22, 0.88);
  border: 1px solid rgba(255, 215, 0, 0.75);
  color: #ffd700;
  font-family: var(--font-main);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.unit-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.unit-stat-sword {
  background: linear-gradient(135deg, #d50000, #ff6d00);
  border: 1.5px solid #ffd700;
  color: #fff;
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
}

.unit-hp-bar-mini {
  flex: 1;
  height: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.unit-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #00c853, #76ff03);
  transition: width 0.3s;
}
.unit-hp-bar-mini span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
  font-size: 0.74rem;
  font-weight: 900;
  text-shadow: 0 1px 2px #000;
}

/* Boutons d'action sous l'unité alliée (Attaquer / Éveil) */
.unit-tactical-btns {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  width: 190px;
}

.btn-unit-act {
  flex: 1;
  padding: 5px 4px;
  font-family: var(--font-tech);
  font-size: 0.68rem;
  font-weight: 900;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
  color: #fff;
  background: #1c1632;
}
.btn-unit-act.act-ready {
  background: linear-gradient(135deg, #00897b, #00e676);
  color: #041f14;
  border-color: #fff;
}
.btn-unit-act.act-awaken.act-ready {
  background: linear-gradient(135deg, #6a1b9a, #00e5ff);
  color: #fff;
}
.btn-unit-act.act-off {
  opacity: 0.45;
}

/* ============================================================================
   POSTE DE COMMANDEMENT DU JOUEUR (SANCTUAIRE D'ÉTHER + CONTRÔLES DE PHASE)
   ============================================================================ */
.aaa-player-hud-deck {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(8, 5, 18, 0.9);
  border: 1.5px solid rgba(0, 229, 255, 0.35);
  border-radius: 10px;
  margin-bottom: 14px;
}

.aaa-ether-sanctuary {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ether-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-tech);
  font-size: 0.88rem;
  color: #00e5ff;
}
.ether-label small {
  font-family: var(--font-main);
  font-size: 0.76rem;
  color: #90a4ae;
}

.ether-gems-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ether-crystal-gem {
  font-size: 1.25rem;
  transition: transform 0.2s, filter 0.2s;
}
.ether-crystal-gem.gem-filled {
  filter: drop-shadow(0 0 10px #00e5ff);
  transform: scale(1.1);
}
.ether-crystal-gem.gem-empty {
  opacity: 0.25;
  filter: grayscale(1);
}

.aaa-phase-controls {
  display: flex;
  gap: 10px;
}

.aaa-btn-assault,
.aaa-btn-endturn,
.aaa-btn-secondary {
  padding: 10px 20px;
  font-family: var(--font-tech);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 1px;
  border-radius: 6px;
  border: 1.5px solid #fff;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
}
.aaa-btn-assault {
  background: linear-gradient(135deg, #d50000, #ff6d00);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
}
.aaa-btn-endturn {
  background: linear-gradient(135deg, #00838f, #00e5ff);
  color: #051923;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}
.aaa-btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,215,0,0.5);
  padding: 8px 14px;
  font-size: 0.78rem;
}

/* ============================================================================
   MAIN DE CARTES EN ÉVENTAIL 3D INTERACTIF (STYLE MTG ARENA)
   ============================================================================ */
.aaa-hand-fan-zone {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 255px;
  padding: 24px 10px 6px;
}

.aaa-hand-card-wrap {
  position: relative;
  transform: translateY(var(--fan-y, 0px)) rotate(var(--fan-rot, 0deg)) scale(0.78);
  transform-origin: bottom center;
  margin: 0 -18px;
  transition: transform 0.24s cubic-bezier(0.18, 0.89, 0.32, 1.28), margin 0.24s;
  z-index: 10;
}

.aaa-hand-card-wrap:hover {
  transform: translateY(-32px) rotate(0deg) scale(1.04);
  margin: 0 12px;
  z-index: 100;
}

.aaa-hand-card-wrap.playable-glow .poke-card {
  box-shadow: 0 0 28px rgba(0, 230, 118, 0.85);
}
.aaa-hand-card-wrap.unplayable-dim {
  opacity: 0.68;
}

.aaa-card-cost-gem {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: linear-gradient(135deg, #01579b, #00e5ff);
  color: #001220;
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 99px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8), 0 0 15px #00e5ff;
}
.aaa-card-cost-gem.cost-free {
  background: linear-gradient(135deg, #00c853, #b2ff59);
}

/* ============================================================================
   CINÉMATIQUE CUT-IN D'INVOCATION & CHIFFRES DE DÉGÂTS FLOTTANTS
   ============================================================================ */
.aaa-summon-cutin {
  position: fixed;
  inset: 0;
  z-index: 9700;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.68);
  animation: cutinFade 1.45s ease-out forwards;
}

.cutin-slash-bg {
  width: 110vw;
  height: 270px;
  background: linear-gradient(90deg, #05020a 0%, var(--cutin-color, #ff1744) 50%, #05020a 100%);
  border-top: 5px solid #ffd700;
  border-bottom: 5px solid #00e5ff;
  transform: rotate(-5deg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  box-shadow: 0 0 80px var(--cutin-color, #ff1744);
  overflow: hidden;
  animation: cutinSlide 1.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cutin-art {
  width: 280px;
  height: 320px;
  object-fit: cover;
  object-position: center 20%;
  border-left: 4px solid #fff;
  border-right: 4px solid #ffd700;
  transform: skewX(-10deg);
  box-shadow: 0 0 40px rgba(0,0,0,0.9);
}

.cutin-info {
  color: #fff;
  text-shadow: 0 4px 15px #000;
}
.cutin-sub {
  font-family: var(--font-tech);
  font-size: 1rem;
  color: #ffd700;
  letter-spacing: 3px;
}
.cutin-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 2px;
}
.cutin-stats {
  font-family: var(--font-tech);
  font-size: 1.3rem;
  color: #00e5ff;
}

@keyframes cutinSlide {
  0% { transform: rotate(-5deg) scaleY(0.1) translateX(-40%); opacity: 0; }
  20% { transform: rotate(-5deg) scaleY(1) translateX(0%); opacity: 1; }
  80% { transform: rotate(-5deg) scaleY(1) translateX(4%); opacity: 1; }
  100% { transform: rotate(-5deg) scaleY(0.1) translateX(40%); opacity: 0; }
}
@keyframes cutinFade {
  0%, 80% { opacity: 1; }
  100% { opacity: 0; }
}

.aaa-floating-popup {
  position: fixed;
  transform: translate(-50%, -50%);
  z-index: 9800;
  pointer-events: none;
  font-family: var(--font-tech);
  font-weight: 900;
  font-size: 1.85rem;
  padding: 4px 14px;
  border-radius: 8px;
  text-shadow: 0 3px 6px #000;
  animation: floatDmgAnim 1.35s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}
.popup-damage { color: #ff5252; }
.popup-crit { color: #ffd700; font-size: 2.2rem; filter: drop-shadow(0 0 15px #ff1744); }
.popup-heal { color: #00e676; }
.popup-shield { color: #00e5ff; }

@keyframes floatDmgAnim {
  0% { transform: translate(-50%, 0) scale(0.4); opacity: 0; }
  20% { transform: translate(-50%, -25px) scale(1.2); opacity: 1; }
  80% { transform: translate(-50%, -65px) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -95px) scale(0.8); opacity: 0; }
}

/* ============================================================================
   MINI-JEUX RAPIDES (ATTRAPE-ÉTOILES & MÉMO HOLO)
   ============================================================================ */
.minigames-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1050px;
  margin: 0 auto;
}

.minigame-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 3.5px solid #ffd700;
  border-radius: 26px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.catcher-stage {
  position: relative;
  height: 320px;
  background: radial-gradient(circle, #1a0b36 0%, #090314 100%);
  border: 3px solid #00e5ff;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 14px;
}

.falling-item {
  position: absolute;
  font-size: 2.8rem;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 0 12px #ffd700);
  transition: transform 0.1s;
}
.falling-item:hover {
  transform: scale(1.25);
}

.memo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.memo-tile {
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(135deg, #6a1b9a, #283593);
  border: 3px solid #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 2.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.25s;
}
.memo-tile:hover {
  transform: scale(1.06);
}
.memo-tile.revealed {
  background: linear-gradient(135deg, #fff9c4, #ffd54f);
  border-color: #ffffff;
  box-shadow: 0 0 20px #ffd700;
}

/* ============================================================================
   CONSTRUCTEUR DE DECK (GRIMOIRE 12 CARTES + MODE AUTOMATIQUE ALÉATOIRE)
   ============================================================================ */
.deck-builder-root {
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.deck-mode-command-panel {
  background: linear-gradient(155deg, rgba(16, 10, 38, 0.94), rgba(8, 5, 22, 0.96));
  border: 2.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), inset 0 0 24px rgba(0, 229, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deck-mode-switch-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.deck-mode-card-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 15px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.16);
  color: #e8eaf6;
  cursor: pointer;
  transition: all 0.22s ease;
}

.deck-mode-card-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.55);
}

.deck-mode-card-btn.active-mode-auto {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(13, 71, 161, 0.36));
  border: 2.5px solid #00e5ff;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
}

.deck-mode-card-btn.active-mode-custom {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.22), rgba(123, 31, 162, 0.38));
  border: 2.5px solid #ffd700;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.35);
}

.deck-mode-card-btn .mode-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.deck-mode-card-btn .mode-title {
  font-family: var(--font-tech);
  font-size: 1.02rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.deck-mode-card-btn .mode-desc {
  font-size: 0.88rem;
  color: #b0bec5;
  line-height: 1.35;
}

.mode-active-pill {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 99px;
  background: #00e5ff;
  color: #021019;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.mode-active-pill.custom-pill {
  background: #ffd700;
  color: #1a0f00;
}

.deck-quick-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.deck-quick-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.deck-action-btn {
  font-family: var(--font-tech);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  color: #ffffff;
  transition: transform 0.18s, box-shadow 0.18s;
}

.deck-action-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn-random-deck {
  background: linear-gradient(135deg, #00b0ff, #2962ff);
  border-color: #80d8ff;
  box-shadow: 0 4px 14px rgba(0, 176, 255, 0.4);
}

.btn-best-deck {
  background: linear-gradient(135deg, #ff8f00, #d500f9);
  border-color: #ffd700;
  box-shadow: 0 4px 14px rgba(213, 0, 249, 0.4);
}

.btn-clear-deck {
  background: rgba(255, 82, 82, 0.18);
  border-color: rgba(255, 82, 82, 0.6);
  color: #ff8a80;
}

.btn-launch-duel {
  background: linear-gradient(135deg, #00c853, #00bfa5);
  border-color: #b9f6ca;
  color: #00190a;
  font-size: 0.95rem;
  padding: 11px 24px;
  box-shadow: 0 0 22px rgba(0, 230, 118, 0.55);
}

/* Plateau des 12 emplacements du Grimoire */
.deck-active-tray-panel {
  background: linear-gradient(180deg, rgba(14, 9, 32, 0.92), rgba(7, 4, 18, 0.96));
  border: 2px solid rgba(0, 229, 255, 0.4);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.deck-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.deck-tray-title {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.deck-avg-cost-pill {
  background: rgba(0, 229, 255, 0.15);
  border: 1.5px solid #00e5ff;
  color: #80d8ff;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.88rem;
}

.deck-element-breakdown {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.deck-stat-el-pill {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #78909c;
}

.deck-stat-el-pill.has-cards {
  background: rgba(255, 215, 0, 0.15);
  border-color: #ffd700;
  color: #ffffff;
  font-weight: 800;
}

.deck-status-hint {
  font-size: 0.9rem;
  color: #b0bec5;
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid #00e5ff;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.deck-slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  justify-items: center;
}

@media (max-width: 1180px) {
  .deck-slots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 780px) {
  .deck-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.deck-slot-empty {
  width: 162px;
  height: 228px;
  border-radius: 14px;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-tech);
}

.deck-slot-num {
  font-size: 0.8rem;
  font-weight: 800;
}

.deck-slot-plus {
  font-size: 2rem;
  color: rgba(0, 229, 255, 0.45);
}

.deck-slot-empty-label {
  font-size: 0.74rem;
}

.deck-slot-filled {
  position: relative;
  width: 162px;
  height: 228px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.deck-slot-filled:hover {
  transform: translateY(-6px) scale(1.04);
  z-index: 20;
}

.deck-slot-card-scale {
  width: 215px;
  height: 305px;
  flex-shrink: 0;
  transform: scale(0.71);
  transform-origin: center center;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-slot-cost-badge {
  position: absolute;
  top: -6px;
  left: -4px;
  z-index: 30;
  background: linear-gradient(135deg, #01579b, #00e5ff);
  color: #001220;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 99px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.75);
}

.deck-slot-remove-badge {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(213, 0, 0, 0.92);
  color: #ffffff;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid #ff8a80;
  opacity: 0;
  transition: opacity 0.18s ease;
  white-space: nowrap;
}

.deck-slot-filled:hover .deck-slot-remove-badge {
  opacity: 1;
}

/* Catalogue de cartes en bas du Deck Builder */
.deck-catalog-section {
  background: rgba(10, 6, 24, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 18px 20px;
}

.deck-catalog-title {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  color: #ffd700;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.deck-pool-card-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  border-radius: 18px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.deck-pool-card-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 229, 255, 0.45);
}

.deck-pool-card-item.is-in-deck {
  background: rgba(0, 230, 118, 0.1);
  border-color: #00e676;
  box-shadow: 0 0 22px rgba(0, 230, 118, 0.28);
}

.deck-pool-top-badges {
  width: 215px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-tech);
  font-size: 0.76rem;
  font-weight: 900;
}

.deck-pool-mana-tag {
  background: rgba(0, 229, 255, 0.2);
  border: 1px solid #00e5ff;
  color: #80d8ff;
  padding: 2px 9px;
  border-radius: 99px;
}

.deck-pool-selected-tag {
  background: #00e676;
  color: #00220d;
  padding: 2px 10px;
  border-radius: 99px;
}

.deck-pool-add-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #e0e0e0;
  padding: 2px 10px;
  border-radius: 99px;
}

/* Boutons de sélection rapide du mode de deck dans l'Arène de Combat */
.aaa-deck-mode-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.aaa-deck-pill {
  font-family: var(--font-tech);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #cfd8dc;
  cursor: pointer;
  transition: all 0.18s ease;
}

.aaa-deck-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.aaa-deck-pill.active-auto {
  background: linear-gradient(135deg, #00b0ff, #01579b);
  border-color: #00e5ff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

.aaa-deck-pill.active-custom {
  background: linear-gradient(135deg, #ff8f00, #6a1b9a);
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

.aaa-deck-pill.edit-deck-pill {
  background: rgba(255, 215, 0, 0.14);
  border-color: rgba(255, 215, 0, 0.55);
  color: #ffd700;
}

/* ==========================================================================
   MODALE DE FIN DE PARTIE (VICTOIRE / DÉFAITE + EXPLICATION DU COUP FATAL)
   ========================================================================== */
.aaa-match-result-overlay {
  position: absolute;
  inset: 0;
  z-index: 9500;
  background: radial-gradient(circle at 50% 28%, rgba(6, 4, 16, 0.88) 0%, rgba(2, 1, 8, 0.96) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 38px 20px;
  animation: matchResultFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes matchResultFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.aaa-match-result-modal {
  width: 100%;
  max-width: 720px;
  border-radius: 26px;
  padding: 26px 30px;
  background: linear-gradient(165deg, rgba(22, 16, 46, 0.98) 0%, rgba(10, 7, 24, 0.99) 100%);
  border: 3px solid rgba(255, 215, 0, 0.65);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 215, 0, 0.25);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: matchModalPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes matchModalPop {
  0% { transform: scale(0.84) translateY(24px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.aaa-match-result-modal.outcome-victory {
  border-color: #ffd700;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(255, 215, 0, 0.35);
}

.aaa-match-result-modal.outcome-defeat {
  border-color: #ff5252;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.88), 0 0 50px rgba(255, 23, 68, 0.35);
}

.result-modal-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.result-boss-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  flex-shrink: 0;
}

.outcome-defeat .result-boss-avatar {
  border-color: #ff5252;
  box-shadow: 0 0 20px rgba(255, 82, 82, 0.45);
}

.result-header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-badge-pill {
  align-self: flex-start;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 3px 11px;
  border-radius: 99px;
  background: rgba(255, 215, 0, 0.18);
  border: 1px solid #ffd700;
  color: #ffd700;
}

.outcome-defeat .result-badge-pill {
  background: rgba(255, 82, 82, 0.2);
  border-color: #ff5252;
  color: #ff8a80;
}

.result-main-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0;
  letter-spacing: 0.5px;
  color: #ffd700;
  text-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
}

.outcome-defeat .result-main-title {
  color: #ff5252;
  text-shadow: 0 2px 12px rgba(255, 82, 82, 0.45);
}

.result-subtitle {
  margin: 0;
  font-size: 0.96rem;
  color: #cfd8dc;
}

.result-reason-box {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-left: 6px solid #ffd700;
  border-radius: 16px;
  padding: 14px 18px;
}

.outcome-defeat .result-reason-box {
  background: rgba(255, 82, 82, 0.12);
  border-color: rgba(255, 82, 82, 0.55);
  border-left: 6px solid #ff5252;
}

.result-reason-label {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #ffd700;
  margin-bottom: 6px;
}

.outcome-defeat .result-reason-label {
  color: #ff8a80;
}

.result-reason-text {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
}

.result-events-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 16px;
}

.result-events-label {
  font-family: var(--font-tech);
  font-size: 0.76rem;
  font-weight: 800;
  color: #80d8ff;
  margin-bottom: 8px;
  letter-spacing: 0.7px;
}

.result-events-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 125px;
  overflow-y: auto;
}

.result-event-item {
  font-size: 0.86rem;
  color: #eceff1;
  line-height: 1.35;
}

.result-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.result-stat-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.result-stat-chip.reward-chip {
  background: rgba(255, 215, 0, 0.14);
  border-color: rgba(255, 215, 0, 0.5);
}

.stat-chip-label {
  font-size: 0.74rem;
  color: #b0bec5;
}

.stat-chip-val {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  color: #ffffff;
}

.reward-chip .stat-chip-val {
  color: #ffd700;
}

.result-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.result-btn {
  font-family: var(--font-tech);
  font-size: 0.92rem;
  font-weight: 900;
  padding: 13px 22px;
  border-radius: 99px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.result-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.result-btn-primary {
  background: linear-gradient(135deg, #00e676, #00bfa5);
  border-color: #b9f6ca;
  color: #00220d;
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.45);
}

.result-btn-secondary {
  background: linear-gradient(135deg, #00b0ff, #2962ff);
  border-color: #80d8ff;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 176, 255, 0.38);
}

.result-btn-tertiary {
  background: rgba(255, 215, 0, 0.16);
  border-color: #ffd700;
  color: #ffd700;
}

/* ==========================================================================
   SYSTÈME DE DOTATION (3 BOOSTERS GRATUITS AU DÉPART + 1 BOOSTER / JOUR)
   & AFFICHAGE OFFICIEL DES TAUX DE DROP TCG (6 COMMUNES + 1 RARE)
   ========================================================================== */
.pill-free-boosters {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(0, 176, 255, 0.25));
  border-color: #00e676 !important;
  color: #b9f6ca !important;
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.3);
}

.daily-booster-banner {
  max-width: 1240px;
  margin: 0 auto 24px;
  padding: 0 14px;
}

.daily-booster-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(16, 28, 38, 0.95), rgba(10, 14, 28, 0.98));
  border: 2px solid rgba(0, 230, 118, 0.65);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(0, 230, 118, 0.18);
}

.daily-booster-card.cooldown-active {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
}

.daily-booster-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 280px;
}

.daily-pack-badge-icon {
  font-size: 2.8rem;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(0, 230, 118, 0.14);
  border: 2px solid rgba(0, 230, 118, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cooldown-active .daily-pack-badge-icon {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.45);
}

.daily-booster-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.daily-booster-headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.daily-count-pill {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.8px;
}

.daily-count-pill.pill-ready {
  background: #00e676;
  color: #002411;
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.5);
}

.daily-count-pill.pill-empty {
  background: rgba(255, 171, 0, 0.2);
  border: 1px solid #ffab00;
  color: #ffd740;
}

.daily-timer-pill {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  color: #80d8ff;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 4px 12px;
  border-radius: 99px;
}

.daily-booster-sub {
  font-size: 0.95rem;
  color: #eceff1;
}

.daily-odds-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.odds-chip {
  font-family: var(--font-tech);
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cfd8dc;
}

.odds-chip strong {
  color: #ffd700;
}

.odds-chip.odds-shiny {
  background: rgba(213, 0, 249, 0.16);
  border-color: rgba(224, 64, 251, 0.55);
  color: #f3e5f5;
}

.shop-notice-alert {
  margin-top: 4px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 171, 0, 0.16);
  border-left: 4px solid #ffd700;
  color: #fff8e1;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-claim-daily-pack {
  font-family: var(--font-tech);
  font-size: 0.92rem;
  font-weight: 900;
  padding: 14px 22px;
  border-radius: 99px;
  border: 2px solid #b9f6ca;
  background: linear-gradient(135deg, #00e676, #00bfa5);
  color: #00220d;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 230, 118, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn-claim-daily-pack:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn-claim-daily-pack.btn-disabled {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #90a4ae;
  box-shadow: none;
}

.booster-odds-mini-tag {
  margin-top: 8px;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 800;
  color: #b0bec5;
  background: rgba(8, 5, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 99px;
  text-align: center;
}

.booster-buy-btn.cost-free-ready {
  background: linear-gradient(135deg, #00e676, #00bfa5) !important;
  color: #00220d !important;
  border-color: #b9f6ca !important;
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5) !important;
}

.booster-buy-btn.cost-free-cooldown {
  background: rgba(38, 50, 56, 0.85) !important;
  color: #b0bec5 !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: none !important;
}

/* ==========================================================================
   CHECKBOX & MODE "EFFETS LIGHT (TABLETTE)" — HAUTE FLUIDITÉ 60 FPS
   Désactive les filtres flous, blend-modes GPU et animations continues
   ========================================================================== */
.pill-light-fx {
  cursor: pointer;
  user-select: none;
  border-color: rgba(0, 229, 255, 0.5) !important;
  background: rgba(14, 22, 38, 0.9) !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pill-light-fx input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #00e676;
  cursor: pointer;
  margin: 0;
}

body.light-fx-mode .pill-light-fx {
  background: rgba(0, 230, 118, 0.22) !important;
  border-color: #00e676 !important;
  color: #b9f6ca !important;
  box-shadow: none !important;
}

/* 1. Désactivation des calques holographiques lourds (mix-blend-mode & conic-gradient) sur chaque carte */
body.light-fx-mode .card-holo-foil,
body.light-fx-mode .card-prism-grid,
body.light-fx-mode .card-cosmos-layer,
body.light-fx-mode .card-glare,
body.light-fx-mode .card-art-rays,
body.light-fx-mode .shiny-sparkles-overlay,
body.light-fx-mode .icb-foil-shimmer,
body.light-fx-mode .booster-foil-sheen,
body.light-fx-mode .booster-pillow-shading,
body.light-fx-mode .booster-back-plate,
body.light-fx-mode .booster-side-left,
body.light-fx-mode .booster-side-right,
body.light-fx-mode .booster-interior-pocket,
body.light-fx-mode .opening-sunburst,
body.light-fx-mode .special-bg-godrays,
body.light-fx-mode .special-bg-ring-outer,
body.light-fx-mode .special-bg-ring-inner,
body.light-fx-mode .poke-card::before,
body.light-fx-mode .poke-card::after {
  display: none !important;
  animation: none !important;
}

/* 2. Suppression de tous les backdrop-filter: blur() et filter: drop-shadow() très coûteux sur tablette */
body.light-fx-mode .top-header,
body.light-fx-mode .opening-overlay,
body.light-fx-mode .card-zoom-modal,
body.light-fx-mode .aaa-match-result-overlay {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.light-fx-mode .brand-logo,
body.light-fx-mode .album-progress-fill,
body.light-fx-mode .booster-3d-scene,
body.light-fx-mode .booster-3d-object,
body.light-fx-mode .poke-card,
body.light-fx-mode .card-slot-3d,
body.light-fx-mode .aaa-unit-card,
body.light-fx-mode .special-bg-aurora,
body.light-fx-mode .special-bg-core-halo {
  animation: none !important;
  filter: none !important;
}

body.light-fx-mode .card-slot-3d.card-unowned-preview .poke-card {
  filter: grayscale(1) brightness(0.58) contrast(0.92) !important;
  opacity: 0.75 !important;
}

/* 3. Simplification 2D des cartes et boosters pour un défilement instantané dans le Codex / Deck / Boutique */
body.light-fx-mode .card-slot-3d,
body.light-fx-mode .booster-shop-item,
body.light-fx-mode .booster-3d-scene,
body.light-fx-mode .booster-3d-object,
body.light-fx-mode .aaa-3d-table-surface {
  perspective: none !important;
  transform-style: flat !important;
}

body.light-fx-mode .poke-card {
  transform: none !important;
  transition: transform 0.15s ease !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65) !important;
  will-change: auto !important;
}

/* Bordures distinctives nettes et légères pour les cartes Shiny et Mythiques en mode Light */
body.light-fx-mode .poke-card.is-shiny-card {
  border: 3px solid #ffd700 !important;
  box-shadow: 0 0 0 2px #00e5ff, 0 4px 12px rgba(0, 0, 0, 0.7) !important;
}

body.light-fx-mode .poke-card.rarity-mythic {
  border: 3px solid #ff4081 !important;
}

body.light-fx-mode .poke-card.rarity-legendary {
  border: 3px solid #ffd700 !important;
}

/* Conserver la secousse et le retournement Disney fluides (sans drop-shadow coûteux) lors de l'ouverture */
body.light-fx-mode .pulled-card-slot.is-disney-shaking,
body.light-fx-mode .pulled-card-slot.is-disney-flip-pop {
  filter: none !important;
}

/* ==========================================================================
   BOUTON MENU EN HAUT & BARRE DE NAVIGATION D'OUVERTURE DE BOOSTER (TABLETTE)
   Toujours visible en haut de l'écran même sur les écrans de tablette
   ========================================================================== */
.pill-home-menu {
  cursor: pointer;
  background: linear-gradient(135deg, #ffd700, #ff8f00) !important;
  color: #140826 !important;
  border-color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.35);
}

.pill-home-menu:hover {
  transform: translateY(-1px);
}

.opening-top-menu-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: rgba(10, 6, 24, 0.94);
  border: 2px solid rgba(255, 215, 0, 0.55);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

.opening-top-nav-btn {
  font-family: var(--font-tech);
  font-size: 0.84rem;
  font-weight: 900;
  padding: 9px 15px;
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.opening-top-nav-btn:hover {
  transform: translateY(-2px);
}

.opening-top-nav-btn.btn-top-home {
  background: linear-gradient(135deg, #ffd700, #ff8f00);
  border-color: #fff8e1;
  color: #120622;
}

.opening-top-nav-btn.btn-top-flip {
  background: linear-gradient(135deg, #00b0ff, #2962ff);
  border-color: #80d8ff;
}

.opening-top-nav-btn.btn-top-reopen {
  background: linear-gradient(135deg, #00e676, #00bfa5);
  border-color: #b9f6ca;
  color: #00220d;
}

.opening-top-nav-btn.btn-top-deck {
  background: rgba(156, 39, 176, 0.45);
  border-color: #ea80fc;
}

.opening-top-nav-btn.btn-top-battle {
  background: linear-gradient(135deg, #ff1744, #d50000);
  border-color: #ff8a80;
}

.opening-top-nav-btn.btn-top-album {
  background: rgba(0, 229, 255, 0.22);
  border-color: #00e5ff;
}

.opening-top-nav-btn.btn-top-close {
  background: rgba(255, 82, 82, 0.28);
  border-color: #ff5252;
  color: #ffebee;
}

/* ==========================================================================
   CHAMP DE BATAILLE PLEIN ÉCRAN SANS SCROLL (100% VISIBLE D'UN COUP SUR TABLETTE)
   ========================================================================== */
body.battle-fullscreen-active {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}

body.battle-fullscreen-active .top-header {
  padding: 4px 12px;
  flex-wrap: nowrap;
  gap: 8px;
  flex-shrink: 0;
}

body.battle-fullscreen-active .brand-logo {
  font-size: 1rem;
  white-space: nowrap;
}

body.battle-fullscreen-active .status-pills {
  flex-wrap: nowrap;
  gap: 6px;
}

body.battle-fullscreen-active .pill {
  padding: 3px 8px;
  font-size: 0.74rem;
  white-space: nowrap;
}

body.battle-fullscreen-active .btn-icon-toggle {
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
}

body.battle-fullscreen-active .main-nav {
  padding: 3px 10px 2px;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

body.battle-fullscreen-active .nav-tab {
  padding: 4px 8px;
  font-size: 0.66rem;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

body.battle-fullscreen-active .nav-tab .tab-emoji {
  font-size: 0.85rem;
}

body.battle-fullscreen-active #view-battle.active {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1440px;
  padding: 2px 10px 6px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.battle-fullscreen-active #battle-arena-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.aaa-battlefield-wrapper {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 12px 8px !important;
}

.aaa-league-selector-bar {
  padding: 4px 8px !important;
  margin-bottom: 4px !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0;
}

.aaa-league-pills,
.aaa-deck-mode-pills {
  flex-wrap: nowrap !important;
  gap: 4px !important;
}

.aaa-diff-pill,
.aaa-deck-pill,
.aaa-streak-badge {
  padding: 3px 6px !important;
  font-size: 0.62rem !important;
  white-space: nowrap;
}

.aaa-top-command-bar {
  padding: 4px 10px !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0;
}

.aaa-turn-badge {
  padding: 3px 12px !important;
}

.aaa-turn-badge span {
  font-size: 0.95rem !important;
}

.aaa-turn-badge small {
  font-size: 0.64rem !important;
}

.aaa-top-command-bar .aaa-hero-avatar-box {
  padding: 4px 12px 4px 6px !important;
  min-width: 260px !important;
}

.aaa-hero-avatar-box .hero-portrait-img {
  width: 38px !important;
  height: 38px !important;
}

.aaa-hero-avatar-box .hero-title {
  font-size: 0.82rem !important;
  margin-bottom: 2px !important;
}

.aaa-hero-avatar-box .hero-hp-track {
  height: 17px !important;
}

.aaa-hero-avatar-box .hero-hp-track span {
  font-size: 0.7rem !important;
}

.aaa-btn-secondary {
  padding: 5px 10px !important;
  font-size: 0.72rem !important;
}

.aaa-tactical-log {
  margin: 3px 0 !important;
  padding: 3px 12px !important;
  font-size: 0.8rem !important;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Plateau central 3v3 qui s'adapte automatiquement à la hauteur disponible */
.aaa-3d-table-surface {
  flex: 1;
  min-height: 0;
  margin: 2px 0 4px !important;
  padding: 4px 10px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  overflow: hidden;
}

.aaa-battle-row {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 900px;
  padding: 3px 0 !important;
  gap: 14px !important;
  align-items: center;
}

.aaa-board-slot {
  height: 100% !important;
  max-height: 172px;
  min-height: 98px;
}

.slot-rune-ring {
  width: 44px !important;
  height: 44px !important;
  margin-bottom: 4px !important;
}

.unit-card-frame {
  width: 168px !important;
  height: calc(100% - 24px) !important;
  max-height: 144px;
  min-height: 82px;
}

.unit-tactical-btns {
  width: 168px !important;
  margin-top: 3px !important;
  gap: 4px !important;
}

.btn-unit-act {
  padding: 2px 4px !important;
  font-size: 0.62rem !important;
}

/* Dock inférieur unifié : Invocateur + Éther à gauche | Main au centre | Boutons à droite */
.aaa-bottom-command-dock {
  height: 154px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(8, 5, 18, 0.94);
  border: 1.5px solid rgba(0, 229, 255, 0.4);
  border-radius: 12px;
}

.aaa-dock-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 245px;
  flex-shrink: 0;
}

.aaa-dock-left .aaa-hero-avatar-box {
  min-width: 0 !important;
  width: 100%;
  padding: 4px 8px !important;
}

.aaa-dock-left .aaa-ether-sanctuary {
  min-width: 0 !important;
  width: 100%;
  align-items: flex-start;
  gap: 2px;
}

.aaa-dock-left .ether-label {
  font-size: 0.72rem;
  align-items: flex-start;
}

.aaa-dock-left .ether-label small {
  font-size: 0.64rem;
}

.aaa-dock-left .ether-gems-row {
  gap: 3px;
}

.aaa-dock-left .ether-crystal-gem {
  font-size: 0.95rem;
}

/* Zone de la main au centre du dock inférieur */
.aaa-bottom-command-dock .aaa-hand-fan-zone {
  flex: 1;
  min-width: 0;
  min-height: 0 !important;
  height: 142px;
  padding: 0 4px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
}

.aaa-bottom-command-dock .aaa-hand-card-wrap {
  position: relative;
  width: 102px;
  height: 140px;
  margin: 0 -4px !important;
  transform: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
}

.aaa-bottom-command-dock .aaa-hand-card-wrap .card-slot-3d {
  transform: scale(0.44);
  transform-origin: center center;
  flex-shrink: 0;
}

.aaa-bottom-command-dock .aaa-hand-card-wrap:hover {
  z-index: 150;
}

.aaa-bottom-command-dock .aaa-hand-card-wrap:hover .card-slot-3d {
  transform: translateY(-34px) scale(0.68);
}

.aaa-bottom-command-dock .aaa-card-cost-gem {
  top: -4px;
  font-size: 0.74rem;
  padding: 1px 8px;
}

.aaa-dock-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 165px;
  flex-shrink: 0;
}

.aaa-dock-right .aaa-btn-assault,
.aaa-dock-right .aaa-btn-endturn {
  width: 100%;
  padding: 10px 8px;
  font-size: 0.8rem;
}

/* ==========================================================================
   BOUTON PLEIN ÉCRAN (EN-TÊTE + OUVERTURE DE BOOSTER)
   ========================================================================== */
.pill-fullscreen-btn {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(0, 176, 255, 0.25), rgba(41, 98, 255, 0.35)) !important;
  border-color: #80d8ff !important;
  color: #e1f5fe !important;
  font-weight: 800 !important;
  transition: transform 0.15s ease, background 0.15s ease;
}

.pill-fullscreen-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(0, 176, 255, 0.4), rgba(41, 98, 255, 0.5)) !important;
}

.pill-fullscreen-btn.is-fullscreen-on {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.28), rgba(0, 191, 165, 0.38)) !important;
  border-color: #00e676 !important;
  color: #b9f6ca !important;
}

.opening-top-nav-btn.btn-top-fullscreen {
  background: rgba(41, 98, 255, 0.35);
  border-color: #80d8ff;
  color: #e1f5fe;
}

/* ==========================================================================
   APERÇU GÉANT DE CARTE EN COMBAT (1er CLIC = LIRE EN GRAND | 2e CLIC = ACTIVER)
   ========================================================================== */
.aaa-battlefield-wrapper {
  position: relative;
}

.aaa-bottom-command-dock .aaa-hand-card-wrap.hand-card-selected {
  z-index: 180;
}

.aaa-bottom-command-dock .aaa-hand-card-wrap.hand-card-selected .card-slot-3d {
  transform: translateY(-14px) scale(0.50);
  filter: drop-shadow(0 0 14px rgba(0, 230, 118, 0.95));
}

.aaa-hand-confirm-badge {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 220;
  background: linear-gradient(135deg, #00e676, #00bfa5);
  color: #00180a;
  font-family: var(--font-tech);
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1.5px solid #ffffff;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.aaa-board-slot.empty-slot.slot-summon-ready {
  border-color: #00e676 !important;
  background: rgba(0, 230, 118, 0.14) !important;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.4) !important;
  cursor: pointer;
}

.aaa-board-slot.empty-slot.slot-summon-ready span {
  color: #b9f6ca !important;
  font-weight: 900;
}

.aaa-battle-card-inspector {
  position: absolute;
  bottom: 164px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 820;
  width: min(740px, 95vw);
  background: linear-gradient(145deg, rgba(10, 7, 26, 0.97), rgba(18, 12, 42, 0.98));
  border: 2.5px solid #00e5ff;
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.92), 0 0 32px rgba(0, 229, 255, 0.35);
  animation: inspPopIn 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

@keyframes inspPopIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(14px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.insp-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 23, 68, 0.25);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insp-close-btn:hover {
  background: rgba(255, 23, 68, 0.65);
}

.insp-card-preview-col {
  width: 225px;
  height: 315px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.insp-fullsize-slot {
  transform: scale(0.96);
  transform-origin: center center;
}

.insp-card-details-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.insp-source-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(0, 229, 255, 0.18);
  border: 1px solid #00e5ff;
  color: #80d8ff;
  letter-spacing: 0.5px;
}

.insp-card-title {
  font-family: var(--font-tech);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
}

.insp-card-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffd700;
}

.insp-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.insp-stat-pill {
  font-family: var(--font-tech);
  font-size: 0.84rem;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.insp-stat-pill.pill-mana {
  background: rgba(0, 176, 255, 0.22);
  border-color: #40c4ff;
  color: #e1f5fe;
}

.insp-stat-pill.pill-hp {
  background: rgba(0, 230, 118, 0.2);
  border-color: #69f0ae;
  color: #b9f6ca;
}

.insp-stat-pill.pill-atk {
  background: rgba(255, 82, 82, 0.22);
  border-color: #ff8a80;
  color: #ffebee;
}

.insp-effects-box {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3.5px solid #ffd700;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.insp-effect-line {
  font-size: 0.88rem;
  color: #f1f5f9;
  line-height: 1.32;
}

.insp-effect-line strong {
  color: #ffd700;
}

.insp-lore-quote {
  font-size: 0.82rem;
  font-style: italic;
  color: #b0bec5;
  margin: 0;
  line-height: 1.3;
}

.insp-unit-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.insp-activate-btn {
  width: 100%;
  font-family: var(--font-tech);
  font-size: 0.96rem;
  font-weight: 900;
  padding: 11px 16px;
  border-radius: 12px;
  border: 2px solid #b9f6ca;
  background: linear-gradient(135deg, #00c853, #00bfa5);
  color: #001a0a;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.insp-activate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 230, 118, 0.85);
}

.insp-awaken-btn {
  flex: 1;
  font-family: var(--font-tech);
  font-size: 0.88rem;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid #ea80fc;
  background: linear-gradient(135deg, #8e24aa, #00b0ff);
  color: #ffffff;
  cursor: pointer;
}

.insp-click-hint {
  font-size: 0.76rem;
  color: #80d8ff;
  margin-top: 4px;
  font-weight: 700;
}

.insp-blocked-banner {
  background: rgba(255, 171, 0, 0.16);
  border: 1.5px solid #ffd740;
  color: #ffe57f;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
}








