/* honey — quiet, photographic, dark. One accent: green means "live / call". */
:root {
  --bg: #0a0a0b;
  --s1: #121214;
  --s2: #1b1b1e;
  --s3: #242428;
  --hair: rgba(255,255,255,.07);
  --hair2: rgba(255,255,255,.12);
  --t1: #f4f2ef;
  --t2: rgba(244,242,239,.62);
  --t3: rgba(244,242,239,.38);
  --go: #30d158;
  --me: #5ec27f;
  --ease: cubic-bezier(.22,1,.36,1);
  font-family: -apple-system, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-feature-settings: "tnum";
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--t1); width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* no double-tap zoom */
body { overflow: hidden; letter-spacing: .01em; }
body::after { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--go); display: inline-block; flex: none; box-shadow: 0 0 0 3px rgba(48,209,88,.14); }
.hidden { display: none !important; }
.eyebrow { font-size: 11px; letter-spacing: .16em; color: var(--t3); font-weight: 600; text-transform: uppercase; }
::selection { background: rgba(255,255,255,.2); }

/* ---------------- header ---------------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 64px; padding: 0 28px; display: flex; align-items: center; gap: 36px;
  background: linear-gradient(180deg, rgba(10,10,11,.9), rgba(10,10,11,0)); pointer-events: none; }
.top > * { pointer-events: auto; }
body:not(.r-home) .top { background: rgba(10,10,11,.78); backdrop-filter: saturate(140%) blur(20px); border-bottom: 1px solid var(--hair); }
.logo { font-size: 22px; font-weight: 700; letter-spacing: -.04em; display: flex; align-items: flex-start; gap: 2px; }
.logo i { width: 6px; height: 6px; border-radius: 50%; background: var(--go); margin-top: 6px; }
.nav { display: flex; gap: 26px; }
.nav a { position: relative; font-size: 14px; font-weight: 500; color: var(--t2); padding: 22px 0; transition: color .3s; }
.nav a:hover { color: var(--t1); }
.nav a.on { color: var(--t1); }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 1.5px; background: var(--t1); border-radius: 1px; }
.nav em { font-style: normal; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ff453a; color: #fff; display: inline-grid; place-items: center; margin-left: 4px; vertical-align: 2px; }
.tabs { display: flex; gap: 2px; padding: 3px; border-radius: 18px; background: rgba(255,255,255,.06); backdrop-filter: blur(12px); }
.tab { height: 30px; padding: 0 14px; border-radius: 15px; font-size: 13px; color: var(--t2); font-weight: 500; transition: all .3s var(--ease); }
.tab.on { color: var(--bg); background: var(--t1); }
body:not(.r-home) .tabs { display: none; }
.online { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t2); }
.online i { width: 6px; height: 6px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 3px rgba(48,209,88,.16); animation: live 2.4s infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 6px rgba(48,209,88,0); } }

/* ---------------- views ---------------- */
/* every view clips its own content (contain: paint also clips fixed children such as the off-screen profile panel),
   so nothing can widen the page and make it pan sideways on phones */
.view { position: fixed; inset: 0; display: none; overflow: hidden; contain: paint; }
.view.on { display: block; animation: vin .5s var(--ease); }
@keyframes vin { from { opacity: 0; } }
.page { overflow-x: hidden; overflow-y: auto; overscroll-behavior: none; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.bar { display: none; }

/* ---------------- 发现 · desktop wall ---------------- */
.wall { position: absolute; inset: 0; display: flex; gap: 8px; padding: 0 8px; overflow: hidden; }
.col { flex: 1; min-width: 0; }
.col-track { display: flex; flex-direction: column; gap: 8px; animation: up var(--dur, 90s) linear infinite; will-change: transform; }
.col.down .col-track { animation-name: down; }
.wall:hover .col-track { animation-play-state: paused; }
@keyframes up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.vignette { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(10,10,11,.88) 0, rgba(10,10,11,0) 13%), radial-gradient(ellipse 85% 75% at 50% 45%, rgba(10,10,11,0) 55%, rgba(10,10,11,.75) 100%), linear-gradient(0deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,0) 32%); }
.tile { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--s1);
  transition: transform .6s var(--ease), filter .6s var(--ease), box-shadow .6s var(--ease); }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.72) 100%); }
