:root{
  --wine:#6A1B3A; --rose:#C2185B; --rose-d:#A0174F; --pink:#F48FB1; --blush:#FCE4EC; --line:#F3D3DF;
  --bg:#FFF7FA; --card:#FFFFFF; --ink:#2B1A22; --muted:#6E5A63; --ok:#1E7B4A; --warn:#B26A00;
  --r:22px; --tab:68px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;font-size:16px}
body{overscroll-behavior-y:none}
button,input,textarea,select{font-family:inherit;font-size:16px;color:inherit}
button{cursor:pointer}
a{color:var(--rose)}
h1,h2,h3{margin:0}
.hidden{display:none!important}

#app{min-height:100%;padding:calc(var(--safe-t) + 12px) 16px calc(var(--tab) + var(--safe-b) + 20px)}
#app.full{padding-bottom:calc(var(--safe-b) + 16px)}
#app.flush{padding:0}

/* top bar */
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 16px}
.top h1{font-size:24px;font-weight:800;color:var(--wine)}
.icon-btn{width:44px;height:44px;border-radius:22px;border:1px solid var(--line);background:var(--card);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.icon-btn svg{width:20px;height:20px;stroke:var(--wine)}

/* cards */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px;margin-bottom:14px}
.card h3{font-size:16px;color:var(--wine);margin-bottom:8px}
.muted{color:var(--muted)}
.small{font-size:13px}
.row{display:flex;align-items:center;gap:12px}
.between{justify-content:space-between}
.grow{flex:1;min-width:0}
.stack{display:flex;flex-direction:column;gap:10px}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:6px 11px;border-radius:999px;background:var(--blush);color:var(--rose-d)}
.avatar{width:44px;height:44px;border-radius:22px;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;flex-shrink:0}
.avatar.sm{width:32px;height:32px;font-size:14px}

