@font-face { font-family: Fredoka; src: url(/fonts/fredoka.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/nunito.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
  --night: #0e1a33; --deep: #16294b; --teal: #1f5068; --moon: #ffd23f; --cream: #fff4d6; --ink: #0b1426;
  --aqua: #3fd6c6; --muted: rgba(255,244,214,.72); --glass: rgba(255,244,214,.07); --line: rgba(255,244,214,.14);
  --r: 22px; --display: Fredoka, "Arial Rounded MT Bold", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--cream); font: 500 1.05rem/1.55 Nunito, system-ui, sans-serif;
  background: linear-gradient(170deg, var(--night) 0%, var(--deep) 55%, var(--teal) 120%) fixed;
  overflow-x: hidden;
}
.sky { position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 28% 62%, #fff8 50%, transparent 51%),
    radial-gradient(2px 2px at 47% 9%, #ffd23fbb 50%, transparent 51%), radial-gradient(1px 1px at 66% 34%, #fff9 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 83% 71%, #fff7 50%, transparent 51%), radial-gradient(1px 1px at 91% 22%, #fffa 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 7% 84%, #fff6 50%, transparent 51%), radial-gradient(1px 1px at 55% 88%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 41%, #fff6 50%, transparent 51%), radial-gradient(2px 2px at 74% 52%, #ffd23f88 50%, transparent 51%);
}
.moon { position: absolute; top: clamp(58px, 8vw, 90px); right: clamp(-46px, 3vw, 60px); width: clamp(96px, 12vw, 170px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset clamp(-26px,-4vw,-46px) clamp(14px,2vw,26px) 0 0 var(--moon); transform: rotate(-20deg);
  filter: drop-shadow(0 0 40px #ffd23f55); opacity: .95; }
.z { position: absolute; font: 700 2rem var(--display); color: var(--cream); opacity: 0; animation: float 7s ease-in-out infinite; }
.z1 { right: 12%; top: 300px; } .z2 { right: 18%; top: 340px; font-size: 1.4rem; animation-delay: 2.3s; } .z3 { right: 9%; top: 360px; font-size: 2.6rem; animation-delay: 4.6s; }
@keyframes float { 0% { transform: translateY(0) rotate(-8deg); opacity: 0 } 20% { opacity: .55 } 100% { transform: translateY(-140px) rotate(12deg); opacity: 0 } }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1080px, 100% - 2.5rem); margin: 0 auto; padding: 1.1rem 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--cream); text-decoration: none; font: 600 1.25rem var(--display); }
.brand svg { width: 30px; height: 30px; }
.brand em { font-style: normal; font-weight: 400; opacity: .7; margin-left: .3rem; }
.promo-pill { font: 800 .78rem Nunito, sans-serif; letter-spacing: .06em; text-transform: uppercase; background: var(--moon); color: var(--ink); padding: .4rem .75rem; border-radius: 99px; white-space: nowrap; }
.promo-pill:empty { display: none; }

main { width: min(1080px, 100% - 2.5rem); margin: 0 auto; }
.view { padding: clamp(1.5rem, 6vw, 4.5rem) 0 2.5rem; max-width: 760px; }
.kicker { font: 800 .8rem Nunito, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--aqua); margin: 0 0 .7rem; }
.chunky { font: 700 clamp(2.6rem, 9vw, 5.4rem)/1 var(--display); margin: 0 0 1.1rem; letter-spacing: -.01em; text-shadow: .045em .06em 0 var(--ink); text-wrap: balance; }
.chunky span { color: var(--moon); display: block; }
.chunky.small { font-size: clamp(2rem, 6vw, 3.4rem); }
.lede { font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: var(--muted); max-width: 34ch; margin: 0 0 2rem; text-wrap: pretty; }
.shared-banner { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; margin: 0 0 1.6rem; font-weight: 700; max-width: 46ch; }
.shared-banner b { color: var(--moon); }

.pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.pick-card { all: unset; cursor: pointer; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center;
  padding: 1.25rem 1.3rem; border-radius: var(--r); color: var(--ink); box-shadow: 0 6px 0 var(--ink), 0 18px 40px #0007; transition: transform .15s, box-shadow .15s; }
.pick-card.him { background: linear-gradient(140deg, #ffe066, #ffc93c); }
.pick-card.her { background: linear-gradient(140deg, #5be3d3, #2bb3b0); }
.pick-card:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 9px 0 var(--ink), 0 24px 50px #0008; }
.pick-card:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink), 0 10px 20px #0006; }
.pick-card:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
.pick-face { grid-row: span 2; width: 64px; height: 64px; }
.pick-label { font: 600 1.7rem var(--display); }
.pick-label strong { font-weight: 700; }
.pick-hint { font-weight: 700; font-size: .92rem; opacity: .75; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.chips li { border: 1px solid var(--line); border-radius: 99px; padding: .3rem .8rem; font-size: .88rem; font-weight: 700; color: var(--muted); }
.chips li::before { content: "☾ "; color: var(--moon); }

.quiz-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.ghost { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 1.2rem; }
.ghost:disabled { opacity: .25; cursor: default; }
.ghost:focus-visible { outline: 2px solid var(--moon); }
.sheep { display: flex; gap: 4px; }
.sheep i { flex: 1; height: 10px; border-radius: 99px; background: var(--line); transition: background .3s; }
.sheep i.on { background: var(--moon); }
.count { margin: 0; font: 800 .85rem Nunito; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.qcard { background: var(--glass); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: clamp(1.3rem, 4vw, 2.2rem); backdrop-filter: blur(6px); }
.question:focus { outline: none; }
.question { font: 600 clamp(1.6rem, 5vw, 2.3rem)/1.15 var(--display); margin: 0 0 1.4rem; text-wrap: balance; }
.answers { display: grid; gap: .7rem; }
.answer { all: unset; cursor: pointer; display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(255,244,214,.06);
  border: 1.5px solid var(--line); font-weight: 700; font-size: 1.06rem; transition: background .15s, border-color .15s, transform .1s; }
.answer b { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--line); font: 700 1rem var(--display); }
.answer:hover { background: rgba(255,210,63,.12); border-color: #ffd23f88; }
.answer:focus-visible { outline: 3px solid var(--moon); outline-offset: 2px; }
.answer.picked { background: var(--moon); color: var(--ink); border-color: var(--moon); transform: scale(.98); }
.answer.picked b { background: var(--ink); color: var(--moon); }

.result .chunky { font-size: clamp(2.6rem, 9vw, 4.8rem); }
.card-frame { margin: 0 0 1.4rem; max-width: 420px; }
.card-img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 30px 60px #0009, 0 0 0 1px var(--line); background: var(--deep); aspect-ratio: 1080/1350; }
.faces { display: flex; gap: 4px; margin-top: .8rem; }
.faces svg { width: 100%; max-width: 34px; }
.share { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
.btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .85rem 1.25rem; border-radius: 14px;
  font: 800 1rem Nunito, sans-serif; border: 1.5px solid var(--line); color: var(--cream); background: rgba(255,244,214,.05); text-decoration: none; transition: transform .12s, background .15s; }
.btn:hover { background: rgba(255,244,214,.12); }
.btn:active { transform: translateY(2px); }
.btn:focus-visible { outline: 3px solid var(--moon); outline-offset: 2px; }
.btn.primary { background: var(--moon); color: var(--ink); border-color: var(--moon); box-shadow: 0 4px 0 var(--ink); }
.btn.primary:hover { background: #ffdc5e; }
.emoji-text { font: 700 1rem/1.6 Nunito, system-ui, sans-serif; white-space: pre-wrap; background: rgba(11,20,38,.45); border: 1px dashed var(--line); border-radius: 14px; padding: .9rem 1rem; margin: 0 0 1rem; max-width: 420px; }
.again { color: var(--muted); }
.link { all: unset; cursor: pointer; color: var(--moon); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.toast { min-height: 1.5em; color: var(--aqua); font-weight: 800; margin: 0; }

.cta { margin: 2rem 0; padding: clamp(1.5rem, 5vw, 3rem); border-radius: 32px; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, #ffd23f22, transparent 60%), linear-gradient(160deg, #13284a, #0d1a33); border: 1px solid var(--line); }
.promo { display: inline-block; background: var(--moon); color: var(--ink); font-weight: 900; padding: .45rem .9rem; border-radius: 10px; transform: rotate(-1.5deg); margin: 0 0 1.6rem; }
.promo:empty { display: none; }
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.book { display: grid; grid-template-columns: 110px 1fr; gap: 0 1rem; align-items: start; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; }
.book picture { grid-row: span 3; }
.book img { width: 110px; height: auto; border-radius: 8px; box-shadow: 0 12px 24px #0008; display: block; }
.book:nth-child(1) img { transform: rotate(-3deg); } .book:nth-child(2) img { transform: rotate(3deg); }
.book h3 { font: 600 1.3rem/1.15 var(--display); margin: .2rem 0 .35rem; }
.book p { margin: 0 0 .8rem; font-size: .95rem; color: var(--muted); }
.buy { display: flex; flex-wrap: wrap; gap: .5rem; }
.buy .btn { padding: .6rem .9rem; font-size: .92rem; }
.duo { margin: 1.4rem 0 0; font: 600 1.25rem var(--display); color: var(--moon); }

.signup { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; align-items: center; margin: 2rem 0; padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: 28px; border: 1px solid var(--line); background: rgba(255,244,214,.04); }
.signup h2 { font: 600 clamp(1.5rem, 4vw, 2rem)/1.15 var(--display); margin: 0 0 .4rem; }
.signup p { margin: 0; color: var(--muted); }
.kit-slot { display: grid; gap: .8rem; justify-items: start; }
.kit-placeholder { display: none; }
.preview .kit-placeholder { display: block; width: 100%; border: 2px dashed var(--aqua); color: var(--aqua); border-radius: 14px; padding: 1rem; font-weight: 900; letter-spacing: .08em; font-size: .85rem; text-align: center; }

.fine { width: min(1080px, 100% - 2.5rem); margin: 0 auto; padding: 1.5rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.fine p { margin: .3rem 0; max-width: 80ch; }

.is-quiz .cta, .is-quiz .signup { display: none; }
@media (min-width: 900px) {
  .result:not([hidden]) { display: grid; grid-template-columns: 1fr 380px; column-gap: 3rem; max-width: none; }
  .result > * { grid-column: 1; } .result .card-frame { grid-column: 2; grid-row: 1 / span 7; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
.intro { position: relative; }
.hero-sample { display: none; }
@media (min-width: 1100px) {
  .hero-sample { display: block; position: absolute; right: -330px; top: 150px; width: 290px; height: auto; border-radius: 16px; transform: rotate(4deg);
    box-shadow: 0 30px 60px #000a, 0 0 0 1px var(--line); }
}
