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

:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --accent: #f093fb;
  --dark: #1a1a2e;
  --light: #ffffff;
  --friday-gold: #ffd700;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  overflow-x: hidden;
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    #16213e 50%,
    var(--dark) 100%
  );
  min-height: 100vh;
  color: var(--light);
}

/* Animated starfield background */
.stars,
.stars2,
.stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stars {
  background: transparent
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><circle cx="1" cy="1" r="1" fill="white" opacity="0.8"/></svg>')
    repeat;
  animation: animateStars 50s linear infinite;
}

.stars2 {
  background: transparent
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="3"><circle cx="1.5" cy="1.5" r="1" fill="white" opacity="0.6"/></svg>')
    repeat;
  animation: animateStars 100s linear infinite;
}

.stars3 {
  background: transparent
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><circle cx="2" cy="2" r="1.5" fill="white" opacity="0.4"/></svg>')
    repeat;
  animation: animateStars 150s linear infinite;
}

@keyframes animateStars {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-2000px);
  }
}

.container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.content {
  text-align: center;
  position: relative;
  z-index: 10;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #f093fb 25%,
    #4facfe 50%,
    #00f2fe 75%,
    #667eea 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.7))
    drop-shadow(0 0 60px rgba(240, 147, 251, 0.5));
}

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

.wave {
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
}

.wave:nth-child(1) {
  animation-delay: 0s;
}
.wave:nth-child(2) {
  animation-delay: 0.1s;
}
.wave:nth-child(3) {
  animation-delay: 0.2s;
}
.wave:nth-child(4) {
  animation-delay: 0.3s;
}
.wave:nth-child(5) {
  animation-delay: 0.4s;
}
.wave:nth-child(6) {
  animation-delay: 0.5s;
}
.wave:nth-child(7) {
  animation-delay: 0.6s;
}
.wave:nth-child(8) {
  animation-delay: 0.7s;
}
.wave:nth-child(9) {
  animation-delay: 0.8s;
}
.wave:nth-child(10) {
  animation-delay: 0.9s;
}
.wave:nth-child(11) {
  animation-delay: 1s;
}
.wave:nth-child(12) {
  animation-delay: 1.1s;
}
.wave:nth-child(13) {
  animation-delay: 1.2s;
}

@keyframes wave {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(-5deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(102, 126, 234, 0.3);
}

.interactive-zone {
  margin: 3rem 0;
}

.magic-button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.magic-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.magic-button:hover::before {
  width: 300px;
  height: 300px;
}

.magic-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 60px rgba(102, 126, 234, 0.6);
}

.magic-button:active {
  transform: translateY(-2px);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

/* Friday Cookie Easter Egg */
.cookie-monster {
  position: fixed;
  bottom: -300px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  padding: 2rem 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 80px rgba(102, 126, 234, 0.8),
    0 10px 40px rgba(240, 147, 251, 0.6);
  z-index: 1000;
  transition: bottom 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-align: center;
  max-width: 90vw;
}

.cookie-monster.show {
  bottom: 30px;
  animation: shake 0.5s ease-in-out 0.8s, pulse 2s ease-in-out 1.3s infinite,
    gradientShift 4s ease infinite;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(50%) rotate(0deg) scale(1);
  }
  25% {
    transform: translateX(50%) rotate(-5deg) scale(1.05);
  }
  75% {
    transform: translateX(50%) rotate(5deg) scale(1.05);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translateX(50%) scale(1);
  }
  50% {
    transform: translateX(50%) scale(1.05);
  }
}

.cookie {
  font-size: 5rem;
  animation: cookieSpin 3s ease-in-out infinite,
    cookieBounce 1s ease-in-out infinite;
  display: inline-block;
}

@keyframes cookieSpin {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(360deg);
  }
}

@keyframes cookieBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(90deg);
  }
  50% {
    transform: translateY(0) rotate(180deg);
  }
  75% {
    transform: translateY(-10px) rotate(270deg);
  }
}

.cookie-message {
  color: var(--light);
}

.cookie-message h2 {
  font-size: 2rem;
  margin: 1rem 0 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
  0%,
  100% {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
      0 2px 10px rgba(0, 0, 0, 0.5);
  }
}

.cookie-message p {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.cookie-flavor {
  font-style: italic;
  opacity: 0.9;
  font-size: 1rem !important;
}

/* Particle effects */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .stats {
    gap: 2rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .magic-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}
