/* ==========================================================================
   ANIME VERSE — STYLESHEET OFICIAL (v1.0)
   Separação modular de estilos, efeitos 3D Tilt, Foil Holográfico e Animações
   ========================================================================== */

:root {
  --bg-deep: #050b14;
  --bg-panel: rgba(13, 25, 43, 0.85);
  --border-glow: rgba(120, 170, 255, 0.16);
  --gold: #fbbf24;
  --epic: #c084fc;
  --rare: #38bdf8;
  --common: #94a3b8;
}

* {
  box-sizing: border-box;
  user-select: none;
}

body {
  margin: 0;
  background: 
    radial-gradient(circle at 85% 10%, rgba(124, 58, 237, 0.22), transparent 35%),
    radial-gradient(circle at 15% 85%, rgba(56, 189, 248, 0.16), transparent 35%),
    linear-gradient(180deg, #040911 0%, #091323 50%, #050b14 100%);
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #050b14;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* 3D Holographic Card Effects */
.card-3d-wrapper {
  perspective: 1000px;
}

.tcg-card {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 29, 50, 0.96), rgba(8, 15, 28, 0.98));
  transition: transform 0.15s ease-out, box-shadow 0.25s ease;
  transform-style: preserve-3d;
  overflow: hidden;
  cursor: pointer;
}

.tcg-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.22),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 15;
  mix-blend-mode: overlay;
}

.tcg-card:hover::before {
  opacity: 1;
}

/* Molduras e Brilhos por Raridade */
.rarity-common {
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.rarity-rare {
  border: 1.5px solid rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18), inset 0 0 15px rgba(56, 189, 248, 0.12);
}

.rarity-epic {
  border: 1.5px solid rgba(192, 132, 252, 0.75);
  box-shadow: 0 0 25px rgba(192, 132, 252, 0.25), inset 0 0 18px rgba(192, 132, 252, 0.15);
}

.rarity-legendary {
  border: 2px solid rgba(251, 191, 36, 0.9);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.35), inset 0 0 22px rgba(251, 191, 36, 0.22);
}

/* Reflexo Holográfico para Épicas e Lendárias */
.holo-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 215, 0, 0.15) 36%,
    rgba(56, 189, 248, 0.2) 45%,
    rgba(192, 132, 252, 0.2) 54%,
    transparent 70%
  );
  background-size: 250% 250%;
  animation: holoShift 5s ease infinite;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: color-dodge;
}

@keyframes holoShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Estado de Figurinha Bloqueada (Faltante) */
.card-locked .card-art-img {
  filter: grayscale(1) brightness(0.22) contrast(1.1) blur(1.5px);
}

/* Animação do Booster Flutuante */
@keyframes floatBooster {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}
.booster-float {
  animation: floatBooster 3.2s ease-in-out infinite;
}

@keyframes shakePack {
  0%, 100% { transform: scale(1.08) rotate(0deg); }
  20% { transform: scale(1.12) rotate(-6deg); }
  40% { transform: scale(1.15) rotate(6deg); }
  60% { transform: scale(1.18) rotate(-8deg); }
  80% { transform: scale(1.22) rotate(8deg); }
}
.booster-opening {
  animation: shakePack 0.7s ease-in-out forwards;
}

/* Animação Flip 3D ao Revelar Carta */
.reveal-card-anim {
  animation: popInCard 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes popInCard {
  0% { opacity: 0; transform: translateY(40px) scale(0.75) rotateY(90deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotateY(0deg); }
}