/* Pulse: the look (the file keeps the name yipi.css). Black and white, a lot of air, big rounded cards; no colour at all in the design
   (only the pictures people post bring colour). It works on every screen and uses all of it: on a phone a floating bar with five tabs at the bottom (Home, Chats, Nex in the
   middle, Games, Videos), from 820 px on a bar at the left edge, and the rest of the width is filled by cards in a grid, panes side by side and big pictures.
   Three themes (dark, dim, light) set by data-theme on <html>; they define exactly the same tokens. */

@font-face { font-family: "Inter"; src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/static/fonts/Nunito-Variable.ttf") format("truetype"); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --danger: #fe2c55;
  --warn: #f5b942;
  --radius: 24px;
  --radius-lg: 30px;
  --tabbar: 66px;
  --pad: 14px;
  --side: 0px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color-scheme: dark;
}

:root[data-theme="dark"] {
  --bar: #151515;
  --tab-off: #d2d2d2;
  --bg: #000;
  --card: #111;
  --card-2: #1c1c1c;
  --bg-2: rgba(255, 255, 255, 0.06);
  --bg-3: rgba(255, 255, 255, 0.11);
  --glass: rgba(0, 0, 0, 0.72);
  --glass-strong: rgba(18, 18, 18, 0.9);
  --glass-line: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #fff;
  --muted: #9b9b9b;
  --hover: rgba(255, 255, 255, 0.07);
  --scrim: rgba(0, 0, 0, 0.66);
  --ink: #fff;
  --on-ink: #000;
  --tag: #ff9fd0;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
:root[data-theme="dim"] {
  --bar: #262626;
  --tab-off: #d2d2d2;
  --bg: #1a1a1a;
  --card: #262626;
  --card-2: #333;
  --bg-2: rgba(255, 255, 255, 0.07);
  --bg-3: rgba(255, 255, 255, 0.12);
  --glass: rgba(26, 26, 26, 0.74);
  --glass-strong: rgba(38, 38, 38, 0.92);
  --glass-line: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f4f4f4;
  --muted: #a3a3a3;
  --hover: rgba(255, 255, 255, 0.07);
  --scrim: rgba(0, 0, 0, 0.6);
  --ink: #f4f4f4;
  --on-ink: #1a1a1a;
  --tag: #ff9fd0;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bar: #eeeeee;
  --tab-off: #8a8a8a;
  --bg: #fff;
  --card: #f3f3f3;
  --card-2: #e6e6e6;
  --bg-2: rgba(0, 0, 0, 0.045);
  --bg-3: rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-line: rgba(0, 0, 0, 0.1);
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.2);
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --hover: rgba(0, 0, 0, 0.05);
  --scrim: rgba(0, 0, 0, 0.4);
  --ink: #0a0a0a;
  --on-ink: #fff;
  --tag: #d6247f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); letter-spacing: -0.003em; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent; }
body.modal-open { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
img, svg { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 8px; }
main:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 3000; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 48px 24px; text-align: center; }

/* ---------------------------------------------------------------------------------------------- frame */
.app { position: relative; min-height: 100vh; min-height: 100dvh; padding: 0 var(--pad) 0 calc(var(--side) + var(--pad)); }
.app.bare { padding: 0; }
.main { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--tabbar) + 44px + env(safe-area-inset-bottom)); }
.app.bare .main { padding-bottom: 0; }

