/**
 * ============================================================================
 * LEBUS: MERGE BATTLE ARENA PvP — STYLESHEET
 * ============================================================================
 */

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

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #1e1b4b 0%, #0f172a 55%, #020617 100%);
  color: #f8fafc;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Gradients */
.gold-gradient { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }
.emerald-gradient { background: linear-gradient(135deg, #34d399 0%, #059669 100%); }
.astral-gradient { background: linear-gradient(135deg, #c084fc 0%, #6366f1 50%, #ec4899 100%); }
.legendary-gradient { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.epic-gradient { background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%); }
.rare-gradient { background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%); }

/* Card Glows */
.card-glow-astral { box-shadow: 0 0 16px rgba(192, 132, 252, 0.55); }
.card-glow-legendary { box-shadow: 0 0 14px rgba(245, 158, 11, 0.5); }
.card-glow-epic { box-shadow: 0 0 12px rgba(168, 85, 247, 0.45); }
.card-glow-rare { box-shadow: 0 0 10px rgba(56, 189, 248, 0.4); }

/* Keyframe Animations */
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.18); }
}

.animate-super {
  animation: pulseGlow 1.5s infinite ease-in-out;
}

/* Touch & Canvas */
canvas {
  touch-action: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}
/* Shared, locally hosted anime card atlas: four columns, seven rows. */
.anime-portrait {
  display: block;
  aspect-ratio: 1;
  flex-shrink: 0;
  background-image: url('../assets/hero-anime-atlas.png');
  background-size: 430.9091% 754.0909%;
  background-position: var(--portrait-x) var(--portrait-y);
  background-repeat: no-repeat;
  background-color: #111827;
  border: 1px solid var(--hero-color, #64748b);
  border-radius: 12px;
  box-shadow: inset 0 0 16px #02061744, 0 4px 12px #02061766;
  image-rendering: auto;
}
.anime-portrait-mini { width: 44px; margin: 4px auto; border-radius: 8px; }
.anime-portrait-deck { width: 100%; max-width: 138px; margin: 10px auto; }
.anime-collection-frame { width: 76px; height: 76px; display: grid; place-items: center; }
.anime-portrait-collection { width: 76px; }
.anime-portrait-locked { filter: saturate(.35) brightness(.65); }
.anime-portrait-chronos {
  background-image: url('../assets/hero-chronos.png') !important;
  background-size: 118% 118% !important;
  background-position: center 32% !important;
}
@media (max-width: 480px) {
  .anime-collection-frame { width: 56px; height: 56px; }
  .anime-portrait-collection { width: 56px; }
  .anime-portrait-deck { border-radius: 8px; }
}
