:root {
  --ink: #f5f6f8;
  --muted: #9aa2ab;
  --card: rgba(16, 19, 24, 0.75);
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  --bg-1: #0d0f12;
  --bg-2: #161b23;
  --bg-3: #0f1a1f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  color: var(--ink);
  font-family: "Space Grotesk", "Noto Sans", sans-serif;
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(88, 101, 242, 0.25), transparent 60%),
    radial-gradient(700px 420px at 88% 85%, rgba(255, 0, 80, 0.22), transparent 60%),
    radial-gradient(600px 360px at 70% 18%, rgba(0, 242, 234, 0.16), transparent 55%),
    linear-gradient(150deg, var(--bg-1), var(--bg-2) 55%, var(--bg-3));
}

.card {
  width: min(420px, 100%);
  padding: 26px 22px 18px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(10px);
  animation: card-in 520ms ease-out both;
}

.topper {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 2px auto 18px;
}

.links {
  display: grid;
  gap: 14px;
  margin: 10px 0 12px;
}

.link {
  position: relative;
  display: block;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  box-shadow:
    0 8px 0 var(--link-shadow, rgba(0, 0, 0, 0.55)),
    0 18px 32px rgba(0, 0, 0, 0.45);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  animation: link-in 520ms ease-out both;
}

.link::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 55%);
  pointer-events: none;
}

.link-discord {
  background: linear-gradient(180deg, #6b77ff 0%, #4c55d6 100%);
  --link-shadow: #2a2f7a;
}

.link-youtube {
  background: linear-gradient(180deg, #ff5a5a 0%, #d80000 100%);
  --link-shadow: #7a0e0e;
}

.link-tiktok {
  background: linear-gradient(135deg, #00f2ea 0%, #ff0050 60%, #0f0f13 100%);
  --link-shadow: #470017;
}

.link:nth-child(1) {
  animation-delay: 120ms;
}

.link:nth-child(2) {
  animation-delay: 220ms;
}

.link:nth-child(3) {
  animation-delay: 320ms;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow:
    0 10px 0 var(--link-shadow, rgba(0, 0, 0, 0.55)),
    0 22px 36px rgba(0, 0, 0, 0.5);
}

.link:active {
  transform: translateY(4px);
  box-shadow:
    0 3px 0 var(--link-shadow, rgba(0, 0, 0, 0.55)),
    0 12px 20px rgba(0, 0, 0, 0.4);
}

.legal {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  opacity: 0.38;
  padding: 6px 0 2px;
  text-decoration: none;
  display: inline-block;
}

.legal-page .card {
  text-align: left;
}

.legal-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 26px;
  margin: 4px 0 12px;
}

.legal-block {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.legal-block strong {
  color: var(--ink);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes link-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .card {
    padding: 22px 18px 16px;
    border-radius: 24px;
  }

  .topper {
    max-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .link {
    animation: none;
  }

  .link {
    transition: none;
  }
}