/* buttons */
.btn{height:52px;border-radius:16px;border:0;background:var(--rose);color:#fff;font-weight:700;font-size:16px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%}
.btn.wine{background:var(--wine)}
.btn.ghost{background:var(--card);color:var(--wine);border:1px solid var(--line)}
.btn.light{background:rgba(255,255,255,.18);color:#fff;border:2px solid rgba(255,255,255,.45)}
.btn.small{height:40px;font-size:14px;border-radius:12px;width:auto;padding:0 14px}
.btn:disabled{opacity:.5}
.link{background:none;border:0;color:var(--rose);font-weight:700;padding:8px 0}

/* inputs */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.field label{font-size:14px;font-weight:600}
.input,textarea.input,select.input{width:100%;min-height:50px;border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:#fff;outline:none}
.input:focus{border-color:var(--rose)}
textarea.input{min-height:100px;resize:vertical}

/* tab bar */
#tabs{position:fixed;left:0;right:0;bottom:0;height:calc(var(--tab) + var(--safe-b));padding-bottom:var(--safe-b);background:rgba(255,255,255,.96);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--line);display:flex;z-index:50}
#tabs a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;color:var(--muted);font-size:11px;font-weight:600;position:relative}
#tabs a svg{width:24px;height:24px;stroke:currentColor}
#tabs a.on{color:var(--rose)}
.badge{position:absolute;top:8px;left:calc(50% + 6px);min-width:18px;height:18px;border-radius:9px;background:var(--rose);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 5px}

/* home */
.hero{background:var(--wine);color:#fff;border-radius:28px;padding:22px;margin-bottom:14px;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-60px;top:-60px;width:180px;height:180px;border-radius:50%;background:var(--rose);opacity:.55}
.hero > *{position:relative;z-index:1}
.hero .days{font-size:56px;font-weight:800;line-height:1}
.hero .lbl{color:#F8C9DA;font-weight:600}
.love-bar{height:12px;border-radius:6px;background:var(--blush);overflow:hidden;margin:10px 0 6px}
.love-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--rose),var(--pink));border-radius:6px;transition:width .6s}
.heart-btn{width:100%;height:76px;border-radius:24px;border:0;background:var(--rose);color:#fff;font-size:19px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:14px;box-shadow:0 10px 24px rgba(194,24,91,.28)}
.heart-btn svg{width:30px;height:30px;fill:#fff}
.heart-btn.pop svg{animation:pop .6s}
@keyframes pop{0%{transform:scale(1)}40%{transform:scale(1.5)}100%{transform:scale(1)}}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.tile{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:16px;text-decoration:none;color:var(--ink);display:flex;flex-direction:column;gap:8px;min-height:96px}
.tile svg{width:26px;height:26px;stroke:var(--rose)}
.tile b{font-size:15px}
.tile span{font-size:12px;color:var(--muted)}

/* chat */
.chat-wrap{display:flex;flex-direction:column;height:100dvh}
.chat-head{padding:calc(var(--safe-t) + 10px) 16px 10px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}
.chat-list{flex:1;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:6px}
.msg{max-width:78%;padding:10px 14px;border-radius:20px;line-height:1.4;word-wrap:break-word;white-space:pre-wrap}
.msg.me{align-self:flex-end;background:var(--rose);color:#fff;border-bottom-right-radius:6px}
.msg.them{align-self:flex-start;background:#fff;border:1px solid var(--line);border-bottom-left-radius:6px}
.msg.media{padding:4px;background:transparent;border:0}
.msg img,.msg video{max-width:240px;max-height:320px;border-radius:16px;display:block}
.msg audio{width:230px}
.msg .t{font-size:11px;opacity:.7;margin-top:4px;text-align:right}
.msg.heart{align-self:center;background:none;border:0;font-size:42px;padding:2px;text-align:center}
.msg.heart .t{text-align:center;color:var(--muted);opacity:1}
.day-sep{align-self:center;font-size:12px;color:var(--muted);margin:8px 0}
.chat-bar{display:flex;align-items:flex-end;gap:8px;padding:10px 10px calc(var(--safe-b) + 10px);background:#fff;border-top:1px solid var(--line)}
.chat-bar textarea{flex:1;min-height:44px;max-height:120px;border:1px solid var(--line);border-radius:22px;padding:11px 16px;resize:none;outline:none}
.chat-bar .icon-btn.send{background:var(--rose);border-color:var(--rose)}
.chat-bar .icon-btn.send svg{stroke:#fff}
.chat-bar .icon-btn.rec{background:#E53935;border-color:#E53935;animation:blink 1s infinite}
.chat-bar .icon-btn.rec svg{stroke:#fff}
@keyframes blink{50%{opacity:.6}}

/* map */
#map{position:fixed;inset:0;bottom:calc(var(--tab) + var(--safe-b));z-index:1}
.map-ui{position:fixed;left:12px;right:12px;top:calc(var(--safe-t) + 12px);z-index:10;display:flex;gap:8px;flex-wrap:wrap}
.map-chip{background:#fff;border:1px solid var(--line);border-radius:999px;min-height:44px;padding:0 14px;display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:14px;box-shadow:0 4px 14px rgba(0,0,0,.08)}
.map-chip.on{background:var(--rose);color:#fff;border-color:var(--rose)}
.map-sheet{position:fixed;left:0;right:0;bottom:calc(var(--tab) + var(--safe-b));z-index:10;background:#fff;border-radius:24px 24px 0 0;box-shadow:0 -6px 24px rgba(0,0,0,.1);max-height:46vh;overflow-y:auto;padding:10px 16px 16px}
.map-sheet .grab{width:40px;height:5px;border-radius:3px;background:var(--line);margin:0 auto 10px}
.pin{width:40px;height:40px;border-radius:20px;border:3px solid #fff;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 10px rgba(0,0,0,.3)}
.place-pin{font-size:22px;background:#fff;border-radius:50%;width:38px;height:38px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.meet-pin{font-size:22px}
.list-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.list-row:last-child{border-bottom:0}

/* play */
.play-bg{margin:-12px -16px 0;min-height:calc(100dvh - var(--tab) - var(--safe-b));padding:calc(var(--safe-t) + 12px) 16px 24px;color:#fff;display:flex;flex-direction:column;gap:16px}
.play-bg.truth{background:var(--rose)}
.play-bg.dare{background:var(--wine)}
.qcard{background:#fff;color:var(--ink);border-radius:28px;padding:24px;box-shadow:0 18px 40px rgba(60,10,30,.25)}
.qcard .q{font-size:24px;font-weight:800;line-height:1.3;margin:12px 0}
.score{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:22px;padding:14px 16px;margin-bottom:16px}
.score .n{font-size:20px;font-weight:800}
.seg{display:flex;gap:6px;background:var(--blush);padding:5px;border-radius:999px;margin-bottom:14px}
.seg button{flex:1;height:42px;border-radius:999px;border:0;background:transparent;font-weight:600;color:var(--muted)}
.seg button.on{background:#fff;color:var(--wine);font-weight:800;box-shadow:0 2px 6px rgba(106,27,58,.12)}
.td{display:flex;gap:12px;margin-bottom:14px}
.td button{flex:1;height:170px;border:0;border-radius:26px;color:#fff;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:20px 18px;text-align:left}
.td button b{font-size:28px;font-weight:800}
.td button span{font-size:13px;opacity:.85}
.td .t{background:var(--rose)}.td .d{background:var(--wine)}
.td svg{width:32px;height:32px;stroke:#fff}
.proof img,.proof video{width:100%;border-radius:16px;margin-top:10px;max-height:360px;object-fit:cover}
.wheel{width:220px;height:220px;border-radius:50%;margin:10px auto;background:conic-gradient(var(--rose) 0 50%,var(--wine) 50% 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:22px;transition:transform 2.6s cubic-bezier(.17,.67,.2,1)}

/* album */
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 -12px}
.grid3 button{border:0;padding:0;aspect-ratio:1;background:var(--blush);overflow:hidden}
.grid3 img{width:100%;height:100%;object-fit:cover;display:block}

/* notes / lists */
.note{display:flex;gap:12px;align-items:center;padding:14px;border-radius:18px;background:#fff;border:1px solid var(--line);margin-bottom:10px;width:100%;text-align:left}
.note.locked{background:var(--blush)}
.note .ic{font-size:26px}
.check{width:28px;height:28px;border-radius:14px;border:2px solid var(--pink);background:#fff;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.check.on{background:var(--rose);border-color:var(--rose)}
.check.on::after{content:"";width:10px;height:6px;border:2.5px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
.done-txt{text-decoration:line-through;color:var(--muted)}

/* modal + toast */
.modal-bg{position:fixed;inset:0;background:rgba(43,26,34,.5);z-index:100;display:flex;align-items:flex-end;justify-content:center}
.modal{background:#fff;width:100%;max-width:520px;border-radius:26px 26px 0 0;padding:20px 18px calc(var(--safe-b) + 18px);max-height:90vh;overflow-y:auto}
.modal h2{font-size:20px;color:var(--wine);margin-bottom:12px}
.viewer{position:fixed;inset:0;background:#000;z-index:120;display:flex;flex-direction:column}
.viewer img{flex:1;object-fit:contain;width:100%;min-height:0}
.viewer .vbar{display:flex;gap:10px;padding:calc(var(--safe-t) + 10px) 14px 10px;justify-content:space-between;align-items:center;color:#fff}
#toast{position:fixed;left:50%;top:calc(var(--safe-t) + 14px);transform:translate(-50%,-140%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:14px;font-weight:600;font-size:14px;z-index:200;transition:transform .3s;max-width:90vw;text-align:center}
#toast.show{transform:translate(-50%,0)}

/* login / onboarding */
.center-screen{min-height:calc(100dvh - 40px);display:flex;flex-direction:column;justify-content:center;max-width:420px;margin:0 auto}
.logo{font-size:64px;font-weight:800;color:var(--wine);text-align:center;letter-spacing:-1px}
.logo + p{text-align:center;color:var(--muted);margin:4px 0 28px}
.who{display:flex;gap:10px;margin-bottom:14px}
.who button{flex:1;height:56px;border-radius:16px;border:2px solid var(--line);background:#fff;font-weight:700}
.who button.on{border-color:var(--rose);color:var(--rose);background:var(--blush)}
.step{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;margin-bottom:12px}
.step .row b{font-size:16px}
.step.done{border-color:#BFE3CE;background:#F3FBF6}
.step-ic{width:44px;height:44px;border-radius:14px;background:var(--blush);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.step-ic svg{width:22px;height:22px;stroke:var(--rose)}
.ios-steps{margin:10px 0 0;padding-left:20px;line-height:1.7;color:var(--muted);font-size:14px}
.empty{text-align:center;color:var(--muted);padding:30px 10px}
