:root {
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --purchase: #86efac;
  --purchase-hover: #4ade80;
  --purchase-dark: #052e16;
  --bg: #1e1f22;
  --bg-card: #2b2d31;
  --text: #f2f3f5;
  --muted: #b5bac1;
  --radius: 16px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(88, 101, 242, 0.35), transparent),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(88, 101, 242, 0.12), transparent);
}

.discord-dots {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.42s ease;
}

body.panel-open .discord-dots {
  opacity: 0;
}

.discord-dots span {
  position: absolute;
  border-radius: 50%;
  background: var(--discord);
  box-shadow: 0 0 14px rgba(88, 101, 242, 0.55);
  opacity: 0.35;
  animation: purchase-dot-float var(--dur, 9s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.discord-dots span:nth-child(1)  { width: 8px;  height: 8px;  left: 8%;  top: 12%; --dur: 11s; --delay: 0s;   --peak: 0.5; }
.discord-dots span:nth-child(2)  { width: 12px; height: 12px; left: 18%; top: 68%; --dur: 9s;  --delay: -2s;  --peak: 0.45; }
.discord-dots span:nth-child(3)  { width: 6px;  height: 6px;  left: 28%; top: 38%; --dur: 13s; --delay: -4s;  --peak: 0.6; }
.discord-dots span:nth-child(4)  { width: 10px; height: 10px; left: 5%;  top: 48%; --dur: 10s; --delay: -1s;  --peak: 0.4; }
.discord-dots span:nth-child(5)  { width: 14px; height: 14px; left: 82%; top: 18%; --dur: 12s; --delay: -3s;  --peak: 0.55; }
.discord-dots span:nth-child(6)  { width: 7px;  height: 7px;  left: 92%; top: 55%; --dur: 8s;  --delay: -5s;  --peak: 0.5; }
.discord-dots span:nth-child(7)  { width: 9px;  height: 9px;  left: 72%; top: 78%; --dur: 11s; --delay: -2.5s; --peak: 0.45; }
.discord-dots span:nth-child(8)  { width: 5px;  height: 5px;  left: 58%; top: 8%;  --dur: 14s; --delay: -6s;  --peak: 0.65; }
.discord-dots span:nth-child(9)  { width: 11px; height: 11px; left: 44%; top: 22%; --dur: 9.5s; --delay: -1.5s; --peak: 0.5; }
.discord-dots span:nth-child(10) { width: 8px;  height: 8px;  left: 38%; top: 82%; --dur: 10s; --delay: -3.5s; --peak: 0.55; }
.discord-dots span:nth-child(11) { width: 13px; height: 13px; left: 88%; top: 42%; --dur: 12s; --delay: -4.5s; --peak: 0.4; }
.discord-dots span:nth-child(12) { width: 6px;  height: 6px;  left: 62%; top: 58%; --dur: 8.5s; --delay: -0.5s; --peak: 0.6; }
.discord-dots span:nth-child(13) { width: 10px; height: 10px; left: 22%; top: 88%; --dur: 11.5s; --delay: -7s;  --peak: 0.45; }
.discord-dots span:nth-child(14) { width: 7px;  height: 7px;  left: 48%; top: 72%; --dur: 9s;  --delay: -2s;  --peak: 0.5; }
.discord-dots span:nth-child(15) { width: 9px;  height: 9px;  left: 76%; top: 32%; --dur: 13s; --delay: -5.5s; --peak: 0.55; }
.discord-dots span:nth-child(16) { width: 12px; height: 12px; left: 12%; top: 28%; --dur: 10s; --delay: -3s;  --peak: 0.35; }
.discord-dots span:nth-child(17) { width: 6px;  height: 6px;  left: 95%; top: 72%; --dur: 11s; --delay: -1s;  --peak: 0.6; }
.discord-dots span:nth-child(18) { width: 8px;  height: 8px;  left: 52%; top: 44%; --dur: 12s; --delay: -6.5s; --peak: 0.45; }

#main-card {
  position: relative;
  z-index: 1;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 2rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  transition:
    opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-card.is-dimmed {
  opacity: 0;
  transform: scale(0.94);
  filter: blur(6px);
  pointer-events: none;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  border-radius: 20px;
  background: var(--discord);
  color: #fff;
}

.discord-mark {
  width: 40px;
  height: auto;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.highlights {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  text-align: left;
  font-size: 0.9375rem;
  color: var(--muted);
}

.highlights li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.35rem;
}

.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--discord);
}

.btn-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--discord);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-join:hover {
  background: var(--discord-hover);
  transform: translateY(-1px);
}

.btn-join:active {
  transform: translateY(0);
}

.btn-purchase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--purchase-dark);
  cursor: pointer;
  background: var(--purchase);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-purchase:hover {
  background: var(--purchase-hover);
  transform: translateY(-1px);
}

.btn-purchase:active {
  transform: translateY(0);
}

body.panel-open {
  overflow: hidden;
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.42s;
}

.purchase-dots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.panel-backdrop.is-visible .purchase-dots {
  opacity: 1;
}

