/* ==========================================================================
   THE VINYL CLUB — DESIGN SYSTEM (TOKYO VINYL LOUNGE / HI-FI VINTAGE)
   Standard de Production : GPU-Accelerated, Zéro Layout-Thrashing
   Standard Production V1 — Charte Unifiée & Sans Fausse 3D
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. TOKENS DE DESIGN & FONDATIONS CHROMATIQUES
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces sombres */
  --bg-carbon: #0C080A;     /* Noir d'encre */
  --bg-base: #110B0E;       /* Fond d'écran */
  --bg-surface: #140E12;    /* Caissons, sidebar, modales */
  --bg-card: #1C1418;       /* Corps des cartes */
  --bg-elevated: #241A1F;   /* Éléments surélevés */

  /* Laiton unifié & Teinte d'accent */
  --accent-gold: #DEAC62;
  --accent-gold-hover: #E8BE7E;
  --accent-ruby: #B91C1C;
  
  /* Lignes & Séparateurs */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(222, 172, 98, 0.25);

  /* Typographies */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-neon: "Tilt Neon", cursive, sans-serif;

  --text-main: #F4F1EA;
  --text-muted: #8E827A;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Spot tungstène au-dessus du plateau (Rendu matériel fixe) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle 750px at 50% 36%, rgba(222, 172, 98, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 900px 400px at 50% 10%, rgba(185, 28, 28, 0.04) 0%, transparent 70%);
}

.pb-safe {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --------------------------------------------------------------------------
   1. ENSEIGNE NÉON DU STUDIO
   -------------------------------------------------------------------------- */
.neon-chassis-box {
  position: relative;
  padding: 8px 28px;
  border-radius: 4px;
  background: linear-gradient(180deg, #1A0D11 0%, #100709 100%);
  border: 1px solid rgba(222, 172, 98, 0.25);
  box-shadow: 
    inset 0 1px 0 rgba(254, 243, 199, 0.12),
    0 16px 32px -8px rgba(0, 0, 0, 0.95),
    0 0 32px -4px rgba(185, 28, 28, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-neon-sign {
  position: relative;
  font-family: var(--font-neon);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  text-align: center;
  line-height: 1;
  font-size: clamp(2.2rem, 6.5vw, 4.8rem);
  color: var(--accent-ruby);
  -webkit-text-stroke: clamp(1px, 0.18vw, 2px) #FDE68A;
  
  text-shadow:
    0 0 2px rgba(253, 230, 138, 0.6),
    0 0 8px #DC2626,
    0 0 20px rgba(185, 28, 28, 0.85),
    0 0 40px rgba(217, 119, 6, 0.3);

  animation: neonCosyPulse 8s infinite ease-in-out;
  user-select: none;
  will-change: opacity;
}

@keyframes neonCosyPulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.98; }
  70% { opacity: 0.86; }
  71% { opacity: 0.74; }
  72% { opacity: 0.94; }
}

/* --------------------------------------------------------------------------
   2. BOUTON PRINCIPAL D'OUVERTURE (STYLE FLAT UNIFIÉ)
   -------------------------------------------------------------------------- */
.open-booster-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  padding: 13px 24px;
  background-color: var(--accent-gold);
  color: #0C080A;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.7);
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.open-booster-btn:hover:not(:disabled) {
  background-color: var(--accent-gold-hover);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.85), 0 0 16px -2px rgba(222, 172, 98, 0.25);
}

.open-booster-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.open-btn-divider {
  width: 1px;
  height: 14px;
  background-color: rgba(12, 8, 10, 0.25);
}

#pack-counter-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

/* État désactivé (réserve vide) */
.open-booster-btn:disabled,
.open-booster-btn.is-disabled {
  background-color: rgba(255, 255, 255, 0.04);
  color: #5C5255;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.open-booster-btn:disabled .open-btn-divider,
.open-booster-btn.is-disabled .open-btn-divider {
  background-color: rgba(255, 255, 255, 0.06);
}

/* Liens sidebar actifs */
.sidebar-link.is-active {
  background-color: rgba(255, 255, 255, 0.05);
  color: #F4F1EA;
  border-left: 2px solid var(--accent-gold);
}

/* --------------------------------------------------------------------------
   3. MOTEUR 3D FLIP & STRUCTURE DU VINYLE
   -------------------------------------------------------------------------- */
.vinyl-flip-card {
  perspective: 1200px;
  width: 280px;
  height: 350px;
  max-width: 84vw;
  max-height: calc(84vw + 70px);
  position: relative;
  user-select: none;
  cursor: pointer;
  transform: translateZ(0);
}

@media (min-width: 640px) {
  .vinyl-flip-card {
    width: 295px;
    height: 365px;
  }
}

.vinyl-flip-card .hype-sticker-container {
  opacity: 0;
}

.vinyl-flip-card .hype-sticker-container.trigger-slam {
  animation: stickerSlam 0.45s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

.vinyl-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(0.18, 0.89, 0.32, 1.15);
  z-index: 2;
}

.vinyl-flip-card.is-revealed .vinyl-flip-inner {
  transform: rotateY(180deg);
}

.vinyl-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vinyl-card-back {
  z-index: 2;
  transform: rotateY(0deg);
}

.vinyl-card-front {
  z-index: 1;
  transform: rotateY(180deg);
}

.vinyl-sleeve-back,
.vinyl-sleeve {
  position: relative;
  width: 280px;
  height: 280px;
  max-width: 84vw;
  max-height: 84vw;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-surface);
  box-shadow: 
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 24px -4px rgba(0, 0, 0, 0.9),
    0 24px 40px -8px rgba(0, 0, 0, 0.95);
  transform: translateZ(0);
  isolation: isolate;
}

@media (min-width: 640px) {
  .vinyl-sleeve-back,
  .vinyl-sleeve {
    width: 295px;
    height: 295px;
  }
}

.vinyl-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  pointer-events: none;
  z-index: 2;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.vinyl-cover-vignette {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  z-index: 3;
  box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.6);
}