.tabbar { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 24px), 480px); height: var(--tabbar); padding: 0 8px; transform: translateX(-50%); border: 1px solid var(--glass-line); border-radius: 36px; background: var(--glass-strong); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); box-shadow: var(--shadow); }
.app.bare .tabbar { display: none; }
.tab-item { position: relative; flex: 1; display: grid; place-items: center; height: 100%; border-radius: 30px; color: var(--muted); transition: color 0.15s, transform 0.1s, background 0.15s; }
.tab-item:active { transform: scale(0.92); }
.tab-item.active { color: var(--text); }
.tab-item.active::after { content: ""; position: absolute; bottom: 7px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.tab-ic { position: relative; display: grid; place-items: center; width: 30px; height: 30px; flex: none; }
.tab-ic svg { width: 27px; height: 27px; }
.tab-label, .side-brand, .side-foot { display: none; }
.tab-item.nex-tab { flex: 0 0 68px; }
.tab-item.nex-tab::after { display: none; }
.nex-tab .tab-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--on-ink); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); transition: box-shadow 0.2s; }
.nex-tab .tab-ic svg { width: 26px; height: 26px; }
.nex-tab.active .tab-ic { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink), 0 6px 16px rgba(0, 0, 0, 0.35); }
.badge { position: absolute; top: -4px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 819px) {
  .app[data-route="thread"] .main, .app[data-route="group"] .main, .app[data-route="nex"] .main, .app[data-route="videos"] .main { padding-bottom: 0; }
  .app[data-route="thread"] .tabbar, .app[data-route="group"] .tabbar, .app[data-route="nex"] .tabbar { display: none; }
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.pad { padding: 20px 4px; }
.handle, .dot { color: var(--muted); }
.tok { font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.tok:hover { text-decoration-color: currentColor; }
.hashtag { color: var(--tag); font-weight: 600; text-decoration: none; }
.hashtag:hover { text-decoration: underline; text-decoration-color: var(--tag); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--bg-3); color: var(--muted); font-size: 12px; font-weight: 600; }
.hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.hint.good { color: var(--text); font-weight: 600; }
.hint.bad { color: var(--danger); }
.linklike { color: var(--muted); font-size: 13px; }
.linklike:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------------------------- buttons, fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; white-space: nowrap; transition: opacity 0.15s, background 0.15s, transform 0.1s; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.primary:hover:not(:disabled) { opacity: 0.88; }
.btn.ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--hover); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { min-height: 34px; padding: 0 16px; font-size: 13.5px; }
.btn.wide { width: 100%; min-height: 50px; font-size: 16px; }
.btn:disabled { opacity: 0.4; }
.btn.busy { position: relative; color: transparent; }
.btn.busy::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--on-ink); border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.follow { background: var(--ink); color: var(--on-ink); min-width: 104px; }
.btn.follow.following { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.follow.following .t-hover { display: none; }
.btn.follow.blocked { background: var(--danger); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text); flex: none; transition: background 0.15s, color 0.15s, opacity 0.15s; }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover:not(:disabled) { background: var(--hover); }
.icon-btn.small { width: 32px; height: 32px; color: var(--muted); }
.icon-btn.small svg { width: 19px; height: 19px; }
.icon-btn.tiny { width: 30px; height: 30px; color: var(--muted); }
.icon-btn.outlined { border: 1px solid var(--line-strong); background: var(--card); }
.icon-btn.round { width: 44px; height: 44px; background: var(--card); border: 1px solid var(--line); }
.icon-btn.solid { background: var(--ink); color: var(--on-ink); }
.icon-btn.solid:hover:not(:disabled) { background: var(--ink); opacity: 0.88; }
.icon-btn.glass { background: rgba(0, 0, 0, 0.55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.icon-btn:disabled { opacity: 0.35; }

.card { border-radius: var(--radius); background: var(--card); padding: 16px 0; overflow: hidden; }
.card > h2 { padding: 0 18px 10px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.card > p, .card > .btn, .card > label, .card > .field-label { margin-left: 18px; margin-right: 18px; }
.card.join { padding: 18px; display: flex; flex-direction: column; gap: 10px; }

.avatar { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: var(--bg-3); color: var(--text); font-weight: 700; user-select: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.letters { background: var(--card-2); }
.avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar.md { width: 46px; height: 46px; font-size: 17px; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar.xl { width: 104px; height: 104px; font-size: 38px; }
.avatar.group { border-radius: 16px; background: var(--card-2); }
.avatar.group svg { width: 55%; height: 55%; }

.field, .field-area { display: block; width: 100%; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--bg-2); resize: vertical; transition: border-color 0.15s, background 0.15s; }
.field:focus, .field-area:focus { border-color: var(--text); }
.field::placeholder, .field-area::placeholder { color: var(--muted); }
.field-label { display: block; margin-top: 14px; }
.field-label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.field-count { display: block; text-align: right; color: var(--muted); font-size: 12px; margin-top: 2px; }
.form-error { margin-top: 12px; padding: 11px 14px; border-radius: 14px; background: rgba(254, 44, 85, 0.14); color: var(--danger); font-size: 14px; }
.notice { margin-top: 12px; padding: 11px 14px; border-radius: 14px; background: var(--bg-2); color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------------------------------------- top bars, tabs */
.topbar { position: sticky; top: 0; z-index: 20; margin: 0 calc(var(--pad) * -1); padding: env(safe-area-inset-top) var(--pad) 2px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.topbar-row { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.topbar-title { flex: 1; min-width: 0; line-height: 1.15; }
.topbar-title h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title .sub { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.topbar.big .topbar-title h1 { font-size: 36px; letter-spacing: -0.035em; }
.topbar-search { padding: 0 0 10px; }

.tabs { display: flex; gap: 4px; padding: 4px; margin: 2px 0 8px; border-radius: 999px; background: var(--bg-2); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.tab.on { background: var(--ink); color: var(--on-ink); }
.tabs.single { padding: 0; background: none; }
.tabs.single .tab { padding: 8px 4px; background: none; color: var(--text); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; text-align: left; cursor: default; }
.note-tabs, .profile-tabs { padding-top: 4px; }

.new-pill { position: sticky; top: 74px; z-index: 15; display: block; margin: 8px auto -36px; padding: 9px 20px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 700; box-shadow: var(--shadow); animation: drop 0.25s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

.home-head { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.home-head .search-box { flex: 1; min-width: 0; }
.avatar-btn { display: grid; place-items: center; position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; }
.avatar-btn.menu-btn svg { width: 22px; height: 22px; }
.avatar-btn.menu-btn { background: var(--card); border: 1px solid var(--line); }
.avatar-btn .badge { top: -3px; right: -3px; }
.guest-bar { display: flex; align-items: center; gap: 10px; }

/* ---------------------------------------------------------------------------------------------- posts (cards) */
.view > .post, .thread-main > .post { margin-top: 10px; }
.thread-above { display: grid; gap: 14px; }
.thread-above:not(:empty) { margin-top: 10px; }
.pager > .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px 24px; padding-top: 6px; align-items: start; }
.pager > .list > .user-row { padding: 14px 16px; border-radius: var(--radius); background: var(--card); }
.people-dialog .pager > .list { padding-top: 0; gap: 0; }
.people-dialog .pager > .list > .user-row { padding: 12px 4px; background: none; border-radius: 0; }
.pager > .list > .note { margin-top: 0; }
.tiles .list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 6px 0; }
.post { position: relative; padding: 16px 16px 6px; border-radius: var(--radius); background: var(--card); transition: background 0.12s; }
.post:not(.detail):not(.gone) { cursor: pointer; }
.post:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: var(--radius); }
.post.faded { opacity: 0.5; }
.post.gone { color: var(--muted); }
.post.line::after { content: ""; position: absolute; left: 33px; bottom: -14px; width: 2px; height: 14px; background: var(--line-strong); }
.act-btn { display: inline-flex; align-items: center; gap: 5px; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; transition: color 0.12s, background 0.12s, transform 0.12s; }
.act-btn:hover:not(:disabled) { color: var(--text); background: var(--hover); }
.act-btn:active { transform: scale(0.92); }
.act-btn svg { width: 19px; height: 19px; }
.act-btn.like.on, .act-btn.repost.on { color: var(--text); }
.act-btn.like.on svg { animation: pop 0.35s ease-out; }
.pill-ic { display: grid; place-items: center; }
.pill-count { min-width: 0; }
.post-actions { display: flex; align-items: center; justify-content: space-between; gap: 2px; max-width: 440px; margin: 8px -8px 0; }
@keyframes pop { 0% { transform: scale(0.6); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }
.post-context { display: flex; align-items: center; gap: 8px; margin: -4px 0 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.post-context a:hover { text-decoration: underline; }
.ctx-ic { display: grid; place-items: center; width: 16px; }
.ctx-ic svg { width: 15px; height: 15px; }
.post-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.post-av { display: block; flex: none; }
.post-who { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 5px; line-height: 1.3; white-space: nowrap; }
.post-name { display: block; flex: 0 1 auto; min-width: 0; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.post-name:hover { text-decoration: underline; }
.post-meta { display: flex; align-items: baseline; flex: 1 1 auto; gap: 5px; min-width: 0; color: var(--muted); font-size: 14px; font-weight: 400; white-space: nowrap; }
.post-meta .dot, .post-meta .post-time { flex: none; }
.post-meta .handle { overflow: hidden; text-overflow: ellipsis; }
.post-time:hover { text-decoration: underline; }
.post-body { margin-top: 12px; }
.post-body > * + * { margin-top: 10px; }
.post-text { white-space: pre-wrap; font-size: 16px; line-height: 1.45; }
.reply-line { color: var(--muted); font-size: 14px; }
.factcheck { padding: 12px 14px; border-radius: 16px; background: var(--card-2); border-left: 4px solid var(--ink); }
.fc-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.fc-head svg { width: 18px; height: 18px; flex: none; }
.fc-note { margin-top: 6px; font-size: 15px; line-height: 1.4; }
.fc-foot { margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.stat-link { color: var(--muted); }
.stat-link:hover { text-decoration: underline; }

.media { position: relative; display: grid; gap: 3px; border-radius: 18px; overflow: hidden; }
.media-item { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--bg-3); cursor: zoom-in; }
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.media.m1 { max-height: 520px; }
.media.m1 .media-item { max-height: 520px; }
.media.m2 { grid-template-columns: 1fr 1fr; aspect-ratio: 4 / 3; }
.media.m3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3; }
.media.m3 .media-item:first-child { grid-row: span 2; }
.gif-badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 9px; border-radius: 8px; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; pointer-events: none; }
.media-item.is-gif { cursor: pointer; }
.media.m1:has(.is-gif) { max-width: 360px; }
.media-item.is-gif img { object-fit: contain; background: var(--bg-3); }

.quote { border: 1px solid var(--line-strong); border-radius: 18px; padding: 12px; cursor: pointer; }
.quote.gone { color: var(--muted); cursor: default; background: var(--bg-2); }
.quote-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; min-width: 0; }
.quote-head b, .quote-head .handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-media { margin-top: 8px; border-radius: 14px; overflow: hidden; max-height: 200px; }
.quote-media img { width: 100%; max-height: 200px; object-fit: cover; }

.post.detail { padding: 20px 16px 14px; cursor: default; }
.post.detail .post-text { font-size: 19px; line-height: 1.4; }
.post.detail .post-who { flex-direction: column; align-items: flex-start; gap: 0; }
.detail-time { margin-top: 14px; color: var(--muted); font-size: 13px; }
.post-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.post.detail .post-actions { max-width: none; padding-top: 4px; border-top: 1px solid var(--line); margin-top: 10px; }
.post-stats b { color: var(--text); }
.reply-login { padding: 22px 8px; text-align: center; }
.reply-login p { margin-bottom: 10px; color: var(--muted); }

/* ---------------------------------------------------------------------------------------------- composer, polls */
.composer { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
.composer.drop { background: var(--hover); }
.compose-main { min-width: 0; }
.compose-text { display: block; width: 100%; min-height: 52px; padding: 10px 0; border: 0; background: transparent; font-size: 19px; line-height: 1.35; resize: none; overflow: hidden; }
.compose-text::placeholder { color: var(--muted); }
.composer.compact { margin-top: 26px; padding: 14px; border-radius: var(--radius); background: var(--card); }
.composer.compact .compose-text { font-size: 17px; min-height: 44px; }
.compose-media { display: grid; gap: 4px; margin-bottom: 8px; }
.compose-media.m1 { grid-template-columns: 1fr; }
.compose-media.m2 { grid-template-columns: 1fr 1fr; }
.compose-media.m3 { grid-template-columns: 1fr 1fr 1fr; }
.pv { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg-3); aspect-ratio: 1; }
.compose-media.m1 .pv { aspect-ratio: auto; max-height: 320px; }
.pv img { width: 100%; height: 100%; object-fit: cover; }
.compose-media.m1 .pv img { object-fit: contain; max-height: 320px; margin: 0 auto; }
.pv-x { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, 0.65); color: #fff; }
.pv-x svg { width: 15px; height: 15px; }
.pv-alt { position: absolute; left: 6px; bottom: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 11.5px; font-weight: 700; }
.pv-alt.set { background: #fff; color: #000; }
.compose-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.tools { display: flex; margin-left: -8px; }
.tools .icon-btn { width: 38px; }
.tool { color: var(--text); }
.tool.on { background: var(--bg-3); }
.send { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ring { width: 24px; height: 24px; }
.ring-track { fill: none; stroke: var(--line-strong); stroke-width: 2.4; }
.ring-bar { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; transition: stroke-dashoffset 0.12s linear; }
.ring[data-state="warn"] .ring-bar { stroke: var(--warn); }
.ring[data-state="over"] .ring-bar { stroke: var(--danger); }
.ring-left { min-width: 22px; text-align: right; font-size: 13px; color: var(--muted); }
.ring-left:empty { display: none; }
.ring-left[data-state="over"] { color: var(--danger); }
.post-btn { min-width: 84px; }
.emoji-pop { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; width: min(316px, calc(100vw - 16px)); max-height: 260px; overflow-y: auto; }
.emoji { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-size: 20px; }
.emoji:hover { background: var(--hover); }
.menu.emoji-menu { padding: 0; }
.compose-dialog { min-height: 40vh; }
.compose-dialog .composer { padding: 4px 0 0; }
.compose-context { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 4px 0 12px; }
.compose-context .post-text { font-size: 15px; }
.cc-who { line-height: 1.25; margin-bottom: 2px; }
.quote-preview { margin: 0 0 4px 58px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 16px; }
.quote-preview .compose-context { padding: 0; }
.cc-line { display: flex; flex-direction: column; align-items: center; }
.alt-preview { max-height: 220px; width: auto; margin: 0 auto 12px; border-radius: 14px; }
.choices { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 12px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 14px; cursor: pointer; }
.choice:hover { background: var(--hover); }
.choice input { width: 20px; height: 20px; accent-color: var(--text); flex: none; }
.choices.big .choice { border: 1px solid var(--line); padding: 14px 16px; background: var(--bg-2); }
.choices.big .choice:has(input:checked) { border-color: var(--text); background: var(--bg-3); }
.choice-text { display: flex; flex-direction: column; }
.choice-text small { color: var(--muted); }

.poll-holder { display: block; }
.poll { display: flex; flex-direction: column; gap: 8px; }
.poll-opt { width: 100%; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 700; text-align: center; transition: background 0.15s; }
.poll-opt:hover { background: var(--hover); }
.poll-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 16px; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.poll-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--bg-3); transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.poll-row.lead .poll-fill { background: color-mix(in srgb, var(--text) 24%, transparent); }
.poll-label { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.poll-label svg { width: 16px; height: 16px; }
.poll-row.lead .poll-label, .poll-pct { position: relative; font-weight: 800; }
.poll-foot { color: var(--muted); font-size: 13px; }
.poll-editor { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 10px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--bg-2); }
.poll-head { display: flex; align-items: center; justify-content: space-between; }
.poll-input { display: flex; align-items: center; gap: 6px; }
.poll-add { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-weight: 700; }
.poll-add svg { width: 18px; height: 18px; }
.poll-duration { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.poll-length { width: auto; padding: 8px 12px; }

/* ---------------------------------------------------------------------------------------------- people, lists, states */
.user-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; }
.ur-av { display: block; flex: none; }
.ur-main { flex: 1; min-width: 0; }
.ur-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ur-name b, .ur-name .handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ur-name:hover b { text-decoration: underline; }
.ur-bio { margin-top: 2px; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.people-dialog { max-height: 62vh; min-height: 120px; overflow-y: auto; }
.list-foot { min-height: 1px; }
.sentinel { height: 1px; }
.skeletons { padding: 4px 0; }
.skeleton { display: flex; gap: 12px; margin-top: 18px; padding: 18px 16px; border-radius: var(--radius); background: var(--card); }
.sk-av { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.sk-lines i { display: block; height: 12px; border-radius: 6px; }
.sk-av, .sk-lines i { background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 56px 24px; text-align: center; }
.empty h3, .empty h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; line-height: 1.2; }
.empty p { color: var(--muted); margin: 0 auto 20px; max-width: 340px; }
.empty .btn { margin-top: 4px; }
.empty.big { padding-top: 72px; }
.empty-logo svg { width: 60px; height: 60px; margin: 0 auto 16px; }
.list-error { padding: 24px; text-align: center; color: var(--muted); }
.list-error p { margin-bottom: 12px; }
.section-title { padding: 26px 4px 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.hero { margin-top: 18px; padding: 28px 22px 24px; text-align: center; border-radius: var(--radius-lg); background: var(--card); }
.hero-logo svg { width: 52px; height: 52px; margin: 0 auto 12px; }
.hero h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.hero p { color: var(--muted); margin: 0 auto 20px; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.explore-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; padding-top: 10px; align-items: start; }
.trend { display: flex; flex-direction: column; padding: 11px 18px; line-height: 1.3; }
.t-kicker, .t-count { color: var(--muted); font-size: 13px; }
.trend b { font-size: 16px; }
.card-more { display: block; padding: 12px 18px 0; font-weight: 700; }
.card-more:hover { text-decoration: underline; }
.explore-body { min-height: 30vh; }
.search-box { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: border-color 0.15s, color 0.15s; }
.search-box:focus-within { border-color: var(--text); color: var(--text); }
.search-box svg { width: 18px; height: 18px; flex: none; }
.search-input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); outline: none; }
.search-input::-webkit-search-cancel-button { filter: grayscale(1); }
.recent { padding: 4px 0; }
.recent-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; }
.recent-head h2 { font-size: 20px; font-weight: 800; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 13px 4px; }
.recent-item svg { width: 18px; height: 18px; color: var(--muted); }

.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-3); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .gif-badge { left: 6px; bottom: 6px; }
.tile-count { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 12px; font-weight: 700; }
.tile-count svg { width: 13px; height: 13px; }

/* ---------------------------------------------------------------------------------------------- notifications */
.note-list { min-height: 40vh; }
.note { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px; margin-top: 12px; padding: 16px; border-radius: var(--radius); background: var(--card); }
.note.unread { box-shadow: inset 3px 0 0 var(--ink); }
.note-ic svg { width: 26px; height: 26px; }
.note-main { min-width: 0; }
.note-faces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.note-text { line-height: 1.35; }
.who { font-weight: 700; }
.who:hover { text-decoration: underline; }
.note-snippet { display: block; margin-top: 4px; color: var(--muted); }
.note-snippet:not(.plain):hover { text-decoration: underline; }
.note.with-post .post { margin: 12px -8px -8px -44px; background: var(--card-2); }

/* ---------------------------------------------------------------------------------------------- profile */
.banner { position: relative; width: 100%; aspect-ratio: 3 / 1; margin-top: 4px; border-radius: var(--radius); background: var(--card-2); overflow: hidden; }
.banner a, .banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-body { padding: 0 4px 12px; }
.ph-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: -48px; }
.ph-avatar { border: 4px solid var(--bg); border-radius: 50%; background: var(--bg); }
.ph-avatar .avatar { display: grid; }
.ph-actions { display: flex; align-items: center; gap: 8px; padding-top: 56px; }
.ph-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 8px; }
.ph-name h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.ph-bio { margin-top: 12px; white-space: pre-wrap; }
.ph-own { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ph-own .chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; }
.ph-own .chip svg { width: 18px; height: 18px; }
.ph-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; color: var(--muted); }
.ph-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ph-meta svg { width: 16px; height: 16px; }
.ph-meta a { color: var(--text); }
.ph-meta a:hover { text-decoration: underline; }
.ph-counts { display: flex; gap: 20px; margin-top: 12px; color: var(--muted); }
.ph-counts b { color: var(--text); }
.ph-counts a:hover { text-decoration: underline; }
.edit-profile { margin: -4px 0; padding-bottom: 8px; }
.edit-banner { position: relative; aspect-ratio: 3 / 1; border-radius: 18px; overflow: hidden; background: var(--card-2); }
.edit-banner img { width: 100%; height: 100%; object-fit: cover; }
.edit-tools { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.edit-avatar { position: relative; width: 104px; margin: -44px 0 0 12px; border: 4px solid var(--card); border-radius: 50%; background: var(--card); }
.edit-avatar .icon-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.edit-avatar .icon-btn.remove { transform: translate(calc(-50% + 34px), calc(-50% + 34px)); width: 28px; height: 28px; }

/* ---------------------------------------------------------------------------------------------- chats */
.chats-body { padding-top: 6px; }
.chat-list { border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.convo { display: flex; align-items: center; gap: 13px; padding: 14px 16px; transition: background 0.12s; }
.convo + .convo { border-top: 1px solid var(--line); }
.convo:active { background: var(--hover); }
.convo-main { flex: 1; min-width: 0; }
.convo-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.convo-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.convo-time { flex: none; color: var(--muted); font-size: 12.5px; }
.convo-last { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo.unread .convo-last { color: var(--text); font-weight: 600; }
.convo.unread .convo-time { color: var(--text); font-weight: 700; }
.unread-dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; flex: none; }
.chat-list .empty { padding: 44px 24px; }
.convo.active { background: var(--bg-3); }
.chat-search { margin: 2px 0 10px; height: 44px; background: var(--bg-2); border-color: transparent; }
.chat-tabs .tabs { margin: 0 0 10px; width: 100%; }
.chat-tabs .tab { flex: 1; }
.chat-requests, .chat-folder { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 16px; margin-bottom: 10px; border-radius: var(--radius); background: var(--card); text-align: left; }
.chat-requests-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--card-2); }
.chat-requests-ic svg { width: 22px; height: 22px; }
.chat-requests-text, .chat-folder-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.chat-requests small, .chat-folder small { color: var(--muted); }
.chat-requests > svg, .chat-folder > svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform 0.15s; }
.chat-folder { margin: 14px 0 10px; }
.chat-folder[aria-expanded="true"] > svg { transform: rotate(90deg); }
.request-bar { margin: 10px 0 16px; padding: 16px; border-radius: var(--radius); background: var(--card); text-align: center; }
.request-text { color: var(--muted); }
.request-text b { color: var(--text); display: block; margin-bottom: 2px; }
.request-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.chat-empty { display: none; }
.bubble-time { white-space: nowrap; }
.pick-list { display: flex; flex-direction: column; margin-top: 12px; min-height: 80px; max-height: 50vh; overflow-y: auto; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 14px; text-align: left; width: 100%; }
.pick:hover { background: var(--hover); }
.pick-main { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.pick input { width: 20px; height: 20px; accent-color: var(--text); flex: none; }
.thread-view { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.chat-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; margin: 0 calc(var(--pad) * -1); padding: calc(10px + env(safe-area-inset-top)) var(--pad) 10px; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.chat-head-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.chat-head-link { display: block; flex: none; }
.chat-head-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.chat-head-text b, .chat-head-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head-text small { color: var(--muted); font-size: 12.5px; }
.thread { flex: 1; padding: 4px 0 12px; }
.thread-intro { padding: 12px 0 8px; }
.intro-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px; border-radius: var(--radius); text-align: center; }
.intro-card p { margin-top: 6px; color: var(--muted); }
.intro-card small { margin-top: 6px; color: var(--muted); }
.older { display: block; margin: 8px auto; }
.bubbles { display: flex; flex-direction: column; gap: 3px; }
.day { display: flex; justify-content: center; margin: 14px 0 6px; }
.day span { padding: 3px 12px; border-radius: 999px; background: var(--bg-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.bubble { display: flex; flex-direction: column; max-width: 80%; gap: 3px; }
.bubble.mine { align-self: flex-end; align-items: flex-end; }
.bubble.theirs { align-self: flex-start; align-items: flex-start; }
.bubble-name { margin: 6px 10px 0; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.bubble-text { padding: 10px 15px; border-radius: 22px; white-space: pre-wrap; line-height: 1.38; }
.bubble.mine .bubble-text { background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 7px; }
.bubble.theirs .bubble-text { background: var(--card); border-bottom-left-radius: 7px; }
.bubble.mine .bubble-text .tok { color: inherit; text-decoration: underline; }
.bubble-text.gone { color: var(--muted); font-style: italic; }
.bubble-gif { display: block; width: 100%; overflow: hidden; border-radius: 20px; background: var(--card); cursor: zoom-in; }
.bubble-gif img { display: block; width: 100%; max-height: 320px; height: auto; object-fit: contain; }
.bubble-gif-wrap { position: relative; width: min(280px, 100%); }
.bubble-time { margin: 2px 8px 6px; color: var(--muted); font-size: 12px; }
.dm-compose { position: sticky; bottom: 0; z-index: 10; padding: 8px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 62%, transparent); }
.dm-box { display: flex; align-items: flex-end; gap: 4px; padding: 5px 5px 5px 8px; border: 1px solid var(--line-strong); border-radius: 30px; background: var(--card); box-shadow: var(--shadow); }
.dm-input { flex: 1; min-height: 42px; max-height: 140px; padding: 10px 6px; border: 0; background: transparent; resize: none; line-height: 1.3; }
.dm-input:focus { outline: none; }
.send-btn { width: 42px; height: 42px; background: var(--ink); color: var(--on-ink); }
.send-btn:hover:not(:disabled) { background: var(--ink); opacity: 0.88; }
.send-btn:disabled { opacity: 0.25; }
.send-btn.stop { background: var(--ink); }
.thread-view > .notice { margin: 12px 0; text-align: center; }
.member-list { max-height: 50vh; overflow-y: auto; }

/* ---------------------------------------------------------------------------------------------- games (like a game portal), videos */
.games-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.games-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 18px; border-radius: 999px; background: var(--bg-2); font-size: 14px; font-weight: 700; transition: background 0.15s; }
.chip:hover { background: var(--bg-3); }
.chip.on { background: var(--ink); color: var(--on-ink); }
.games-none { grid-column: 1 / -1; padding: 24px 0; }
.power { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px 9px 16px; border-radius: 999px; background: var(--bg-2); font-size: 14px; font-weight: 700; transition: background 0.15s; }
.power svg { width: 18px; height: 18px; }
.power:hover:not(:disabled) { background: var(--bg-3); }
.power.on { background: var(--ink); color: var(--on-ink); }
.power:disabled { opacity: 0.35; }
.post-video { display: block; width: 100%; height: 100%; max-height: 560px; background: #000; object-fit: contain; }
.media.media-video { max-height: 560px; margin-left: auto; margin-right: auto; background: #000; }
.quote-video { display: flex; align-items: center; justify-content: center; gap: 8px; height: 80px; background: var(--bg-3); font-weight: 700; }
.quote-video svg { width: 24px; height: 24px; }
.pv.pv-video { aspect-ratio: auto; background: #000; }
.pv.pv-video video { display: block; width: 100%; max-height: 340px; background: #000; }
.tile video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* the Videos tab (like TikTok): one video after the other, each as big as the screen */
.reels-view { position: relative; margin: 0 calc(var(--pad) * -1); background: #000; color: #fff; }
.reels { height: 100vh; height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; display: flex; align-items: center; justify-content: center; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; }
.reel-stage { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; }
.reel-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.reel-video.wide { object-fit: contain; }
.reel-volume { position: absolute; top: calc(74px + env(safe-area-inset-top)); left: 14px; z-index: 3; display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px 0 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; opacity: 0.8; transition: opacity 0.15s, background 0.15s; }
.reel-volume:hover, .reel-volume:focus-within { opacity: 1; background: rgba(0, 0, 0, 0.5); }
.reel-vol-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; }
.reel-vol-ic { display: grid; place-items: center; }
.reel-vol-ic svg { width: 21px; height: 21px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }
.reel-range { --fill: 100%; width: 92px; height: 20px; margin: 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.reel-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #fff var(--fill), rgba(255, 255, 255, 0.35) var(--fill)); }
.reel-range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); }
.reel-range::-moz-range-progress { height: 4px; border-radius: 2px; background: #fff; }
.reel-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.reel-range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.reel-range:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.reel-resume { position: absolute; top: 50%; left: 50%; display: none; width: 84px; height: 84px; margin: -42px 0 0 -42px; color: #fff; opacity: 0.9; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)); }
.reel-resume svg { width: 100%; height: 100%; }
.reel-stage.stuck .reel-resume { display: block; }
.reel-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.25); pointer-events: none; }
.reel-bar-fill { display: block; height: 100%; width: 0; background: #fff; }
.reel-info { position: absolute; left: 0; right: 84px; bottom: calc(var(--tabbar) + 34px + env(safe-area-inset-bottom)); padding: 0 16px; pointer-events: none; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.reel-info a, .reel-info .tok { pointer-events: auto; }
.reel-user { display: inline-flex; align-items: baseline; gap: 6px; font-size: 16px; }
.reel-title { margin-top: 6px; font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.reel-user .dot { color: rgba(255, 255, 255, 0.7); }
.reel-text { margin-top: 6px; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.reel-text .tok, .reel-title .tok { color: #fff; }
.reel-text .hashtag, .reel-title .hashtag { color: var(--tag); }
.reel-actions { position: absolute; right: 10px; bottom: calc(var(--tabbar) + 34px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.reel-person { position: relative; display: block; margin-bottom: 14px; }
.reel-av { display: block; border-radius: 50%; box-shadow: 0 0 0 2.5px #fff; }
.reel-av .avatar.lg { width: 66px; height: 66px; font-size: 26px; }
.reel-follow { position: absolute; left: 50%; bottom: -13px; display: grid; place-items: center; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: #fff; color: #000; box-shadow: 0 0 0 2px #000; }
.reel-follow svg { width: 17px; height: 17px; }
.reel-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.reel-btn-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(40, 40, 40, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 0.12s; }
.reel-btn:active .reel-btn-ic { transform: scale(0.88); }
.reel-btn-ic svg { width: 26px; height: 26px; }
.reel-btn.on .reel-btn-ic { background: #fff; color: #000; }
.reel-btn.on .reel-btn-ic svg { animation: pop 0.35s ease-out; }
.reel-count { font-size: 12.5px; font-weight: 700; }
.reels-top { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent); }
.reels-scope { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(40, 40, 40, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: auto; }
.reels-scope-btn { padding: 8px 16px; border-radius: 999px; color: rgba(255, 255, 255, 0.75); font-size: 14px; font-weight: 700; }
.reels-scope-btn.on { background: #fff; color: #000; }
.reels-tools { display: flex; gap: 10px; pointer-events: auto; }
.reels-btn { background: rgba(40, 40, 40, 0.6); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.reels-btn:hover:not(:disabled) { background: rgba(70, 70, 70, 0.7); }
.reels-status { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.reels-status > * { pointer-events: auto; }
.reels-wait .spinner { border-color: rgba(255, 255, 255, 0.3); border-top-color: #fff; }
.reels-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; text-align: center; max-width: 340px; }
.reels-empty h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.reels-empty p { color: #aaa; }
.reels-empty .chat-empty-ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 2px solid #fff; }
.reels-empty .chat-empty-ic svg { width: 40px; height: 40px; }
.reels-empty .btn.primary { background: #fff; color: #000; }
.comments-sheet { display: flex; flex-direction: column; min-height: 46vh; }
.comments-sheet .pager { flex: 1; }
.comments-sheet .pager > .list, .replies .pager > .list, .cm-answers .pager > .list { display: block; padding-top: 0; }
.cm-compose { position: sticky; bottom: -22px; z-index: 2; margin: 8px -20px -22px; padding: 8px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.cm-compose .composer.compact { margin-top: 0; padding: 6px 0 0; background: none; }
.cm-compose.reply-login { text-align: center; }
.cm-compose.reply-login p { margin-bottom: 8px; color: var(--muted); }
.cm { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; padding-top: 12px; }
.cm.gone { color: var(--muted); }
.cm-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cm-av { display: block; flex: none; }
.cm-line { flex: 1; width: 2px; min-height: 0; border-radius: 1px; background: transparent; }
.cm.threaded > .cm-rail > .cm-line { background: var(--line-strong); }
.cm-main { min-width: 0; padding-bottom: 6px; }
.cm-head { display: flex; align-items: baseline; gap: 5px; min-width: 0; line-height: 1.3; white-space: nowrap; }
.cm-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.cm-name:hover, .cm-time:hover { text-decoration: underline; }
.cm-head .handle { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.cm-head .dot, .cm-head .cm-time { flex: none; font-size: 14px; color: var(--muted); }
.cm-text { margin-top: 2px; white-space: pre-wrap; font-size: 15.5px; line-height: 1.4; }
.cm-media { margin-top: 8px; max-width: 320px; }
.cm-actions { display: flex; align-items: center; gap: 4px; margin: 2px 0 0 -8px; }
.cm-btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 9px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; }
.cm-btn:hover { color: var(--text); background: var(--hover); }
.cm-btn.on, .cm-btn[aria-expanded="true"] { color: var(--text); }
.cm-btn.on .cm-ic svg { animation: pop 0.35s ease-out; }
.cm-ic { display: grid; place-items: center; }
.cm-n:empty { display: none; }
.cm-ic svg { width: 17px; height: 17px; }
.cm-toggle { display: block; margin: 2px 0 4px; padding: 4px 0; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.cm-toggle:hover { color: var(--text); text-decoration: underline; }
.cm-writer { margin: 4px 0 6px; }
.cm-writer .composer.compact { margin-top: 0; padding: 10px; border-radius: 18px; background: var(--card-2); }
.cm.d1, .cm.d2 { grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; }
.cm.d1 .avatar, .cm.d2 .avatar { width: 30px; height: 30px; font-size: 12px; }
.cm.d2 .cm-answers { margin-left: -38px; }
.cm-empty { text-align: center; padding: 36px 8px; }

/* ---------------------------------------------------------------------------------------------- the "+" pop-up and the templates */
@keyframes bloop { 0% { opacity: 0; transform: scale(0.5); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
.menu.post-choose { min-width: 0; width: min(330px, calc(100vw - 16px)); padding: 12px 8px 8px; transform-origin: top right; animation: bloop 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.pc-title { margin: 0 10px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pc-tiles { display: flex; flex-direction: column; gap: 2px; }
.pc-tile { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 8px; border-radius: 16px; background: transparent; text-align: left; transition: transform 0.12s, background 0.12s; }
.pc-tile:hover, .pc-tile:focus-visible { background: var(--hover); outline: none; }
.pc-tile:active { transform: scale(0.98); }
.pc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pc-text b { font-size: 16px; }
.pc-text .hint { margin-top: 1px; }
.pc-go { flex: none; color: var(--muted); }
.pc-go svg { width: 18px; height: 18px; }
.pc-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.pc-ic svg { width: 21px; height: 21px; }
.dialog-body > .pc-tiles { padding: 4px 0 6px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 0 6px; }
.field-head:first-child { margin-top: 2px; }
.field-title { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.field-head .hint { margin-top: 0; }
.hint.req { color: var(--text); font-weight: 700; }
.composer.template { display: block; padding: 0; }
.composer.template .compose-text { min-height: 128px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--bg-2); font-size: 17px; }
.composer.template .compose-text:focus { border-color: var(--text); }
.composer.template .compose-media { margin-top: 10px; }
.composer.template .compose-bar { margin-top: 14px; }
.tag-editor { margin-top: 2px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag-chip { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--tag) 16%, transparent); color: var(--tag); font-size: 14.5px; font-weight: 700; }
.tag-x { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--tag); }
.tag-x:hover { background: color-mix(in srgb, var(--tag) 24%, transparent); }
.tag-x svg { width: 13px; height: 13px; }
.tag-row { display: flex; align-items: center; gap: 8px; }
.tag-input { flex: 1; min-width: 0; padding: 10px 14px; }
.tag-add { flex: none; background: var(--bg-3); }
.tag-note { color: var(--danger); }
.template-foot { display: flex; justify-content: flex-end; margin-top: 18px; }
.template-foot .btn { min-width: 150px; min-height: 48px; }
.vt-slot { margin-top: 2px; }
.vt-submit.busy { opacity: 0.7; }
.vt-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 26px 16px; border: 2px dashed var(--line-strong); border-radius: 20px; background: var(--bg-2); text-align: center; transition: border-color 0.15s, background 0.15s; }
.vt-drop:hover, .vt-drop:focus-visible { border-color: var(--text); background: var(--bg-3); outline: none; }
.vt-drop-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.vt-drop-ic svg { width: 26px; height: 26px; }
.vt-drop b { font-size: 16px; }
.vt-preview { position: relative; display: grid; place-items: center; max-height: 340px; border-radius: 18px; overflow: hidden; background: #000; }
.vt-preview video { display: block; width: 100%; max-height: 340px; object-fit: contain; }
.vt-problem { margin-top: 10px; color: var(--danger); font-size: 14px; font-weight: 600; }
.vt-progress { height: 8px; margin-top: 12px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.vt-fill { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--ink); transition: width 0.15s linear; }
.video-template > input.field { margin-top: 0; }


/* ---------------------------------------------------------------------------------------------- settings, moderation */
.settings-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; margin-top: 10px; }
.setting-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; border-radius: var(--radius); background: var(--card); text-align: left; }
.setting-row > svg { width: 18px; height: 18px; color: var(--muted); }
.setting-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--bg-3); }
.setting-ic svg { width: 22px; height: 22px; }
.setting-text { flex: 1; display: flex; flex-direction: column; }
.setting-text small { color: var(--muted); }
.setting-row.logout { color: var(--danger); }
.settings-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 14px; padding-top: 10px; align-items: start; }
.settings-body .card { padding-bottom: 18px; }
.settings-body .card > .btn { margin-top: 14px; }
.settings-body .card > .muted { margin-top: 10px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 0 18px; }
.facts dt { color: var(--muted); }
.danger-zone { box-shadow: inset 0 0 0 1px rgba(254, 44, 85, 0.5); }
.plain-links a { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; }
.plain-links svg { width: 16px; height: 16px; color: var(--muted); }
.reports { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; padding-top: 10px; align-items: start; }
.report-card { padding: 16px; border-radius: var(--radius); background: var(--card); }
.report-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.report-card blockquote { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--line-strong); white-space: pre-wrap; }
.report-gif { display: block; max-width: min(320px, 100%); max-height: 260px; height: auto; margin: 10px 0; border-radius: 14px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-pad { padding: 4px 18px 0; }

/* ---------------------------------------------------------------------------------------------- sign in and up */
.auth-page { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; gap: 32px; min-height: 100vh; min-height: 100dvh; padding: 24px 16px; }
.auth-card { width: min(430px, 100%); padding: 28px 24px 24px; border-radius: var(--radius-lg); background: var(--card); }
.auth-logo { display: flex; align-items: center; gap: 10px; width: fit-content; margin: 0 auto 18px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.auth-logo svg { width: 42px; height: 42px; }
.auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; text-align: center; margin-bottom: 4px; }
.auth-card > .muted { text-align: center; }
.auth-form { margin-top: 8px; }
.auth-form .btn.wide { margin-top: 18px; }
.auth-switch { margin-top: 20px; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--text); font-weight: 700; text-decoration: underline; }
.with-action { position: relative; }
.with-action .field { padding-right: 46px; }
.with-action .icon-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.with-action .icon-btn[aria-pressed="true"] { color: var(--text); }
.with-prefix { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 16px; padding-left: 16px; background: var(--bg-2); }
.with-prefix:focus-within { border-color: var(--text); }
.with-prefix > span { color: var(--muted); }
.with-prefix .field { border: 0; background: transparent; padding-left: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--muted); font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--text); flex: none; }
.check a { color: var(--text); text-decoration: underline; }
.auth-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.auth-legal a:hover { color: var(--text); text-decoration: underline; }
.auth-prompt { text-align: center; padding: 8px 0 4px; }
.auth-prompt h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.auth-prompt .dialog-text { margin-bottom: 18px; }
.auth-prompt .hero-logo svg { width: 48px; height: 48px; }

/* ---------------------------------------------------------------------------------------------- Nex (like the ChatGPT app) */
.nex-chips { display: flex; gap: 8px; padding: 6px var(--pad) 10px; margin: 0 calc(var(--pad) * -1); overflow-x: auto; scrollbar-width: none; }
.nex-chips::-webkit-scrollbar { display: none; }
.nex-suggestion { flex: none; max-width: 260px; padding: 11px 16px; border-radius: 20px; background: var(--card); font-size: 14px; font-weight: 600; text-align: left; line-height: 1.3; }
.nex-suggestion:active { transform: scale(0.98); }
.nex-post-box { padding: 4px 0 0; }
.nex-post { padding: 14px 16px; border-radius: var(--radius); background: var(--card); }
.nex-post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; min-width: 0; }
.nex-post-text { white-space: pre-wrap; margin-bottom: 6px; }
.nex-p { white-space: pre-wrap; }
.nex-p + .nex-p, .nex-p + .nex-list, .nex-list + .nex-p { margin-top: 12px; }
.nex-list { padding-left: 2px; }
.nex-list li { position: relative; padding-left: 20px; }
.nex-list li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.nex-list li + li { margin-top: 6px; }
.nex-problem { color: var(--muted); }
.nex-typing { display: inline-flex; gap: 5px; padding: 8px 0; }
.nex-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--text); animation: blink 1.1s infinite ease-in-out; }
.nex-typing i:nth-child(2) { animation-delay: 0.18s; }
.nex-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.nex-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -8px; }
.nex-act { padding: 5px 10px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; }
.nex-act:hover { background: var(--hover); color: var(--text); }

.nex-drawer { width: min(340px, 88vw); }
.nx-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nx-top b { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.nx-new { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; background: var(--card-2); font-weight: 700; }
.nx-new svg { width: 20px; height: 20px; }
.nx-label { margin: 18px 6px 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.nx-list { display: flex; flex-direction: column; gap: 2px; }
.nx-item { display: flex; align-items: center; gap: 4px; border-radius: 14px; }
.nx-item.on { background: var(--card-2); }
.nx-open { flex: 1; min-width: 0; padding: 12px 12px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-del { opacity: 0.6; }
.nx-empty { padding: 8px 6px; color: var(--muted); }

/* ---------------------------------------------------------------------------------------------- GIFs */
.dialog.gif-dialog { height: 88vh; height: 88dvh; overflow: hidden; }
.dialog.gif-dialog .dialog-body { height: 100%; padding: 0; }
.gif-sheet { position: relative; display: flex; flex-direction: column; height: 100%; }
.gif-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; }
.gif-search { display: flex; align-items: center; gap: 10px; flex: 1; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.gif-search:focus-within { color: var(--text); }
.gif-search svg { width: 18px; height: 18px; flex: none; }
.gif-search-input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); outline: none; }
.gif-chips { display: flex; gap: 8px; padding: 6px 12px; overflow-x: auto; scrollbar-width: none; }
.gif-chips::-webkit-scrollbar { display: none; }
.gif-chip { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--bg-2); font-size: 13.5px; font-weight: 600; }
.gif-tabs { margin: 4px 12px; }
.gif-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gif-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 96px; overscroll-behavior: contain; }
.gif-grid { display: flex; gap: 8px; align-items: flex-start; }
.gif-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.gif-tile { position: relative; overflow: hidden; border-radius: 16px; background: var(--bg-3); }
.gif-pick { display: block; width: 100%; transition: transform 0.12s; }
.gif-pick:active { transform: scale(0.98); }
.gif-pick img { display: block; width: 100%; height: auto; }
.gif-fav, .gif-more { position: absolute; top: 6px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, 0.58); color: #fff; transition: transform 0.12s; }
.gif-fav { right: 6px; }
.gif-more { left: 6px; }
.media > .gif-fav { z-index: 2; top: 8px; right: 8px; }
.bubble-gif-wrap .gif-fav { z-index: 2; top: 8px; right: 8px; }
.gif-fav svg, .gif-more svg { width: 18px; height: 18px; }
.gif-fav.on { color: #ffd34d; }
.gif-fav:active { transform: scale(0.88); }
.gif-loading { display: grid; place-items: center; padding: 18px; }
.spinner { width: 24px; height: 24px; border: 3px solid var(--line-strong); border-top-color: var(--text); border-radius: 50%; animation: spin 0.8s linear infinite; }
.gif-plus { position: absolute; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 54px; height: 54px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 700; box-shadow: var(--shadow); transition: transform 0.15s; }
.gif-plus:active { transform: scale(0.95); }
.gif-plus svg { width: 24px; height: 24px; }
.gif-plus-label { display: none; }
.gif-sheet.making .gif-head, .gif-sheet.making .gif-chips, .gif-sheet.making .gif-tabs, .gif-sheet.making .gif-plus { display: none; }
.gif-make { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 16px; overscroll-behavior: contain; }
.gif-make-top { display: flex; align-items: center; gap: 8px; margin: 0 0 4px -8px; }
.gif-make-top h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.gif-stage { position: relative; display: grid; place-items: center; margin: 14px 0; min-height: 190px; border-radius: 22px; background: var(--bg-2); overflow: hidden; }
.gif-canvas, .gif-result { display: block; width: 100%; max-width: 380px; height: auto; max-height: 300px; object-fit: contain; }
.gif-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; color: var(--muted); text-align: center; }
.gif-drop svg { width: 38px; height: 38px; color: var(--text); }
.gif-drop b { color: var(--text); }
.gif-change { position: absolute; right: 10px; bottom: 10px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
.gif-foot { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 18px; }
.gif-foot .btn { width: 100%; min-height: 48px; }
.gif-scroll { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }

/* ---------------------------------------------------------------------------------------------- legal and error pages */
.legal-page { position: relative; max-width: 740px; margin: 0 auto; padding: 24px 18px 56px; }
.legal-logo { display: flex; align-items: center; gap: 10px; width: fit-content; margin-bottom: 24px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.legal-logo svg { width: 42px; height: 42px; }
.legal { padding: 28px 24px 32px; border-radius: var(--radius-lg); background: var(--card); }
.legal h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.legal h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin: 28px 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal p + p { margin-top: 10px; }
.legal .lead { color: var(--muted); font-size: 17px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 8px 0; }
.legal li + li { margin-top: 6px; }
.legal ul.credits { list-style: none; padding-left: 0; font-size: 14px; }
.legal ul.credits li { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.legal a { text-decoration: underline; }
.legal code { padding: 1px 6px; border-radius: 7px; background: var(--bg-3); font-size: 0.9em; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0 6px; color: var(--muted); }
.legal-links a:hover { color: var(--text); text-decoration: underline; }
.error-page { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 100vh; min-height: 100dvh; padding: 24px; text-align: center; }
.error-page .legal-logo { margin-bottom: 12px; }
.error-code { font-size: 92px; font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.error-page h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.error-page .muted { max-width: 420px; margin-bottom: 16px; }

/* ---------------------------------------------------------------------------------------------- the menu from the left, dialogs, menus, toast */
.drawer-back { position: fixed; inset: 0; z-index: 1100; background: var(--scrim); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade 0.15s ease-out; transition: opacity 0.18s; }
.drawer-back.closing { opacity: 0; }
.drawer { position: absolute; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: min(320px, 86vw); padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--bg); border-right: 1px solid var(--line); overflow-y: auto; animation: drawer-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1); transition: transform 0.18s; }
.drawer-back.closing .drawer { transform: translateX(-100%); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; }
.dr-av { display: block; }
.dr-name { display: flex; flex-direction: column; margin-top: 10px; line-height: 1.25; }
.dr-name b { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.dr-counts { display: flex; gap: 16px; margin: 10px 0 14px; color: var(--muted); }
.dr-counts b { color: var(--text); }
.drawer-nav { display: flex; flex-direction: column; padding-top: 8px; border-top: 1px solid var(--line); }
.drawer-item { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; padding: 13px 8px; border-radius: 14px; font-size: 18px; font-weight: 700; text-align: left; }
.drawer-item:active { background: var(--hover); }
.drawer-item svg { width: 24px; height: 24px; flex: none; }
.drawer-item .badge { position: static; margin-left: auto; box-shadow: none; }
.drawer-item.logout { margin-top: auto; color: var(--danger); }
@keyframes drawer-in { from { transform: translateX(-28px); opacity: 0.6; } }

.dialog-back { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: var(--scrim); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade 0.15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.dialog { position: relative; width: 100%; max-width: 600px; max-height: 94vh; max-height: 94dvh; overflow-y: auto; border-radius: 30px 30px 0 0; background: var(--card); box-shadow: var(--shadow); padding-bottom: env(safe-area-inset-bottom); animation: sheet 0.26s cubic-bezier(0.2, 0.9, 0.3, 1); overscroll-behavior: contain; }
.dialog::before { content: ""; display: block; width: 40px; height: 5px; margin: 9px auto 0; border-radius: 3px; background: var(--line-strong); }
@keyframes sheet { from { transform: translateY(40px); opacity: 0.6; } }
.dialog.wide { max-width: 720px; }
.dialog-top { display: flex; align-items: center; gap: 12px; padding: 6px 14px 4px; }
.dialog-top h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.dialog-body { padding: 4px 20px 22px; }
.dialog-text { color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.dialog-actions { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 22px; }
.dialog-actions .btn { min-height: 48px; width: 100%; }
.dialog.bare { background: transparent; }
.dialog.bare::before { display: none; }
.dialog.bare .dialog-body { padding: 0; }
.dialog.viewing { max-width: none; max-height: none; height: 100%; border-radius: 0; box-shadow: none; padding: 0; }
.dialog-back:has(.viewing) { background: rgba(0, 0, 0, 0.94); align-items: center; }
.viewer-wrap { position: relative; display: flex; align-items: center; justify-content: center; min-height: 80vh; }
.viewer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.viewer-img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; }
.viewer-alt { max-width: 640px; padding: 0 16px; color: #d6d6d6; text-align: center; font-size: 14px; }
.viewer-close { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 12px; z-index: 5; background: rgba(40, 40, 40, 0.7); color: #fff; }
.viewer-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(40, 40, 40, 0.7); color: #fff; width: 44px; height: 44px; }
.viewer-nav.prev { left: 10px; }
.viewer-nav.next { right: 10px; }
.menu { position: fixed; z-index: 1200; min-width: 220px; max-width: min(340px, calc(100vw - 16px)); padding: 6px 0; border: 1px solid var(--glass-line); border-radius: 20px; background: var(--glass-strong); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%); box-shadow: var(--shadow); animation: fade 0.1s ease-out; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 18px; text-align: left; font-weight: 700; }
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); outline: none; }
.menu-item svg { width: 19px; height: 19px; flex: none; }
.menu-item.danger { color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 34px + env(safe-area-inset-bottom)); z-index: 1300; display: flex; align-items: center; gap: 16px; max-width: min(92vw, 460px); padding: 13px 20px; border-radius: 20px; background: var(--ink); color: var(--on-ink); font-weight: 600; transform: translateX(-50%); box-shadow: var(--shadow); animation: toast-in 0.2s ease-out; }
.toast-action { font-weight: 800; text-decoration: underline; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------------------------------------------------------------------------------------------- wide screens (from 820 px on) */
@media (min-width: 820px) {
  :root { --pad: 28px; --side: 96px; }
  .main { padding-bottom: 56px; }
  .app[data-route="thread"] .main, .app[data-route="group"] .main, .app[data-route="messages"] .main, .app[data-route="nex"] .main, .app[data-route="videos"] .main { padding-bottom: 0; }
  .tabbar { top: 0; bottom: 0; left: 0; width: var(--side); height: auto; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 6px; padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); transform: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .side-brand { display: flex; align-items: center; justify-content: center; gap: 12px; height: 56px; margin-bottom: 8px; padding: 0 6px; border-radius: 18px; }
  .side-brand svg { width: 40px; height: 40px; }
  .side-name { display: none; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
  .tab-item { display: flex; align-items: center; justify-content: center; flex: none; width: 100%; height: 56px; gap: 16px; border-radius: 18px; }
  .tab-item:hover { background: var(--hover); }
  .tab-item.active { background: var(--bg-3); }
  .tab-item.active::after { display: none; }
  .tab-item.nex-tab { flex: none; }
  .nex-tab .tab-ic { width: 42px; height: 42px; box-shadow: none; }
  .nex-tab .tab-ic svg { width: 23px; height: 23px; }
  .nex-tab.active .tab-ic { box-shadow: 0 0 0 2px var(--bg-3), 0 0 0 4px var(--ink); }
  .tab-label { display: none; font-size: 17px; font-weight: 700; white-space: nowrap; }
  .side-foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; }
  .side-post { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 27px; background: var(--ink); color: var(--on-ink); font-weight: 800; font-size: 16px; }
  .side-post svg { width: 24px; height: 24px; }
  .side-post:hover { opacity: 0.88; }
  .side-post-text { display: none; }
  .side-me { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px; border-radius: 18px; text-align: left; }
  .side-me:hover { background: var(--hover); }
  .side-me .badge { top: 2px; right: 8px; }
  .side-me-text { display: none; flex-direction: column; min-width: 0; line-height: 1.2; }
  .side-me-text b, .side-me-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-me-text small { color: var(--muted); }
  .toast { bottom: 28px; }
  .home-head .avatar-btn, .home-head .icon-btn.solid { display: none; }
  .home-head { min-height: 72px; }

  .topbar-row { min-height: 68px; }
  .topbar.big .topbar-title h1 { font-size: 42px; }
  .post-text { font-size: 16.5px; }
  .banner { width: 100%; aspect-ratio: 4 / 1; max-height: 300px; }
  .ph-body { padding: 0 8px 12px; }
  .tiles .list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
  .tabs { width: fit-content; max-width: 100%; }
  .tabs.single { width: auto; }

  .dialog-back { align-items: center; padding: 24px; }
  .dialog { max-height: 88vh; border-radius: var(--radius-lg); padding-bottom: 0; }
  .dialog::before { display: none; }
  .dialog.gif-dialog { height: min(760px, 88vh); }
  .dialog.viewing { border-radius: 0; }

  .auth-page { grid-template-columns: minmax(0, 520px) minmax(0, 430px); justify-content: center; gap: clamp(48px, 8vw, 140px); }
  .auth-points { flex-direction: column; gap: 14px; }
  .auth-points li { display: flex; align-items: center; gap: 14px; font-size: 18px; }
}
@media (min-width: 1200px) {
  :root { --pad: 40px; --side: 264px; }
  .side-brand { justify-content: flex-start; padding: 0 12px; }
  .side-name { display: inline; }
  .tab-item { justify-content: flex-start; padding: 0 14px; }
  .tab-label { display: inline; }
  .side-post { gap: 10px; }
  .side-post-text { display: inline; }
  .side-me { justify-content: flex-start; }
  .side-me-text { display: flex; }
  .side-me .badge { position: static; margin-left: auto; box-shadow: none; }
}
/* panes side by side (from 1000 px on): the chats and Nex fill the screen to the edges */
@media (min-width: 1000px) {
  .chats-split { display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); height: 100vh; height: 100dvh; }
  .chat-pane { min-height: 0; overflow-y: auto; padding: 0 16px 24px; border-right: 1px solid var(--line); }
  .chat-pane .topbar { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; }
  .chat-empty-ic { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--text); }
  .chat-empty-ic svg { width: 44px; height: 44px; }
  .chat-empty h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
  .chat-empty p { color: var(--muted); }
  .chats-split .thread-view { height: 100vh; height: 100dvh; min-height: 0; min-width: 0; }
  .thread-view .chat-head { position: static; margin: 0; padding: 14px 24px; border-bottom: 1px solid var(--line); background: none; }
  .chat-back { display: none; }
  .thread-view .thread { min-height: 0; overflow-y: auto; padding: 8px 24px 12px; }
  .thread-view .dm-compose { position: static; padding: 8px 24px 18px; background: none; }
  .thread-view .request-bar { margin: 8px 24px 18px; }
  .thread-view > .notice { margin: 8px 24px 18px; }
  .bubble { max-width: 66%; }
  .app[data-route="thread"], .app[data-route="group"], .app[data-route="messages"], .app[data-route="nex"], .app[data-route="videos"] { --pad: 0px; padding-right: 0; padding-left: var(--side); }
}
@media (min-width: 820px) {
  .reel-stage { width: min(100%, calc(100dvh * 9 / 16)); height: calc(100dvh - 32px); border-radius: 26px; }
  .reel-info { right: 16px; bottom: 56px; }
  .reel-actions { right: calc(50% - min(50%, calc(100dvh * 9 / 32)) - 84px); bottom: 56px; }
  .reel-btn { color: var(--text); text-shadow: none; }
  .reel-btn-ic { background: rgba(255, 255, 255, 0.14); }
  .reel-btn.on .reel-btn-ic { background: #fff; color: #000; }
  .reel-count { color: #ddd; }
  .reel-av { box-shadow: 0 0 0 2px #fff; }
}
@media (min-width: 700px) {
}
@media (min-width: 1000px) {
  .post-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; align-items: start; }
  .post-view > .topbar { grid-column: 1 / -1; }
  .post-view > .thread-above, .post-view > .thread-main, .post-view > .reply-box { grid-column: 1; }
  .post-view > .replies { grid-column: 2; grid-row: 2 / span 3; }
  .post-view .replies .pager > .list { padding-top: 0; grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------------------------------------------- the page for somebody who is not signed in and was sent a post */
html.share-locked, html.share-locked body { overflow: hidden; overscroll-behavior: none; touch-action: none; }
.share-shell { margin: 0 calc(var(--pad) * -1); }
.share-view { position: fixed; inset: 0; z-index: 5; overflow: hidden; background: #000; color: #fff; }
.share-stage { position: absolute; inset: 0; overflow: hidden; background: #000; }
.share-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.share-video.wide { object-fit: contain; }
.share-video.blurred { object-fit: cover; filter: blur(24px) saturate(1.15); transform: scale(1.14); pointer-events: none; }
.share-top { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 14px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent); }
.share-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.share-brand svg { width: 34px; height: 34px; }
.share-top .btn { background: rgba(0, 0, 0, 0.4); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.share-info { position: absolute; left: 0; right: 70px; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 4; padding: 0 16px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.share-info .reel-user { display: inline-flex; align-items: center; gap: 8px; }
.share-sound { position: absolute; right: 14px; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 5; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.share-sound svg { width: 26px; height: 26px; }
.share-gate { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 76px 20px 24px; background: rgba(0, 0, 0, 0.32); }
.share-card { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(100%, 400px); padding: 28px 24px 24px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 28px; background: rgba(14, 14, 14, 0.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: #fff; text-align: center; animation: bloop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.share-card .hero-logo { display: block; width: 60px; height: 60px; }
.share-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.share-card p { color: #c4c4c4; }
.share-card .hero-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 6px; }
.share-card .btn { min-height: 48px; width: 100%; }
.share-card .btn.primary { background: #fff; color: #000; }
.share-card .btn.ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.share-plain { position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 84px 16px 32px; }
.share-post { width: min(100%, 560px); padding: 18px; border-radius: var(--radius); background: #111; }
.share-who { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.share-pics { display: grid; gap: 4px; margin-top: 12px; border-radius: 18px; overflow: hidden; }
.share-pics img { width: 100%; max-height: 420px; object-fit: cover; }
.share-plain .share-card { position: static; }
@media (min-aspect-ratio: 1/1) { .share-video:not(.blurred) { object-fit: contain; } }

/* ---------------------------------------------------------------------------------------------- files in chats (the "+" of a message) */
.dm-plus { flex: none; width: 42px; height: 42px; }
.dm-staged { margin: 0 4px 8px; }
.dm-chip { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.dm-chip.bad { border-color: var(--danger); }
.dm-chip.bad small { color: var(--danger); }
.dm-staged-thumb { flex: none; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--bg-3); }
.dm-staged-thumb.doc { display: grid; place-items: center; }
.dm-staged-thumb.doc svg { width: 26px; height: 26px; }
.dm-chip-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dm-chip-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-chip-main small { color: var(--muted); }
.dm-chip-bar { display: block; height: 4px; margin-top: 3px; border-radius: 2px; background: var(--bg-3); overflow: hidden; }
.dm-chip-fill { display: block; height: 100%; background: var(--ink); transition: width 0.15s linear; }
.bubble-img { display: block; width: min(280px, 100%); overflow: hidden; border-radius: 20px; background: var(--card); cursor: zoom-in; }
.bubble-img img { display: block; width: 100%; max-height: 340px; height: auto; object-fit: cover; }
.bubble-video { display: block; width: min(280px, 100%); max-height: 380px; border-radius: 20px; background: #000; }
.bubble-doc { display: flex; align-items: center; gap: 12px; width: min(300px, 100%); padding: 10px 12px; border-radius: 18px; background: var(--bg-3); color: inherit; }
.bubble-doc:hover { background: var(--line-strong); }
.bubble-doc-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: var(--on-ink); }
.bubble-doc-ic svg { width: 22px; height: 22px; }
.bubble-doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bubble-doc-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble-doc-main small { opacity: 0.7; }
.bubble-doc-dl svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------------------------------------- Nex: the mark, photos and documents */
.nex-reroll { flex: none; align-self: center; width: 42px; height: 42px; background: var(--card); }
.nex-reroll svg { width: 19px; height: 19px; }
.nex-staged { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 8px; }
.nex-chip { display: flex; align-items: center; gap: 10px; max-width: 280px; padding: 6px 6px 6px 6px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--card); }
.nex-chip.bad { border-color: var(--danger); }
.nex-chip.bad small { color: var(--danger); }
.nex-chip-thumb { flex: none; width: 44px; height: 44px; border-radius: 11px; object-fit: cover; background: var(--bg-3); }
.nex-chip-thumb.doc { display: grid; place-items: center; }
.nex-chip-thumb.doc svg { width: 22px; height: 22px; }
.nex-chip-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nex-chip-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.nex-chip-main small { color: var(--muted); font-size: 12px; }
.nex-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.nex-attached { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border-radius: 999px; background: var(--bg-3); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nex-attached svg { width: 15px; height: 15px; flex: none; }

/* ---------------------------------------------------------------------------------------------- the camera tab (like the camera of Snapchat) */
.app[data-cam="starting"] .tabbar, .app[data-cam="over"] .tabbar, .app[data-cam="review"] .tabbar { display: none; }
.cam-view { position: relative; margin: 0 calc(var(--pad) * -1); height: 100vh; height: 100dvh; background: #000; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; }
.cam-stage { --gw: 360px; --gh: 640px; position: absolute; top: 0; bottom: 0; left: 50%; width: 100%; max-width: calc(100dvh * 9 / 16); transform: translateX(-50%); overflow: hidden; background: #0b0b10; }
.cam-feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0b0b10; }
.cam-feed.mirror { transform: scaleX(-1); }
.cam-fallback { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 0%, #26263a, #0b0b12 70%); }
.cam-host { position: absolute; inset: 0; display: grid; place-items: center; }
.game-layer { display: block; width: var(--gw); height: var(--gh); touch-action: none; outline: none; cursor: pointer; }
.game-frame { position: relative; width: var(--gw); height: var(--gh); }
.game-canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; cursor: pointer; }
.cam-face { position: absolute; left: 50%; top: 4.4%; width: calc(var(--gw) * 0.16); height: calc(var(--gw) * 0.16); margin-left: calc(var(--gw) * -0.08); border-radius: 50%; object-fit: cover; border: 2.5px solid #fff; background: #1c1c26; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); pointer-events: none; z-index: 2; }
.cam-face[hidden] { display: none; }
.cam-face.mirror { transform: scaleX(-1); }
.cam-top { position: absolute; top: 0; left: 50%; width: 100%; max-width: calc(100dvh * 9 / 16); transform: translateX(-50%); z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent); }
.cam-top > * { pointer-events: auto; }
.cam-mid { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.cam-song-box { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.cam-song { display: inline-flex; align-items: center; gap: 5px; max-width: 190px; padding: 4px 11px; border-radius: 999px; background: rgba(40, 40, 40, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 700; }
.cam-song span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-song.on { background: rgba(255, 255, 255, 0.92); color: #111; }
.cam-song-note { display: inline-grid; place-items: center; line-height: 1; }
.cam-song-note svg { width: 15px; height: 15px; }
.cam-song-x { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(40, 40, 40, 0.55); color: #fff; }
.cam-song-x svg { width: 14px; height: 14px; }
.cam-song-x[hidden] { display: none; }
.song-photo, .song-card { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cam-host.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: song-flash 0.4s ease-out forwards; pointer-events: none; }
@keyframes song-flash { from { opacity: 0.9; } to { opacity: 0; } }
.music-picker { display: flex; flex-direction: column; gap: 10px; }
.mu-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mu-bar .field { flex: 1; min-width: 160px; }
.mu-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.mu-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: var(--bg-2); }
.mu-row.playing { background: var(--bg-3); }
.mu-main { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.mu-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-start { width: 100%; }
.mu-start[hidden] { display: none; }
.mu-actions { display: flex; gap: 8px; justify-content: space-between; }
.lm-song { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cam-title { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.cam-tool { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(40, 40, 40, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; }
.cam-tool svg { width: 23px; height: 23px; }
.cam-tool.small { width: 38px; height: 38px; }
.cam-tool.small svg { width: 20px; height: 20px; }
.cam-tool.off { background: rgba(255, 255, 255, 0.9); color: #111; }
.cam-ctl { position: absolute; top: calc(66px + env(safe-area-inset-top)); left: 50%; width: 100%; max-width: calc(100dvh * 9 / 16); transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 0 14px; pointer-events: none; }
.cam-ctl > * { pointer-events: auto; }
.cam-ctl-sound { display: flex; align-items: center; gap: 8px; }
.cam-vol { width: 110px; }
.cam-vol[hidden] { display: none; }
.cam-view[data-state="over"] .cam-ctl, .cam-view[data-state="review"] .cam-ctl { display: none; }
.cam-bottom { position: absolute; left: 50%; width: 100%; max-width: calc(100dvh * 9 / 16); transform: translateX(-50%); bottom: calc(var(--tabbar) + 22px + env(safe-area-inset-bottom)); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75); }
.cam-lens-name { display: flex; align-items: baseline; gap: 8px; font-size: 18px; }
.cam-lens-cat { color: rgba(255, 255, 255, 0.75); font-size: 13px; font-weight: 600; }
.cam-lens-hint { max-width: 320px; padding: 0 12px; color: rgba(255, 255, 255, 0.85); font-size: 13px; text-align: center; }
.cam-lenses { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px calc(50% - 43px) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.cam-lenses::-webkit-scrollbar { display: none; }
.lens { flex: none; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; scroll-snap-align: center; transform: scale(0.74); opacity: 0.8; transition: transform 0.18s, opacity 0.18s; }
.lens.on { transform: scale(1); opacity: 1; }
.lens-ic { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #3a3a46; border: 4px solid rgba(255, 255, 255, 0.85); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); }
.lens.on .lens-ic { border-width: 5px; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28), 0 6px 22px rgba(0, 0, 0, 0.55); }
.lens-emoji { font-size: 38px; line-height: 1; }
.lens:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cam-loading { position: absolute; left: 50%; width: 100%; max-width: calc(100dvh * 9 / 16); transform: translateX(-50%); bottom: calc(var(--tabbar) + 60px + env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; justify-content: center; gap: 10px; color: #ddd; }
.cam-loading .spinner { border-color: rgba(255, 255, 255, 0.3); border-top-color: #fff; }
.cam-hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.cam-time { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 14px; right: 14px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.cam-time-fill { display: block; height: 100%; width: 100%; background: #fff; }
.cam-score { position: absolute; top: calc(24px + env(safe-area-inset-top)); left: 0; right: 0; text-align: center; font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; -webkit-text-stroke: 6px rgba(0, 0, 0, 0.6); paint-order: stroke fill; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.cam-stop { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 62px; height: 62px; margin-left: -31px; border-radius: 50%; border: 4px solid #fff; background: rgba(0, 0, 0, 0.3); pointer-events: auto; }
.cam-stop span { width: 24px; height: 24px; border-radius: 6px; background: #fe2c55; }
.cam-over { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(0, 0, 0, 0.4); }
.cam-over-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 34px; border-radius: 26px; background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: bloop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.cam-over-box b { font-size: 30px; font-weight: 800; }
.cam-over-score { font-size: 24px; font-weight: 700; }
.cam-over-box small { color: #ccc; }
.cam-review { position: absolute; top: 0; bottom: 0; left: 50%; width: 100%; max-width: calc(100dvh * 9 / 16); transform: translateX(-50%); z-index: 8; display: flex; align-items: center; justify-content: center; background: #000; }
.cam-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.cam-review-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 0; right: 0; display: flex; justify-content: center; gap: 12px; align-items: baseline; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.cam-review-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 36px 12px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent); }
.cam-act { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 8px; color: #fff; font-size: 12px; font-weight: 700; }
.cam-act svg { width: 28px; height: 28px; padding: 9px; box-sizing: content-box; border-radius: 50%; background: rgba(60, 60, 60, 0.7); }
.cam-send, .cam-post { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 16px; }
.cam-send { background: #3a8bff; color: #fff; }
.cam-post { background: #fff; color: #000; }
.cam-send svg, .cam-post svg { width: 20px; height: 20px; }
.cam-gallery .search-box { margin-bottom: 10px; }
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 10px; margin-top: 12px; }
.cam-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: 20px; background: var(--bg-2); text-align: center; }
.cam-tile:hover, .cam-tile:focus-visible { background: var(--bg-3); }
.cam-tile-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #3a3a46; font-size: 30px; }
.cam-tile b { font-size: 13.5px; line-height: 1.2; }
.cam-tile small { color: var(--muted); font-size: 11.5px; }
.fm-wrap { width: var(--gw); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fm-canvas { width: min(var(--gw), calc((var(--gh) - 150px) * 460 / 560)); height: auto; aspect-ratio: 460 / 560; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 18px; background: rgba(0, 0, 0, 0.3); }
.fm-powers { display: flex; gap: 8px; }
.fm-power { position: relative; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 13px; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fm-power:disabled { opacity: 0.4; }
.fm-power.on { background: #fff; color: #000; }
.fm-power-ic { font-size: 16px; }
.fm-count { min-width: 14px; text-align: center; }
@media (min-width: 820px) {
  .cam-bottom { bottom: 22px; }
  .cam-loading { bottom: 60px; }
}

/* ---------------------------------------------------------------------------------------------- sign in and sign up, like TikTok: text above (or at the side), the card below */
.auth-page { align-content: center; gap: 22px; }
.auth-hero { display: block; width: min(430px, 100%); text-align: center; }
.auth-hero-logo svg { width: 56px; height: 56px; margin: 0 auto; }
.auth-hero h2 { margin: 12px 0 8px; font-size: clamp(34px, 9vw, 46px); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; }
.auth-lead { color: var(--muted); font-size: 16px; line-height: 1.4; }
.auth-points { display: none; }
.auth-face { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 14px; background: var(--bg-3); font-size: 22px; }
.auth-points li { animation: fade 0.5s ease-out both; }
.auth-card .auth-logo { display: none; }
.auth-card h1 { font-size: 24px; }
.auth-swap { animation: bloop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.alt-list { display: flex; flex-direction: column; gap: 10px; }
.alt-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 700; font-size: 15.5px; transition: background 0.12s, transform 0.12s; }
.alt-btn:hover { background: var(--hover); }
.alt-btn:active { transform: scale(0.98); }
.alt-btn svg { width: 22px; height: 22px; flex: none; }
.phone-row { display: flex; gap: 8px; }
.phone-row .prefix { flex: none; width: 118px; padding-right: 6px; }
.phone-row input { flex: 1; min-width: 0; }
.steps { display: flex; justify-content: center; gap: 6px; margin: 4px 0 16px; }
.step { width: 26px; height: 5px; border-radius: 3px; background: var(--bg-3); transition: background 0.2s; }
.step.on { background: var(--ink); }
.step-title { margin-bottom: 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; text-align: center; }
.auth-swap > .muted { text-align: center; margin-bottom: 8px; }
.wheels { display: grid; grid-template-columns: 0.8fr 1.5fr 1fr; gap: 6px; margin: 14px 0 6px; }
.wheel { position: relative; height: 220px; border-radius: 20px; background: var(--bg-2); overflow: hidden; }
.wheel-list { height: 100%; padding: 88px 0; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; outline: none; overscroll-behavior: contain; }
.wheel-list::-webkit-scrollbar { display: none; }
.wheel-item { display: grid; place-items: center; height: 44px; scroll-snap-align: center; color: var(--muted); font-size: 19px; font-weight: 600; cursor: pointer; transition: color 0.12s, font-size 0.12s; }
.wheel-item.on { color: var(--text); font-size: 24px; font-weight: 800; }
.wheel-glass { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, var(--card) 0%, transparent 36%, transparent 64%, var(--card) 100%); }
.wheel-glass::after { content: ""; position: absolute; left: 6px; right: 6px; top: 88px; height: 44px; border-radius: 14px; border: 2px solid var(--line-strong); }
.age-line { margin: 8px 0 4px; text-align: center; font-weight: 700; }
.age-line.bad { color: var(--danger); }
.auth-swap > .btn.wide { margin-top: 14px; }
.auth-swap > .check { margin-top: 10px; }
.method-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 6px; }
.method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 22px; text-align: left; transition: background 0.12s, transform 0.12s; }
.method:hover { background: var(--hover); }
.method:active { transform: scale(0.98); }
.method-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.method-ic svg { width: 22px; height: 22px; }
.method-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.method-text small { color: var(--muted); }
.method > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.back-link { display: block; margin: 14px auto 0; color: var(--muted); font-weight: 700; }
@media (min-width: 820px) {
  .auth-page { grid-template-columns: minmax(0, 520px) minmax(0, 430px); }
  .auth-hero { text-align: left; width: auto; }
  .auth-hero-logo svg { width: 96px; height: 96px; margin: 0; }
  .auth-hero h2 { margin: 24px 0 14px; font-size: clamp(44px, 4.4vw, 68px); }
  .auth-lead { margin-bottom: 26px; font-size: 18px; }
  .auth-points { display: flex; }
}

/* ---------------------------------------------------------------------------------------------- the chat lock: a field of grey dots, one stroke of the finger is the key */
.lock-view { margin: 0 calc(var(--pad) * -1); }
.lockscreen { position: relative; height: 100vh; height: 100dvh; background-color: #060606; background-image: radial-gradient(circle, rgba(170, 170, 170, 0.42) 2.4px, transparent 3px); background-size: 30px 30px; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; transition: background-color 0.3s; }
.lockscreen.opened { background-image: radial-gradient(circle, rgba(120, 255, 170, 0.6) 3px, transparent 3.6px); }
.lock-overlay { position: fixed; inset: 0; z-index: 1500; background: #000; animation: fade 0.18s ease-out; }
.lock-overlay .lockscreen { height: 100%; }
.pad-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.lock-text { position: absolute; top: 26%; left: 0; right: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 24px; text-align: center; pointer-events: none; }
.lock-ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); }
.lock-ic svg { width: 28px; height: 28px; }
.lock-text h1 { font-size: clamp(30px, 8vw, 42px); font-weight: 800; letter-spacing: -0.03em; text-shadow: 0 2px 14px #000; }
.lock-sub { color: rgba(255, 255, 255, 0.75); font-size: 16px; text-shadow: 0 2px 10px #000; }
.lock-message { min-height: 24px; margin-top: 6px; padding: 4px 14px; border-radius: 999px; font-weight: 700; background: rgba(0, 0, 0, 0.45); }
.lock-message:empty { background: none; }
.lock-message.bad { color: #ff8a98; }
.lock-cancel { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(60, 60, 60, 0.7); color: #fff; }
.lock-cancel svg { width: 22px; height: 22px; }
.lock-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.plain-points { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-left: 18px; list-style: disc; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------------------------------------- effects: hearts, the heartbeat, pages that slide, light animations everywhere */
.like-burst { position: fixed; z-index: 2500; width: 0; height: 0; pointer-events: none; }
.burst-heart { position: absolute; left: 0; top: 0; display: block; color: #fe2c55; transform: translate(-50%, -50%) scale(0); filter: drop-shadow(0 6px 14px rgba(254, 44, 85, 0.55)); animation: burst 0.85s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.burst-heart svg { width: 100%; height: 100%; }
.burst-bit { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; color: #ff7a93; opacity: 0; animation: bit 0.8s ease-out both; }
.burst-bit svg { width: 100%; height: 100%; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(0.2) rotate(-14deg); opacity: 0; } 22% { transform: translate(-50%, -54%) scale(1.15) rotate(8deg); opacity: 1; } 45% { transform: translate(-50%, -56%) scale(0.95) rotate(-4deg); } 100% { transform: translate(-50%, -120%) scale(1.05) rotate(0deg); opacity: 0; } }
@keyframes bit { 0% { transform: translate(0, 0) scale(0.3); opacity: 0.95; } 100% { transform: translate(var(--dx), var(--dy)) scale(0.9); opacity: 0; } }
.pulse-loader { display: inline-block; line-height: 0; color: var(--text); }
.pulse-canvas { display: block; }
.reels-wait .pulse-loader, .cam-loading .pulse-loader, .share-view .pulse-loader { color: #fff; }
.home-brand { display: flex; align-items: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 4px 0; }
.home-brand > svg { width: 30px; height: 30px; flex: none; }
.home-brand .pulse-loader { flex: 1; min-width: 0; overflow: hidden; }
.home-brand .pulse-canvas { max-width: 100%; }
.main[data-enter="forward"] > .view { animation: slide-in 0.28s cubic-bezier(0.22, 0.8, 0.25, 1) both; }
.main[data-enter="back"] > .view { animation: slide-back 0.24s cubic-bezier(0.22, 0.8, 0.25, 1) both; }
.main[data-enter="fade"] > .view { animation: fade 0.2s ease-out both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(36px); } }
@keyframes slide-back { from { opacity: 0; transform: translateX(-36px); } }
.post { animation: fade 0.3s ease-out both; }
.btn, .icon-btn, .chip, .tab, .menu-item, .setting-row, .method, .alt-btn, .pc-tile, .cam-tile, .nex-suggestion { transition: transform 0.12s ease, background 0.15s, opacity 0.15s, box-shadow 0.15s; }
.btn:active, .icon-btn:active, .chip:active, .setting-row:active, .method:active, .alt-btn:active, .pc-tile:active, .cam-tile:active, .nex-suggestion:active { transform: scale(0.96); }
.tab-item:active .tab-ic { transform: scale(0.86); }
.tab-ic { transition: transform 0.14s ease; }
.menu { animation: bloop 0.16s cubic-bezier(0.2, 0.9, 0.3, 1.15); transform-origin: top right; }
.dialog-back { animation: fade 0.18s ease-out; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0; }
.signup-pics { margin: 14px 0 8px; }
.signup-pics .edit-banner { aspect-ratio: 3 / 1; }
.edit-hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.back-link.skip { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .main[data-enter] > .view, .post, .menu, .dialog-back { animation: none !important; }
  .burst-heart, .burst-bit { animation-duration: 0.01s !important; }
}
/* Saving a video with the watermark: the small card with the progress */
.save-panel { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 34px + env(safe-area-inset-bottom)); z-index: 1310; display: grid; gap: 9px; width: min(92vw, 380px); padding: 14px 18px 12px; border-radius: 20px; background: var(--ink); color: var(--on-ink); transform: translateX(-50%); box-shadow: var(--shadow); animation: toast-in 0.2s ease-out; }
.save-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 700; }
.save-cancel { flex: none; font-weight: 800; text-decoration: underline; }
.save-bar { display: block; height: 6px; border-radius: 3px; background: rgba(128, 128, 128, 0.35); overflow: hidden; }
.save-fill { display: block; width: 0; height: 100%; border-radius: 3px; background: currentColor; transition: width 0.2s linear; }
.save-hint { font-size: 0.8rem; opacity: 0.7; }
/* Hearts on chat messages and the flame of two friends */
.bubble.loved { margin-bottom: 6px; }
.bubble-hearts { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 3px; margin: -9px 12px 0; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); font-size: 12px; font-weight: 800; line-height: 1.5; animation: bloop 0.2s ease-out; }
.bubble-hearts svg { width: 13px; height: 13px; }
.bubble-hearts.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.convo-streak { display: inline-flex; align-items: center; gap: 1px; margin: 0 auto 0 6px; color: var(--text); font-size: 13px; font-weight: 800; }
.convo-streak svg { width: 15px; height: 15px; }
/* Progress: the flame, level, badges, lists of the best players, the invitation for notifications */
.cam-tool-group { display: flex; align-items: center; gap: 8px; }
.cam-tool-group.end { justify-content: flex-end; }
.cam-daily { padding: 2px 9px; border-radius: 999px; background: #fff; color: #000; font-size: 11.5px; font-weight: 800; }
.cam-over-rank { color: #fff; font-weight: 700; text-align: center; max-width: 240px; }
.streak-chip { display: inline-flex; align-items: center; gap: 3px; flex: none; margin-left: auto; padding: 6px 11px 6px 9px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 800; transition: transform 0.12s ease; }
.streak-chip:active { transform: scale(0.94); }
.streak-chip svg { width: 17px; height: 17px; }
.streak-chip.cold { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.progress { display: grid; gap: 16px; }
.prog-top { display: flex; align-items: center; gap: 16px; }
.prog-level { display: grid; place-items: center; flex: none; width: 78px; height: 78px; border-radius: 50%; background: var(--ink); color: var(--on-ink); align-content: center; line-height: 1; }
.prog-level small { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.prog-level b { font-size: 30px; font-weight: 800; }
.prog-main { display: grid; gap: 7px; flex: 1; min-width: 0; }
.prog-main b { font-size: 20px; font-weight: 800; }
.prog-main small { color: var(--muted); }
.prog-bar { display: block; height: 9px; border-radius: 5px; background: var(--bg-3); overflow: hidden; }
.prog-fill { display: block; height: 100%; border-radius: 5px; background: var(--ink); transition: width 0.5s ease; }
.prog-streak { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--bg-2); }
.prog-streak > svg { flex: none; width: 30px; height: 30px; }
.prog-streak b { display: block; font-size: 17px; }
.prog-streak small { color: var(--muted); }
.prog-head { margin: 4px 0 -4px; font-size: 15px; font-weight: 800; }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.award { display: grid; justify-items: center; gap: 3px; padding: 12px 8px; border-radius: 18px; background: var(--bg-2); text-align: center; opacity: 0.5; filter: grayscale(1); }
.award.done { opacity: 1; filter: none; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.award-emoji { font-size: 28px; line-height: 1.1; }
.award b { font-size: 13.5px; }
.award small { color: var(--muted); font-size: 11.5px; line-height: 1.25; }
.board-box { display: grid; gap: 12px; }
.board { display: grid; gap: 6px; min-height: 120px; }
.board-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; }
.board-row.me { background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.board-rank { flex: none; width: 24px; font-weight: 800; color: var(--muted); text-align: center; }
.board-row:first-child .board-rank { color: var(--text); }
.board-name { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
.board-name b, .board-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-name small { color: var(--muted); }
.board-score { flex: none; font-size: 17px; font-variant-numeric: tabular-nums; }
.push-invite { display: flex; align-items: center; gap: 12px; margin: 10px 16px 4px; padding: 12px 14px; border-radius: 20px; background: var(--bg-2); }
.push-invite > svg { flex: none; width: 26px; height: 26px; }
.push-invite > div { display: grid; flex: 1; min-width: 0; }
.push-invite small { color: var(--muted); }
.board-tabs { display: flex; }
.save-label { min-width: 0; }
/* The round: the score jumps, the best score is shown, 3-2-1, a shake at the end */
.cam-best { position: absolute; top: calc(76px + env(safe-area-inset-top)); left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); opacity: 0.9; }
.cam-best.hot { opacity: 1; font-size: 15px; animation: cam-pop 0.5s ease-out; }
.cam-score.bump { animation: cam-pop 0.25s ease-out; }
.cam-host.shake { animation: cam-shake 0.42s ease-in-out; }
@keyframes cam-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes cam-shake { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-7px, 3px); } 40% { transform: translate(6px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }
@media (prefers-reduced-motion: reduce) {
  .cam-best.hot, .cam-score.bump, .cam-host.shake { animation: none !important; }
}
/* The storage card of the admins */
.storage-card { display: grid; gap: 10px; margin: 12px 16px; padding: 16px 18px; }
.storage-card > h2 { padding: 0; }
.storage-info { display: grid; gap: 6px; }
.storage-info .plain-list { display: grid; gap: 4px; padding-left: 18px; list-style: disc; }

/* ============================================================================================================================================================
   The Nex look (2026-10-24): white and light, every symbol round like on Snapchat. On a phone held upright: your picture and the lettering "Nex" in a slightly darker
   grey row at the top (Home, Chats), a flat bar with five symbols at the bottom (Home, Chats as a paper plane, "+" in the middle, Camera, Videos); a symbol is a grey outline
   until its page is open, then it is filled and dark. Sideways or on a computer: a bar at the top (three lines, "Nex", search, bell, "+") and the side bar below it, always
   folded in to its symbols until the three lines are pressed. The boxes "Gesponsert" (with an upside down exclamation mark) are the places where advertisements will go. */
:root { --tabbar: 58px; --bar-h: 56px; --top: 0px; }
.cut { stroke: var(--bg); }
.cut-fill { fill: var(--bg); }

/* ----- the bar at the top */
.appbar { position: fixed; top: 0; left: 0; right: 0; z-index: 45; display: none; align-items: center; gap: 10px; height: calc(var(--bar-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; background: var(--bar); border-bottom: 1px solid var(--line); }
.app.bare .appbar { display: none; }
.app[data-route="home"], .app[data-route="messages"], .app[data-route="explore"] { --top: calc(var(--bar-h) + env(safe-area-inset-top)); }
.app[data-route="home"] .appbar, .app[data-route="messages"] .appbar, .app[data-route="explore"] .appbar { display: flex; }
.main { padding-top: var(--top); padding-bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); }
.topbar { top: var(--top); }
.appbar-btn { position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 14px; color: var(--text); transition: background 0.15s, transform 0.1s; }
.appbar-btn:hover { background: var(--bg-3); }
.appbar-btn:active { transform: scale(0.92); }
.appbar-btn svg { width: 24px; height: 24px; stroke-width: 2.2px; }
.appbar-btn .badge { top: 3px; right: 2px; }
.appbar-bell { position: relative; }
.appbar-menu { display: none; }
.appbar-me { flex: none; border-radius: 50%; transition: transform 0.1s; }
.appbar-me:active { transform: scale(0.92); }
.appbar-me .avatar { width: 38px; height: 38px; box-shadow: 0 0 0 2px var(--bg); }
.appbar-brand { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 40px; color: var(--text); }
.appbar-brand svg { width: auto; height: 30px; }
.appbar-pulse { display: block; flex: 1 1 0; min-width: 0; overflow: hidden; line-height: 0; color: var(--muted); }
.appbar-pulse .pulse-loader { color: var(--muted); }
.appbar-search { display: none; flex: 1 1 0; justify-content: center; min-width: 0; }
.appbar-search .search-box { width: min(560px, 100%); background: var(--bg); }
.appbar-right { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.appbar-right .streak-chip { margin-left: 0; }
.appbar-plus { display: none; place-items: center; width: 44px; height: 40px; border-radius: 14px; background: var(--ink); color: var(--on-ink); transition: transform 0.1s, opacity 0.15s; }
.appbar-plus:hover { opacity: 0.88; }
.appbar-plus:active { transform: scale(0.93); }
.appbar-plus svg { width: 22px; height: 22px; stroke-width: 2.6px; }
@media (max-width: 359px) { .appbar-pulse { display: none; } }

/* ----- the bar at the bottom on a phone: flat, white, five symbols */
.tabbar { left: 0; right: 0; bottom: 0; width: 100%; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); transform: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.tab-item { color: var(--tab-off); border-radius: 16px; }
.tab-item.active { color: var(--text); }
.tab-item.active::after { display: none; }
.tab-ic svg { width: 29px; height: 29px; stroke-width: 2.4px; }
.tab-item.plus-tab { flex: 1; }
.plus-tab .tab-ic { width: 30px; height: 30px; background: none; color: inherit; box-shadow: none; transition: transform 0.12s, opacity 0.15s; }
.plus-tab:active .tab-ic { transform: scale(0.9); }
.tab-extras { display: none; }
.side-foot { display: none; }

/* ----- the boxes "Gesponsert" */
.sponsored { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.sp-mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 11px; background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sp-mark svg { width: 22px; height: 22px; }
.sp-text { display: grid; line-height: 1.25; min-width: 0; }
.sp-text b { color: var(--text); font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.sp-text small { font-size: 12.5px; }
.sp-card { flex-direction: column; justify-content: center; gap: 8px; min-height: 170px; text-align: center; border-radius: var(--radius); }
.sp-row { margin: 10px 0 4px; padding: 16px; border-radius: 22px; }
.sp-bar { display: none; }
.sp-reel { flex-direction: column; justify-content: center; gap: 12px; width: 100%; height: 100%; padding: 28px; text-align: center; background: #fff; color: #5b5b5b; border: 0; border-radius: inherit; }
.sp-reel .sp-mark { width: 64px; height: 64px; border-radius: 22px; background: #f3f3f3; color: #000; }
.sp-reel .sp-mark svg { width: 40px; height: 40px; }
.sp-reel .sp-text b { color: #000; font-size: 22px; }
.sp-reel .sp-text small { font-size: 14px; }
.sp-slot { gap: 10px; padding: 8px; border-radius: 16px; }
.sp-slot .sp-mark { width: 30px; height: 30px; border-radius: 10px; }
.sp-slot .sp-mark svg { width: 18px; height: 18px; }
.sp-slot .sp-text small { display: none; }
.list > .sponsored { align-self: stretch; }
.sponsored-reel { background: #fff; }
.sponsored-reel .reel-stage { background: #fff; overflow: hidden; }

/* ----- Nex in the list of chats */

/* ----- stories */
.stories-wrap { margin: 2px calc(var(--pad) * -1) 0; padding: 12px 0 4px; }
.stories { display: flex; gap: 14px; padding: 2px var(--pad) 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.stories::-webkit-scrollbar { display: none; }
.story-btn, .story-own { position: relative; display: grid; justify-items: center; flex: none; gap: 6px; width: 76px; scroll-snap-align: start; text-align: center; transition: transform 0.12s; }
.story-btn:active { transform: scale(0.94); }
.story-ring { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; padding: 3px; background: var(--bg); box-shadow: 0 0 0 2px var(--line-strong); }
.story-btn.unseen .story-ring { box-shadow: 0 0 0 3px var(--ink); }
.story-btn.mine:not(.fresh) .story-ring { box-shadow: 0 0 0 2.5px var(--ink); }
.story-ring .avatar { width: 62px; height: 62px; }
.story-add { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--on-ink); box-shadow: 0 0 0 3px var(--bg); }
.story-add svg { width: 16px; height: 16px; stroke-width: 3px; }
.story-plus { position: absolute; right: 6px; top: 46px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--on-ink); box-shadow: 0 0 0 3px var(--bg); }
.story-plus svg { width: 16px; height: 16px; stroke-width: 3px; }
.story-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.story-new { display: grid; gap: 12px; }
.story-preview { width: 100%; max-height: 52vh; border-radius: 22px; object-fit: contain; background: #000; }
.story-view { position: fixed; inset: 0; z-index: 1500; display: grid; background: #000; color: #fff; animation: fade 0.16s ease-out; touch-action: none; user-select: none; -webkit-user-select: none; }
.story-view.closing { opacity: 0; transition: opacity 0.15s; }
.story-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.story-media { display: grid; place-items: center; width: min(100%, calc(100dvh * 9 / 16)); height: 100%; background: #111; }
.story-image, .story-video { width: 100%; height: 100%; object-fit: contain; }
.story-gone { color: #bbb; }
.story-zone { position: absolute; top: 76px; bottom: 90px; z-index: 2; background: none; }
.story-zone.left { left: 0; width: 34%; }
.story-zone.right { right: 0; width: 66%; }
.story-top { position: absolute; top: 0; left: 50%; z-index: 4; width: min(100%, calc(100dvh * 9 / 16)); transform: translateX(-50%); padding: calc(10px + env(safe-area-inset-top)) 12px 18px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent); pointer-events: none; }
.story-top > * { pointer-events: auto; }
.story-bars { display: flex; gap: 4px; }
.story-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.story-bar-fill { display: block; height: 100%; background: #fff; }
.story-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.story-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.story-person { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 800; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.story-person .avatar { width: 36px; height: 36px; }
.story-age { color: rgba(255, 255, 255, 0.8); font-size: 13px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.story-x { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, 0.35); color: #fff; }
.story-x svg { width: 22px; height: 22px; }
.story-caption { position: absolute; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom)); z-index: 3; width: min(92%, calc(100dvh * 9 / 16 - 24px)); transform: translateX(-50%); padding: 12px 16px; border-radius: 18px; background: rgba(0, 0, 0, 0.55); text-align: center; font-weight: 600; pointer-events: none; }
.story-tools { position: absolute; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 4; display: flex; align-items: center; justify-content: space-between; width: min(100%, calc(100dvh * 9 / 16)); transform: translateX(-50%); padding: 0 16px; pointer-events: none; }
.story-tools > * { pointer-events: auto; }
.story-views { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); font-weight: 700; }
.story-views svg { width: 18px; height: 18px; }
.story-tool { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); color: #fff; }
.story-tool svg { width: 20px; height: 20px; }

/* ----- videos on a phone held upright: the strip "Gesponsert" at the top replaces the bar with the lettering */
@media (max-width: 819px) {
  .reels-view .sp-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 7; display: flex; align-items: center; gap: 10px; height: calc(38px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0; border: 0; border-radius: 0; background: rgba(255, 255, 255, 0.94); color: #444; }
  .reels-view .sp-bar .sp-mark { width: 26px; height: 26px; border-radius: 9px; background: #efefef; color: #000; box-shadow: none; }
  .reels-view .sp-bar .sp-mark svg { width: 17px; height: 17px; }
  .reels-view .sp-bar .sp-text { display: flex; align-items: baseline; gap: 8px; }
  .reels-view .sp-bar .sp-text b { color: #000; font-size: 14px; }
  .reels-view .sp-bar .sp-text small { font-size: 12px; }
  .reels-view .reels-top { top: calc(38px + env(safe-area-inset-top)); padding-top: 12px; }
  .reels-view .reel-volume { top: calc(112px + env(safe-area-inset-top)); }
}

/* ----- sideways or on a computer: the bar at the top and the side bar below it, folded in */
@media (min-width: 820px) {
  :root { --bar-h: 60px; --side: 76px; --pad: 28px; }
  .app:not(.bare) { --top: calc(var(--bar-h) + env(safe-area-inset-top)); }
  .app:not(.bare) .appbar { display: flex; padding: env(safe-area-inset-top) 18px 0 12px; gap: 12px; }
  .appbar-menu { display: grid; }
  .appbar-me, .appbar-find { display: none; }
  .appbar-pulse { flex: 0 1 180px; }
  .appbar-search { display: flex; }
  .appbar-plus { display: grid; }
  .main { padding-bottom: 56px; }
  .app[data-route="thread"] .main, .app[data-route="group"] .main, .app[data-route="messages"] .main, .app[data-route="nex"] .main, .app[data-route="videos"] .main { padding-bottom: 0; }
  .tabbar { top: var(--top); bottom: 0; left: 0; right: auto; width: var(--side); height: auto; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px; padding: 12px 10px 14px; border-top: 0; border-right: 1px solid var(--line); overflow-x: hidden; overflow-y: auto; scrollbar-width: none; transition: width 0.2s ease, box-shadow 0.2s; }
  .tabbar::-webkit-scrollbar { display: none; }
  .tab-item, .tab-extra { display: flex; align-items: center; justify-content: center; flex: none; width: 100%; height: 52px; gap: 16px; padding: 0; border-radius: 16px; color: var(--muted); white-space: nowrap; }
  .tab-item:hover, .tab-extra:hover { background: var(--hover); }
  .tab-item.active { background: var(--bg-3); color: var(--text); }
  .tab-item.plus-tab { display: none; }
  .tab-label { display: none; font-size: 16px; font-weight: 700; }
  .tab-extras { display: none; flex-direction: column; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .tab-extra .badge { top: 2px; right: -4px; }
  .side-foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding-top: 14px; }
  .side-me { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px; border-radius: 16px; text-align: left; }
  .side-me:hover { background: var(--hover); }
  .side-me-text { display: none; flex-direction: column; min-width: 0; line-height: 1.2; }
  .side-me-text b, .side-me-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-me-text small { color: var(--muted); }
  .sp-slot .sp-text { display: none; }
  .sp-slot { justify-content: center; }
  .app.rail-open .tabbar { width: 252px; box-shadow: 8px 0 30px rgba(0, 0, 0, 0.14); }
  .app.rail-open .tab-item, .app.rail-open .tab-extra { justify-content: flex-start; padding: 0 14px; }
  .app.rail-open .tab-label { display: inline; }
  .app.rail-open .tab-extras { display: flex; }
  .app.rail-open .side-me { justify-content: flex-start; }
  .app.rail-open .side-me-text { display: flex; }
  .app.rail-open .sp-slot { justify-content: flex-start; }
  .app.rail-open .sp-slot .sp-text { display: grid; }
  .app.rail-open .sp-slot .sp-text small { display: block; }
  .reels-view .sp-bar { display: none; }
  .reels-view .reels-top { top: 0; }
  .reels { height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); }
  .reel { height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); }
  .reel-stage { height: calc(100dvh - var(--top) - 32px); }
  .stories-wrap { margin: 2px 0 0; }
  .stories { padding: 2px 4px 10px; }
  .cam-view { height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); }
}
@media (min-width: 1200px) {
  :root { --side: 76px; --pad: 40px; }
  .tab-item, .tab-extra { justify-content: center; padding: 0; }
  .tab-label { display: none; }
  .side-me { justify-content: center; }
  .side-me-text { display: none; }
  .app.rail-open .tab-item, .app.rail-open .tab-extra { justify-content: flex-start; padding: 0 14px; }
  .app.rail-open .tab-label { display: inline; }
  .app.rail-open .side-me { justify-content: flex-start; }
  .app.rail-open .side-me-text { display: flex; }
}
@media (min-width: 1000px) {
  .chats-split { height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); }
  .chat-pane .topbar { top: 0; }                          /* the list of chats scrolls inside its own box: its top bar sticks to the top of that box */
  .chats-split .thread-view { height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); }
  .lockscreen { height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); }
}
@media (prefers-reduced-motion: reduce) { .tabbar { transition: none; } .story-view { animation: none; } }

/* ----- the pages that are always dark (camera, videos, the lock screen, the page of a shared video, stories) keep the dark colours even when the rest is white */
.cam-view, .reels-view, .lockscreen, .share-shell, .story-view {
  --bg: #000; --card: #111; --card-2: #1c1c1c; --bg-2: rgba(255, 255, 255, 0.07); --bg-3: rgba(255, 255, 255, 0.13); --line: rgba(255, 255, 255, 0.12); --line-strong: rgba(255, 255, 255, 0.26);
  --text: #fff; --muted: #a8a8a8; --hover: rgba(255, 255, 255, 0.08); --ink: #fff; --on-ink: #000; --glass: rgba(0, 0, 0, 0.7); --glass-strong: rgba(18, 18, 18, 0.9); --glass-line: rgba(255, 255, 255, 0.16);
  color: #fff; color-scheme: dark;
}

/* ----- the camera: the game is shown first (standing still, with its buttons), the first touch starts it; the lenses get smaller the farther they are from the middle */
.cam-lenses { padding-top: 22px; padding-bottom: 12px; }
.cam-lenses .lens, .cam-lenses .lens.on { transform: scale(var(--grow, 0.74)); transition: transform 0.12s linear, opacity 0.12s linear; }
.cam-tap { position: absolute; left: 0; right: 0; top: calc(86px + env(safe-area-inset-top)); z-index: 3; display: flex; justify-content: center; pointer-events: none; }
.cam-tap[hidden] { display: none; }
.cam-tap span { padding: 9px 18px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 14px; font-weight: 700; animation: cam-nudge 1.8s ease-in-out infinite; }
@keyframes cam-nudge { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(4px); opacity: 0.78; } }
.cam-ext { display: grid; place-items: center; gap: 8px; width: min(80%, 300px); padding: 34px 22px; border-radius: 30px; background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; text-align: center; }
.cam-ext-ic { display: grid; place-items: center; width: 72px; height: 72px; }
.cam-ext-ic svg { width: 48px; height: 48px; }
.cam-ext b { font-size: 22px; font-weight: 800; }
.cam-ext small { color: rgba(255, 255, 255, 0.8); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .cam-tap span { animation: none; } }

/* ----- before the first touch the game fills the whole picture, exactly as it does in the round (it used to be shown smaller and pushed up, above the lenses) */
.cam-host .game-layer, .cam-host .game-frame, .cam-host .cam-ext { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cam-view[data-state="idle"] .cam-tap { top: 44%; }
.lens { width: 74px; height: 74px; }
.lens-emoji { font-size: 32px; }
.cam-lenses { gap: 12px; padding-left: calc(50% - 37px); padding-right: calc(50% - 37px); }
.cam-bottom { gap: 3px; }
@media (prefers-reduced-motion: reduce) { .cam-host .game-layer, .cam-host .game-frame, .cam-host .cam-ext { transition: none; } }

/* without a camera: a dark picture and one small chip (the game itself stays in the middle) */
.cam-nocam { position: absolute; left: 50%; top: calc(54px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 6; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 32px); padding: 6px 13px 6px 10px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: rgba(255, 255, 255, 0.92); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.cam-nocam[hidden] { display: none; }
.cam-nocam svg { width: 15px; height: 15px; flex: none; }
.cam-nocam span { overflow: hidden; text-overflow: ellipsis; }
.cam-view:not([data-state="idle"]) .cam-nocam { display: none; }
.app[data-route="camera"] .main { padding-bottom: 0; }        /* the camera fills the screen: the page must not be a bit taller than it (the tab bar floats above) */

/* ----- Nex AI is a contact like any other: the head, the bubbles and the box come from the chat styles; here are only the round face, the "KI" mark and the small differences */
.nex-face { display: grid; place-items: center; background: var(--ink); color: var(--on-ink); }
.nex-face svg { width: 52%; height: 52%; }
.ai-badge { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--bg-3); color: var(--text); font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; line-height: 16px; vertical-align: 1px; }
.convo-nex .convo-top { justify-content: flex-start; gap: 7px; }
.nex-intro { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7vh 12px 8px; text-align: center; }
.nex-intro h2 { margin-top: 10px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.nex-intro p { max-width: 330px; color: var(--muted); }
.nex-intro[hidden] { display: none; }
.bubble.ai { max-width: 88%; }
.bubble-text.nex-text { white-space: normal; }
.nex-text .nex-p { white-space: pre-wrap; }
.nex-text .nex-p + .nex-p, .nex-text .nex-p + .nex-list, .nex-text .nex-list + .nex-p { margin-top: 8px; }
.nex-text .nex-list { margin: 0; padding: 0; list-style: none; }
.bubble.ai .nex-actions { margin: 1px 0 0 -4px; }
.dm-compose .nex-chips { margin: 0 0 4px; padding: 2px 0 6px; }
.nex-post-box .nex-post { margin: 8px 0; }
@media (min-width: 1000px) {
  .thread-view .nex-chips { flex-wrap: wrap; overflow: visible; }
  .nex-intro { padding-top: 10vh; }
}
.chat-blank .empty { padding: 36px 20px 24px; }
/* the "KI" mark next to the names of the AI accounts */
.ai-badge { margin-left: 6px; }
.bubble-time .ai-badge { margin-left: 0; }
.convo-top .ai-badge { margin: 0 auto 0 6px; }
.ph-name h2 .ai-badge { margin-left: 8px; font-size: 12px; line-height: 20px; vertical-align: 4px; }
.post-name .ai-badge, .cm-name .ai-badge, .ur-name .ai-badge, .who .ai-badge { vertical-align: 1px; }

/* the box "Gesponsert" in the side bar: not there while the bar is folded, and a tall banner that fills the free room when it is open */
@media screen and (min-width: 820px) {
  .sp-slot { display: none; }
  .app.rail-open .side-foot { flex: 1 1 auto; min-height: 0; }
  .app.rail-open .sp-slot { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; align-items: center; gap: 12px; min-height: 190px; max-height: 480px; padding: 22px 16px; text-align: center; border-radius: 22px; }
  .app.rail-open .sp-slot .sp-mark { width: 52px; height: 52px; border-radius: 18px; }
  .app.rail-open .sp-slot .sp-mark svg { width: 30px; height: 30px; }
  .app.rail-open .sp-slot .sp-text { display: grid; gap: 4px; justify-items: center; }
  .app.rail-open .sp-slot .sp-text b { font-size: 16px; }
  .app.rail-open .sp-slot .sp-text small { display: block; font-size: 13px; }
}

/* ----- chats like Snapchat: everything stands on the left, a small name above every run of messages, and your own messages are purple like on Instagram */
.bubble, .bubble.mine, .bubble.theirs { align-self: flex-start; align-items: flex-start; max-width: 88%; }
.bubble.mine .bubble-text { background: linear-gradient(135deg, #7357f6 0%, #a24cf0 58%, #c23fc7 100%); color: #fff; border-bottom-right-radius: 22px; border-bottom-left-radius: 7px; }
.bubble.mine .bubble-text .tok { color: #fff; }
.bubble-name { margin: 10px 4px 1px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.bubble.mine .bubble-name { color: #a47bff; }
.bubble.theirs .bubble-name { color: #1b9bff; }
.bubble-time { margin-left: 4px; }
.bubble.loved { align-items: flex-start; }

.convo-status { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.convo-status .dot { opacity: 0.6; }
.convo-status time { font-weight: 500; }
.convo-ic { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.convo-ic svg { width: 15px; height: 15px; stroke-width: 2.6px; }
.convo-status.unread { color: #1b9bff; font-weight: 800; }
.convo-status.unread .convo-ic svg { fill: currentColor; }
.convo-status.sent { color: #a47bff; }
.convo-status.sent .convo-ic svg { stroke: none; }
.convo-status.new { color: #1b9bff; }
.convo-top { justify-content: flex-start; }
.convo-top .ai-badge { margin: 0 0 0 6px; }
.convo-streak { display: inline-flex; align-items: center; gap: 2px; margin: 0 4px 0 auto; font-size: 14px; font-weight: 800; }
.convo-streak svg { width: 18px; height: 18px; color: #ff8a1f; }
.convo-nex .convo-last { color: var(--muted); }

/* ----- the lenses of the camera: face lenses, the small "create" lens, the note under the head, the layer the effects are drawn on */
.lens.create { width: 52px; height: 52px; margin-left: 11px; }
.lens.create .lens-ic { background: rgba(255, 255, 255, 0.12); border: 2px dashed rgba(255, 255, 255, 0.8); box-shadow: none; }
.lens.create .lens-emoji { font-size: 22px; }
.lens.face .lens-ic { border-color: rgba(255, 255, 255, 0.95); }
.lens-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cam-note { position: absolute; left: 50%; top: calc(94px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 6; max-width: calc(100% - 32px); padding: 8px 15px; border-radius: 999px; background: rgba(0, 0, 0, 0.58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.cam-note[hidden] { display: none; }
.cam-view:not([data-state="idle"]) .cam-note { display: none; }
.cam-view[data-kind="lens"] .cam-score, .cam-view[data-kind="lens"] .cam-best { display: none; }
.cam-lens-by { margin-left: 6px; color: rgba(255, 255, 255, 0.7); font-size: 13px; font-weight: 600; }

/* ----- "Ausprobieren": the purple, shimmering button under a video that was made with a lens (or "Mitspielen" under a game clip) */
.try-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 11px 20px 11px 16px; border: 0; border-radius: 999px; overflow: hidden; color: #fff; font-weight: 800; font-size: 15px;
  background: linear-gradient(120deg, #6a3df0 0%, #a24bf0 45%, #d44ad0 100%); box-shadow: 0 6px 20px rgba(122, 44, 240, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.22); cursor: pointer; transition: transform 0.12s; }
.try-btn:active { transform: scale(0.96); }
.try-btn svg { width: 18px; height: 18px; }
.try-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-18deg); animation: try-shimmer 2.8s ease-in-out infinite; pointer-events: none; }
.try-btn.compact { margin-top: 6px; padding: 8px 15px 8px 12px; font-size: 14px; }
@keyframes try-shimmer { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .try-btn::after { animation: none; display: none; } }
.reel-info .try-btn { pointer-events: auto; }

/* the panel of the small "create" lens, and the dialog to write a lens */
.cam-create { width: min(86%, 340px); display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 28px; background: rgba(12, 12, 18, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; pointer-events: auto; max-height: 70%; overflow-y: auto; scrollbar-width: none; }
.cam-create h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.cam-create h3 { margin: 6px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 0.06em; }
.cc-sub { color: rgba(255, 255, 255, 0.72); font-size: 14px; margin-top: -4px; }
.cc-card, .cc-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.1); text-align: left; color: inherit; }
.cc-card:active { background: rgba(255, 255, 255, 0.18); }
.cc-ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #7a2cf0, #d44ad0); font-size: 24px; }
.cc-ic.small { width: 38px; height: 38px; font-size: 20px; }
.cc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cc-text b { font-size: 15.5px; }
.cc-text small { color: rgba(255, 255, 255, 0.7); font-size: 12.5px; }
.cc-row .icon-btn { color: #fff; }
.lens-maker { display: flex; flex-direction: column; gap: 12px; }
.lm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lm-actions { display: flex; gap: 10px; }
.lm-card { display: flex; gap: 14px; padding: 14px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); }
.lm-emoji { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; font-size: 32px; border: 3px solid #fff; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3); }
.lm-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lm-effects { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; color: var(--muted); }
.lm-effects li::before { content: "✓ "; color: #7a2cf0; font-weight: 800; }
.lm-filter { color: var(--text); font-weight: 600; }
.cc-mine { display: flex; flex-direction: column; gap: 8px; }
.cc-mine:empty { display: none; }
.lm-result { display: flex; flex-direction: column; gap: 8px; }
.lm-result[hidden] { display: none; }

/* ----- QR codes: the dialog, and the "QR-Code" lens of the camera (the code on a card, or the picture of the camera with a frame to scan) */
.qr-dialog { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qr-holder { width: min(320px, 100%); min-height: 120px; display: grid; place-items: center; }
.qr-canvas { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 8px 30px rgba(75, 33, 201, 0.25); }
.qr-url { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.qr-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.qr-found { padding: 12px 14px; border-radius: 16px; background: var(--bg-2); overflow-wrap: anywhere; text-align: left; font-size: 14px; max-height: 160px; overflow-y: auto; }
.cam-qr { width: min(86%, 340px); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: auto; }
.qr-modes { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.qr-mode { padding: 8px 18px; border-radius: 999px; color: rgba(255, 255, 255, 0.78); font-weight: 700; font-size: 14px; }
.qr-mode.on { background: #fff; color: #000; }
.qr-view { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 120px; justify-content: center; }
.qr-view .qr-canvas { width: min(100%, 290px); }
.qr-view .qr-url { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); font-weight: 600; font-size: 14px; }
.qr-note { padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 14px; font-weight: 600; }
.qr-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.qr-chips .chip { background: rgba(0, 0, 0, 0.55); color: #fff; }
.qr-chips .chip.on { background: #fff; color: #000; }
.qr-chips[hidden] { display: none; }
.qr-reticle { position: relative; width: 250px; height: 250px; }
.qr-reticle i { position: absolute; width: 44px; height: 44px; border: 5px solid #fff; border-radius: 14px; box-shadow: 0 0 12px rgba(0, 0, 0, 0.5); }
.qr-reticle i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.qr-reticle i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.qr-reticle i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.qr-reticle i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ----- the builder of jump-and-run levels and the uploader of games (dialogs), and the screen to try them */
.game-maker { display: flex; flex-direction: column; gap: 12px; }
.gm-board { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); scrollbar-width: thin; }
.gm-canvas { display: block; touch-action: pan-x pinch-zoom; image-rendering: auto; }
.gm-canvas.painting { touch-action: none; cursor: crosshair; }
.gm-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-tool { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 62px; padding: 7px 8px; border-radius: 14px; background: var(--bg-2); border: 1px solid transparent; font-size: 20px; }
.gm-tool small { font-size: 11px; color: var(--muted); font-weight: 700; }
.gm-tool.on { border-color: #7a2cf0; background: color-mix(in srgb, #7a2cf0 14%, var(--bg)); }
.gm-row { display: flex; flex-direction: column; gap: 6px; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.emoji { min-width: 42px; font-size: 20px; padding: 4px 8px; }
.gm-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.gm-code { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 13px; line-height: 1.45; white-space: pre; overflow: auto; min-height: 260px; tab-size: 2; }
.gm-api { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.gm-api code { color: var(--text); background: var(--bg-2); padding: 1px 5px; border-radius: 6px; font-size: 12.5px; }
.gm-test { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; background: rgba(0, 0, 0, 0.82); }
.gm-test-frame { position: relative; height: min(92dvh, 92vh); aspect-ratio: 9 / 16; max-width: 96vw; border-radius: 26px; overflow: hidden; background: linear-gradient(#10101a, #1b1b2c); box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6); }
.gm-test-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.gm-test-result { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 26px; border-radius: 26px; background: rgba(12, 12, 20, 0.88); color: #fff; font-size: 26px; text-align: center; }
.gm-test-result[hidden] { display: none; }
.gm-test-buttons { display: flex; gap: 8px; }
.gm-test-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; display: grid; place-items: center; }
.gm-test-result .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }

/* ---------------------------------------------------------------------------------------------- home on a wide screen: the feed in the middle, trends and people on the right */
.home-rail { display: none; }
@media screen and (min-width: 1100px) {
  .home-view { display: grid; grid-template-columns: minmax(0, 640px) 330px; justify-content: center; column-gap: 36px; align-items: start; }
  .home-main { min-width: 0; }
  .home-main .pager > .list { grid-template-columns: minmax(0, 1fr); }
  .home-main .topbar { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .home-rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; padding: 16px 0 24px; max-height: 100dvh; overflow-y: auto; scrollbar-width: none; }
  .home-rail::-webkit-scrollbar { display: none; }
  .rail-card { padding: 16px 16px 6px; border-radius: var(--radius); background: var(--card); }
  .rail-card h2 { margin-bottom: 8px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
  .rail-card .card-more { display: block; padding: 10px 0 12px; color: var(--text); font-weight: 700; }
  .rail-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 8px; color: var(--muted); font-size: 12.5px; }
  .rail-foot a:hover { text-decoration: underline; }
}

/* ---------------------------------------------------------------------------------------------- the shelf of shorts on Home */
.shorts { margin: 14px 0; padding: 14px 0 10px; border-radius: var(--radius); background: var(--card); }
.shorts[hidden] { display: none; }
.shorts-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 0 16px 10px; }
.shorts-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.shorts-head .muted { flex-basis: 100%; }
.shorts-ic { display: grid; place-items: center; }
.shorts-ic svg { width: 26px; height: 26px; }
.shorts-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.shorts-row::-webkit-scrollbar { display: none; }
.short-slot { flex: none; width: 138px; scroll-snap-align: start; }
.short-card { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #111; color: #fff; }
.short-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.short-info { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 28px 10px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); }
.short-info b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.25; }
.short-info small { font-size: 11.5px; opacity: 0.85; }
@media screen and (min-width: 820px) {
  .short-slot { width: 164px; }
}

/* ---------------------------------------------------------------------------------------------- link cards and the window for pages from outside */
.link-card { display: block; margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); color: var(--text); text-decoration: none; }
.link-card[hidden] { display: none; }
.link-card:hover { background: var(--hover); }
.lc-pic { display: block; aspect-ratio: 1.91 / 1; overflow: hidden; background: var(--card-2); }
.lc-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lc-text { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px 12px; }
.lc-site { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.lc-site svg { width: 14px; height: 14px; }
.lc-fav { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.lc-title { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; font-weight: 700; line-height: 1.3; }
.lc-desc { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); font-size: 14px; line-height: 1.35; }
.link-card.compact { display: flex; align-items: stretch; border-radius: 14px; }
.link-card.compact .lc-pic { flex: none; width: 84px; aspect-ratio: auto; }
.link-card.compact .lc-text { min-width: 0; justify-content: center; padding: 8px 12px; }
.link-card.compact .lc-title { font-size: 14px; }
.reel-info .link-card { max-width: 320px; border-color: rgba(255, 255, 255, 0.28); background: rgba(0, 0, 0, 0.5); color: #fff; }
.reel-info .link-card .lc-site { color: rgba(255, 255, 255, 0.78); }
.site-open { overflow: hidden; }
.site-view { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; background: var(--bg); color: var(--text); animation: fade 0.18s ease-out both; }
.sv-bar { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; border-bottom: 1px solid var(--line); }
.sv-close, .sv-copy, .sv-out { flex: none; }
.sv-head { display: flex; flex: 1; min-width: 0; flex-direction: column; line-height: 1.2; }
.sv-domain { color: var(--muted); font-size: 12.5px; }
.sv-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.sv-body { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.sv-wait { margin: auto; }
.sv-warn { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--card); color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.sv-warn svg { flex: none; width: 16px; height: 16px; }
.sv-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; }
.sv-fallback { display: flex; width: min(100%, 560px); margin: 0 auto; flex-direction: column; gap: 10px; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; }
.sv-image { width: 100%; max-height: 300px; border-radius: 18px; object-fit: cover; }
.sv-site { color: var(--muted); font-size: 13px; }
.sv-fallback h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

/* ---------------------------------------------------------------------------------------------- the mark of the official accounts */
.co-badge { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 6px; border-radius: 50%; background: var(--ink); color: var(--on-ink); vertical-align: -2px; flex: none; }
.co-badge svg { width: 11px; height: 11px; }
.ph-name h2 .co-badge { width: 22px; height: 22px; margin-left: 8px; vertical-align: -3px; }
.ph-name h2 .co-badge svg { width: 14px; height: 14px; }
.convo-top .co-badge { margin: 0 auto 0 6px; }

/* ---------------------------------------------------------------------------------------------- the modes of Nex AI and its code blocks */
.nex-mode { display: inline-flex; align-items: center; align-self: flex-start; gap: 2px; margin-top: 1px; padding: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.nex-mode svg { width: 12px; height: 12px; transform: rotate(90deg); }
.nex-mode:hover { color: var(--text); }
.nex-codebox { margin: 8px 0; overflow: hidden; border-radius: 14px; background: #0d1117; color: #e6edf3; }
.nex-codehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 14px; background: #161b22; color: #9da7b3; font-size: 12px; font-weight: 600; text-transform: lowercase; }
.nex-copy { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #e6edf3; font-size: 12px; font-weight: 700; }
.nex-copy:hover { background: rgba(255, 255, 255, 0.18); }
.nex-code { margin: 0; padding: 12px 14px; overflow-x: auto; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; tab-size: 2; }
.nex-code code { font: inherit; }

/* ---------------------------------------------------------------------------------------------- the start: the terms in short, signing in and signing up (white, in the round font of Duolingo) */
.auth-white { --bg: #fff; --text: #0a0a0a; --muted: #6b6b6b; --card: #f4f4f5; --card-2: #ececee; --line: #e4e4e7; --ink: #0a0a0a; --on-ink: #fff; --hover: rgba(0, 0, 0, 0.05); background: #fff; color: #0a0a0a;
  font-family: "Nunito", "Segoe UI Rounded", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif; }
.au-holder { display: contents; }
.au { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; overflow-y: auto; }
.au-top { display: flex; align-items: center; flex: none; gap: 14px; width: min(100%, 720px); margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 18px 6px; }
.au-back, .au-back-gap { flex: none; width: 40px; height: 40px; }
.au-back { display: grid; place-items: center; border-radius: 50%; color: #4b4b4b; }
.au-back:hover { background: var(--hover); }
.au-back svg { width: 24px; height: 24px; }
.au-progress { flex: 1; height: 14px; overflow: hidden; border-radius: 999px; background: #e5e5e5; }
.au-progress i { display: block; height: 100%; border-radius: 999px; background: var(--ink); transition: width 0.35s ease; }
.au-main { display: grid; flex: 1; place-items: center; padding: 12px 20px 24px; }
.au-column { display: flex; width: min(100%, 420px); flex-direction: column; gap: 16px; }
.au-title { font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; text-align: center; }
.au-sub { margin-top: -6px; color: var(--muted); font-size: 17px; font-weight: 700; text-align: center; }
.au-sub.small { font-size: 15px; font-weight: 600; }
.au-form { display: flex; flex-direction: column; gap: 14px; }
.au-field { display: block; }
.au-input, .au .field { width: 100%; padding: 15px 16px; border: 2px solid #e5e5e5; border-radius: 16px; background: #f7f7f7; color: #0a0a0a; font: inherit; font-size: 17px; font-weight: 700; outline: none; }
.au-input:focus, .au .field:focus { border-color: #0a0a0a; background: #fff; }
.au .field-label > span { margin-bottom: 6px; color: var(--muted); font-size: 14px; font-weight: 800; }
.au .with-action { position: relative; }
.au .with-action .field { padding-right: 52px; }
.au .with-action .icon-btn { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); color: #6b6b6b; }
.au .phone-row { display: flex; gap: 8px; }
.au .phone-row .prefix { flex: 0 0 38%; }
.au-btn { width: 100%; padding: 15px 20px; border: 2px solid #0a0a0a; border-radius: 16px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: transform 0.08s, box-shadow 0.08s; }
.au-btn.solid { background: #0a0a0a; color: #fff; box-shadow: 0 4px 0 #4b4b4b; }
.au-btn.plain { border-color: #d4d4d8; background: #fff; color: #0a0a0a; box-shadow: 0 4px 0 #d4d4d8; }
.au-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.au-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.au-btn:focus-visible, .au-alt:focus-visible, .au-back:focus-visible { outline: 3px solid #0a0a0a; outline-offset: 2px; }
.au-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 2px; background: #e5e5e5; }
.au-alts { display: flex; flex-direction: column; gap: 10px; }
.au-alt { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 16px; border: 2px solid #e5e5e5; border-radius: 16px; background: #fff; color: #0a0a0a; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.au-alt:hover { background: #f7f7f7; }
.au-alt svg { width: 22px; height: 22px; }
.au-switch { color: var(--muted); font-size: 15px; font-weight: 700; text-align: center; }
.au-switch a { color: #0a0a0a; text-decoration: underline; }
.au-hint, .au-small, .au-note { color: var(--muted); font-size: 14px; font-weight: 700; line-height: 1.4; }
.au-small, .au-note { text-align: center; }
.au-hint.good { color: #1a8a3a; }
.au-hint.bad, .au-small.bad { color: #fe2c55; }
.au-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 700; }
.au-check[hidden] { display: none; }
.au-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: #0a0a0a; }
.au-age { font-size: 76px; font-weight: 900; line-height: 1; text-align: center; }
.au-range { width: 100%; height: 16px; border-radius: 999px; background: linear-gradient(to right, #0a0a0a var(--fill, 14%), #e5e5e5 var(--fill, 14%)); -webkit-appearance: none; appearance: none; outline: none; }
.au-range::-webkit-slider-thumb { width: 34px; height: 34px; border: 4px solid #fff; border-radius: 50%; background: #0a0a0a; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); -webkit-appearance: none; appearance: none; }
.au-range::-moz-range-thumb { width: 26px; height: 26px; border: 4px solid #fff; border-radius: 50%; background: #0a0a0a; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.au-choice { display: flex; gap: 12px; }
.au-choice .au-btn { flex: 1; }
.au-yes { flex: 1.2; justify-content: center; margin-top: 0; padding: 15px 20px; font-size: 16px; }
.au-legal { display: flex; flex: none; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); color: #8a8a8f; font-size: 13px; font-weight: 700; }
.au-legal a:hover { text-decoration: underline; }
.au .edit-profile.signup-pics { margin: 4px 0; }
.acc-preview { overflow: hidden; border: 2px solid #e5e5e5; border-radius: 20px; background: #fff; }
.ap-banner { position: relative; display: flex; align-items: center; height: 104px; padding: 0 18px; background: var(--banner, #ececee); }
.ap-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-name { position: relative; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #000; font-size: 24px; font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; word-break: break-word; }
.ap-face { position: relative; width: max-content; margin: -36px 0 0 16px; border: 4px solid #fff; border-radius: 50%; background: #fff; }
.ap-text { display: flex; flex-direction: column; padding: 6px 18px 16px; }
.ap-text b { font-size: 19px; font-weight: 800; }
.ap-text span { color: var(--muted); font-weight: 700; }

/* the terms in short, in front of the shape of Nex (like the question that YouTube asks) */
.welcome { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px; overflow: hidden; }
.wb-bg { position: absolute; inset: -24px; filter: blur(7px); pointer-events: none; user-select: none; }
.wb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 28px; background: #efeff0; }
.wb-word { display: inline-flex; height: 28px; }
.wb-word svg { width: auto; height: 100%; }
.wb-search { flex: 1; max-width: 520px; height: 38px; border-radius: 999px; background: #fff; }
.wb-body { display: grid; grid-template-columns: 76px minmax(0, 640px); gap: 28px; justify-content: center; padding: 18px 0; }
.wb-side { display: flex; flex-direction: column; gap: 22px; padding-top: 10px; }
.wb-side i { width: 34px; height: 34px; border-radius: 10px; background: #d9d9dc; }
.wb-feed { display: flex; flex-direction: column; gap: 14px; }
.wb-post { display: flex; gap: 12px; padding: 16px; border-radius: 22px; background: #f4f4f5; }
.wb-av { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.wb-lines { display: flex; flex: 1; flex-direction: column; gap: 9px; }
.wb-lines i { display: block; height: 12px; border-radius: 6px; background: #d4d4d8; }
.wb-pic { display: block; height: 150px; margin-top: 4px; border-radius: 16px; }
.wb-shorts { display: flex; gap: 10px; overflow: hidden; padding: 14px; border-radius: 22px; background: #f4f4f5; }
.wb-shorts b { flex: none; width: 120px; aspect-ratio: 9 / 16; border-radius: 14px; }
.wb-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.wb-dialog { position: relative; display: flex; width: min(100%, 560px); max-height: calc(100dvh - 32px); flex-direction: column; gap: 14px; padding: 24px 22px 18px; border-radius: 28px; background: #fff; color: #0a0a0a; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.wb-logo { display: inline-flex; flex: none; height: 30px; }
.wb-logo svg { width: auto; height: 100%; }
.wb-dialog h1 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.wb-scroll { flex: 1; min-height: 0; margin-right: -8px; padding-right: 8px; overflow-y: auto; border-top: 1px solid #e4e4e7; border-bottom: 1px solid #e4e4e7; color: #3f3f46; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.wb-scroll section { padding-top: 14px; }
.wb-scroll h2 { margin-bottom: 3px; color: #0a0a0a; font-size: 15px; font-weight: 800; }
.wb-end { padding: 14px 0; color: #0a0a0a; font-weight: 700; }
.wb-end a { text-decoration: underline; }
.wb-actions { display: flex; flex: none; gap: 10px; }
.wb-actions .au-btn { flex: 1; }
@media (max-width: 819px) {
  .wb-body { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .wb-side { display: none; }
  .wb-dialog { padding: 20px 16px 14px; border-radius: 24px; }
}

/* somebody without a picture: a colour with the first letter; without a banner: another colour with the whole name (always the same ones, see Core.defaultColors) */
.avatar.letters:not(.official) { color: #000; font-weight: 800; }
.avatar.official { background: var(--ink); color: var(--on-ink); }
.avatar.official svg { width: 62%; height: 62%; }
.avatar.official.nexai { background: #6a3df0; color: #fff; }
.avatar.official.saturn { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.avatar.official.saturn svg { width: 78%; height: 78%; }
.banner.plain, .edit-banner.plain { background: var(--banner, var(--card-2)); }
.banner-name { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 clamp(16px, 4vw, 36px); color: #000; font-size: clamp(22px, 5vw, 46px); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; word-break: break-word; }
@media (prefers-reduced-motion: reduce) { .au-btn, .au-progress i { transition: none; } }

/* ---------------------------------------------------------------------------------------------- videos: one click stops or plays, nothing to wind, nothing to make big */
.tap-video { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tap-video:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.video-play { position: absolute; inset: 0; display: none; place-items: center; pointer-events: none; }
.tap-video.is-paused > .video-play { display: grid; }
.video-play svg { width: 64px; height: 64px; color: #fff; opacity: 0.92; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55)); }
.bubble-video-box { width: min(280px, 100%); overflow: hidden; border-radius: 20px; background: #000; }
.bubble-video-box .bubble-video { width: 100%; }

/* ---------------------------------------------------------------------------------------------- the round look: whatever was still square gets round corners */
.appbar { border-radius: 0 0 26px 26px; }
.topbar { border-radius: 0 0 22px 22px; }
.sp-bar, .reels-view .sp-bar { border-radius: 0 0 18px 18px; }
.cam-stage { border-radius: 28px; }
.reel-stage { border-radius: 26px; }
@media screen and (max-width: 819px) {
  .tabbar { border-radius: 26px 26px 0 0; }
}
@media screen and (max-width: 999px) {
  .chat-head { border-radius: 0 0 22px 22px; }
}
@media screen and (min-width: 820px) {
  .tabbar { border-radius: 0 28px 28px 0; }
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: var(--line); background-clip: padding-box; }
  ::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: padding-box; }
  ::-webkit-scrollbar-track { background: transparent; }
}

/* ---------------------------------------------------------------------------------------------- the row of five videos on Home: side by side, no box around it */
.shorts { margin: 18px 0; padding: 0; background: none; }
.shorts-head { padding: 0 4px 10px; }
.shorts-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 0; scroll-snap-type: none; }
.short-slot, .shorts .short-slot { width: auto; min-width: 0; }
.short-card { border-radius: 16px; }
.short-info { padding: 24px 8px 8px; }
.short-info b { font-size: 12px; }
.short-info small { font-size: 11px; }

/* ---------------------------------------------------------------------------------------------- the buttons under a post: soft round chips (like on Snapchat) */
.post-actions { justify-content: flex-start; gap: 8px; max-width: none; margin: 12px 0 0; }
.act-btn { justify-content: center; gap: 7px; min-width: 42px; height: 42px; padding: 0 15px 0 13px; background: var(--card-2); color: var(--text); font-size: 14px; font-weight: 800; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.15s, color 0.15s, transform 0.12s, box-shadow 0.15s; }
.act-btn svg { width: 22px; height: 22px; }
.act-btn:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.act-btn:active { transform: scale(0.94); }
.act-btn.more, .act-btn.send { padding: 0; }
.act-btn.more { margin-left: auto; }
.act-btn.like.on { background: rgba(122, 44, 240, 0.14); color: #7a2cf0; box-shadow: inset 0 0 0 1.5px rgba(122, 44, 240, 0.4); }
.act-btn.repost.on { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.post.detail .post-actions { padding-top: 12px; }

/* ---------------------------------------------------------------------------------------------- the "+" lens, the photo of a lens and the new create window */
.lens-ic.photo { background: #111; overflow: hidden; }
.lens-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; }
.lens-plus { display: grid; place-items: center; }
.lens-plus svg, .lens.create .lens-plus svg { width: 26px; height: 26px; stroke-width: 2.8; }
.lens.create .lens-ic { border: 2.5px solid rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.16); }
.cc-card.hero { background: linear-gradient(120deg, #6a3df0 0%, #a24bf0 45%, #d44ad0 100%); box-shadow: 0 6px 20px rgba(122, 44, 240, 0.4); color: #fff; }
.cc-card.hero .cc-ic { background: rgba(255, 255, 255, 0.2); }
.cc-card.hero small { color: rgba(255, 255, 255, 0.85); }
.cc-lists { display: flex; flex-direction: column; gap: 10px; }
.cc-lists:empty { display: none; }
.cc-card.upload { margin-top: 4px; }
.cc-ic.photo { object-fit: cover; padding: 0; }
.gm-kinds { display: flex; gap: 8px; }
.rk-list { display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow-y: auto; }
.rk-item { display: flex; flex-direction: column; gap: 6px; }
.rk-row { display: flex; align-items: center; gap: 8px; }
.rk-row .field { flex: 1; min-width: 0; }
.rk-thumb { flex: none; width: 44px; height: 44px; border-radius: 14px; object-fit: cover; background: var(--bg-2); }
.rk-thumb.none { display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--muted); }
.rk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; padding: 6px; border-radius: 16px; background: var(--bg-2); }
.rk-choice { padding: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--bg); }
.rk-choice img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-credit { color: var(--muted); font-size: 11px; padding-left: 52px; }
.gm-head { display: flex; align-items: center; gap: 14px; }
.gm-head-main { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 6px; }
.gm-photo { position: relative; display: flex; flex: none; flex-direction: column; align-items: center; gap: 4px; width: 84px; color: var(--muted); font-size: 11.5px; font-weight: 700; text-align: center; }
.gm-photo img, .gm-photo-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--card-2); border: 2px dashed var(--line-strong, var(--line)); }
.gm-photo img { border-style: solid; }
.gm-photo-ic svg { width: 28px; height: 28px; }
.gm-codebox { position: relative; }
.gm-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 18px; pointer-events: none; }
.gm-empty[hidden] { display: none; }
.gm-empty .try-btn { pointer-events: auto; margin-top: 0; }
.gm-ai { display: flex; gap: 8px; }
.gm-ai[hidden] { display: none; }
.gm-ai .field { flex: 1; min-width: 0; }
.gm-help { font-size: 14px; }
.gm-help summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.nex-codeacts { display: flex; align-items: center; gap: 6px; }
.nex-copy.upload { background: linear-gradient(120deg, #6a3df0, #d44ad0); color: #fff; }
.cam-view[data-kind="create"] .cam-lens-name, .cam-view[data-kind="create"] .cam-lens-hint { display: none; }

/* ----- on a big screen the side bar is always open, like the one of a big app: the name, the search, the pages, "Neu", your account and the small links (the bar at the top is gone) */
@media screen and (min-width: 1200px) {
  :root { --side: 268px; }
  .rail-top { display: flex; flex-direction: column; gap: 16px; order: 0; margin: 4px 0 14px; padding: 0 4px; }
  .rail-brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
  .rail-brand svg:first-child { width: 46px; height: 40px; flex: none; }
  .rail-brand svg:last-child { width: auto; height: 26px; }
  .rail-search .search-box { width: 100%; height: 46px; background: var(--bg-2); border-color: transparent; }
  .app:not(.bare) { --top: 0px; }
  .app:not(.bare) .appbar { display: none; }
  .app:not(.bare) .tabbar { top: 0; width: var(--side); padding: 16px 14px 14px; gap: 4px; background: var(--bg); box-shadow: none; overflow-y: auto; }
  .app:not(.bare) .tab-item, .app:not(.bare) .tab-extra { justify-content: flex-start; height: 48px; padding: 0 16px; gap: 14px; }
  .app:not(.bare) .tab-label { display: inline; font-size: 15px; font-weight: 600; }
  .app:not(.bare) .tab-item.active, .app:not(.bare) .tab-extra.active { background: var(--bg-3); color: var(--text); }
  .app:not(.bare) .tab-item.active .tab-label, .app:not(.bare) .tab-extra.active .tab-label { font-weight: 800; }
  .app:not(.bare) .tab-extras { display: contents; }
  .app:not(.bare) .tab-extra .badge { top: auto; right: 14px; position: absolute; }
  .app:not(.bare) .tab-item .badge { position: absolute; top: 14px; right: 14px; }
  .tabbar .rail-top { order: 0; }
  .tabbar [data-nav="home"] { order: 1; }
  .tabbar [data-nav="explore"] { order: 2; }
  .tabbar [data-nav="notifications"] { order: 3; }
  .tabbar [data-nav="messages"] { order: 4; }
  .tabbar [data-nav="camera"] { order: 5; }
  .tabbar [data-nav="videos"] { order: 6; }
  .tabbar [data-nav="profile"] { order: 7; }
  .tabbar [data-nav="bookmarks"] { order: 8; }
  .tabbar [data-nav="settings"] { order: 9; }
  .tabbar [data-nav="moderation"] { order: 10; }
  .tabbar .side-foot { order: 20; margin-top: auto; gap: 12px; padding-top: 12px; }
  .app:not(.bare) .sp-slot { justify-content: flex-start; }
  .app:not(.bare) .sp-slot .sp-text { display: grid; }
  .rail-post { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 24px; background: var(--ink); color: var(--on-ink); font-size: 15px; font-weight: 800; }
  .rail-post svg { width: 22px; height: 22px; stroke-width: 2.6px; }
  .rail-post:hover { opacity: 0.88; }
  .rail-me { display: flex; align-items: center; gap: 4px; }
  .rail-me .side-me { flex: 1; min-width: 0; justify-content: flex-start; }
  .rail-me .side-me-text { display: flex; }
  .rail-more { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }
  .rail-more:hover { background: var(--bg-3); color: var(--text); }
  .rail-more svg { width: 22px; height: 22px; }
  .rail-links { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 8px 2px; font-size: 12px; color: var(--muted); }
  .rail-links a { color: var(--muted); }
  .rail-links a:hover { color: var(--text); text-decoration: underline; }
  .rail-links small { width: 100%; font-size: 12px; }
  .home-main { margin-top: 0; }
}
@media screen and (max-width: 1199px) {
  .rail-top, .rail-post, .rail-more, .rail-links { display: none; }
  .tab-extra[data-nav="explore"], .tab-extra[data-nav="profile"], .tab-extra[data-nav="moderation"] { display: none !important; }
}
.push-install { display: grid; gap: 6px; margin: 4px 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); font-size: 14px; }
.push-install ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); }

/* ----- the buttons under a post: five of the same size with the same distance, side by side */
.post-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: 460px; margin: 12px 0 0; }
.post-actions .act-btn, .post-actions .act-btn.more, .post-actions .act-btn.send { flex: 1 1 0; min-width: 0; max-width: 84px; margin: 0; padding: 0 6px; justify-content: center; }
.post.detail .post-actions { max-width: none; }

/* ----- the buttons at the side of a video: a ring and a plus in purple and pink, round for sure, and buttons that look better */
.reel-person { display: block; width: 72px; height: 72px; margin-bottom: 16px; }
.reel-av { display: grid; place-items: center; width: 72px; height: 72px; padding: 3px; border-radius: 50%; background: linear-gradient(135deg, #7a2cf0 0%, #c13bd8 50%, #ec4899 100%); box-shadow: none; transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3), box-shadow 0.4s; }
.reel-av .avatar.lg { width: 100%; height: 100%; min-width: 0; aspect-ratio: 1 / 1; flex: none; border-radius: 50%; overflow: hidden; border: 2.5px solid #000; box-shadow: none; }
.reel-av .avatar.lg img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.reel-av.pulse { transform: scale(1.12); box-shadow: 0 0 0 7px rgba(236, 72, 153, 0.35); }
.reel-follow { bottom: -14px; width: 30px; height: 30px; margin-left: -15px; background: linear-gradient(135deg, #7a2cf0, #ec4899); color: #fff; box-shadow: 0 0 0 2.5px #000, 0 4px 12px rgba(236, 72, 153, 0.55); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.5), background 0.25s, color 0.25s, opacity 0.3s; }
.reel-follow svg { width: 18px; height: 18px; stroke-width: 3px; }
.reel-follow:active { transform: scale(0.85); }
.reel-follow.done { background: #fff; color: #ec4899; transform: scale(1.3) rotate(360deg); }
.reel-follow.gone { opacity: 0; transform: scale(0.2); }
.reel-btn-ic { width: 54px; height: 54px; background: rgba(30, 30, 36, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 14px rgba(0, 0, 0, 0.35); transition: transform 0.15s, background 0.2s; }
.reel-btn-ic svg { width: 29px; height: 29px; stroke-width: 2.3px; }
.reel-btn.on .reel-btn-ic { background: linear-gradient(135deg, #7a2cf0, #ec4899); color: #fff; box-shadow: 0 4px 16px rgba(236, 72, 153, 0.5); }
.reel-count { font-size: 13px; font-weight: 800; }

/* ----- Home on a big screen uses the whole width: the feed gets all the room that the side bar and the right column leave */
@media screen and (min-width: 1100px) {
  .home-view { grid-template-columns: minmax(0, 1fr) clamp(330px, 24vw, 430px); justify-content: stretch; column-gap: 36px; padding-right: 8px; }
}

/* ----- the line above the keyboard, like the line of WhatsApp: "+" at the left, the sticker in the line, the photo, the microphone (or the arrow when something is written) */
.dm-box { position: relative; align-items: center; }
.send-btn[hidden], .cb-photo[hidden], .cb-mic[hidden], .cb-dict[hidden] { display: none; }
.dm-plus { transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), background 0.2s; }
.dm-plus.open { transform: rotate(45deg); background: var(--bg-3); }
.cb-field { position: relative; display: flex; align-items: flex-end; flex: 1; min-width: 0; }
.cb-field .dm-input { padding-right: 38px; }
.cb-in-btn { position: absolute; right: 2px; bottom: 4px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); }
.cb-in-btn svg { width: 22px; height: 22px; }
.cb-in-btn:hover { color: var(--text); background: var(--hover); }
.cb-photo, .cb-mic, .cb-dict { flex: none; width: 42px; height: 42px; }
.cb-mic.rec, .cb-dict.rec { color: #ec4899; background: rgba(236, 72, 153, 0.15); }
.cb-panel { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.2s, margin 0.3s; }
.cb-panel.open { max-height: 300px; opacity: 1; margin-top: 8px; }
.cb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; padding: 16px 12px 14px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cb-item { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--text); font-size: 12.5px; font-weight: 700; }
.cb-item[hidden] { display: none; }
.cb-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; transition: transform 0.12s; }
.cb-item:active .cb-ic { transform: scale(0.9); }
.cb-ic svg { width: 26px; height: 26px; }
.dm-box.recording > :not(.cb-rec) { display: none; }
.cb-rec { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 0 2px; }
.cb-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #fe2c55; }
.cb-time { min-width: 38px; font-variant-numeric: tabular-nums; font-weight: 700; }
.cb-meter { flex: 1; height: 8px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.cb-meter-fill { display: block; width: 100%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7a2cf0, #ec4899); transform-origin: left; transform: scaleX(0); transition: transform 0.08s linear; }
.bubble-voice audio { width: min(260px, 100%); height: 40px; }
.cb-name { text-align: center; line-height: 1.15; }
.cb-bin { flex: none; width: 40px; height: 40px; color: var(--muted); }

/* ----- calls: the handset in the head of a chat, the window that rings, and the call screen */
.chat-head .chat-call { position: relative; flex: none; color: #fff; background: linear-gradient(135deg, #7a2cf0, #ec4899); }
.chat-head .chat-call:hover { background: linear-gradient(135deg, #6a1fe0, #db3a8a); }
.chat-head .chat-call svg { width: 21px; height: 21px; }
.chat-head .chat-call.live::after { content: ""; position: absolute; top: 3px; right: 3px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2.5px var(--bg); }
.call-incoming { position: fixed; z-index: 3200; left: 50%; top: calc(10px + env(safe-area-inset-top)); width: min(440px, calc(100vw - 20px)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 28px; background: #16161d; color: #fff; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1); animation: call-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1); transition: opacity 0.35s; }
.call-incoming.leaving { opacity: 0; }
.call-incoming .avatar { flex: none; }
.call-incoming-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.call-incoming-text b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-incoming-text span { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.call-btn { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); color: #fff; transition: transform 0.15s, background 0.2s, color 0.2s; }
.call-btn svg { width: 30px; height: 30px; }
.call-btn:active { transform: scale(0.92); }
.call-btn.on { background: #fff; color: #5b21b6; }
.call-btn.hang { background: #fe2c55; }
.call-btn.hang svg { transform: none; }
.call-btn.answer { background: #22c55e; }
.call-btn.small { width: 42px; height: 42px; }
.call-btn.small svg { width: 20px; height: 20px; }
.call-incoming .call-btn { width: 52px; height: 52px; }
.call-incoming .call-btn svg { width: 24px; height: 24px; }
.call-incoming .call-btn.answer { position: relative; }
.call-incoming .call-btn.answer::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #22c55e; animation: call-pulse 1.4s ease-out infinite; }
.call-screen { position: fixed; inset: 0; z-index: 3300; display: flex; flex-direction: column; justify-content: space-between; padding: calc(16px + env(safe-area-inset-top)) 20px calc(30px + env(safe-area-inset-bottom)); color: #fff; background: linear-gradient(165deg, #220a4f 0%, #5b21b6 48%, #be2f8f 100%); transition: opacity 0.4s; }
.call-screen.leaving { opacity: 0; }
.call-top { display: flex; justify-content: flex-end; }
.call-center { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.call-face { position: relative; display: grid; place-items: center; width: 150px; height: 150px; margin-bottom: 12px; }
.call-face .avatar { width: 120px; height: 120px; font-size: 44px; }
.call-face::before, .call-face::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.55); opacity: 0; }
.call-screen[data-state="ringing"] .call-face::before { animation: call-pulse 1.8s ease-out infinite; }
.call-screen[data-state="ringing"] .call-face::after { animation: call-pulse 1.8s ease-out 0.9s infinite; }
.call-screen[data-state="active"] .call-face::before { opacity: 1; border-color: #4ade80; }
.call-name { font-size: 28px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-status { font-size: 17px; opacity: 0.85; font-variant-numeric: tabular-nums; }
.call-crowd { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 360px; margin-top: 14px; }
.call-who { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 72px; font-size: 12px; }
.call-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.call-who.invited, .call-who.left, .call-who.declined { opacity: 0.5; }
.call-bar { display: flex; justify-content: center; gap: 30px; }
.call-screen.mini { inset: auto; left: 50%; top: calc(10px + env(safe-area-inset-top)); width: min(380px, calc(100vw - 20px)); transform: translateX(-50%); flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 999px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.call-screen.mini .call-center { flex: 1; min-width: 0; flex-direction: row; align-items: center; gap: 10px; text-align: left; }
.call-screen.mini .call-face { flex: none; width: 40px; height: 40px; margin: 0; }
.call-screen.mini .call-face .avatar { width: 40px; height: 40px; font-size: 15px; }
.call-screen.mini .call-face::before, .call-screen.mini .call-face::after, .call-screen.mini .call-crowd { display: none; }
.call-screen.mini .call-name { font-size: 15px; }
.call-screen.mini .call-status { font-size: 13px; }
.call-screen.mini .call-bar { gap: 8px; }
.call-screen.mini .call-bar .call-btn { width: 40px; height: 40px; }
.call-screen.mini .call-bar .call-btn svg { width: 20px; height: 20px; }
.call-screen.mini .call-top { order: 3; }
@keyframes call-in { from { transform: translate(-50%, -140%); } to { transform: translate(-50%, 0); } }
@keyframes call-pulse { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }

/* ----- subtitles in the videos and the window to choose the language of the subtitles and of the voice */
.reel-subs { position: absolute; left: 12px; right: 84px; bottom: 30%; display: flex; justify-content: center; pointer-events: none; z-index: 2; }
.reel-subs[hidden] { display: none; }
.reel-subs-line { max-width: 100%; padding: 5px 11px; border-radius: 9px; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.reel-subs-line:empty { display: none; }
.cc-sheet { display: flex; flex-direction: column; gap: 6px; }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; font-weight: 700; }
.cc-row .field { flex: 1; max-width: 250px; }
.cc-note { display: block; min-height: 0; }
.cc-help { margin-top: 10px; font-size: 13px; line-height: 1.4; }

/* ----- the buttons under a post: only the symbol, small, with no button shape behind it */
.post-actions { justify-content: space-between; gap: 2px; max-width: 340px; margin: 6px 0 0 -6px; }
.post.detail .post-actions { max-width: none; margin-left: -6px; }
.post-actions .act-btn, .post-actions .act-btn.more, .post-actions .act-btn.send { flex: 0 0 auto; min-width: 34px; max-width: none; height: 30px; padding: 0 6px; gap: 4px; border-radius: 8px; background: none; box-shadow: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.post-actions .act-btn svg { width: 17px; height: 17px; }
.post-actions .act-btn:hover:not(:disabled) { background: none; color: var(--text); }
.post-actions .act-btn.like.on { background: none; box-shadow: none; color: #7a2cf0; }
.post-actions .act-btn.repost.on { background: none; box-shadow: none; color: var(--text); }

/* ----- "Suche" in landscape: the entry turns into a line to write in, in the same place */
.search-row { display: flex; align-items: center; gap: 10px; margin: 0; }
.search-row .search-input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; outline: none; }
.search-row .search-input::placeholder { color: var(--muted); }
.search-row svg { flex: none; width: 22px; height: 22px; }
.tab-extra.search-row { background: var(--bg-3); color: var(--text); cursor: text; }
.appbar-find-row { flex: none; width: 190px; height: 40px; padding: 0 12px; border-radius: 20px; background: var(--bg-3); color: var(--text); }
.appbar-find-row svg { width: 20px; height: 20px; }
.cc-fix { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cc-fix .cc-row { margin-top: 6px; }

/* ----- the camera: a game starts at once, the strip stays while it is played, a lens has a shutter (tap = photo, hold = clip), the window of the camera over other pages */
.cam-view[data-state="over"] .cam-bottom, .cam-view[data-state="review"] .cam-bottom { display: none; }
.cam-view[data-state="idle"] .cam-tap { top: auto; bottom: calc(var(--tabbar) + 214px + env(safe-area-inset-bottom)); }
.cam-stop { left: auto; right: 14px; margin-left: 0; width: 50px; height: 50px; bottom: calc(var(--tabbar) + 148px + env(safe-area-inset-bottom)); }
.cam-stop span { width: 20px; height: 20px; }
.cam-view[data-kind="lens"] .cam-stop, .cam-view[data-kind="randomsong"] .cam-stop { display: none; }
.lens.on.holding { transform: scale(1.32); }
.lens.holding .lens-ic { border-color: #fe2c55; box-shadow: 0 0 0 9px rgba(254, 44, 85, 0.4), 0 6px 22px rgba(0, 0, 0, 0.55); }
.cam-overlay { --pad: 0px; --tabbar: 0px; position: fixed; inset: 0; z-index: 3400; background: #000; }
.cam-overlay .cam-view { margin: 0; height: 100%; }
.cam-overlay-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; z-index: 12; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); color: #fff; }
.cam-overlay-x svg { width: 22px; height: 22px; }
.cam-review-bar { gap: 6px; }
.cam-act { min-width: 56px; }

/* ----- videos on a small or low phone: the column of buttons gets smaller so that the picture of the person, the plus and all buttons are seen (the bar of the tabs and the strip at the top take room) */
@media screen and (max-height: 780px) {
  .reel-actions { gap: 8px; bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom)); }
  .reel-person { width: 56px; height: 56px; margin-bottom: 12px; }
  .reel-av { width: 56px; height: 56px; padding: 2.5px; }
  .reel-follow { width: 24px; height: 24px; margin-left: -12px; bottom: -11px; }
  .reel-follow svg { width: 15px; height: 15px; }
  .reel-btn-ic { width: 44px; height: 44px; }
  .reel-btn-ic svg { width: 24px; height: 24px; }
  .reel-btn { gap: 1px; }
  .reel-count { font-size: 11.5px; }
}
@media screen and (max-height: 620px) {
  .reel-person { width: 48px; height: 48px; margin-bottom: 10px; }
  .reel-av { width: 48px; height: 48px; }
  .reel-actions { gap: 5px; }
  .reel-btn-ic { width: 40px; height: 40px; }
  .reel-btn-ic svg { width: 22px; height: 22px; }
  .reel-count { display: none; }
}

/* ----- uploading: the page "Was willst du hochladen?" (a video on the left, a post on the right) and the two whole pages, white and round like the sign-up */
.nu .au-main { align-items: start; padding-top: 8px; }
.nu-choosing .au-main { align-items: center; padding-top: 0; padding-bottom: 8vh; }
.nu-column { display: flex; width: min(100%, 560px); flex-direction: column; gap: 22px; }
.nu-column.wide { width: min(100%, 900px); }
.nu-title { font-size: clamp(28px, 7vw, 44px); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; text-align: center; }
.nu-title.left, .nu-sub.left { text-align: left; }
.nu-sub { margin-top: -12px; }
.nu-choose { display: flex; flex-direction: column; gap: 28px; }
.nu-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.nu-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: min(44vh, 330px); padding: 22px 12px; border: 2px solid #e5e5e5; border-radius: 28px; background: #fff; box-shadow: 0 5px 0 #e5e5e5; color: #0a0a0a; text-align: center; font: inherit; cursor: pointer; transition: transform 0.08s, box-shadow 0.08s, border-color 0.15s; }
.nu-card:hover { border-color: #0a0a0a; }
.nu-card:active { transform: translateY(4px); box-shadow: 0 1px 0 #e5e5e5; }
.nu-card:focus-visible { outline: 3px solid #0a0a0a; outline-offset: 3px; }
.nu-ic { display: grid; place-items: center; width: clamp(72px, 22vw, 104px); height: clamp(72px, 22vw, 104px); border-radius: 30px; color: #fff; }
.nu-ic svg { width: 52%; height: 52%; }
.nu-card.video .nu-ic { background: linear-gradient(135deg, #7a2cf0 0%, #c13bd8 55%, #ec4899 100%); }
.nu-card.post .nu-ic { background: #0a0a0a; }
.nu-card b { font-size: clamp(19px, 5vw, 26px); font-weight: 900; letter-spacing: -0.01em; }
.nu-card small { max-width: 18ch; color: #6b6b6b; font-size: 14px; font-weight: 700; line-height: 1.3; }
.nu-story { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; color: #6b6b6b; font: inherit; font-size: 15px; font-weight: 800; }
.nu-story:hover { background: rgba(0, 0, 0, 0.05); color: #0a0a0a; }
.nu-story svg { width: 20px; height: 20px; }
.au-back-gap { flex: none; width: 40px; height: 40px; }
.nu .au-top { justify-content: space-between; }
/* a post: a whole page */
.nu-post { display: flex; flex-direction: column; gap: 18px; }
.nu-posting .composer.template { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.nu-posting .compose-text { min-height: 28vh; padding: 14px 16px; border: 2px solid #e5e5e5; border-radius: 20px; background: #f7f7f7; color: #0a0a0a; font-size: 20px; font-weight: 600; line-height: 1.4; outline: none; }
.nu-posting .compose-text:focus { border-color: #0a0a0a; background: #fff; }
.nu-posting .btn.primary, .nu-videoing .btn.primary { padding: 13px 28px; border: 2px solid #0a0a0a; border-radius: 16px; background: #0a0a0a; color: #fff; font-weight: 800; box-shadow: 0 4px 0 #4b4b4b; }
.nu-posting .btn.primary:active:not(:disabled), .nu-videoing .btn.primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.nu-posting .btn.primary:disabled, .nu-videoing .btn.primary:disabled { opacity: 0.4; box-shadow: none; }
/* a video: a whole page */
.nu-video { display: flex; flex-direction: column; gap: 18px; }
.vt-page { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: start; padding: 0; background: none; box-shadow: none; }
.vt-left { display: flex; flex-direction: column; gap: 8px; }
.vt-right { display: flex; flex-direction: column; gap: 12px; }
.vt-page .vt-slot { position: relative; aspect-ratio: 9 / 16; max-height: 66vh; overflow: hidden; border: 2px dashed #d4d4d8; border-radius: 26px; background: #f4f4f5; }
.vt-page .vt-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; padding: 14px; color: #0a0a0a; font: inherit; text-align: center; }
.vt-page .vt-preview { position: absolute; inset: 0; }
.vt-page .vt-preview video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.vt-limit { margin: 0; text-align: center; }
@media (max-width: 720px) {
  .vt-page { grid-template-columns: 1fr; gap: 18px; }
  .vt-left { width: min(240px, 70%); margin: 0 auto; }
  .nu-card { min-height: 220px; }
}
.nu-choosing .nu-column { width: min(100%, 820px); }
@media (min-width: 900px) {
  .nu-card { min-height: min(46vh, 380px); gap: 16px; }
  .nu-card small { font-size: 16px; }
}
.nu-main { width: 100%; }

/* ----- KI-Bild: the window of the "+" panel (write what the picture shows, pick a style, wait in the queue, take or repaint) */
.ai-box { display: flex; flex-direction: column; gap: 12px; min-width: min(420px, 78vw); }
.ai-prompt { min-height: 88px; font: inherit; font-size: 16px; }
.ai-styles { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-style { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ai-style:hover { background: var(--hover); }
.ai-style.on { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.ai-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.ai-go svg { width: 18px; height: 18px; }
.ai-problem { margin: 0; color: var(--danger); font-size: 14px; font-weight: 700; }
.ai-note { margin: 0; }
.ai-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 8px 12px; text-align: center; }
.ai-pic { display: block; width: 100%; max-height: 56vh; border-radius: 16px; background: var(--bg-2); object-fit: contain; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-actions .btn { flex: 1 1 auto; }

/* ----- the shutter of the normal camera: a plain white disc without a symbol, red while it films */
.lens-ic.plain, .lens.face .lens-ic.plain { background: #fff; border-color: #fff; }
.lens.on .lens-ic.plain { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 6px 22px rgba(0, 0, 0, 0.55); }
.lens.holding .lens-ic.plain { background: #fe2c55; border-color: #fe2c55; }

/* ----- TikTok red (#fe2c55) is the one red of the site; the shutter of a lens glides up with the finger and, when it is slid far enough, the clip is locked: the circle glides back to its place and hops a little every 3 seconds */
:root { --tt-red: #fe2c55; }
.cam-lenses { touch-action: pan-x; }
.lens-emoji svg { width: 44%; height: 44%; }
.cam-tile-ic { overflow: hidden; }
.cam-tile-ic svg { width: 46%; height: 46%; }
.cam-tile-ic .lens-photo { width: 100%; height: 100%; }
.lens.holding, .lens.locked { position: relative; z-index: 3; }
.lens.holding { translate: 0 calc(var(--lift, 0px) * -1); transition: transform 0.12s linear, opacity 0.12s linear; }
.lens.holding::before { content: ""; position: absolute; left: 50%; top: -26px; width: 11px; height: 11px; border: solid #fff; border-width: 3px 0 0 3px; border-radius: 2px; transform: translateX(-50%) rotate(45deg); opacity: calc(0.95 - var(--lift, 0px) / 60); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); }
.lens.holding.locked { translate: 0 0; transition: translate 0.7s cubic-bezier(0.2, 1.2, 0.3, 1), transform 0.3s ease; animation: lock-hop 3s ease-in-out 1s infinite; }
.lens.holding.locked::before { display: none; }
.lens.holding.locked .lens-ic { border-color: var(--tt-red); box-shadow: 0 0 0 7px rgba(254, 44, 85, 0.3), 0 6px 22px rgba(0, 0, 0, 0.55); }
@keyframes lock-hop { 0%, 14%, 100% { translate: 0 0; } 6% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .lens.holding.locked { animation: none; } }

/* ----- videos: the column of buttons is smaller and sits lower (the profile about in the middle of the height, like TikTok), a check stays at the people one follows, the sound button is a small rounded square at the bottom right */
.reel-actions { gap: 6px; bottom: calc(var(--tabbar) + 92px + env(safe-area-inset-bottom)); }
.reel-person { width: 52px; height: 52px; margin-bottom: 12px; }
.reel-av { width: 52px; height: 52px; padding: 2.5px; }
.reel-follow { width: 22px; height: 22px; margin-left: -11px; bottom: -10px; }
.reel-follow svg { width: 14px; height: 14px; }
.reel-follow.done.kept { background: #fff; color: #7a2cf0; transform: none; opacity: 1; box-shadow: 0 0 0 2px #000; }
.reel-btn-ic svg { width: 30px; height: 30px; }
.reel-sound { position: absolute; right: 12px; bottom: calc(var(--tabbar) + 38px + env(safe-area-inset-bottom)); z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(20, 20, 24, 0.62); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); }
.reel-sound svg { width: 20px; height: 20px; }
.reel-sound:active { transform: scale(0.92); }
.menu-item.strong { background: rgba(122, 44, 240, 0.16); font-weight: 800; }
@media (min-width: 900px) { .reel-sound { right: calc(50% - min(50%, calc(100dvh * 9 / 32)) - 60px); bottom: 56px; } }

/* ----- the tools of the camera on the right (text on the left of the round button, from the top: turn around, filter, timer, then the small ones, and the arrow that folds them) */
.cam-ctl { gap: 10px; align-items: flex-end; }
.cam-ctl-extras { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cam-ctl.folded .cam-ctl-extras { display: none; }
.cam-tool.labelled { display: flex; align-items: center; gap: 10px; width: auto; height: auto; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cam-tool-label { font-size: 13px; font-weight: 800; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75); }
.cam-tool-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(40, 40, 40, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cam-tool-ic svg { width: 22px; height: 22px; }
.cam-tool.labelled.on .cam-tool-ic { background: #7a2cf0; }
.cam-tool-fold { display: grid; place-items: center; width: 42px; height: 28px; color: #fff; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7)); }
.cam-tool-fold svg { width: 22px; height: 22px; transform: rotate(-90deg); transition: transform 0.25s; }
.cam-ctl.folded .cam-tool-fold svg { transform: rotate(90deg); }
.cam-count { position: absolute; top: 50%; left: 50%; z-index: 9; transform: translate(-50%, -50%); font-size: 120px; font-weight: 900; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); pointer-events: none; }
.cam-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cam-filter { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border-radius: 14px; border: 2px solid transparent; color: var(--text); }
.cam-filter.on { border-color: #7a2cf0; }
.cam-filter-sw { width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(#e74c3c, #f1c40f, #2ecc71, #3498db, #9b59b6, #e74c3c); }

/* ----- the sound window: dark, with a search line, tiles of the styles, four tabs, the videos with sound and the songs (bookmark and a purple plus) */
.dialog.mu-box { background: #161618; color: #fff; --text: #fff; --bg-2: #26262a; --line: rgba(255, 255, 255, 0.12); --line-strong: rgba(255, 255, 255, 0.2); --hover: rgba(255, 255, 255, 0.08); }
.dialog.mu-box .dialog-top h2 { color: #fff; }
.mu-dark { display: flex; flex-direction: column; gap: 14px; min-width: min(440px, 88vw); color: #fff; }
.mu-bar { display: flex; align-items: center; gap: 10px; }
.mu-search-wrap { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; border-radius: 14px; background: #26262a; color: rgba(255, 255, 255, 0.55); }
.mu-search-wrap svg { width: 20px; height: 20px; flex: none; }
.mu-search { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: #fff; font: inherit; font-size: 16px; outline: none; }
.mu-random { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 14px; background: #26262a; color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.mu-random svg { width: 18px; height: 18px; }
.mu-styles { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mu-styles::-webkit-scrollbar { display: none; }
.mu-style { flex: none; display: grid; place-items: center; width: 96px; height: 66px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 15px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); border: 2px solid transparent; }
.mu-style.on { border-color: #fff; }
.mu-tabs { display: flex; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.mu-tab { flex: 1; display: grid; place-items: center; height: 46px; color: rgba(255, 255, 255, 0.55); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.mu-tab svg { width: 24px; height: 24px; }
.mu-tab.on { color: #fff; border-bottom-color: #7a2cf0; }
.mu-heading { margin: 4px 0 0; font-size: 20px; font-weight: 800; }
.mu-videos { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.mu-videos::-webkit-scrollbar { display: none; }
.mu-video { position: relative; flex: none; width: 128px; height: 190px; border-radius: 12px; overflow: hidden; background: #26262a; color: #fff; text-align: left; }
.mu-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.mu-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.75)); }
.mu-video-name, .mu-video-by { position: absolute; left: 8px; right: 8px; z-index: 1; font-weight: 800; font-size: 13px; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-video-name { bottom: 24px; }
.mu-video-by { bottom: 8px; font-size: 12px; font-weight: 600; opacity: 0.85; }
.mu-list { display: flex; flex-direction: column; gap: 4px; max-height: 44vh; overflow-y: auto; }
.mu-row { border-radius: 14px; padding: 6px 4px; }
.mu-row.playing { background: #1f1f24; }
.mu-rowtop { display: flex; align-items: center; gap: 12px; }
.mu-cover { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; color: #fff; }
.mu-cover svg { width: 22px; height: 22px; }
.mu-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mu-main b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-main small { color: rgba(255, 255, 255, 0.55); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-star { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; }
.mu-star svg { width: 24px; height: 24px; }
.mu-star.on { color: #fbbf24; }
.mu-add { display: grid; place-items: center; flex: none; width: 44px; height: 38px; border-radius: 10px; background: #7a2cf0; color: #fff; }
.mu-add svg { width: 22px; height: 22px; stroke-width: 2.6; }
.mu-more { display: none; flex-direction: column; gap: 6px; padding: 8px 4px 4px; }
.mu-row.playing .mu-more { display: flex; }
.mu-wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.mu-wave i { flex: 1; min-width: 2px; background: #fff; border-radius: 2px; opacity: 0.9; }
.mu-start { width: 100%; accent-color: #7a2cf0; }
.mu-startline { color: rgba(255, 255, 255, 0.55); }
.mu-files { display: flex; flex-direction: column; gap: 12px; padding: 8px 2px; color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.mu-files p { margin: 0; }
.mu-pick { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 14px; background: #7a2cf0; color: #fff; font-weight: 800; }
.mu-pick svg { width: 20px; height: 20px; }
.mu-status { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 13px; }

.mu-list { padding-right: 8px; }
.mu-dark { box-sizing: border-box; max-width: 100%; }

/* ----- the games with a road: the picture of the camera moves up (a fifth of the height, a third bigger), so that the face stays above the road */
.cam-feed.shifted { transform-origin: 50% 0; transform: translateY(-32%) scale(1.45); }
.cam-feed.mirror.shifted { transform: translateY(-32%) scale(1.45) scaleX(-1); }

/* ----- the reels: the buttons are plain white symbols without a glass circle, and the picture of the person is bigger than they are */
.reel-btn-ic, .reel-btn-ic:hover { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6)); }
.reel-btn.on .reel-btn-ic { background: transparent; box-shadow: none; color: #fe2c55; }
.reel-btn.on .reel-btn-ic svg { fill: currentColor; }
.reel-person { width: 68px; height: 68px; margin-bottom: 16px; }
.reel-follow { width: 26px; height: 26px; margin-left: -13px; bottom: -12px; }
.reel-av { width: 100%; height: 100%; }              /* (the ring is as wide as the box, so the plus is exactly under its middle) */
.reel-person { margin-left: auto; margin-right: auto; }

/* ----- the sound window: the rows run across the whole width (the save and plus buttons sit at the right edge), tabs with a word, a bookmark and a plus on every video, a chip for the song that was added */
.mu-row { flex-direction: column; align-items: stretch; }
.mu-rowtop { width: 100%; }
.mu-star, .mu-add { margin-left: 0; }
.mu-tab { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; }
.mu-tab svg { width: 20px; height: 20px; }
.mu-video { cursor: pointer; }
.mu-vstar, .mu-vadd { position: absolute; z-index: 2; top: 6px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, 0.45); }
.mu-vstar { left: 6px; }
.mu-vadd { right: 6px; background: #7a2cf0; }
.mu-vstar svg, .mu-vadd svg { width: 18px; height: 18px; }
.mu-vstar.on { color: #fbbf24; }
.cam-autosong { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 34px; padding: 0 14px; border-radius: 17px; background: rgba(0, 0, 0, 0.55); color: #fff; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-autosong[hidden] { display: none; }
.cam-autosong:disabled { opacity: 0.8; }
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-clip { display: block; width: 100%; max-height: 360px; border-radius: 12px; background: #000; object-fit: contain; }
