:root{--bg:#f4f4f4;--card:#fff;--ink:#111;--muted:#6b6b6b;--line:#e6e6e6;--pill:#e8e8e8;--pill-h:#dcdcdc;--mint:#d9f7e3;--grey-b:#ececec;--tick:#7c83e8}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit}
.wrap{max-width:480px;margin:0 auto;background:var(--bg);min-height:100vh;position:relative}
/* AI badge — small outlined square, like Fanvue */
/* AI badge: measured from Fanvue screenshot: square ~0.9x name cap-height, sits ~on baseline, thin dark border, sparkle top-right */
.ai-badge{display:inline-block;width:.68em;height:.68em;margin-left:.36em;vertical-align:-.05em;flex:none}
.ai-badge.sm{margin-left:.34em}
/* profile */
.cover{position:relative;height:178px;background:#ccc center 18%/cover no-repeat}
.icon-btn{position:absolute;top:14px;width:40px;height:40px;border-radius:50%;background:rgba(20,20,20,.72);display:flex;align-items:center;justify-content:center;border:0;color:#fff;text-decoration:none}
.icon-btn svg{width:22px;height:22px}
.icon-btn.l{left:12px}.icon-btn.r{right:12px}
.profile{background:var(--bg);padding:0 18px 6px;position:relative}
.avatar{width:104px;height:104px;border-radius:50%;border:3px solid #fff;background:#ddd center/cover;margin-top:-56px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.share{position:absolute;right:18px;top:16px;width:22px;height:22px;color:#222}
.name{font-size:21px;font-weight:700;margin:14px 0 2px;letter-spacing:-.3px;line-height:1.25}
.handle{color:#444;font-size:14px;display:flex;gap:12px;align-items:center}
.handle span.dot{display:inline-flex;align-items:center;gap:5px;color:#555}
.stats{display:flex;gap:18px;margin:12px 0 4px;font-size:13.5px;color:#333}
.stats span{display:inline-flex;align-items:center;gap:6px}
.stats svg{width:16px;height:16px}
.bio{font-size:15px;margin:16px 0 4px;line-height:1.45}
.more{font-size:13.5px;font-weight:600;color:#333;margin-bottom:14px;display:inline-block;cursor:pointer}
.pills{display:flex;gap:9px;margin:4px 0 12px}
.pill{flex:1;background:var(--pill);border:0;border-radius:999px;padding:11px 8px;font-size:15.5px;font-weight:600;color:#111;text-align:center;text-decoration:none;font-family:inherit;cursor:pointer}
.pill:hover{background:var(--pill-h)}
.btn-chat{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;background:#111;color:#fff;border:0;border-radius:999px;padding:16px;font-size:17px;font-weight:700;text-decoration:none;font-family:inherit;cursor:pointer;margin:6px 0 4px;letter-spacing:-.1px}
.btn-chat:active{transform:scale(.99)}
.btn-chat svg{width:20px;height:20px}
.reply-note{font-size:12.5px;color:var(--muted);text-align:center;margin:8px 0 6px}
.tabs-icons{display:flex;justify-content:space-around;background:var(--card);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;margin-top:14px;font-size:15px;color:#333}
.tabs-icons span{display:inline-flex;align-items:center;gap:8px}
.tabs-icons svg{width:20px;height:20px}
.filter{background:var(--card);padding:12px 12px 6px;display:flex;gap:8px}
.chip{border-radius:999px;padding:7px 14px;font-size:14px;font-weight:600;background:var(--pill);border:0;font-family:inherit}
.chip.on{background:#111;color:#fff}
.grid{background:var(--card);display:grid;grid-template-columns:repeat(3,1fr);gap:2px;padding:6px 0 2px}
.grid img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block;background:#ddd;cursor:pointer}
.about{background:var(--card);padding:18px;border-top:1px solid var(--line)}
.about h3{margin:0 0 8px;font-size:16px}
.about p{margin:0 0 8px;font-size:14.5px;line-height:1.5;color:#333}
footer.site{padding:22px 18px 40px;font-size:12px;color:var(--muted);line-height:1.55;text-align:center}
footer.site nav{display:flex;justify-content:center;gap:16px;margin-bottom:10px;font-size:13px}
footer.site nav a{color:#333;text-decoration:none;font-weight:500}
.sticky-cta{position:sticky;bottom:0;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 70%,rgba(244,244,244,0));display:none}
.sticky-cta.show{display:block}
/* lightbox */
.lb{position:fixed;inset:0;background:rgba(0,0,0,.9);display:none;align-items:center;justify-content:center;z-index:60}
.lb.show{display:flex}.lb img{max-width:100%;max-height:92vh}
/* age gate */
.gate{position:fixed;inset:0;background:rgba(17,17,17,.55);display:none;align-items:flex-end;justify-content:center;z-index:50}
.gate.show{display:flex}
.gate .sheet{background:#fff;width:100%;max-width:480px;border-radius:22px 22px 0 0;padding:26px 22px calc(24px + env(safe-area-inset-bottom))}
.gate h2{margin:0 0 8px;font-size:21px;letter-spacing:-.3px}
.gate p{margin:0 0 14px;color:#444;font-size:14.5px;line-height:1.5}
.gate label{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:#222;margin:10px 0;line-height:1.4}
.gate input[type=checkbox]{width:19px;height:19px;margin:1px 0 0;accent-color:#111;flex:none}
.gate .btn-chat[disabled]{opacity:.35;cursor:not-allowed}
.gate .leave{display:block;text-align:center;margin-top:12px;font-size:14px;color:#555}
/* legal pages */
.doc{background:#fff;min-height:100vh;padding:20px 20px 40px}
.doc h1{font-size:24px;margin:12px 0 6px}.doc h2{font-size:17px;margin:22px 0 6px}
.doc p,.doc li{font-size:14.5px;line-height:1.6;color:#333}
.ph{background:#fff3c4;padding:0 4px;border-radius:3px;font-weight:600}
.back-link{display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-size:14px;color:#333}
/* chat */
.chat{display:flex;flex-direction:column;height:100vh;height:100dvh;background:var(--bg);max-width:480px;margin:0 auto}
.chat-head{background:#fff;flex:none}
.ch-top{display:flex;align-items:center;gap:12px;padding:12px 14px 10px}
.ch-top a.back{width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:#111}
.ch-top a.back svg{width:22px;height:22px}
.ch-av{width:46px;height:46px;border-radius:50%;background:#ddd center/cover;flex:none}
.ch-name{font-weight:700;font-size:16px;line-height:1.3}
.ch-handle{font-size:14px;color:#555}
.ch-top .kebab{margin-left:auto;width:24px;height:24px;color:#222}
.ch-tabs{display:flex;justify-content:space-around;font-size:16.5px;font-weight:500;color:#555;border-bottom:1px solid var(--line)}
.ch-tabs a{padding:10px 8px 11px;text-decoration:none;position:relative}
.ch-tabs a.on{color:#111;font-weight:700}
.ch-tabs a.on:after{content:"";position:absolute;left:-14px;right:-14px;bottom:-1px;height:2px;background:#111;border-radius:2px}
.msgs{flex:1;overflow-y:auto;padding:12px 12px 16px;scroll-behavior:smooth}
.day{text-align:center;color:#444;font-size:14px;margin:14px 0}
.row{display:flex;align-items:flex-end;gap:8px;margin:6px 0}
.row.me{justify-content:flex-end}
.row .mini{width:30px;height:30px;border-radius:50%;background:#ddd center/cover;flex:none;visibility:hidden}
.row.last .mini{visibility:visible}
.bub{max-width:76%;padding:10px 14px 6px;border-radius:16px;font-size:15.5px;line-height:1.38;word-wrap:break-word;white-space:pre-wrap}
.them .bub{background:var(--grey-b);border-radius:16px}
.me .bub{background:var(--mint)}
.meta{display:flex;justify-content:flex-end;align-items:center;gap:4px;font-size:11.5px;color:#666;margin-top:3px}
.meta svg{width:15px;height:15px;color:var(--tick)}
.bub.media{padding:4px 4px 6px;background:var(--grey-b)}
.bub.media img,.bub.media video{display:block;width:220px;max-width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:12px;background:#d5d5d5}
.bub.media video{aspect-ratio:9/16;width:190px}
.bub.media .meta{padding-right:8px}
.typing{display:inline-flex;gap:4px;padding:14px 16px}
.typing i{width:7px;height:7px;border-radius:50%;background:#9a9a9a;animation:bl 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes bl{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.typing-label{font-size:12.5px;color:#777;margin:2px 0 4px 40px}
.sys{text-align:center;font-size:13px;color:#8a3b3b;margin:10px 20px}
.composer{flex:none;background:#fff;border-top:1px solid var(--line);padding:12px 14px calc(12px + env(safe-area-inset-bottom))}
.composer form{display:flex;align-items:flex-end;gap:10px}
.composer textarea{flex:1;border:0;outline:0;resize:none;font:inherit;font-size:16px;line-height:1.35;max-height:120px;padding:10px 4px;background:transparent;color:#111}
.composer textarea::placeholder{color:#777}
.send{width:40px;height:40px;border-radius:50%;border:0;background:#efefef;color:#aaa;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.send.ready{background:#111;color:#fff}
.send svg{width:20px;height:20px}
.composer .fine{font-size:11px;color:#999;text-align:center;margin-top:6px}

/* Fanvue CTA card inside a Yumi bubble */
.bub.ctab{padding:8px 8px 6px;background:var(--grey-b);width:250px;max-width:80%}
.cta-card{background:#fff;border-radius:12px;padding:12px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.cta-top{display:flex;align-items:center;gap:10px;margin-bottom:11px}
.cta-av{width:40px;height:40px;border-radius:50%;background:#ddd center/cover;flex:none}
.cta-name{font-weight:700;font-size:15px}
.cta-sub{font-size:12.5px;color:#777}
.cta-btn{display:block;text-align:center;background:#111;color:#fff;text-decoration:none;font-weight:700;font-size:15px;border-radius:999px;padding:11px 10px}
.cta-btn:active{transform:scale(.98)}
.bub.ctab .meta{padding-right:4px}
