@font-face {
  font-family: 'OverchargeFont';
  src: url('https://image2url.com/r2/default/files/1770940194154-cd357966-d7bb-42df-8d4d-cac3f9712447.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-deep: #0a0a1a;
  --bg-panel: #0f0f2a;
  --neon-blue: #00d4ff;
  --neon-yellow: #ffe600;
  --neon-pink: #ff00aa;
  --neon-green: #00ff88;
  --neon-orange: #ff6600;
  --neon-red: #ff2244;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden;
  background: var(--bg-deep);
  font-family: 'OverchargeFont', 'Impact', 'Arial Black', sans-serif;
  color: #fff;
  min-height: 100vh;
  user-select: none;
}

#root {
  position: relative;
  z-index: 1;
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

@keyframes pulse-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

@keyframes float-up {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-120px) scale(1.5); }
}

@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-4px, -2px); }
  20% { transform: translate(4px, 2px); }
  30% { transform: translate(-3px, 3px); }
  40% { transform: translate(3px, -3px); }
  50% { transform: translate(-2px, 2px); }
  60% { transform: translate(2px, -2px); }
  70% { transform: translate(-4px, 1px); }
  80% { transform: translate(4px, -1px); }
  90% { transform: translate(-1px, 3px); }
}

@keyframes battery-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes rainbow-shift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes spark-fly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0); }
}

@keyframes slide-in-right {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slide-out-right {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes bulge {
  0%, 100% { border-radius: 16px; }
  50% { border-radius: 20px 12px 20px 12px; }
}

@keyframes lightning-flash {
  0% { opacity: 0; }
  10% { opacity: 1; }
  20% { opacity: 0; }
  30% { opacity: 0.8; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

.font-overcharge {
  font-family: 'OverchargeFont', 'Impact', 'Arial Black', sans-serif;
}

.screen-shake {
  animation: shake 0.3s ease-in-out;
}

.float-number {
  animation: float-up 1s ease-out forwards;
  pointer-events: none;
  position: absolute;
  z-index: 20;
  font-family: 'OverchargeFont', 'Impact', 'Arial Black', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 10px currentColor;
}

.battery-container {
  position: relative;
  cursor: pointer;
  transition: transform 0.1s;
}

.battery-container:active {
  transform: scale(0.95);
}

.shop-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 90vw);
  background: linear-gradient(135deg, #0d0d2e, #1a0a2e);
  border-left: 2px solid var(--neon-blue);
  box-shadow: -10px 0 40px rgba(0, 212, 255, 0.15);
  z-index: 100;
  overflow-y: auto;
  animation: slide-in-right 0.3s ease-out;
}

.shop-overlay.closing {
  animation: slide-out-right 0.3s ease-in forwards;
}

.shop-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  transition: all 0.2s;
  cursor: pointer;
}

.shop-item:hover:not(.disabled) {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--neon-blue);
  transform: translateX(-4px);
}

.shop-item.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.shop-item:active:not(.disabled) {
  transform: scale(0.97);
}

.btn-shop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  padding: 14px 28px;
  font-family: 'OverchargeFont', 'Impact', 'Arial Black', sans-serif;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #1a0a3a, #0d0d2e);
  border: 2px solid var(--neon-blue);
  color: var(--neon-blue);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  letter-spacing: 2px;
}

.btn-shop:hover {
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  transform: scale(1.05);
}

.btn-shop:active {
  transform: scale(0.95);
}

.backdrop-blur {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 90;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 3px;
}

@media (max-width: 640px) {
  .shop-overlay {
    width: 100vw;
    border-left: none;
    border-top: 2px solid var(--neon-blue);
  }
  .btn-shop {
    bottom: 16px;
    right: 16px;
    padding: 12px 20px;
    font-size: 1rem;
  }
}