:root {
  --ink: #fff8f1;
  --ink-soft: rgba(255, 248, 241, 0.72);
  --pink: #ff5ea8;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --red: #fb7185;
  --grad: linear-gradient(120deg, var(--pink), var(--violet) 55%, var(--cyan));
  --font-title: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; }

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 16px;
  background: radial-gradient(120% 90% at 50% 110%, #ff8a5c 0%, #c2477c 28%, #4b2a86 58%, #120a2e 100%) fixed, #120a2e;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.card { width: min(460px, 100%); text-align: center; }

.brand {
  font-size: 4.2rem;
  filter: drop-shadow(0 10px 30px rgba(255, 207, 90, 0.5));
  animation: float 3s ease-in-out infinite;
}

.title {
  margin: 0;
  font: 800 clamp(2rem, 8vw, 3rem)/1 var(--font-title);
  text-shadow: 0 4px 24px rgba(255, 94, 168, 0.35);
}
.title span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.status { margin: 1.2rem 0 0.8rem; font-weight: 700; color: var(--ink-soft); }

.progress { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.progress-bar {
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(255, 94, 168, 0.7);
  transition: width 0.4s ease;
}

.error { display: grid; gap: 0.8rem; justify-items: center; margin-top: 1.4rem; }
.error-text { margin: 0; color: var(--red); font-weight: 700; }
.button {
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
  font: 800 1rem var(--font);
  cursor: pointer;
}
.button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

@keyframes float {
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .brand { animation: none; }
  .progress-bar { transition: none; }
}
