:root {
  color-scheme: light;
  --paper: #f4f5f7;
  --card: #ffffff;
  --ink: #23262c;
  --muted: #5d6470;
  --line: #dce0e5;
  --accent: #354b6c;
  --accent-hover: #273b59;
  --soft: #f1f3f6;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .6; }
.page { min-height: 100svh; max-width: 740px; margin: auto; padding: 36px 24px 22px; display: flex; flex-direction: column; }
.masthead { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 650; letter-spacing: .02em; }
.brand-mark { color: var(--accent); font-size: 30px; line-height: 1; }
main { width: 100%; margin: auto 0; padding: 48px 0; outline: none; }
.card { padding: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(28px, 4.5vw, 38px); line-height: 1.2; font-weight: 640; letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: balance; }
h1:focus { outline: none; }
.description { margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.small-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.illustration { width: 72px; height: 72px; margin-bottom: 28px; background: var(--soft); border-radius: 50%; display: grid; place-items: center; }
.lens { display: block; width: 24px; height: 24px; border: 2px solid var(--accent); border-radius: 50%; position: relative; transform: translate(-3px, -3px); }
.lens::after { content: ""; width: 13px; height: 2px; background: var(--accent); position: absolute; top: 23px; left: 18px; transform: rotate(45deg); border-radius: 2px; }
.actions { display: grid; gap: 12px; margin-top: 32px; }
.actions.two { grid-template-columns: 1fr 1fr; }
.button { min-height: 56px; padding: 15px 22px; border-radius: 8px; border: 1px solid transparent; font-weight: 650; font-size: 17px; transition: background .15s, transform .15s; }
.button:active:not(:disabled) { transform: translateY(1px); }
.primary { color: #fffdf8; background: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { color: var(--ink); background: var(--soft); border-color: var(--line); }
.secondary:hover:not(:disabled) { background: #e6eaf0; }
.text-button { min-height: 44px; padding: 10px 8px; background: transparent; border: none; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; border-radius: 8px; }
.text-button:hover:not(:disabled) { color: var(--accent); }
.skip { display: block; width: 100%; margin-top: 14px; }
.utility { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); }
.utility .text-button { font-size: 12px; }
.progress { display: flex; gap: 6px; margin: 0 0 28px; }
.progress span { height: 4px; flex: 1; border-radius: 3px; background: var(--line); }
.progress .done { background: var(--accent); }
.progress .current { background: #647a9b; }
.name { margin-top: 10px; font-size: clamp(42px, 7vw, 58px); }
.celebration { font-size: 44px; color: var(--accent); line-height: 1; margin-bottom: 28px; }
.signoff { margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.error { background: #f6e5dd; color: #733524; padding: 14px 18px; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.retry { display: block; margin-top: 6px; color: inherit; padding-left: 0; font-weight: 650; }
footer { text-align: center; font-size: 12px; color: var(--muted); line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscript { padding: 20px; text-align: center; }
@media (max-width: 480px) {
  .page { padding: 24px 16px 20px; }
  main { padding: 32px 0; }
  .card { padding: 28px 22px; border-radius: 10px; }
  .description { font-size: 16px; }
  .actions.two { gap: 10px; }
  .button { padding-inline: 15px; }
  .utility { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

.consent-description { font-size: 15px; }
.consent { display: flex; gap: 12px; margin-top: 26px; line-height: 1.55; font-size: 15px; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: 0 0 22px; margin: 2px 0 0; accent-color: var(--accent); }
input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.name-form { display: grid; gap: 12px; margin-top: 28px; }
.input-label { font-weight: 600; }
.name-input { min-width: 0; width: 100%; font: inherit; font-size: 19px; padding: 15px; border: 1px solid #8c939f; border-radius: 8px; color: var(--ink); background: white; }
.name-form .button { margin-top: 10px; }
.result-open { background: #fff5e9; }
.result-open .masthead, .result-open footer { visibility: hidden; }
.result-open #screen { border: 0; padding: 0; }
.reveal-scene { position: fixed; inset: 0; z-index: 5; overflow: hidden; display: grid; place-items: center; background: #fff5e9; color: #523b4f; min-height: 100svh; }
.reveal-content { z-index: 2; text-align: center; width: 100%; padding: 24px 16px; }
.reveal-eyebrow { min-height: 24px; margin: 0 0 20px; font-size: clamp(14px,2vw,20px); letter-spacing: .15em; text-transform: uppercase; font-weight: 650; color: #77566f; }
.reveal-title { font-weight: 900; line-height: 1.05; letter-spacing: -.045em; text-wrap: nowrap; overflow-wrap: normal; }
.reveal-line { display: block; }
.reveal-title.arrive { animation: reveal-arrive .42s cubic-bezier(.15,.7,.3,1) both; }
.reveal-detail { position: relative; max-width: 680px; margin: 28px auto 0; min-height: 48px; padding: 0 12px; font-size: clamp(16px,2.5vw,23px); line-height: 1.45; color: #77566f; }
.is-celebrating { background: radial-gradient(ellipse at 50% 40%,#fff9f0 10%,#f7e7ed 75%,#e4e9da); }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
.baby-doodles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.baby-doodle { position: absolute; width: clamp(70px,11vw,150px); animation: baby-float 3s ease-in-out infinite alternate; }
.baby-doodle svg { display: block; width: 100%; }
.doodle-0 { top: 5%; left: 6%; transform: rotate(-14deg); }
.doodle-1 { top: 7%; right: 6%; animation-delay: -.8s; }
.doodle-2 { bottom: 6%; left: 9%; animation-delay: -1.6s; }
.doodle-3 { bottom: 6%; right: 7%; animation-delay: -2.2s; }
.is-secret { background: #eee8f3; color: #44334e; }
.secret-title { font-weight: 850; line-height: 1.1; letter-spacing: -.045em; }
.secret-title span { display: block; font-size: clamp(28px,5vw,72px); }
.secret-title strong { display: block; font-size: clamp(58px,16vw,230px); white-space: nowrap; font-weight: 950; line-height: 1.05; margin: 12px 0 24px; }
.secret-instruction { margin: 0; font-size: clamp(19px,3.7vw,49px); font-weight: 800; line-height: 1.25; }
.secret-reason { margin: 12px 0 0; font-size: clamp(16px,2.7vw,35px); font-weight: 650; line-height: 1.3; }
.secret-next { margin-top: 36px; background: #44334e; color: white; font-size: 15px; }
.secret-next:hover { background: #302238; }
@keyframes reveal-arrive { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@keyframes baby-float { from { translate: 0 -5px; rotate: -7deg; } to { translate: 0 6px; rotate: 7deg; } }
@media (max-width: 480px) {
  .reveal-detail { margin-top: 22px; }
  .secret-next { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .reveal-title.arrive, .baby-doodle { animation: none; } }
