* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: linear-gradient(135deg, #0a0e17 0%, #1a1f35 100%);
  color: #ffffff;
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  flex: 1;
}

.header {
  text-align: center;
  padding: 20px 0;
  width: 100%;
  flex-shrink: 0;
}

#balance {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

.energy-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  width: 100%;
  transition: width 0.3s ease;
}

#energy-text {
  font-size: 0.85rem;
  color: #a0aec0;
}

.tap-area {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}

#character {
  width: 280px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.5));
  transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  z-index: 1;
  user-drag: none;
  -webkit-user-drag: none;
}

#character:active {
  transform: scale(0.93);
}

.footer {
  display: flex;
  gap: 15px;
  width: 100%;
  padding: 20px 0;
  flex-shrink: 0;
}

.btn {
  flex: 1;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.97);
}

.float-text {
  position: absolute !important;
  font-weight: 900 !important;
  font-size: 3rem !important;
  color: #ffffff !important;
  text-shadow: 
    0 0 15px #00f2fe !important,
    0 0 30px #00f2fe !important,
    0 0 60px #4facfe !important,
    0 0 90px #ffffff !important;
  pointer-events: none !important;
  animation: floatUp 1s ease-out forwards !important;
  z-index: 9999 !important;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(2); }
}

.particle {
  position: absolute !important;
  width: 12px !important;
  height: 12px !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 
    0 0 15px #00f2fe !important,
    0 0 30px #4facfe !important,
    0 0 45px #ffffff !important;
  pointer-events: none !important;
  animation: burst 0.8s ease-out forwards !important;
  z-index: 9998 !important;
}

@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}