:root {
  --bg: #02030a;
  --bg-soft: #0b0614;
  --gold: #d0a000;
  --gold-soft: #f4d34a;
  --brown: #502000;
  --silver: #d0d0d0;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --telegram: #229ed9;
  --discord: #5865f2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(240, 200, 80, 0.06), transparent 55%),
    radial-gradient(circle at bottom, rgba(80, 32, 0, 0.4), transparent 60%),
    linear-gradient(135deg, var(--bg), #000000);
  background-size: 140% 140%;
  animation: bg-move 18s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wrap {
  text-align: center;
  max-width: 560px;
  width: 100%;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.95));
  border-radius: 24px;
  border: 1px solid rgba(128, 128, 128, 0.25);
  padding: 32px 20px 26px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.8);
  opacity: 1;
  transform: none;
  animation: card-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo {
  width: 230px;
  max-width: 70vw;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 35px rgba(0, 0, 0, 0.9));
  animation: logo-float 5s ease-in-out infinite;
  transform-origin: center bottom;
}

h1 {
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--gold-soft);
}

.subtitle {
  font-size: 0.95rem;
  color: var(--silver);
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 58, 0.83);
  background: rgba(0, 0, 0, 0.8);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff2d2d;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
  animation: pulse 1.4s ease-in-out infinite;
}

.text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #f9fafb;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
}

.btn-telegram {
  background: var(--telegram);
  box-shadow: 0 12px 30px rgba(34, 158, 217, 0.45);
}

.btn-discord {
  background: var(--discord);
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.45);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.32), transparent 55%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.06);
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: none;
}

.btn:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

.note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

@media (max-width: 480px) {
  .wrap {
    padding: 26px 16px 22px;
  }
  h1 {
    font-size: 1.2rem;
  }
}

/* Animazioni */

@keyframes bg-move {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 50% 100%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes card-enter {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-float {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 18px rgba(255, 0, 0, 1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
  }
}