.vinyl-sleeve::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 45%);
  pointer-events: none;
  z-index: 4;
}

.vinyl-sleeve-back {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.back-vintage-cutout {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #090507;
  border: 2px solid rgba(222, 172, 98, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 4px 10px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.6);
}

.back-cutout-label {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #2A1A22 0%, #120A0E 100%);
  border: 1px solid rgba(222, 172, 98, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

.back-cutout-logo {
  font-family: var(--font-neon);
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  user-select: none;
}

.card-enter {
  animation: cardEnterRight 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cardEnterRight {
  0% { opacity: 0; transform: translateX(120%) rotate(8deg) scale(0.92); }
  100% { opacity: 1; transform: translateX(0) rotate(0deg) scale(1); }
}

.card-slide-out {
  animation: cardSlideOut 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes cardSlideOut {
  0% { transform: translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateX(-140%) rotate(-12deg); opacity: 0; }
}

/* --------------------------------------------------------------------------
   4. HYPE STICKERS & HOLOGRAPHIE
   -------------------------------------------------------------------------- */
.hype-sticker-container {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 42px;
  height: 42px;
  z-index: 25;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: rotate(var(--sticker-angle, -5deg));
  will-change: transform, opacity;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  border-radius: 50%;
}

@media (min-width: 640px) {
  .hype-sticker-container {
    width: 48px;
    height: 48px;
    top: 8px;
    right: 8px;
  }
}

.summary-vinyl-card .hype-sticker-container {
  width: 36px;
  height: 36px;
  top: 4px;
  right: 4px;
}

@media (min-width: 640px) {
  .summary-vinyl-card .hype-sticker-container {
    width: 42px;
    height: 42px;
  }
}

.hype-sticker-seal {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.sticker-inner-border {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hype-sticker-container.trigger-slam {
  animation: stickerSlam 0.45s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

@keyframes stickerSlam {
  0% { opacity: 0; transform: scale(2.4) rotate(15deg); }
  65% { opacity: 1; transform: scale(0.92) rotate(-8deg); }
  100% { opacity: 1; transform: scale(1) rotate(var(--sticker-angle, -5deg)); }
}

.sticker-label-text {
  font-size: 8px;
  padding: 0 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

@media (min-width: 640px) {
  .sticker-label-text {
    font-size: 9px;
  }
}

.summary-vinyl-card .sticker-label-text {
  font-size: 7px;
}

.sticker-gold-leaf {
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.6),
    0 0 12px rgba(222, 172, 98, 0.4);
}

.sticker-prismatic {
  background-size: 200% 200%;
  animation: prismaticShift 4s ease infinite;
}

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

.rarity-legendaire-plus .vinyl-sleeve::after,
.card-foil .vinyl-sleeve::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 0, 128, 0.25) 35%,
    rgba(0, 255, 255, 0.35) 50%,
    rgba(255, 215, 0, 0.3) 65%,
    transparent 80%
  );
  background-size: 250% 250%;
  mix-blend-mode: color-dodge;
  animation: foilShimmer 4s ease infinite;
  pointer-events: none;
}

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

/* --------------------------------------------------------------------------
   5. AURAS DE SUSPENSE & ANTICIPATION
   -------------------------------------------------------------------------- */
.card-aura-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%) scale(0.65);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.card-aura-glow.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.25);
}

.glow-rare {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.7) 0%, rgba(37, 99, 235, 0.35) 45%, transparent 70%);
}