.tile .info { position: absolute; left: 14px; right: 14px; bottom: 13px; z-index: 2; }
.tile .nm { font-size: 15px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 6px; }
.tile .nm small { font-size: 12px; font-weight: 400; color: var(--t2); }
.tile .st { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--t2); margin-top: 4px; }
.tile .st .dot { box-shadow: none; }
.tile .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.tile .more > div { overflow: hidden; }
.tile .q { font-size: 13px; line-height: 1.55; margin-top: 10px; color: rgba(244,242,239,.9); }
.tile .go { margin-top: 12px; width: 100%; height: 36px; border-radius: 18px; background: var(--t1); color: var(--bg); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; }
.tile .go svg { width: 16px; height: 16px; }
.wall.focus .tile { filter: brightness(.38) saturate(.7); }
.wall.focus .tile:hover { filter: none; transform: scale(1.035); z-index: 5; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile:hover .more { grid-template-rows: 1fr; }
.wall-caption { position: absolute; left: 40px; bottom: 40px; z-index: 3; pointer-events: none; }
.wall-caption small { display: block; font-size: 11px; letter-spacing: .2em; color: var(--t2); font-weight: 600; margin-bottom: 14px; }
.wall-caption b { display: block; font-size: 46px; font-weight: 600; letter-spacing: -.035em; line-height: 1.12; }
.wall-caption span { display: block; font-size: 15px; color: var(--t2); margin-top: 14px; }
.feed { display: none; }

/* ---------------- 消息 · messenger ---------------- */
.msgr { position: absolute; top: 64px; left: 0; right: 0; bottom: 0; display: grid;
  grid-template-columns: clamp(300px, 21vw, 400px) minmax(0, 1fr) clamp(340px, 24vw, 440px); }
.list { border-right: 1px solid var(--hair); display: flex; flex-direction: column; min-height: 0; }
.search { margin: 14px; height: 36px; border-radius: 10px; background: var(--s1); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--t3); font-size: 13px; }
.search svg { width: 16px; height: 16px; }
.convs { flex: 1; overflow-y: auto; overscroll-behavior: none; padding: 0 8px 12px; scrollbar-width: none; }
.convs::-webkit-scrollbar { display: none; }
.cv-i { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; transition: background .25s; }
.cv-i:hover { background: var(--s1); }
.cv-i.on { background: var(--s2); }
.ava { position: relative; flex: none; }
.ava img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; object-position: center 22%; display: block; }
.ava .dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border: 2px solid var(--bg); box-shadow: none; }
.ava em { position: absolute; top: -5px; right: -6px; font-style: normal; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #ff453a; color: #fff; display: grid; place-items: center; }
.cv-i .tx { flex: 1; min-width: 0; }
.cv-i .r1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cv-i b { font-size: 14px; font-weight: 600; }
.cv-i time { font-size: 11px; color: var(--t3); flex: none; }
.cv-i p { font-size: 13px; color: var(--t3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; }
.ch-head { height: 64px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--hair); }
.ch-head .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-head .who b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.ch-head .who span { font-size: 12px; color: var(--t2); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.ch-head .who span.typing { color: var(--go); }
.ibtn { width: 38px; height: 38px; border-radius: 19px; display: grid; place-items: center; color: var(--t2); transition: background .25s, color .25s; }
.ibtn:hover { background: var(--s2); color: var(--t1); }
.ibtn svg { width: 20px; height: 20px; }
.pill { height: 36px; padding: 0 16px; border-radius: 18px; background: var(--t1); color: var(--bg); display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; transition: transform .3s var(--ease); }
.pill:hover { transform: translateY(-1px); }
.pill svg { width: 17px; height: 17px; }
.ch-back, .ch-more-m { display: none; }
.msgs { flex: 1; overflow-y: auto; overscroll-behavior: none; padding: 24px clamp(20px, 3vw, 56px) 12px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: var(--s3) transparent; }
.msgs .t { align-self: center; font-size: 11px; color: var(--t3); letter-spacing: .04em; margin: 6px 0; }
.mrow { display: flex; gap: 10px; align-items: flex-start; max-width: min(78%, 680px); animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.mrow.me { align-self: flex-end; flex-direction: row-reverse; }
.mrow > img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; object-position: center 22%; flex: none; cursor: pointer; }
.mrow.me > .meav { width: 36px; height: 36px; border-radius: 8px; flex: none; background: linear-gradient(140deg, #3a3a40, #222226); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--t2); }
.bub { position: relative; padding: 10px 14px; border-radius: 6px 16px 16px 16px; background: var(--s2); font-size: 15px; line-height: 1.55; word-break: break-word; }
.mrow.me .bub { background: var(--me); color: #07150c; border-radius: 16px 6px 16px 16px; }
.photo { border-radius: 12px; overflow: hidden; width: 210px; aspect-ratio: 3 / 4; background: var(--s1); cursor: zoom-in; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.voice { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.voice button { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 6px 16px 16px 16px; background: var(--s2); }
.voice .w { display: flex; align-items: center; gap: 2.5px; height: 18px; }
.voice .w i { width: 2.5px; border-radius: 2px; background: var(--t2); transition: background .3s; }
.voice.play .w i { animation: wv .55s ease-in-out infinite alternate; background: var(--go); }
.voice.play .w i:nth-child(2n) { animation-delay: .12s; } .voice.play .w i:nth-child(3n) { animation-delay: .24s; }
@keyframes wv { to { transform: scaleY(.3); } }
.voice .s { font-size: 13px; color: var(--t2); }
.voice .tr { font-size: 13px; line-height: 1.55; color: var(--t2); background: var(--s1); padding: 8px 12px; border-radius: 10px; display: none; max-width: 300px; }
.voice.open .tr { display: block; animation: pop .4s var(--ease); }
.voice .cvt { font-size: 11px; color: var(--t3); }
.callrec { display: flex; align-items: center; gap: 8px; }
.callrec svg { width: 18px; height: 18px; }
.callrec.miss { color: #ff6961; }
.typing-b { display: flex; gap: 4px; padding: 14px 16px; }
.typing-b i { width: 6px; height: 6px; border-radius: 3px; background: var(--t3); animation: ty 1.2s infinite; }
.typing-b i:nth-child(2) { animation-delay: .15s; } .typing-b i:nth-child(3) { animation-delay: .3s; }
@keyframes ty { 30% { transform: translateY(-4px); background: var(--t2); } }

.composer { flex: none; border-top: 1px solid var(--hair); padding: 12px 16px 14px; }
.cbar { display: flex; align-items: center; gap: 6px; }
.cbar input { flex: 1; min-width: 0; height: 42px; border-radius: 21px; background: var(--s1); padding: 0 18px; font-size: 15px; outline: none; border: 1px solid transparent; transition: border-color .25s; }
.cbar input:focus { border-color: var(--hair2); }
.cbar .hold { flex: 1; height: 42px; border-radius: 21px; background: var(--s1); font-size: 14px; font-weight: 600; color: var(--t2); display: none; }
.composer.voice-mode input { display: none; } .composer.voice-mode .hold { display: block; }
.cbar .send { height: 36px; padding: 0 16px; border-radius: 18px; background: var(--me); color: #07150c; font-size: 14px; font-weight: 600; display: none; }
.composer.has-text .send { display: block; } .composer.has-text .plus { display: none; }
.plusp { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.plusp > div { overflow: hidden; }
.composer.open .plusp { grid-template-rows: 1fr; }
.pgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 18px 4px 6px; }
.pgrid button { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--t2); }
.pgrid button span { width: 56px; height: 56px; border-radius: 16px; background: var(--s1); display: grid; place-items: center; color: var(--t1); transition: background .25s; }
.pgrid button:hover span { background: var(--s2); }
.pgrid button.vid span { background: var(--go); color: #fff; }

.prof { border-left: 1px solid var(--hair); overflow-y: auto; overscroll-behavior: none; padding: 20px 20px 32px; scrollbar-width: none; }
.prof::-webkit-scrollbar { display: none; }
.prof .m { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--s1); }
.prof .m img, .prof .m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.prof .m .live { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 14px; background: rgba(10,10,11,.55); backdrop-filter: blur(14px); font-size: 12px; font-weight: 500; }
.prof h2 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin-top: 18px; }
.prof .meta { font-size: 13px; color: var(--t2); margin-top: 4px; }
.prof .bio { font-size: 14px; line-height: 1.75; color: rgba(244,242,239,.82); margin-top: 14px; }
.prof .acts { display: flex; gap: 8px; margin-top: 18px; }
.prof .acts .pill { flex: 1; justify-content: center; height: 42px; border-radius: 21px; }
.prof .acts .ghost { width: 42px; height: 42px; border-radius: 21px; border: 1px solid var(--hair2); display: grid; place-items: center; }
.prof .acts .ghost svg { width: 18px; height: 18px; }
.rows { margin-top: 22px; border-top: 1px solid var(--hair); }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 13px; }
.rows div span { color: var(--t3); flex: none; }
.rows div b { font-weight: 500; text-align: right; }
.psec { margin-top: 26px; }
.psec .eyebrow { margin-bottom: 12px; display: block; }
.moments { display: flex; flex-direction: column; gap: 12px; }
.mo { display: flex; gap: 12px; align-items: center; }
.mo .th { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; background: var(--s2); display: grid; place-items: center; color: var(--t3); }
.mo .th img { width: 100%; height: 100%; object-fit: cover; }
.mo time { display: block; font-size: 11px; color: var(--t3); }
.mo p { font-size: 13px; line-height: 1.5; margin-top: 2px; }
.mo.now time { color: var(--go); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 6px 11px; border-radius: 14px; background: var(--s1); border: 1px solid var(--hair); font-size: 12px; color: rgba(244,242,239,.82); }
.prof-close { display: none; }

.lb { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.88); backdrop-filter: blur(20px); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .35s; }
.lb.on { opacity: 1; pointer-events: auto; }
.lb img { max-height: 88vh; max-width: 92vw; border-radius: 14px; }

/* ---------------- 此刻 ---------------- */
.np { max-width: 1240px; margin: 0 auto; padding: 128px 40px 96px; }
.np h1, .cp h1 { font-size: 56px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.np .sub, .cp .sub { font-size: 16px; line-height: 1.7; color: var(--t2); margin-top: 16px; max-width: 560px; }
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1px; margin-top: 56px; background: var(--hair); border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; }
.city { background: var(--bg); padding: 24px; }
.city-h { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.city-h b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.city-h .tm { text-align: right; }
.city-h .tm span { display: block; font-size: 28px; font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.city-h .tm small { display: block; font-size: 11px; color: var(--t3); margin-top: 6px; letter-spacing: .04em; }
.who { display: flex; flex-direction: column; gap: 4px; }
.who a { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 12px; transition: background .25s; }
.who a:hover { background: var(--s1); }
.who img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; object-position: center 22%; }
.who div { flex: 1; min-width: 0; }
.who b { font-size: 14px; font-weight: 600; } .who b small { font-size: 12px; color: var(--t3); font-weight: 400; margin-left: 6px; }
.who p { font-size: 12px; color: var(--t2); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.who .go { width: 34px; height: 34px; border-radius: 17px; border: 1px solid var(--hair2); display: grid; place-items: center; flex: none; color: var(--go); transition: background .25s, color .25s, border-color .25s; }
.who a:hover .go { background: var(--go); color: #fff; border-color: var(--go); }
.who .go svg { width: 16px; height: 16px; }
.feedline { margin-top: 72px; max-width: 680px; }
.fl { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.55; }
.fl .pair { display: flex; flex: none; }
.fl .pair img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; object-position: center 22%; border: 2px solid var(--bg); }
.fl .pair img + img { margin-left: -12px; }
.fl small { display: block; color: var(--t3); font-size: 12px; margin-top: 2px; }

/* ---------------- 创造 ---------------- */
.cp { max-width: 820px; margin: 0 auto; padding: 128px 40px 120px; }
.cp .step { margin-top: 56px; }
.cp .step .eyebrow { display: block; margin-bottom: 16px; }
.looks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.looks button { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; position: relative; }
.looks button::after { content: ""; position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s; }
.looks button.on::after { box-shadow: inset 0 0 0 2px var(--t1); }
.looks button:not(.on) img { filter: brightness(.6) saturate(.7); }
.looks img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: filter .4s; }
.sl { display: block; margin-bottom: 22px; }
.sl div { display: flex; justify-content: space-between; font-size: 13px; color: var(--t2); margin-bottom: 10px; }
.sl input { width: 100%; -webkit-appearance: none; appearance: none; height: 2px; background: var(--s3); border-radius: 1px; outline: none; }
.sl input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--t1); box-shadow: 0 2px 10px rgba(0,0,0,.5); cursor: pointer; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--hair2); font-size: 13px; color: var(--t2); transition: all .3s var(--ease); }
.opts button.on { background: var(--t1); color: var(--bg); border-color: var(--t1); font-weight: 600; }
.born { width: 100%; height: 56px; border-radius: 28px; background: var(--t1); color: var(--bg); font-size: 16px; font-weight: 600; margin-top: 64px; transition: transform .3s var(--ease); }
.born:hover { transform: translateY(-1px); }
.cp .note { text-align: center; font-size: 13px; color: var(--t3); margin-top: 14px; }

/* ---------------- incoming toast ---------------- */
.ring-toast { position: fixed; top: 76px; right: 24px; z-index: 70; width: 380px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
  border-radius: 22px; background: rgba(28,28,30,.82); backdrop-filter: saturate(160%) blur(30px); border: 1px solid var(--hair); box-shadow: 0 24px 70px rgba(0,0,0,.6);
  transform: translateY(-20px) scale(.96); opacity: 0; pointer-events: none; transition: all .6s var(--ease); }
.ring-toast.on { transform: none; opacity: 1; pointer-events: auto; }
.ring-toast img { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; object-position: center 22%; }
.rt-txt { flex: 1; min-width: 0; }
.rt-txt b { font-size: 15px; font-weight: 600; display: block; } .rt-txt span { font-size: 12px; color: var(--t2); }
.rt-txt small { display: block; font-size: 12px; color: var(--t3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-no, .rt-yes { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; flex: none; }
.rt-no { background: #ff453a; } .rt-yes { background: var(--go); animation: bob 1.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }

/* ---------------- call ---------------- */
.call { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; background: #000; overflow: hidden; touch-action: none; }
.call.on { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .5s var(--ease); }
.call-bg { position: absolute; inset: -80px; background: #000 center/cover; filter: blur(50px) brightness(.32) saturate(1.2); }
.frame { position: relative; height: min(90vh, 880px); aspect-ratio: 390 / 844; border-radius: 52px; padding: 11px; background: #0d0d0f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px #000, 0 60px 160px rgba(0,0,0,.85); }
.device { position: relative; width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: #000; clip-path: inset(0 round 41px); isolation: isolate; }
.cv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .7s var(--ease), transform .7s var(--ease); }
#cimg { display: none; }
.swap { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); opacity: 0; pointer-events: none; transition: opacity .24s ease; }
.swap.on { opacity: 1; }
.call.connected .cv { transition: none; }
.cshade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, transparent 22%, transparent 70%, rgba(0,0,0,.55) 100%); }
.pip { position: absolute; top: 6%; right: 4.5%; width: 28%; aspect-ratio: 108 / 168; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; transform: scale(.94); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pip img, .pip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.call.connected .pip { opacity: 1; transform: none; }
.ctop { position: absolute; top: 6%; left: 6.5%; transition: opacity .5s; }
.ctop b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.02em; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.ctop span { display: block; font-size: 13px; color: rgba(255,255,255,.8); margin-top: 3px; }
.cstate { position: absolute; left: 8%; right: 8%; top: 44%; text-align: center; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.75); opacity: 0; transition: opacity .5s; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.cstate.on { opacity: 1; }
.cstate b { display: block; font-size: 22px; font-weight: 600; color: #fff; letter-spacing: -.02em; margin-bottom: 4px; }
.cctrl { position: absolute; left: 0; right: 0; bottom: 5%; display: flex; justify-content: space-around; padding: 0 6%; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cctrl button { width: 56px; height: 56px; border-radius: 28px; background: rgba(255,255,255,.18); backdrop-filter: blur(20px); display: grid; place-items: center; }
.cctrl button svg { width: 24px; height: 24px; }
.cctrl .hang { background: #ff453a; }
.call.quiet .cctrl { opacity: 0; transform: translateY(14px); }
.call.quiet .ctop { opacity: 0; }
.call.ringing .cv { filter: blur(20px) brightness(.55); transform: scale(1.1); }
.tap { position: absolute; z-index: 9; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255,255,255,.5); border: 1.5px solid rgba(255,255,255,.9); opacity: 0; pointer-events: none; }
.tap.go { animation: tap .55s ease-out; }
@keyframes tap { 30% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.3); } }

/* ================= medium: drop the conversation list ================= */
@media (max-width: 1180px) and (min-width: 861px) {
  .msgr { grid-template-columns: minmax(0, 1fr) 320px; }
  .list { display: none; }
}

/* ================= mobile ================= */
@media (max-width: 860px) {
  .wall, .wall-caption, .vignette, .online, .nav { display: none; }
  .top { height: 88px; padding: env(safe-area-inset-top) 16px 0; justify-content: center; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,0)) !important; border: 0 !important; backdrop-filter: none !important; }
  body:not(.r-home) .top { display: none; }
  .logo { position: absolute; left: 18px; top: calc(env(safe-area-inset-top) + 30px); font-size: 20px; }
  .tabs { background: none; backdrop-filter: none; padding: 0; gap: 4px; }
  .tab { background: none !important; color: rgba(255,255,255,.55) !important; font-size: 16px; font-weight: 600; padding: 0 10px; position: relative; }
  .tab.on { color: #fff !important; }
  .tab.on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 16px; height: 2px; margin-left: -8px; border-radius: 1px; background: #fff; }

  .bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(54px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(10,10,11,.92); backdrop-filter: blur(20px); border-top: 1px solid var(--hair); }
  .bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; color: var(--t3); }
  .bar a.on { color: var(--t1); }
  .bar svg { width: 22px; height: 22px; }
  body.r-person .bar { display: none; }
  .view { bottom: calc(54px + env(safe-area-inset-bottom)); }
  body.r-person #v-person { bottom: 0; }

  .feed { display: block; position: absolute; inset: 0; overflow-x: hidden; overflow-y: scroll; overscroll-behavior: none; scroll-snap-type: y mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
  .feed::-webkit-scrollbar { display: none; }
  .card { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
  .card .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
  .card img.kb { animation: kb 16s ease-in-out infinite alternate; }
  @keyframes kb { to { transform: scale(1.07) translateY(-1.5%); } }
  .card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 50%, rgba(0,0,0,.84) 100%); }
  .card .info { position: absolute; left: 18px; right: 90px; bottom: 24px; z-index: 2; }
  .card .nm { font-size: 30px; font-weight: 600; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 8px; }
  .card .nm small { font-size: 15px; font-weight: 400; color: var(--t2); letter-spacing: 0; }
  .card .meta { font-size: 13px; color: rgba(255,255,255,.78); margin-top: 6px; display: flex; align-items: center; gap: 7px; }
  .card .q { display: inline-block; margin-top: 14px; padding: 10px 14px; border-radius: 6px 16px 16px 16px; background: rgba(255,255,255,.14); backdrop-filter: blur(20px); font-size: 15px; line-height: 1.5; }
  .rail { position: absolute; right: 14px; bottom: 28px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .rail a, .rail button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.85); }
  .rail .r { width: 50px; height: 50px; border-radius: 25px; background: rgba(255,255,255,.14); backdrop-filter: blur(16px); display: grid; place-items: center; }
  .rail .r.go { width: 60px; height: 60px; border-radius: 30px; background: var(--go); animation: pulse 2.2s infinite; }
  .rail .r.go svg { width: 26px; height: 26px; color: #fff; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(48,209,88,.5); } 70% { box-shadow: 0 0 0 16px rgba(48,209,88,0); } 100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); } }
  .rail .av { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.9); overflow: hidden; }
  .rail .av img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }

  .msgr { top: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); border: 0; }
  .list { display: none; }
  .chat { height: 100%; }
  .msgs, .convs, .prof { -webkit-overflow-scrolling: touch; touch-action: pan-y; overflow-x: hidden; }
  .cbar input { font-size: 16px; } /* < 16px makes iOS zoom in on focus, after which the page pans sideways */
  .ch-head { height: calc(54px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 6px 0; gap: 4px; }
  .ch-back, .ch-more-m { display: grid; }
  .ch-head .who { align-items: center; text-align: center; }
  .ch-head .who b { font-size: 16px; }
  .ch-head .pill, .ch-head .desk { display: none; }
  .msgs { padding: 16px 12px 10px; }
  .mrow { max-width: 86%; }
  .photo { width: 180px; }
  .composer { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .prof { position: fixed; inset: 0; z-index: 60; background: var(--bg); border: 0; padding: 0 0 40px; transform: translateX(100%); transition: transform .5s var(--ease); }
  .prof.on { transform: none; }
  .prof .m { border-radius: 0; aspect-ratio: auto; height: 62vh; }
  .prof .m::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 65%, var(--bg)); }
  .prof .m .live { z-index: 2; }
  .prof > :not(.m):not(.prof-close) { margin-left: 20px; margin-right: 20px; }
  .prof-close { display: grid; position: fixed; top: calc(env(safe-area-inset-top) + 14px); left: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 20px; background: rgba(0,0,0,.4); backdrop-filter: blur(14px); place-items: center; }

  .np, .cp { padding: 72px 20px 48px; }
  .np h1, .cp h1 { font-size: 38px; }
  .cities { grid-template-columns: 1fr; margin-top: 32px; }
  .looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ring-toast { top: calc(env(safe-area-inset-top) + 8px); left: 8px; right: 8px; width: auto; }
  .frame { height: 100dvh; width: 100vw; aspect-ratio: auto; border-radius: 0; padding: 0; background: #000; box-shadow: none; }
  .device { border-radius: 0; clip-path: none; }
  .ctop { top: calc(env(safe-area-inset-top) + 56px); }
  .pip { top: calc(env(safe-area-inset-top) + 52px); }
}

/* mobile inbox (消息 tab) */
.inbox-h { display: none; }
@media (max-width: 860px) {
  .msgr.inbox { grid-template-columns: minmax(0, 1fr); }
  .msgr.inbox .list { display: flex; border: 0; padding-top: env(safe-area-inset-top); }
  .inbox-h { display: block; padding: 18px 20px 4px; }
  .inbox-h b { font-size: 32px; font-weight: 600; letter-spacing: -.04em; }
  body.r-inbox .bar { display: flex; }
  body.r-inbox #v-person { bottom: calc(54px + env(safe-area-inset-bottom)); }
  .cv-i { padding: 12px 10px; }
}
body.calling::after { display: none; }
.ch-vid-m { display: none; }
@media (max-width: 860px) { .ch-vid-m { display: grid; color: var(--go); } .ch-head .who { margin-left: 38px; } }
.psec.story { padding: 16px; border-radius: 14px; background: var(--s1); border: 1px solid var(--hair); }
.psec.story .eyebrow { color: var(--go); margin-bottom: 8px; }
.psec.story p { font-size: 13px; line-height: 1.75; color: rgba(244,242,239,.82); }

#pipL, #pipV { transition: opacity .3s ease; }
#pipV { opacity: 0; }
#cimg { z-index: 2; }
/* overlay order above the crossfading main videos (z 0/1) and the ringing still (z 2) */
.swap { z-index: 3; } .cshade { z-index: 4; } .pip, .ctop, .cstate, .cctrl { z-index: 5; } .tap { z-index: 9; }
