:root {
  --bg1: #1b1b2f;
  --bg2: #162447;
  --acc1: #f72585;
  --acc2: #4cc9f0;
  --acc3: #b5179e;
  --text: #e6f1ff;
  --muted: #9fb3c8;
  --glass: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.18);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  background: radial-gradient(1200px 800px at 10% 10%, #1f1f3a 0%, var(--bg1) 50%, var(--bg2) 100%) fixed;
  overflow: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(71, 11, 169, 0.35), rgba(247, 37, 133, 0.25), rgba(76, 201, 240, 0.25));
  filter: blur(60px) saturate(120%);
  animation: hue 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hue {
  0% { filter: blur(60px) hue-rotate(0deg) saturate(120%); }
  100% { filter: blur(60px) hue-rotate(30deg) saturate(140%); }
}

.container {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 24px);
  padding: 24px;
  text-align: center;
}

h1 {
  font-size: clamp(32px, 4vw, 56px);
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.tagline {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 22px);
  margin: 0 0 8px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), inset 0 0 40px rgba(255,255,255,0.04);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 28px);
  width: min(560px, 92vw);
  backdrop-filter: blur(8px);
}

.loader {
  --size: 10px;
  display: inline-flex;
  gap: 10px;
  margin: 12px 0 6px;
}
.loader span {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc2), var(--acc1));
  box-shadow: 0 6px 16px rgba(76, 201, 240, 0.35);
  animation: bounce 900ms ease-in-out infinite;
}
.loader span:nth-child(2) { animation-delay: 0.1s; }
.loader span:nth-child(3) { animation-delay: 0.2s; }
.loader span:nth-child(4) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50% { transform: translateY(-10px) scale(1.08); opacity: 1; }
}

button#party {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--acc1), var(--acc3));
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(181, 23, 158, 0.35);
  transition: transform 120ms ease, box-shadow 200ms ease;
}
button#party:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(181, 23, 158, 0.45);
}
button#party:active { transform: translateY(0); }

footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  opacity: 0.9;
  margin-top: 6px;
}
.chip {
  border: 1px dashed rgba(255,255,255,0.25);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(0,0,0,0.2);
}

.orb {
  position: fixed;
  width: 35vmin;
  height: 35vmin;
  border-radius: 50%;
  filter: blur(40px) saturate(120%);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}
.orb-a { background: radial-gradient(circle at 30% 30%, #ffb703, transparent 60%); left: -8vmin; top: 10vmin; animation: float 12s ease-in-out infinite; }
.orb-b { background: radial-gradient(circle at 70% 70%, #4895ef, transparent 60%); right: -12vmin; top: 30vmin; animation: float 14s ease-in-out infinite reverse; }
.orb-c { background: radial-gradient(circle at 50% 50%, #f72585, transparent 60%); left: 20vmin; bottom: -10vmin; animation: float 16s ease-in-out infinite; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2vmin, -1vmin) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}

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