:root {
  --bg: #1a052e;
  --bg-2: #26083f;
  --cream: #ffe6d7;
  --pink: #ff6bae;
  --lilac: #a78ac5;
  --line: rgba(255, 230, 215, 0.22);
  --card: rgba(255, 230, 215, 0.06);
  --danger: #ffb4c8;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; color: var(--cream); background: var(--bg); }
body {
  font-family: var(--font);
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100%;
}
.bg, .pattern, .noise { position: fixed; inset: 0; pointer-events: none; }
.bg {
  z-index: -3;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(255, 107, 174, 0.26), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.pattern {
  z-index: -2;
  background-image: repeating-radial-gradient(
    circle at center,
    transparent 0 72px,
    rgba(255, 107, 174, 0.12) 72px 73px,
    transparent 73px 144px,
    rgba(167, 138, 197, 0.12) 144px 145px,
    transparent 145px 216px
  );
}
.noise {
  z-index: -1;
  opacity: 0.45;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
}
.wrap { width: min(720px, calc(100% - 32px)); margin: auto; padding: 24px 0 28px; }
.top { display: flex; justify-content: center; align-items: center; gap: 14px; }
.logo { width: 72px; height: auto; }
.format {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 230, 215, 0.4);
  border-radius: 100px;
  padding: 8px 14px;
}
.kicker {
  margin: 28px 0 0;
  text-align: center;
  color: var(--pink);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
h1 {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
h1 span, h1 em { display: block; font-style: normal; }
h1 em { color: var(--pink); }
.lead {
  text-align: center;
  color: rgba(255, 230, 215, 0.82);
  margin: 16px auto 0;
  max-width: 460px;
  line-height: 1.5;
}
.card {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  backdrop-filter: blur(8px);
}
label { display: block; margin-bottom: 14px; }
.label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 230, 215, 0.72);
}
input:not([type="checkbox"]):not([type="hidden"]),
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(26, 5, 46, 0.55);
  color: var(--cream);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:not([type="checkbox"]):focus,
textarea:focus { border-color: var(--pink); }
.hint { margin: -6px 0 14px; color: var(--pink); font-size: 13px; line-height: 1.4; }
.checks { display: grid; gap: 12px; margin: 8px 0 18px; }
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 230, 215, 0.9);
}
.check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: rgba(26, 5, 46, 0.55);
  cursor: pointer;
  vertical-align: top;
  flex-shrink: 0;
}
.check input[type="checkbox"]:checked {
  border-color: var(--pink);
  background-color: var(--pink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%231a052e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 9px;
}
.check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
a { color: var(--pink); }
.btn, button.btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  background: var(--cream);
  color: var(--bg);
  border-radius: 15px;
  padding: 16px 22px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}
.btn.is-disabled, button.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn:hover { background: var(--lilac); }
.alert {
  display: none;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 107, 174, 0.12);
  color: var(--danger);
}
.field-error { color: var(--danger); font-size: 12px; margin-top: 6px; }
.done { text-align: center; }
.done h2 { font-family: var(--display); font-size: 1.8rem; margin: 8px 0 12px; }
.done p { line-height: 1.55; color: rgba(255, 230, 215, 0.86); }
.done .btn { margin-top: 18px; }
.choice-note { margin: 18px 0 0; color: rgba(255, 230, 215, 0.86); }
.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.choices .btn { margin-top: 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(26, 5, 46, 0.55);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  font-size: 13px;
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, 720px); }
  .card { padding: 16px; }
}
