*{box-sizing:border-box}
:root{
  --bg:#0b0b0f;--panel:#15151b;--panel2:#1d1d25;--line:#2c2c37;--text:#fff;--muted:#9d9daa;--accent:#fff;--danger:#ff6767;
}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;min-height:100%}
body{padding-bottom:92px}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.app-shell{max-width:560px;margin:0 auto;padding:0 16px}
.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:rgba(11,11,15,.9);backdrop-filter:blur(16px);z-index:20}
.brand{font-weight:1000;letter-spacing:.08em;font-size:22px}
.icon-btn{border:0;background:#1b1b22;color:#fff;width:42px;height:42px;border-radius:14px}
.view{padding:14px 0 24px}
.hero-card{padding:30px 4px 22px}
.hero-card h1{font-size:46px;line-height:.95;margin:10px 0 12px}
.hero-card p{font-size:18px;color:#b3b3bd;line-height:1.45}
.panel,.profile-card{background:var(--panel);border:1px solid var(--line);border-radius:24px;padding:18px;margin-bottom:16px}
.profile-card{text-align:center;padding:30px 20px}
.eyebrow{font-size:12px;letter-spacing:.12em;font-weight:900;color:#a8a8b2}
h2{font-size:31px;margin:7px 0 10px}
h3{margin:6px 0}
label{display:block;font-size:13px;font-weight:700;color:#b9b9c2;margin:16px 0 7px}
input,textarea,select{width:100%;border:1px solid #333340;background:#0f0f14;color:#fff;border-radius:14px;padding:14px;outline:none}
input:focus,textarea:focus,select:focus{border-color:#777}
textarea{min-height:110px;resize:vertical}
.primary,.secondary,.danger-btn,.ghost,.camera-btn,.small-btn{border:0;border-radius:15px;padding:15px;font-weight:900}
.primary{width:100%;background:#fff;color:#0b0b0f;margin-top:14px}
.secondary{width:100%;background:#262630;color:#fff;margin-top:12px}
.danger-btn{width:100%;background:#34191c;color:#ff9090;margin-top:12px}
.ghost{width:100%;background:transparent;color:#aaa;margin-top:10px}
.small-btn{background:#fff;color:#111;white-space:nowrap}
.row{display:flex;gap:10px}
.row input{flex:1}
.segmented{display:grid;grid-template-columns:1fr 1fr;background:#0f0f14;border-radius:14px;padding:4px;margin-bottom:12px}
.seg{border:0;background:transparent;color:#aaa;padding:11px;border-radius:11px;font-weight:800}
.seg.active{background:#292933;color:#fff}
.divider{display:flex;align-items:center;gap:10px;color:#777;margin:18px 0 6px}
.divider:before,.divider:after{content:"";height:1px;background:#2b2b34;flex:1}
.small{font-size:12px}.muted{color:var(--muted)}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin:2px 2px 14px}
.chip{border:1px solid #353541;background:#17171e;color:#fff;border-radius:999px;padding:9px 12px}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.quick{border:1px solid #30303b;background:#1c1c23;color:#fff;border-radius:14px;padding:12px;text-align:left}
.friend-picker{display:flex;gap:8px;overflow-x:auto;padding:4px 0 6px}
.friend-pill{flex:0 0 auto;border:1px solid #333340;background:#191920;color:#fff;border-radius:999px;padding:9px 12px}
.friend-pill.selected{background:#fff;color:#111}
.person-row,.request-row,.ping-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #272730}
.person-row:last-child,.request-row:last-child,.ping-row:last-child{border-bottom:0}
.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#30303b;font-weight:900}
.avatar.xl{width:84px;height:84px;margin:0 auto 12px;font-size:30px}
.person-main{flex:1;min-width:0}
.person-main .name{font-weight:900}
.person-main .sub{font-size:12px;color:#9494a0}
.story-rail{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 14px}
.story-bubble{flex:0 0 auto;width:74px;text-align:center}
.story-ring{width:66px;height:66px;border-radius:50%;padding:3px;background:linear-gradient(135deg,#fff,#6a6a78);margin:auto}
.story-ring .inner{width:100%;height:100%;background:#17171e;border-radius:50%;display:grid;place-items:center;font-weight:1000;font-size:20px}
.story-bubble .label{font-size:12px;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.feed-card{background:#15151b;border:1px solid #2c2c37;border-radius:22px;overflow:hidden;margin-bottom:16px}
.feed-head{padding:14px 14px 10px;display:flex;gap:10px;align-items:center}
.feed-copy{padding:0 14px 12px}
.feed-question{font-weight:800;font-size:16px}
.media{width:100%;display:block;max-height:520px;object-fit:cover;background:#000}
.feed-actions{display:flex;gap:8px;padding:12px 14px}
.react{border:1px solid #30303a;background:#1b1b22;color:#fff;border-radius:999px;padding:8px 11px}
.empty{text-align:center;padding:44px 18px;color:#aaa}
.empty-icon{font-size:42px}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(560px,100%);padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:rgba(14,14,18,.94);backdrop-filter:blur(18px);border-top:1px solid #25252d;display:grid;grid-template-columns:repeat(4,1fr);z-index:50}
.nav{border:0;background:transparent;color:#777;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:800}
.nav span{font-size:20px}.nav.active{color:#fff}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.82);display:grid;place-items:center;padding:16px;z-index:100}
.modal-card{width:min(520px,100%);background:#131319;border:1px solid #30303a;border-radius:26px;padding:22px}
.big-question{font-size:28px;font-weight:900;line-height:1.12}
.countdown{text-align:center;font-size:62px;font-weight:1000;margin:22px 0}
.camera-btn{display:block;text-align:center;background:#fff;color:#111}
.story-modal-card{width:min(520px,100%);max-height:90vh;overflow:auto;background:#111;border-radius:22px;position:relative}
.story-close{position:absolute;right:12px;top:12px;z-index:2;width:40px;height:40px;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff}
.story-meta{padding:16px}
.story-q{font-size:20px;font-weight:900;margin:6px 0}
.story-reply{padding:0 16px 16px}
.toast{position:fixed;left:50%;top:18px;transform:translateX(-50%);background:#fff;color:#111;padding:12px 16px;border-radius:999px;font-weight:900;z-index:200;box-shadow:0 10px 30px rgba(0,0,0,.4)}
@media(max-width:380px){.hero-card h1{font-size:38px}.quick-grid{grid-template-columns:1fr}}
