* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #root { width: 100%; height: 100%; overflow: hidden; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 20px rgba(0,212,255,0.5), 0 0 40px rgba(123,47,247,0.3); }
  50% { text-shadow: 0 0 30px rgba(0,212,255,0.8), 0 0 60px rgba(123,47,247,0.5), 0 0 80px rgba(255,60,172,0.2); }
}
@keyframes typewriter-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes slide-in-left {
  from { transform: translateX(-120px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slide-in-right {
  from { transform: translateX(120px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes screen-shake {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-3px, 2px); }
  20% { transform: translate(3px, -2px); }
  30% { transform: translate(-2px, 3px); }
  40% { transform: translate(2px, -3px); }
  50% { transform: translate(-3px, 1px); }
  60% { transform: translate(3px, -1px); }
  70% { transform: translate(-1px, 3px); }
  80% { transform: translate(1px, -3px); }
  90% { transform: translate(-2px, 2px); }
}
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
@keyframes particle-drift {
  0% { transform: translate(0,0) scale(1); opacity: 0.6; }
  50% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; }
}
@keyframes choice-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0,212,255,0.3); }
  50% { box-shadow: 0 0 20px rgba(0,212,255,0.6), 0 0 30px rgba(123,47,247,0.3); }
}

.glow-title { animation: glow-pulse 3s ease-in-out infinite; }
.bounce-arrow { animation: bounce-arrow 1s ease-in-out infinite; }
.slide-left { animation: slide-in-left 0.5s ease-out forwards; }
.slide-right { animation: slide-in-right 0.5s ease-out forwards; }
.fade-in { animation: fade-in 0.8s ease-out forwards; }
.fade-in-up { animation: fade-in-up 0.6s ease-out forwards; }
.screen-shake { animation: screen-shake 0.4s ease-out; }
.choice-hover:hover { animation: choice-glow 1.5s ease-in-out infinite; }

.glass {
  background: rgba(13,17,23,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
}
.glass-light {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
}

.dialogue-box {
  background: linear-gradient(135deg, rgba(13,17,23,0.85), rgba(22,27,34,0.9));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.scanline::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(0,212,255,0.1);
  animation: scanline 4s linear infinite;
  pointer-events: none;
}

.phone-screen {
  background: linear-gradient(180deg, #1a1a2e 0%, #0d1117 100%);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.3);
}

.stat-bar-bg {
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
}
.stat-bar-fill {
  border-radius: 999px;
  transition: width 0.8s ease-out;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 999px; }