.glow-super-rare {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.85) 0%, rgba(147, 51, 234, 0.4) 45%, transparent 70%);
}

.glow-ultra-rare {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.95) 0%, rgba(234, 88, 12, 0.45) 50%, transparent 70%);
}

.glow-legendaire,
.glow-legendaire-plus {
  background: radial-gradient(circle, rgba(251, 191, 36, 1) 0%, rgba(222, 172, 98, 0.55) 50%, transparent 72%);
}

@keyframes suspenseShake {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.04) rotate(-2deg); }
  50% { transform: scale(1.05) rotate(2deg); }
  75% { transform: scale(1.04) rotate(-1.5deg); }
}

.vinyl-flip-card.suspense-charging .vinyl-sleeve-back {
  animation: suspenseShake 0.65s ease-in-out forwards;
}

/* --------------------------------------------------------------------------
   6. PRÉSENTOIR DU BOOSTER (OBI)
   -------------------------------------------------------------------------- */
#booster-stage {
  perspective: 1200px;
  transform: translateZ(0);
}

#booster-card-wrapper {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.collector-sleeve {
  position: relative;
  width: 260px;
  height: 260px;
  background: #171114; 
  border-radius: 6px;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 
    inset 0 0 0 1px rgba(254, 243, 199, 0.08),
    0 25px 50px -12px rgba(0, 0, 0, 0.95);
}

@media (min-width: 640px) {
  .collector-sleeve {
    width: 290px;
    height: 290px;
  }
}

.collector-sleeve.collector-sleeve-mini {
  width: 100% !important;
  max-width: 170px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 6px;
}

@media (min-width: 640px) {
  .collector-sleeve.collector-sleeve-mini {
    max-width: 185px !important;
  }
}

.collector-sleeve-mini .obi-strip {
  padding: 6px 10px;
}

.collector-sleeve-mini .gold-foil-text {
  font-size: 10px;
}

.collector-sleeve-mini .obi-content p {
  font-size: 7px;
}

.sleeve-cardboard {
  position: absolute;
  inset: 0;
  transform: translateZ(0px);
}

.vinyl-groove-deboss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 18px,
    rgba(253, 230, 138, 0.025) 19px,
    rgba(12, 6, 8, 0.75) 20px,
    transparent 21px
  );
  opacity: 0.9;
}

.sleeve-inner-extract {
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  background: #1C1518;
  border: 1px solid rgba(254, 243, 199, 0.08);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(0) translateZ(8px);
  pointer-events: none;
}

.obi-strip {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%) translateZ(18px);
  transform-style: preserve-3d;
  background: linear-gradient(180deg, #231318 0%, #170C10 100%);
  border-top: 1px solid rgba(222, 172, 98, 0.35);
  border-bottom: 1px solid rgba(222, 172, 98, 0.35);
  box-shadow: 
    0 12px 28px -4px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(254, 243, 199, 0.12);
  padding: 10px 14px;
  z-index: 10;
}

