@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

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

body {
  background: radial-gradient(ellipse at 50% 20%, rgba(139, 92, 246, 0.2) 0%, rgba(15, 7, 27, 0) 70%),
              linear-gradient(180deg, #1e0e33 0%, #0f071b 100%);
  background-attachment: fixed;
  background-color: #0f071b;
  color: #ccd6f6;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 680px;
  width: 100%;
  margin: auto 0;
}

.logo {
  max-width: 440px;
  width: 85%;
  height: auto;
  margin-top: -30px;
  margin-bottom: 40px;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
}

.status-text {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f1f5f9;
  margin: 0 auto 16px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 0.35em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.status-text strong {
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.status-text .word {
  display: inline-flex;
  white-space: nowrap;
}

.status-text .word span {
  display: inline-block;
  animation: waveFloat 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.065s);
}

.telegram-link {
  display: inline-block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #c084fc;
  text-decoration: none;
  margin: 0 auto;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.telegram-link:hover {
  color: #e9d5ff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Rei High GIF in bottom right corner */
.rei-gif {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 240px;
  height: 240px;
  max-width: 45vw;
  max-height: 45vw;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transform-origin: bottom right;
  transition: opacity 0.08s ease-out;
  will-change: transform, opacity;
}

/* Explosion GIF */
.explosion-gif {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 260px;
  height: 260px;
  max-width: 50vw;
  max-height: 50vw;
  object-fit: contain;
  pointer-events: none;
  z-index: 60;
  transform-origin: bottom right;
}

/* Jumpscare Overlay */
.jumpscare-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  overflow: hidden;
  pointer-events: none;
}

.jumpscare-overlay.active {
  display: flex;
}

.jumpscare-overlay.active .jumpscare-img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  will-change: transform, opacity;
  animation: jumpscareGrowFade var(--jumpscare-duration, 0.76s) cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
}

@keyframes jumpscareGrowFade {
  0% {
    transform: scale(0.12);
    opacity: 1;
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes waveFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 600px) {
  .logo {
    max-width: 320px;
    width: 90%;
    margin-top: 0;
    margin-bottom: 28px;
  }

  .status-text {
    font-size: 1.35rem;
    margin-bottom: 14px;
  }

  .telegram-link {
    font-size: 0.75rem;
  }

  .rei-gif {
    width: 170px;
    height: 170px;
  }

  .explosion-gif {
    width: 190px;
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-text .word span {
    animation: none !important;
  }
}
