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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  overflow: hidden;
}

.shake {
  animation: shake 0.1s infinite;
}

@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-5px, 5px); }
  50% { transform: translate(5px, -5px); }
  75% { transform: translate(-5px, -5px); }
}

.glitch {
  animation: glitch 0.3s infinite;
}

@keyframes glitch {
  0% { filter: hue-rotate(0deg); }
  33% { filter: hue-rotate(120deg); }
  66% { filter: hue-rotate(240deg); }
  100% { filter: hue-rotate(360deg); }
}

.rotate-crazy {
  animation: rotate-crazy 2s linear infinite;
}

@keyframes rotate-crazy {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-gradient {
  background-size: 400% 400%;
  animation: gradient 3s ease infinite;
}

.animate-gradient-fast {
  background-size: 400% 400%;
  animation: gradient 1s ease infinite;
}

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

.main-button {
  padding: 2rem 4rem;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all 0.2s;
  z-index: 15;
}

.main-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.main-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.rainbow-button {
  background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  background-size: 400% 400%;
  animation: rainbow 2s ease infinite;
}

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

.shake-button {
  animation: shake-button 0.5s infinite;
}

@keyframes shake-button {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  25% { transform: translate(-50%, -50%) rotate(-2deg); }
  75% { transform: translate(-50%, -50%) rotate(2deg); }
}

.mega-button {
  font-size: 2.5rem;
  text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.6);
  animation: pulse-glow 1s ease infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0.5), 0 0 40px rgba(255,0,255,0.5); }
  50% { box-shadow: 0 0 30px rgba(255,255,255,0.8), 0 0 60px rgba(255,0,255,0.8); }
}

.decoy-button {
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  background: linear-gradient(45deg, #666, #999);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  opacity: 0.7;
  animation: fade-in-out 2s ease;
  z-index: 14;
}

@keyframes fade-in-out {
  0% { opacity: 0; }
  50% { opacity: 0.7; }
  100% { opacity: 0; }
}

.achievement {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: slide-in 0.5s ease, slide-out 0.5s ease 2.5s;
  z-index: 30;
}

@keyframes slide-in {
  from {
    transform: translateY(-50%) translateX(200%);
  }
  to {
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes slide-out {
  from {
    transform: translateY(-50%) translateX(0);
  }
  to {
    transform: translateY(-50%) translateX(200%);
  }
}

.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  animation: float-away 1s ease-out forwards;
  z-index: 25;
}

@keyframes float-away {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0), var(--ty, -100px)) scale(0);
  }
}