* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Quicksand', sans-serif;
  background: #0a0e1a;
  color: #e0e6f0;
  min-height: 100vh;
  overflow-x: hidden;
}

.font-pixel { font-family: 'Press Start 2P', monospace; }
.font-body { font-family: 'Quicksand', sans-serif; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255,255,255,0.1); }
  50% { box-shadow: 0 0 25px rgba(100,180,255,0.3); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}
@keyframes flash-white {
  0% { opacity: 0; }
  50% { opacity: 0.6; }
  100% { opacity: 0; }
}
@keyframes slide-in-right {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slide-in-left {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slide-out-right {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100px); opacity: 0; }
}
@keyframes typewriter-blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #e0e6f0; }
}
@keyframes confetti-fall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes bg-drift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
@keyframes star-twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-shake { animation: shake 0.4s ease-in-out; }
.animate-flash { animation: flash-white 0.3s ease-out; }
.animate-slide-in-r { animation: slide-in-right 0.4s ease-out; }
.animate-slide-in-l { animation: slide-in-left 0.4s ease-out; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-fade-in { animation: fade-in 0.4s ease-out; }

.bg-arena {
  background: linear-gradient(135deg, #0a0e1a 0%, #141830 30%, #1a1040 60%, #0a0e1a 100%);
  background-size: 400% 400%;
  animation: bg-drift 15s ease infinite;
}

.scanline-overlay {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  z-index: 9999;
}

.hp-bar-container {
  background: #1a1e2e;
  border-radius: 4px;
  overflow: hidden;
  height: 10px;
  border: 1px solid #2a2e3e;
}
.hp-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease-out, background-color 0.5s;
}

.type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.card-glass {
  background: rgba(20, 24, 48, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 120, 180, 0.2);
  border-radius: 12px;
}

.btn-action {
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.btn-action:active {
  transform: translateY(0);
}

.pokemon-sprite {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0e1a; }
::-webkit-scrollbar-thumb { background: #2a3050; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a4060; }