:root {
  --void: #050508;
  --ink: #0b0b12;
  --panel: #0e0d16;
  --text: #f4efff;
  --muted: #b8adc9;
  --soft: #8f85a5;
  --violet-1: #dcbeff;
  --violet-2: #a65dff;
  --violet-3: #723bff;
  --border-glow: rgba(166, 93, 255, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -12%, #1a1231 0%, var(--void) 42%, #020204 100%);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  display: grid;
  grid-template-rows: 1fr auto;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-stars {
  opacity: 0.28;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(220, 190, 255, 0.8), transparent 70%),
    radial-gradient(2px 2px at 76% 18%, rgba(220, 190, 255, 0.65), transparent 70%),
    radial-gradient(2px 2px at 60% 64%, rgba(220, 190, 255, 0.55), transparent 70%),
    radial-gradient(1.5px 1.5px at 30% 78%, rgba(220, 190, 255, 0.6), transparent 70%);
  animation: stars-float 13s linear infinite;
}

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(166, 93, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(166, 93, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 56%, transparent 100%);
  opacity: 0.46;
  animation: grid-slide 14s linear infinite;
}

.bg-orb {
  background:
    radial-gradient(circle at 15% 18%, rgba(166, 93, 255, 0.22), transparent 42%),
    radial-gradient(circle at 78% 22%, rgba(114, 59, 255, 0.18), transparent 42%),
    radial-gradient(circle at 50% 75%, rgba(103, 57, 177, 0.12), transparent 45%);
  filter: blur(16px);
  animation: orb-breathe 9s ease-in-out infinite alternate;
}

.page-shell {
  padding: 4rem 1rem 1.5rem;
  display: grid;
  place-items: center;
}

.hero-card {
  width: min(92vw, 820px);
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--border-glow);
  background:
    linear-gradient(145deg, rgba(18, 16, 28, 0.9), rgba(8, 7, 12, 0.95)),
    radial-gradient(circle at 50% -20%, rgba(220, 190, 255, 0.1), transparent 55%);
  box-shadow:
    0 0 22px rgba(166, 93, 255, 0.35),
    0 0 90px rgba(114, 59, 255, 0.14),
    inset 0 0 40px rgba(166, 93, 255, 0.06);
  padding: 2.5rem 1.8rem 2.1rem;
  animation: card-rise 900ms ease-out both;
}

.logo-wrap {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(166, 93, 255, 0.24), rgba(8, 6, 12, 0.08) 62%, transparent 76%);
  box-shadow: 0 0 28px rgba(166, 93, 255, 0.35);
}

.event-logo {
  display: none;
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(220, 190, 255, 0.5);
  box-shadow: 0 0 20px rgba(166, 93, 255, 0.5);
  animation: spin-slow 20s linear infinite;
}

.logo-wrap.has-image .event-logo {
  display: block;
}

.logo-missing {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px dashed rgba(220, 190, 255, 0.35);
  color: #c7b6e8;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-align: center;
  padding: 0.5rem;
  background: rgba(10, 8, 14, 0.55);
}

.logo-wrap.has-image .logo-missing {
  display: none;
}

h1 {
  margin: 0;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(2rem, 5.6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: 0 0 10px rgba(166, 93, 255, 0.6);
}

.tagline {
  margin: 0.5rem 0 0;
  font-family: "Cinzel", Georgia, serif;
  color: #dac8ff;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
}

.coming {
  margin: 0.9rem 0 0;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.timer-wrap {
  margin: 1.4rem auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.62rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(166, 93, 255, 0.32);
  background: rgba(7, 6, 11, 0.72);
}

.timer-label {
  color: var(--muted);
}

.timer-value {
  color: #f2e9ff;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(166, 93, 255, 0.4);
}

.description {
  max-width: 650px;
  margin: 1.5rem auto 0;
  line-height: 1.75;
  color: var(--muted);
}

.actions {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  min-width: 180px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.76rem 1.15rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-locked {
  color: var(--soft);
  cursor: not-allowed;
  background: rgba(75, 65, 100, 0.32);
  border-color: rgba(166, 93, 255, 0.2);
}

.btn-discord {
  color: var(--text);
  background: linear-gradient(130deg, rgba(166, 93, 255, 0.24), rgba(114, 59, 255, 0.32));
  border-color: rgba(166, 93, 255, 0.63);
  box-shadow: 0 0 18px rgba(166, 93, 255, 0.3);
}

.btn-discord:hover,
.btn-discord:focus-visible {
  border-color: rgba(220, 190, 255, 0.85);
  box-shadow: 0 0 28px rgba(166, 93, 255, 0.45);
  outline: none;
}

.site-footer {
  padding: 1rem 1rem 1.2rem;
  text-align: center;
  color: #a094ba;
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grid-slide {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(42px);
  }
}

@keyframes orb-breathe {
  from {
    transform: translateY(0) scale(1);
    opacity: 0.68;
  }
  to {
    transform: translateY(-10px) scale(1.03);
    opacity: 0.92;
  }
}

@keyframes stars-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(16px);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding-top: 2.6rem;
  }

  .hero-card {
    padding: 2rem 1rem 1.6rem;
  }

  .logo-wrap {
    width: 130px;
    height: 130px;
  }

  .event-logo {
    width: 110px;
    height: 110px;
  }

  .logo-missing {
    width: 110px;
    height: 110px;
  }
}