* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #root {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

@keyframes typewriter-cursor {
  0%, 50% { border-right-color: rgba(255,255,255,0.8); }
  51%, 100% { border-right-color: transparent; }
}

@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 20px rgba(255,50,50,0.5), 0 0 40px rgba(255,50,50,0.3); }
  50% { text-shadow: 0 0 40px rgba(255,50,50,0.8), 0 0 80px rgba(255,50,50,0.5), 0 0 120px rgba(255,50,50,0.3); }
}

@keyframes berry-bounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.3) rotate(-10deg); }
  50% { transform: scale(1) rotate(0deg); }
  75% { transform: scale(1.2) rotate(10deg); }
}

@keyframes confetti-fall {
  0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(-5px, 2px); }
  40% { clip-path: inset(50% 0 20% 0); transform: translate(5px, -2px); }
  60% { clip-path: inset(10% 0 70% 0); transform: translate(-3px, 1px); }
  80% { clip-path: inset(70% 0 5% 0); transform: translate(3px, -1px); }
}

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

@keyframes scale-reveal {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(10deg); opacity: 1; }
  80% { transform: scale(0.95) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes float-berry {
  0% { transform: translateY(110vh) translateX(0) rotate(0deg); opacity: 0; }
  5% { opacity: 0.7; }
  50% { transform: translateY(50vh) translateX(30px) rotate(180deg); opacity: 0.7; }
  95% { opacity: 0.7; }
  100% { transform: translateY(-10vh) translateX(-20px) rotate(360deg); opacity: 0; }
}

@keyframes dissolve {
  0% { filter: blur(0px); opacity: 1; }
  50% { filter: blur(2px); opacity: 0.7; }
  100% { filter: blur(0px); opacity: 1; }
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scan-line {
  0% { top: -10%; }
  100% { top: 110%; }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes tombstone-rise {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes shrug-float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes letterbox-in {
  0% { height: 0; }
  100% { height: 6vh; }
}

@keyframes sparkle-burst {
  0% { transform: scale(0); opacity: 1; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  color: #ff0040;
  animation: glitch-1 0.3s infinite linear alternate-reverse;
  z-index: -1;
}

.glitch-text::after {
  color: #00ffff;
  animation: glitch-1 0.3s infinite linear alternate-reverse;
  animation-delay: 0.15s;
  z-index: -1;
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    #ffd700 0%,
    #fff 20%,
    #ffd700 40%,
    #ff6b9d 60%,
    #ffd700 80%,
    #fff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}