:root {
  --bg: #1d0f24; --bg2: #2a1533; --card: #ffffff; --ink: #24131f; --muted: #7b6474;
  --pink: #ff3d71; --pink2: #ff7a59; --gold: #ffc94d; --cream: #fff6f1; --line: #f1e4ea;
  --ok: #19b37a; --radius: 22px; --shadow: 0 12px 34px rgba(29, 15, 36, .28);
  --grad: linear-gradient(135deg, var(--pink) 0%, var(--pink2) 100%);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: #fff; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; }
button { font: inherit; cursor: pointer; border: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; padding-bottom: 40px; }
.boot { display: grid; place-items: center; height: 100dvh; font-size: 48px; animation: beat 1s infinite; }
@keyframes beat { 50% { transform: scale(1.15); } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes float { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-120px) scale(1.6); opacity: 0; } }

/* ---------- landing ---------- */
.hero { position: relative; height: 66dvh; min-height: 420px; overflow: hidden; border-radius: 0 0 34px 34px; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,15,36,0) 38%, rgba(29,15,36,.92) 92%); }
.hero .copy { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; animation: rise .6s ease both; }
.kicker { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 99px; }
h1 { font-size: 38px; line-height: 1.02; margin: 12px 0 8px; font-weight: 800; letter-spacing: -.02em; }
h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 0; font-size: 16px; opacity: .9; }
.cta-wrap { padding: 18px 20px 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 58px; padding: 0 22px;
  border-radius: 99px; background: var(--grad); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .02em;
  box-shadow: 0 10px 26px rgba(255, 61, 113, .45); transition: transform .12s ease; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.28); }
.btn.light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn[disabled] { opacity: .5; cursor: default; }
.link { background: none; color: rgba(255,255,255,.75); text-decoration: underline; padding: 14px; display: block; margin: 0 auto; font-size: 14px; }
.teaser { margin: 22px 20px 0; padding: 16px; border-radius: var(--radius); background: var(--bg2); }
.teaser h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 20px 0; }
.how div { background: var(--bg2); border-radius: 18px; padding: 14px 10px; text-align: center; font-size: 13px; }
.how b { display: block; font-size: 22px; margin-bottom: 4px; }
footer { margin: 28px 20px 0; font-size: 12px; opacity: .6; text-align: center; line-height: 1.6; }
footer a { margin: 0 6px; }

/* ---------- cards & layout ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 6px; }
.brand { font-weight: 800; font-size: 15px; display: flex; gap: 6px; align-items: center; }
.icon-btn { background: var(--bg2); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 18px; display: grid; place-items: center; }
.card { background: var(--card); color: var(--ink); border-radius: var(--radius); margin: 14px 16px 0; padding: 18px; box-shadow: var(--shadow); animation: rise .4s ease both; }
.card h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.01em; }
.card h3 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.card p { margin: 6px 0 0; color: #4b3846; }
.card .btn { margin-top: 14px; }
.card.done { background: var(--cream); box-shadow: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #ffe6ee; color: #c2184d; }
.pill.green { background: #dcf6ea; color: #0f7a52; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- welcome header ---------- */
.welcome { margin: 6px 16px 0; padding: 20px; border-radius: var(--radius); background: var(--grad); box-shadow: 0 14px 30px rgba(255,61,113,.35); position: relative; overflow: hidden; }
.welcome h2 { margin: 0; font-size: 24px; }
.welcome .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.welcome .stat { background: rgba(255,255,255,.18); border-radius: 16px; padding: 10px 6px; text-align: center; }
.welcome .stat b { display: block; font-size: 22px; }
.welcome .stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.welcome .gap { margin-top: 12px; font-size: 14px; font-weight: 600; }

