/* ============================================================================
   HYPER SMASH ARENA: ULTIMATE 2D — CUSTOM STYLING & HUD ARCHITECTURE
   ============================================================================ */

:root {
  --font-display: 'Orbitron', sans-serif;
  --font-heading: 'Chakra Petch', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

body {
  font-family: var(--font-body);
  background: #020617;
  color: #f8fafc;
  margin: 0;
  padding: 0;
  overflow: hidden;
  touch-action: none;
}

.font-display {
  font-family: var(--font-display);
}

.font-heading {
  font-family: var(--font-heading);
}

/* Skewed Esport Panels (Smash Ultimate / Guilty Gear Strive Aesthetic) */
.smash-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(2, 6, 23, 0.96) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.7), 0 0 20px rgba(14, 165, 233, 0.15);
  backdrop-filter: blur(12px);
}

.smash-btn {
  position: relative;
  transform: skewX(-8deg);
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.smash-btn > * {
  transform: skewX(8deg);
}

.smash-btn:hover {
  transform: skewX(-8deg) translateY(-2px) scale(1.02);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.55);
}

.smash-btn:active {
  transform: skewX(-8deg) translateY(1px) scale(0.98);
}

/* Fighter Card Hover Glow */
.fighter-card {
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.fighter-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.fighter-card.selected {
  box-shadow: 0 0 28px var(--fighter-color, #38bdf8), inset 0 0 18px var(--fighter-color, #38bdf8);
  border-color: var(--fighter-color, #38bdf8) !important;
}

/* Damage Percentage Counter Pop Animation */
@keyframes damageShake {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(-4px, -3px) scale(1.18); }
  40% { transform: translate(4px, 2px) scale(1.12); }
  60% { transform: translate(-3px, 3px) scale(1.06); }
  80% { transform: translate(2px, -2px) scale(1.02); }
}

.damage-pop {
  animation: damageShake 0.25s ease-out;
}

/* Final Smash Ready Rainbow / Neon Pulse */
@keyframes smashPulse {
  0%, 100% {
    box-shadow: 0 0 14px #f59e0b, 0 0 28px #ef4444;
    filter: brightness(1.1);
  }
  50% {
    box-shadow: 0 0 24px #38bdf8, 0 0 45px #a855f7;
    filter: brightness(1.35);
  }
}

.final-smash-ready {
  animation: smashPulse 1.1s infinite ease-in-out;
}

/* Custom Scrollbars for Modals / Move Lists / Lobbies */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.45);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.8);
}

/* Touch Controls Styling */
.touch-action-btn {
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  transition: transform 0.06s ease, background-color 0.06s ease;
}

.touch-action-btn.pressed {
  transform: scale(0.88);
  filter: brightness(1.35);
}