.obi-wing {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: inherit;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  z-index: 1;
}

.obi-wing-left {
  left: 0;
  transform-origin: left center;
}

.obi-wing-right {
  right: 0;
  transform-origin: right center;
}

.obi-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateZ(8px);
}

.gold-foil-text {
  background: linear-gradient(135deg, #FFF1D6 0%, #E2B16B 45%, #9E6B28 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.obi-perforation-line {
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(222, 172, 98, 0.75) 0px,
    rgba(222, 172, 98, 0.75) 4px,
    transparent 4px,
    transparent 8px
  );
  margin-top: 5px;
}

.sleeve-global-glare {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  z-index: 25;
  transform: translateZ(32px);
  background: 
    radial-gradient(
      circle 340px at var(--glare-x, 50%) var(--glare-y, 35%),
      rgba(253, 186, 116, 0.3) 0%,
      rgba(251, 191, 36, 0.08) 32%,
      transparent 80%
    );
  mix-blend-mode: screen;
  opacity: var(--glare-opacity, 0.3);
  transition: opacity 0.4s ease;
}

.stage-contact-shadow {
  width: 72%;
  height: 10px;
  margin: 0 auto;
  margin-top: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.98) 0%, rgba(12, 4, 6, 0.7) 45%, transparent 75%);
}

.stage-glass-reflection {
  width: 90%;
  height: 25px;
  margin: 0 auto;
  background: radial-gradient(ellipse at center, rgba(222, 172, 98, 0.05) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   7. VUMÈTRE VINYLE D'ÉNERGIE
   -------------------------------------------------------------------------- */
.vinyl-energy-gauge {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vinyl-slots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 4px 0;
  user-select: none;
}

.vinyl-slot {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .vinyl-slot {
    width: 34px;
    height: 34px;
  }
}

.slot-progress-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
  z-index: 2;
}

.slot-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 2;
}

.slot-fill {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 94.25px;
  stroke-dashoffset: 94.25px;
  transition: stroke-dashoffset 0.8s ease-out;
}

.slot-disc {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0d090b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, filter 0.3s ease;
  z-index: 1;
}

@media (min-width: 640px) {
  .slot-disc {
    width: 26px;
    height: 26px;
  }
}

.disc-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 45deg,
    #1c1418 0deg,
    #0d090b 60deg,
    #2c1f25 120deg,
    #0d090b 180deg,
    #1c1418 240deg,
    #0d090b 300deg,
    #2c1f25 360deg
  );
  opacity: 0.75;
}

.disc-label {
  position: relative;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde68a 0%, #b45309 90%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.disc-spindle {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #07080a;
}

.vinyl-slot.is-ready .slot-disc {
  animation: discSpin33 4s linear infinite;
  box-shadow: 0 0 8px rgba(185, 28, 28, 0.45);
}

.vinyl-slot.is-ready .slot-fill {
  stroke: var(--accent-ruby);
}

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

.vinyl-slot.is-charging .slot-disc {
  opacity: 0.75;
  filter: grayscale(0.4);
}

.vinyl-slot.is-charging .disc-label {
  background: radial-gradient(circle, #78716c 0%, #292524 90%);
}

.vinyl-slot.is-idle .slot-disc {
  opacity: 0.25;
  filter: grayscale(1);
}

.vinyl-slot.is-idle .disc-label {
  background: #1c1917;
}

.vinyl-slot.is-idle .slot-fill {
  stroke: transparent;
}

/* --------------------------------------------------------------------------
   8. PANNEAUX VITRINE & ARRIVAGES
   -------------------------------------------------------------------------- */
.split-card-panel {
  background: #140E12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 
    0 10px 24px -6px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.split-card-panel:hover {
  border-color: rgba(222, 172, 98, 0.35);
}

#showcase-mini-slot .summary-vinyl-card {
  width: 100%;
  margin: 0;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#showcase-mini-slot:hover .summary-vinyl-card {
  transform: scale(1.05) rotate(2deg);
}

#showcase-mini-slot .summary-vinyl-card .text-center {
  display: none !important;
}

