:root { --bg: #140f24; --bg2: #21173d; --ink: #fff; --muted: #c9c0e6; --line: rgba(255,255,255,.14); --card: rgba(255,255,255,.07); --pink: #ff4d8d; --yel: #ffd166; --mint: #06d6a0; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 17px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif; min-height: 100vh;
  background: radial-gradient(1200px 600px at 10% -10%, #5b2a86 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #b8336a 0%, transparent 55%), var(--bg); background-attachment: fixed; }
a { color: var(--yel); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; max-width: 760px; margin: 0 auto; }
.logo { font-weight: 900; font-size: 22px; color: #fff; text-decoration: none; letter-spacing: -.5px; } .logo b { color: var(--pink); }
.trust { font-size: 13px; color: var(--muted); }
main { max-width: 760px; margin: 0 auto; padding: 8px 16px 24px; }
h1 { font-size: clamp(28px, 7vw, 44px); line-height: 1.1; margin: 10px 0 8px; letter-spacing: -1px; font-weight: 900; }
h2 { font-size: 20px; margin: 26px 0 10px; } .intro { color: var(--muted); font-size: 18px; }
.maker { display: grid; gap: 12px; margin-top: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px; } .step h2 { margin: 0 0 10px; font-size: 17px; display: flex; gap: 8px; align-items: center; } .step h2 span { background: var(--pink); width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 14px; } .step em { color: var(--muted); font-weight: 400; font-style: normal; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; } .chip.on { background: #fff; color: var(--bg); }
input, textarea { width: 100%; font: inherit; color: #fff; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; } input::placeholder, textarea::placeholder { color: #9d93bf; } textarea { margin-top: 8px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.small { font-size: 13px; color: var(--muted); margin: 6px 2px 0; } .muted { color: var(--muted); } .err { color: var(--yel); min-height: 1em; margin: 0; font-weight: 700; }
.btn { font: inherit; font-weight: 800; color: #fff; background: rgba(255,255,255,.1); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.btn.pri { background: linear-gradient(135deg, var(--pink), #ff7a59); border: 0; box-shadow: 0 10px 30px rgba(255,77,141,.35); } .btn.wa { background: #25d366; border: 0; color: #062e16; } .btn.ghost { background: transparent; } .btn.wide { width: 100%; font-size: 18px; padding: 15px; } .btn:disabled { opacity: .7; }
.thumbs { display: grid; gap: 8px; margin-bottom: 8px; } .th { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; } .th img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; } .th button { font: inherit; background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }
.done { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: grid; gap: 10px; text-align: center; margin-top: 16px; } .done h2 { margin: 0; font-size: 26px; }
.linkrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; } .linkrow input { font-size: 13px; }
.steps li { margin: 4px 0; color: var(--muted); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 8px 0; } .faq summary { font-weight: 700; cursor: pointer; } .faq p { color: var(--muted); }
.more { display: grid; gap: 6px; } .more a { text-decoration: none; } .langs { color: var(--muted); font-size: 14px; } .langs a { text-decoration: none; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 16px 36px; }
.big { font-size: 96px; line-height: 1; } .big.sm { font-size: 56px; }
/* viewer */
.viewer { min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; }
.stage { position: relative; width: 100%; max-width: 560px; margin: 0 auto; padding: 16px; display: grid; place-items: center; min-height: calc(100dvh - 60px); overflow: hidden; }
.scene { width: 100%; display: grid; gap: 14px; justify-items: center; text-align: center; animation: in .5s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.wob { animation: wob 2.2s ease-in-out infinite; } @keyframes wob { 0%,100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.06); } }
.giftbox { font-size: 150px; line-height: 1; background: none; border: 0; cursor: pointer; filter: drop-shadow(0 18px 30px rgba(255,77,141,.45)); }
.shake { animation: shake .45s; } @keyframes shake { 20% { transform: rotate(-14deg) scale(1.08); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
.pop { animation: pop .6s forwards; } @keyframes pop { to { transform: scale(2.4); opacity: 0; } }
.cake { position: relative; width: 240px; height: 200px; margin: 10px auto; } .tier { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 14px; }
.t1 { bottom: 0; width: 240px; height: 90px; background: linear-gradient(#ff8fb5, #ff4d8d); box-shadow: inset 0 14px 0 #fff3; } .t2 { bottom: 86px; width: 180px; height: 70px; background: linear-gradient(#ffe3a3, #ffd166); box-shadow: inset 0 12px 0 #fff6; }
.candles { position: absolute; bottom: 152px; left: 50%; transform: translateX(-50%); display: flex; gap: 18px; }
.candle { width: 12px; height: 44px; background: repeating-linear-gradient(45deg, #fff, #fff 6px, #4cc9f0 6px, #4cc9f0 12px); border: 0; border-radius: 4px; position: relative; cursor: pointer; padding: 0; }
.candle i { position: absolute; left: 50%; top: -24px; width: 14px; height: 22px; margin-left: -7px; border-radius: 50% 50% 40% 40%; background: radial-gradient(#fff6c2, #ffb703 60%, #fb5607); animation: flick .15s infinite alternate; box-shadow: 0 0 18px #ffb703; }
.candle.out i { animation: none; background: none; box-shadow: none; } .candle.out i::after { content: '💨'; position: absolute; top: -10px; left: -6px; font-size: 18px; animation: smoke 1s forwards; }
@keyframes flick { to { transform: scale(1.08) rotate(3deg); } } @keyframes smoke { to { transform: translateY(-30px); opacity: 0; } }
.yn { display: flex; gap: 14px; justify-content: center; align-items: center; min-height: 90px; } .yes { font-size: 22px; padding: 14px 26px; transition: transform .2s; } .no { font-size: 18px; } .no.run { position: absolute; transition: left .18s, top .18s; z-index: 3; }
.scr { position: relative; width: min(100%, 360px); aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; } .scr .under { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; padding: 16px; background: linear-gradient(135deg, #ffd166, #ff4d8d); color: #1b1030; } .scr .under h2 { margin: 0; } .scr canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.card { width: 100%; background: #fff; color: #1b1030; border-radius: 26px; padding: 22px 20px; text-align: left; box-shadow: 0 20px 60px rgba(0,0,0,.4); } .card h1 { font-size: clamp(26px, 7vw, 36px); margin: 6px 0 12px; } .card .dear { font-weight: 800; margin: 0; } .card .msg { font-size: 19px; } .card .from { font-weight: 800; text-align: right; color: #b8336a; margin-bottom: 0; }
.end { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.story { position: fixed; inset: 0; background: #000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; z-index: 10; cursor: pointer; } .bars { display: flex; gap: 4px; padding: 12px 10px; } .bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); } .bars i.f { background: #fff; } .bars i.a { background: linear-gradient(90deg, #fff 50%, rgba(255,255,255,.3) 50%); background-size: 200% 100%; background-position: 100% 0; animation: fill 5s linear forwards; }
@keyframes fill { to { background-position: 0 0; } }
.ph { display: grid; place-items: center; overflow: hidden; min-height: 0; } .ph img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; } .cap { text-align: center; font-size: 20px; font-weight: 800; padding: 10px 16px; margin: 0; } .story .small { text-align: center; padding-bottom: 18px; }
.vfoot { padding: 10px 16px 16px; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }
@media (prefers-reduced-motion: reduce) { .wob, .candle i, .shake { animation: none; } }
.rectoggle { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; font-weight: 700; cursor: pointer; max-width: 360px; } .rectoggle input { width: 20px; height: 20px; } .rectoggle small { grid-column: 2; font-weight: 400; color: var(--muted); }
.recbub { position: fixed; top: 12px; right: 12px; z-index: 30; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.6); border-radius: 999px; padding: 4px 6px 4px 4px; color: #fff; font: 800 12px system-ui; } .recvid { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; transform: scaleX(-1); } .recbub .dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; animation: blink 1s infinite; } .recbub button { background: #fff; color: #000; border: 0; border-radius: 50%; width: 26px; height: 26px; font-size: 11px; cursor: pointer; }
@keyframes blink { 50% { opacity: .2; } }
.recout { position: fixed; inset: 0; z-index: 40; background: rgba(10,8,20,.85); display: grid; place-items: center; padding: 16px; } .recpanel { width: min(100%, 420px); background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; padding: 16px; display: grid; gap: 10px; text-align: center; } .recpanel h2 { margin: 0; } .recpanel video { width: 100%; max-height: 55vh; border-radius: 16px; background: #000; }
.calc { margin-top: 14px; display: grid; gap: 8px; }
.result { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: grid; gap: 10px; text-align: center; }
.result .names { font-weight: 900; font-size: 22px; margin: 0; } .result .pct { font-size: 84px; font-weight: 900; color: var(--yel); line-height: 1; }
.meter { height: 14px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; } .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--yel)); border-radius: 999px; }
.result .band { margin: 6px 0 0; font-size: 26px; } .result .line { margin: 0; } .traits { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 6px; } .traits li { background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px; }
.qs { display: grid; gap: 8px; } .qc { background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 16px; padding: 10px; } .qc.off { opacity: .55; }
.qh { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; } .qh input[type=checkbox] { width: 20px; height: 20px; } .qt { font-weight: 700; padding: 8px 10px; }
.opts { display: grid; gap: 6px; margin-top: 8px; } .opt { display: grid; grid-template-columns: auto 1fr; gap: 6px; align-items: center; } .opt button { font-size: 20px; background: none; border: 0; cursor: pointer; } .opt input { padding: 8px 10px; } .opt.right input { border-color: var(--mint); }
.warn { color: var(--yel); }
.qbar { width: 100%; height: 8px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; } .qbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--yel)); }
.qq { font-size: clamp(26px, 7vw, 36px); } .answers { display: grid; gap: 10px; width: 100%; } .ans { font: inherit; font-size: 19px; font-weight: 800; color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; } .ans.picked { background: var(--pink); }
.qboard { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: 6px; counter-reset: r; } .qboard li { display: flex; justify-content: space-between; background: rgba(255,255,255,.07); border-radius: 12px; padding: 8px 12px; counter-increment: r; } .qboard li span::before { content: counter(r) '. '; color: var(--muted); } .qboard li.me { outline: 2px solid var(--yel); }
.scene .pct { font-size: 84px; font-weight: 900; color: var(--yel); line-height: 1; } .review { width: 100%; text-align: left; background: rgba(255,255,255,.06); border-radius: 14px; padding: 8px 12px; } .review summary { cursor: pointer; font-weight: 800; }
.scene input { max-width: 360px; } .scene .btn { width: 100%; max-width: 360px; }