.purchase-dots span {
  position: absolute;
  border-radius: 50%;
  background: var(--purchase);
  box-shadow: 0 0 14px rgba(134, 239, 172, 0.55);
  opacity: 0.35;
  animation: purchase-dot-float var(--dur, 9s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.panel-backdrop.is-visible .purchase-dots span {
  opacity: var(--peak, 0.55);
}

.purchase-dots span:nth-child(1)  { width: 8px;  height: 8px;  left: 8%;  top: 12%; --dur: 11s; --delay: 0s;   --peak: 0.5; }
.purchase-dots span:nth-child(2)  { width: 12px; height: 12px; left: 18%; top: 68%; --dur: 9s;  --delay: -2s;  --peak: 0.45; }
.purchase-dots span:nth-child(3)  { width: 6px;  height: 6px;  left: 28%; top: 38%; --dur: 13s; --delay: -4s;  --peak: 0.6; }
.purchase-dots span:nth-child(4)  { width: 10px; height: 10px; left: 5%;  top: 48%; --dur: 10s; --delay: -1s;  --peak: 0.4; }
.purchase-dots span:nth-child(5)  { width: 14px; height: 14px; left: 82%; top: 18%; --dur: 12s; --delay: -3s;  --peak: 0.55; }
.purchase-dots span:nth-child(6)  { width: 7px;  height: 7px;  left: 92%; top: 55%; --dur: 8s;  --delay: -5s;  --peak: 0.5; }
.purchase-dots span:nth-child(7)  { width: 9px;  height: 9px;  left: 72%; top: 78%; --dur: 11s; --delay: -2.5s; --peak: 0.45; }
.purchase-dots span:nth-child(8)  { width: 5px;  height: 5px;  left: 58%; top: 8%;  --dur: 14s; --delay: -6s;  --peak: 0.65; }
.purchase-dots span:nth-child(9)  { width: 11px; height: 11px; left: 44%; top: 22%; --dur: 9.5s; --delay: -1.5s; --peak: 0.5; }
.purchase-dots span:nth-child(10) { width: 8px;  height: 8px;  left: 38%; top: 82%; --dur: 10s; --delay: -3.5s; --peak: 0.55; }
.purchase-dots span:nth-child(11) { width: 13px; height: 13px; left: 88%; top: 42%; --dur: 12s; --delay: -4.5s; --peak: 0.4; }
.purchase-dots span:nth-child(12) { width: 6px;  height: 6px;  left: 62%; top: 58%; --dur: 8.5s; --delay: -0.5s; --peak: 0.6; }
.purchase-dots span:nth-child(13) { width: 10px; height: 10px; left: 22%; top: 88%; --dur: 11.5s; --delay: -7s;  --peak: 0.45; }
.purchase-dots span:nth-child(14) { width: 7px;  height: 7px;  left: 48%; top: 72%; --dur: 9s;  --delay: -2s;  --peak: 0.5; }
.purchase-dots span:nth-child(15) { width: 9px;  height: 9px;  left: 76%; top: 32%; --dur: 13s; --delay: -5.5s; --peak: 0.55; }
.purchase-dots span:nth-child(16) { width: 12px; height: 12px; left: 12%; top: 28%; --dur: 10s; --delay: -3s;  --peak: 0.35; }
.purchase-dots span:nth-child(17) { width: 6px;  height: 6px;  left: 95%; top: 72%; --dur: 11s; --delay: -1s;  --peak: 0.6; }
.purchase-dots span:nth-child(18) { width: 8px;  height: 8px;  left: 52%; top: 44%; --dur: 12s; --delay: -6.5s; --peak: 0.45; }

@keyframes purchase-dot-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.25;
  }
  25% {
    transform: translate(12px, -18px) scale(1.08);
    opacity: var(--peak, 0.55);
  }
  50% {
    transform: translate(-8px, -32px) scale(0.95);
    opacity: 0.4;
  }
  75% {
    transform: translate(-14px, -12px) scale(1.05);
    opacity: var(--peak, 0.5);
  }
}

.panel-backdrop.is-visible {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-image:
    radial-gradient(ellipse 55% 45% at 50% 40%, rgba(134, 239, 172, 0.12), transparent),
    radial-gradient(ellipse 40% 35% at 85% 75%, rgba(74, 222, 128, 0.08), transparent);
  transition:
    opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0s;
}

.purchase-card {
  position: relative;
  z-index: 1;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  opacity: 0;
  transform: scale(0.88) translateY(24px);
  transition:
    opacity 0.42s cubic-bezier(0.34, 1.2, 0.64, 1),
    transform 0.42s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.panel-backdrop.is-visible .purchase-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  #main-card.is-dimmed,
  .panel-backdrop,
  .purchase-card {
    transition-duration: 0.01ms !important;
  }

  .purchase-dots span,
  .discord-dots span {
    animation: none;
  }
}

.panel-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}

.panel-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.icon-wrap--purchase {
  background: var(--purchase);
  color: var(--purchase-dark);
}

.purchase-mark {
  width: 36px;
  height: 36px;
}

.highlights--purchase li::before {
  background: var(--purchase);
}

.btn-join--purchase {
  background: var(--purchase);
  color: var(--purchase-dark);
}

.btn-join--purchase:hover {
  background: var(--purchase-hover);
}

.hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  opacity: 0.85;
}
