:root {
  --bg: #120d1c;
  --ink: #fbf7ff;
  --muted: #c9bfdc;
  --red: #ff4b4b;
  --orange: #ff9a1f;
  --yellow: #ffe03a;
  --green: #2fd27a;
  --blue: #4c8dff;
  --violet: #c07bff;
  --rainbow: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--violet));
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(120% 80% at 50% 0%, #2a1840 0%, var(--bg) 60%);
  background-color: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Progress-style stripe band across the top */
.flag { display: flex; flex-direction: column; height: 18px; }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: #e40303; }
.flag i:nth-child(2) { background: #ff8c00; }
.flag i:nth-child(3) { background: #ffed00; }
.flag i:nth-child(4) { background: #008026; }
.flag i:nth-child(5) { background: #004dff; }
.flag i:nth-child(6) { background: #750787; }

main {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(16px, 4vh, 40px);
  padding: 32px 16px 48px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}

.vault { position: relative; width: 100%; max-width: 1200px; display: grid; place-items: center; }

.reveal {
  margin: 0;
  font-family: "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(3.4rem, 15vw, 12rem);
  line-height: .92;
  letter-spacing: -.02em;
  background: var(--rainbow);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
  filter: drop-shadow(0 6px 30px rgba(192, 123, 255, .35));
}

.seal { display: none; }
.after { margin: 0; font-size: 1.25rem; color: var(--muted); }

/* JS enhancement: hidden until revealed */
.js .reveal { opacity: 0; transform: scale(.85); visibility: hidden; }
.js .after { opacity: 0; }
.js .seal {
  display: grid;
  gap: 24px;
  justify-items: center;
  position: absolute;
  inset: 0;
  align-content: center;
  padding: 24px 16px;
  border-radius: 28px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px),
    #1d1430;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 2px rgba(192,123,255,.5), 0 20px 60px rgba(0,0,0,.5);
}
.seal-text { margin: 0; font-size: 1.25rem; color: var(--ink); max-width: 28ch; }

button {
  font: inherit;
  font-size: 1.125rem;
  font-weight: 800;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  color: #120d1c;
  background: var(--rainbow);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 75, 75, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(192, 123, 255, .4); }
button:active { transform: translateY(0); }
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.js.revealed .seal {
  animation: seal-out .6s ease forwards;
  pointer-events: none;
}
.js.revealed .reveal {
  visibility: visible;
  animation: pop .9s cubic-bezier(.2, 1.4, .4, 1) .2s forwards, shimmer 6s linear 1.1s infinite;
}
.js.revealed .after { animation: fade 1s ease 1s forwards; }

@keyframes seal-out { to { opacity: 0; transform: scale(1.15); visibility: hidden; } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes shimmer { to { background-position: 200% 0; } }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.confetti span {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 16px;
  border-radius: 2px;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--rot)); }
}

@media (prefers-reduced-motion: reduce) {
  .js.revealed .seal { animation: none; opacity: 0; visibility: hidden; }
  .js.revealed .reveal { animation: none; opacity: 1; transform: none; }
  .js.revealed .after { animation: none; opacity: 1; }
  button { transition: none; }
  .confetti { display: none; }
}