/* --------------------------------------------------------------------------
   9. CINÉMATIQUE D'OUVERTURE DE PACK
   -------------------------------------------------------------------------- */
[data-booster-state="TEARING"] #booster-stage {
  pointer-events: none;
}

.booster-charging #collector-sleeve {
  animation: sleeveChargeHold 1.2s ease-in-out infinite alternate;
}

@keyframes sleeveChargeHold {
  0% { transform: scale(1.02) rotateX(-2deg); }
  100% { transform: scale(1.04) rotateX(3deg); }
}

.booster-charging .obi-perforation-line {
  background-color: #ffffff;
  box-shadow: 0 0 12px 2px rgba(251, 191, 36, 0.85);
}

.booster-ripping #collector-sleeve {
  animation: sleeveRuptureRecoil 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sleeveRuptureRecoil {
  0% { transform: scale(1.05) rotateX(4deg); }
  25% { transform: scale(1.07) rotateX(-8deg); }
  60% { transform: scale(1.03) rotateX(12deg); opacity: 0.9; }
  100% { transform: scale(0.95) translateY(30px) rotateX(16deg); opacity: 0; }
}

.booster-ripping .obi-wing-left {
  transform: rotateY(-45deg) translateX(-18px) scale(0.95);
  opacity: 0;
}

.booster-ripping .obi-wing-right {
  transform: rotateY(45deg) translateX(18px) scale(0.95);
  opacity: 0;
}

.booster-ripping .obi-content {
  opacity: 0;
  transform: translateZ(20px) scale(1.1);
  transition: all 0.4s ease-out;
}

.booster-ripping .sleeve-inner-extract {
  opacity: 1;
  animation: vinylEjectionLaunch 0.75s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes vinylEjectionLaunch {
  0% { opacity: 0; transform: translateY(20px) translateZ(8px) scale(0.94); }
  80% { opacity: 1; transform: translateY(-135px) translateZ(45px) scale(1.05); }
  100% { opacity: 1; transform: translateY(-160px) translateZ(65px) scale(1.08); }
}

.gold-spark-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-gold);
  box-shadow: 0 0 4px var(--accent-gold);
  border-radius: 1px;
  pointer-events: none;
  z-index: 40;
  transition: transform 0.6s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.5s ease-out;
}

/* --------------------------------------------------------------------------
   10. VIGNETTES DU BAC & BILAN
   -------------------------------------------------------------------------- */
.summary-vinyl-card {
  width: 100%;
  min-width: 0;
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.summary-vinyl-card:active {
  transform: scale(0.96);
}

@media (hover: hover) {
  .summary-vinyl-card:hover {
    transform: translateY(-4px) scale(1.02);
  }
}

.summary-vinyl-card .vinyl-sleeve {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-carbon);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
  isolation: isolate;
}

.summary-vinyl-card .vinyl-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.summary-vinyl-card .vinyl-cover-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   11. CONTRÔLEUR D'ÉTAT & NAVIGATION
   -------------------------------------------------------------------------- */
#start-view,
#reveal-view,
#summary-view {
  display: none !important;
}

[data-booster-state="IDLE"] #start-view,
[data-booster-state="TEARING"] #start-view {
  display: flex !important;
}

[data-booster-state="REVEALING"] #reveal-view {
  display: flex !important;
}

[data-booster-state="SUMMARY"] #summary-view {
  display: flex !important;
}

/* Visibilité Authentifié vs Invité */
#desktop-sidebar,
#mobile-dock,
header.mobile-header-bar {
  display: none;
}

body.is-authenticated #mobile-dock {
  display: flex;
}

@media (max-width: 767px) {
  body.is-authenticated header.mobile-header-bar {
    display: flex;
  }
}

@media (min-width: 768px) {
  body.is-authenticated #desktop-sidebar {
    display: flex;
  }
  body.is-authenticated #mobile-dock {
    display: none;
  }
}