:root {
  --ink: #e5e7eb;
  --muted: #9aa4b2;
  --brand: #8ec5ff;
  --brand2: #b388ff;
  --accent: #ffd580;
  --bg: #0b1020;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--bg) url("icons/crown.svg") no-repeat center/240px;
  background-blend-mode: overlay;
  opacity: 0.98;
}

/* Title and text */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin: 0.2em 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}

p {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

footer {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Glow and animations */
.sparkle {
  position: relative;
  display: inline-block;
}

.sparkle::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brand), var(--brand2), var(--accent), var(--brand));
  filter: blur(12px);
  opacity: 0.55;
  z-index: -1;
  animation: spin 10s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.45;
  mix-blend-mode: screen;
}

.o1 {
  width: 220px;
  height: 220px;
  background: var(--brand);
  left: 5%;
  top: 15%;
  animation: float 16s ease-in-out infinite;
}

.o2 {
  width: 280px;
  height: 280px;
  background: var(--brand2);
  right: 10%;
  top: 30%;
  animation: float 20s ease-in-out infinite reverse;
}

.o3 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  left: 40%;
  bottom: 5%;
  animation: float 18s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-25px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Background stars */
.stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 10% 20%, #fff, transparent 60%),
    radial-gradient(1px 1px at 30% 80%, #fff, transparent 60%),
    radial-gradient(1px 1px at 60% 40%, #fff, transparent 60%),
    radial-gradient(2px 2px at 80% 70%, #fff, transparent 60%);
  background-repeat: repeat;
  opacity: 0.3;
  animation: twinkle 6s linear infinite;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.55;
  }
}

/* Fade and button styles */
.fadein {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 1.5s ease forwards 0.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #0b1020;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(142, 197, 255, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
