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

html, body {
  height: 100%;
  background: #080814;
  font-family: 'Segoe UI', system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem 3.5rem;
  background: rgba(12, 12, 28, 0.75);
  border: 1px solid rgba(100, 80, 200, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  animation: appear 0.5s ease both;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 12px rgba(200, 160, 80, 0.7),
    0 0 40px rgba(200, 160, 80, 0.3);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 12px rgba(200,160,80,0.6), 0 0 40px rgba(200,160,80,0.25); }
  50%       { text-shadow: 0 0 20px rgba(200,160,80,1),   0 0 60px rgba(200,160,80,0.5); }
}

.error-box {
  font-size: 0.85rem;
  color: #ff7070;
  background: rgba(255, 60, 60, 0.1);
  border: 1px solid rgba(255, 60, 60, 0.3);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  text-align: center;
  animation: appear 0.3s ease both;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  background: #5865f2;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
}

.discord-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.6);
}

.discord-btn:active { transform: scale(0.97); }

.discord-logo { width: 20px; height: 20px; flex-shrink: 0; }

.ripple {
  position: absolute;
  border-radius: 50%;
  width: 6px; height: 6px;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  animation: ripple 0.5s ease-out forwards;
}

@keyframes ripple { to { transform: translate(-50%, -50%) scale(55); opacity: 0; } }