/* ---------- questions ---------- */
.progress { height: 8px; background: rgba(255,255,255,.14); border-radius: 99px; margin: 8px 20px 0; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .35s ease; }
.qimg { margin: 14px 16px 0; border-radius: var(--radius); overflow: hidden; height: 34dvh; min-height: 220px; position: relative; box-shadow: var(--shadow); }
.qimg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.bubble { position: relative; background: #fff; color: var(--ink); border-radius: 22px 22px 22px 6px; padding: 14px 16px; margin: -36px 26px 0 16px; box-shadow: var(--shadow); font-weight: 600; font-size: 17px; line-height: 1.35; animation: pop .3s ease both; z-index: 1; }
.bubble small { display: block; font-size: 11px; color: var(--pink); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.options { display: grid; gap: 10px; margin: 16px 16px 0; }
.opt { text-align: left; background: var(--bg2); color: #fff; border-radius: 18px; padding: 16px 18px; font-size: 16px; font-weight: 600; min-height: 56px; display: flex; gap: 12px; align-items: center; transition: transform .12s, background .2s; }
.opt .letter { flex: 0 0 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 13px; }
.opt:active { transform: scale(.98); }
.opt.light { background: #f6eef2; color: var(--ink); }
.opt.light .letter { background: #fff; }
.opt.chosen, .opt.light.chosen { background: var(--grad); color: #fff; }
.opt.light.chosen .letter { background: rgba(255,255,255,.2); }
.opt.right { box-shadow: inset 0 0 0 2px var(--ok); }
.opt[disabled] { cursor: default; }
.reaction { margin: 14px 16px 0; display: flex; gap: 10px; align-items: flex-start; animation: rise .3s ease both; }
.reaction img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; border: 2px solid var(--pink); }
.reaction p { margin: 0; background: #fff; color: var(--ink); padding: 12px 14px; border-radius: 6px 20px 20px 20px; font-weight: 600; box-shadow: var(--shadow); }
.next-wrap { padding: 16px; }

/* ---------- results ---------- */
.score-ring { width: 170px; height: 170px; border-radius: 50%; margin: 20px auto 0; display: grid; place-items: center;
  background: conic-gradient(var(--pink) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); position: relative; animation: pop .5s ease both; }
.score-ring::before { content: ""; position: absolute; inset: 12px; background: var(--bg); border-radius: 50%; }
.score-ring div { position: relative; text-align: center; }
.score-ring b { font-size: 44px; display: block; line-height: 1; }
.score-ring span { font-size: 12px; opacity: .75; text-transform: uppercase; letter-spacing: .06em; }
.verdict { text-align: center; margin: 18px 22px 0; }
.verdict h2 { margin: 0; font-size: 26px; }
.verdict p { opacity: .9; margin: 8px 0 0; }
.reward-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 16px 0; }
.reward-row div { background: var(--bg2); border-radius: 18px; padding: 14px; text-align: center; }
.reward-row b { font-size: 24px; display: block; }

/* ---------- leaderboard ---------- */
.rows { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .rk { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--cream); font-size: 14px; flex: 0 0 34px; }
.row .nm { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .pt { font-weight: 800; }
.row.me { background: #fff1f5; border-radius: 14px; padding-left: 8px; padding-right: 8px; }
.row.g1 .rk { background: #ffe18a; } .row.g2 .rk { background: #e6e8ef; } .row.g3 .rk { background: #f6d2b8; }

/* ---------- badges ---------- */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.badge { text-align: center; font-size: 11px; color: var(--muted); }
.badge b { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 4px; border-radius: 50%; background: var(--cream); font-size: 26px; }
.badge.locked b { filter: grayscale(1); opacity: .35; }
.badge.got b { background: #ffe6ee; box-shadow: 0 0 0 2px var(--pink); }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: #4b3846; }
input[type=text], input[type=password], input[type=email], input[type=number], textarea { width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--pink); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--cream); padding: 6px; border-radius: 14px; }
.seg button { padding: 10px 4px; border-radius: 10px; background: transparent; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.err { color: #d0164f; font-size: 13px; margin-top: 8px; min-height: 18px; }

/* ---------- pricing ---------- */
.tier { border: 2px solid var(--line); border-radius: 18px; padding: 16px; margin-top: 12px; }
.tier.hot { border-color: var(--pink); position: relative; }
.tier.hot::before { content: "Most popular"; position: absolute; top: -11px; right: 14px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.tier h4 { margin: 0; font-size: 18px; display: flex; justify-content: space-between; }
.tier ul { margin: 8px 0 0; padding-left: 18px; color: #4b3846; font-size: 14px; }
.fine { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* ---------- modal / toast / hearts ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15,6,20,.72); display: grid; place-items: end center; z-index: 50; animation: rise .2s ease both; }
.modal { width: 100%; max-width: 480px; background: #fff; color: var(--ink); border-radius: 26px 26px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
.modal h2 { margin: 0 0 6px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 99px; font-weight: 600; box-shadow: var(--shadow); transition: transform .3s ease; z-index: 60; max-width: 92vw; text-align: center; }
#toast.show { transform: translateX(-50%) translateY(0); }
.heart { position: fixed; font-size: 28px; pointer-events: none; animation: float 1.2s ease-out forwards; z-index: 70; }
.nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 16px 0; }
.nav button { background: var(--bg2); color: #fff; border-radius: 16px; padding: 12px 4px; font-size: 12px; font-weight: 600; }
.nav button b { display: block; font-size: 20px; }
.chatlog { max-height: 50dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; }
.msg.assistant { align-self: flex-start; background: var(--cream); }
.notice { font-size: 12px; background: #fff7d6; color: #6b5300; padding: 8px 12px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.offer { margin: 22px 0 0; text-align: center; }
.link.soft { color: rgba(255,255,255,.62); text-decoration: none; font-size: 14px; font-weight: 600; }
.offer .card { text-align: left; }

/* ---- account recovery, help, supporter (2026-11-02) ---- */
.code { font: 700 20px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; background: #fff1f5; color: #24131f; border: 2px dashed #ff3d71; border-radius: 14px; padding: 14px; text-align: center; margin: 12px 0; word-break: break-all; user-select: all; }
.row2 { display: flex; gap: 10px; } .row2 .btn { margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 14px 0 6px; text-align: left; }
.check input { width: 22px; height: 22px; flex: none; margin: 0; }
.link.dark { color: #7b6474; display: block; margin: 12px auto 0; }
.faq { border-bottom: 1px solid rgba(0,0,0,.08); padding: 10px 0; } .faq summary { font-weight: 700; cursor: pointer; min-height: 28px; } .faq p { margin: 8px 0 0; }
select, textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 14px; border-radius: 14px; border: 1.5px solid #e6d6de; background: #fff; color: #24131f; margin: 6px 0 12px; }
.ts { margin: 6px 0 10px; min-height: 0; }
.flair { font-size: .95em; }

/* ---- results message, retention, empty board (2026-11-02 b) ---- */
.sienna-says { display: flex; gap: 12px; align-items: flex-start; background: #fff; color: #24131f; border-radius: 20px; padding: 14px; margin: 16px 0 6px; text-align: left; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.sienna-says img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #ff3d71; }
.sienna-says small { display: block; font-weight: 700; color: #ff3d71; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.sienna-says p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.card .sienna-says { box-shadow: none; background: #fff6f1; margin: 10px 0; }
.btn.big { font-size: 18px; padding: 18px 20px; min-height: 60px; box-shadow: 0 10px 30px rgba(255,61,113,.45); }
.btn .pts { display: inline-block; margin-left: 6px; background: rgba(255,255,255,.25); border-radius: 999px; padding: 2px 8px; font-size: 13px; }
.fine.center { text-align: center; color: rgba(255,255,255,.75); }
.empty-board { text-align: center; padding: 10px 6px 4px; }
.empty-board .eb-icon { font-size: 38px; line-height: 1; margin-bottom: 6px; }
.empty-board b { font-size: 17px; }
.empty-board p { margin: 6px 0 0; }
.teaser .empty-board, .teaser .empty-board .fine { color: inherit; }
.up-next { border: 2px solid #ff3d71; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.chip { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #f6e9ef; color: #7b6474; }
.chip.on { background: #e3f7ea; color: #1d7a45; }
.story { margin-top: 12px; font-size: 13px; }
.story span { font-weight: 700; }
.story .bar { height: 8px; background: #f6e9ef; border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.story .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff3d71, #ff9a5a); border-radius: 999px; }
.story small { color: #7b6474; }
.tomorrow { list-style: none; padding: 0; margin: 8px 0 0; } .tomorrow li { padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 14px; }
#countdown { color: #ff3d71; }
.pulse { animation: pulse 1.4s ease 1; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,61,113,0); } 30% { box-shadow: 0 0 0 6px rgba(255,61,113,.45); } }
details.more { margin: 4px 0 10px; } details.more summary { font-size: 14px; font-weight: 600; color: #c2184d; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.soft-card { background: #fff6f1; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* ---- paid perks (2026-11-02 c) ---- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.gallery figure { margin: 0; } .gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; display: block; }
.gallery figcaption { font-size: 12px; color: #7b6474; margin-top: 4px; }
.perks-card { border: 2px solid #ffd27a; }
