/* Country flags on Windows: Windows has no flag emoji (shows "NG" letters), so this small font draws only
   the flag characters (unicode-range) and leaves all other text alone. Flag art: Twemoji by Twitter, CC-BY 4.0;
   font: country-flag-emoji-polyfill by TalkJS, MIT. See assets/fonts/TwemojiCountryFlags-LICENSE.md */
@font-face { font-family: 'Twemoji Country Flags'; src: url('/assets/fonts/TwemojiCountryFlags.woff2') format('woff2'); font-display: swap;
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F; }
/* Africa.red design system. Mobile first. No framework. */

:root {
  --red: #C8281E; --red-600: #A81F17; --red-50: #FDEDEB;
  --saffron: #F5A623; --saffron-50: #FFF5E2;
  --green: #0B7A55; --green-50: #E5F4EE;
  --ink: #1C1613; --ink-2: #4A413C; --ink-3: #7A706A;
  --line: #E7E3DF; --line-2: #D9D3CD;
  --bg: #F4F3F1; --surface: #FFFFFF; --surface-2: #FAF9F7; --hover: #F1EFEC;
  --focus: #2563EB;
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --pill: 999px;
  --shadow: 0 1px 2px rgba(28,22,19,.06), 0 4px 16px rgba(28,22,19,.06);
  --shadow-lg: 0 12px 40px rgba(28,22,19,.18);
  --display: 'Twemoji Country Flags', 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Twemoji Country Flags', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --top: 60px; --tabbar: 62px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --red: #F0574B; --red-600: #FF7468; --red-50: #3A1B18;
  --saffron: #F8B84A; --saffron-50: #33280F;
  --green: #3CC593; --green-50: #12302A;
  --ink: #F3EEEA; --ink-2: #CFC6C0; --ink-3: #9C928B;
  --line: #2E2724; --line-2: #3B332F;
  --bg: #120E0C; --surface: #1B1613; --surface-2: #211B18; --hover: #2A2320;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 40px rgba(0,0,0,.6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #F0574B; --red-600: #FF7468; --red-50: #3A1B18;
    --saffron: #F8B84A; --saffron-50: #33280F;
    --green: #3CC593; --green-50: #12302A;
    --ink: #F3EEEA; --ink-2: #CFC6C0; --ink-3: #9C928B;
    --line: #2E2724; --line-2: #3B332F;
    --bg: #120E0C; --surface: #1B1613; --surface-2: #211B18; --hover: #2A2320;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 40px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 12px); }
body { margin: 0; font: 400 15px/1.5 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
p a, .prose a, .post-text a, .comment-text a { color: var(--red); }
p a:hover, .prose a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.i.fill { fill: currentColor; stroke: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; right: -9999px; height: 0; overflow: hidden; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; right: 8px; top: -60px; background: var(--ink); color: var(--surface); padding: 8px 14px; border-radius: var(--r-sm); z-index: 200; }
.skip:focus { top: 8px; color: var(--surface); }

/* ---------------------------------------------------------------- top bar */
.top { position: sticky; top: 0; z-index: 50; height: var(--top); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1280px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; color: var(--ink); flex: none; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--red); font-weight: 800; }
.brand:hover { color: var(--ink); }
.search { flex: 1; max-width: 440px; position: relative; display: none; }
.search input { width: 100%; height: 40px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface-2); padding: 0 40px 0 16px; outline: none; }
.search input:focus { border-color: var(--ink-3); background: var(--surface); }
.search .i { position: absolute; right: 14px; top: 10px; color: var(--ink-3); }
.top-actions { margin-right: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.dot { position: absolute; top: 4px; left: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--surface); }
.dot[hidden] { display: none; }
.top .btn { height: 38px; }
.me-btn { display: flex; align-items: center; gap: 8px; padding: 3px; border-radius: var(--pill); border: 0; background: transparent; cursor: pointer; }
.me-btn:hover { background: var(--hover); }

/* dropdown menu */
.menu { position: relative; }
.menu-pop { position: absolute; left: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60; }
.menu.open .menu-pop { display: block; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: var(--r-sm); border: 0; background: none; text-align: right; cursor: pointer; color: var(--ink); font-size: .95rem; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--hover); color: var(--ink); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-head { padding: 8px 10px 10px; display: flex; gap: 10px; align-items: center; }
.menu-head b { display: block; }

/* ---------------------------------------------------------------- shell */
.shell { max-width: 1280px; margin: 0 auto; padding: 16px 16px calc(var(--tabbar) + 24px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.rail-l, .rail-r { display: none; }
.main { min-width: 0; }
.page-wide .shell { max-width: 1280px; }
.narrow { max-width: 640px; margin: 0 auto; }

.side-nav { position: sticky; top: calc(var(--top) + 16px); display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--pill); font-size: 1.02rem; color: var(--ink-2); font-weight: 500; }
.side-nav a:hover { background: var(--hover); color: var(--ink); }
.side-nav a.on { color: var(--ink); font-weight: 700; background: var(--surface); box-shadow: var(--shadow); }
.side-nav a.on .i { color: var(--red); }
.side-nav .count { margin-right: auto; font-size: .78rem; font-weight: 700; background: var(--red); color: #fff; border-radius: var(--pill); padding: 1px 8px; }
.side-nav .btn { margin-top: 12px; color: #fff; justify-content: center; font-weight: 650; }
.side-nav .btn:hover { color: #fff; background: var(--red-600); }
.side-sec { margin-top: 18px; padding: 0 14px; font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.side-list a { font-size: .95rem; padding: 7px 14px; }

/* bottom tab bar (mobile) */
.tabbar { position: fixed; right: 0; left: 0; bottom: 0; z-index: 50; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.tabbar a.on { color: var(--red); }
.tabbar a .i { width: 23px; height: 23px; }
.tabbar .tab-post span.plus { width: 44px; height: 32px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; }
.tabbar .tab-post .i { width: 22px; height: 22px; stroke-width: 2.4; }
.tabbar .dot { top: 6px; left: calc(50% - 22px); }

@media (min-width: 720px) {
  .search { display: block; }
}
@media (min-width: 1000px) {
  .shell { grid-template-columns: 230px minmax(0, 1fr); padding-bottom: 40px; }
  .rail-l { display: block; }
  .tabbar { display: none; }
  .hide-desk { display: none !important; }
}
@media (min-width: 1240px) {
  .shell { grid-template-columns: 230px minmax(0, 1fr) 320px; }
  .rail-r { display: block; }
  .page-wide .shell, .page-full .shell { grid-template-columns: 230px minmax(0, 1fr); }
  .page-wide .rail-r, .page-full .rail-r { display: none; }
}
@media (max-width: 999px) { .hide-mob { display: none !important; } }
.page-full .shell { max-width: none; padding: 0 0 calc(var(--tabbar) + 24px); display: block; }
.page-full .rail-l { display: none; }
@media (min-width: 1000px) { .page-full .shell { padding-bottom: 0; } }

/* ---------------------------------------------------------------- buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--pill); border: 1px solid transparent; font-weight: 650; font-size: .95rem; cursor: pointer; white-space: nowrap; background: var(--ink); color: var(--surface); transition: background .15s, transform .1s; }
.btn:hover { color: var(--surface); opacity: .92; }
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-600); color: #fff; opacity: 1; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--hover); color: var(--ink); opacity: 1; }
.btn-soft { background: var(--hover); color: var(--ink); }
.btn-soft:hover { color: var(--ink); background: var(--line); opacity: 1; }
.btn-white { background: #fff; color: #1C1613; }
.btn-white:hover { color: #1C1613; }
.btn-sm { height: 34px; padding: 0 14px; font-size: .88rem; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn.following { background: transparent; color: var(--ink); border-color: var(--line-2); }

.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.hint { font-size: .82rem; color: var(--ink-3); margin-top: 5px; }
.input, .select, .textarea { width: 100%; min-height: 44px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm); padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A706A' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-left: 34px; }
.row2, .row3 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; cursor: pointer; margin-bottom: 10px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }
.seg { display: inline-flex; background: var(--hover); border-radius: var(--pill); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg label { padding: 6px 14px; border-radius: var(--pill); font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg a.on, .seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg input { display: none; }
.seg label span { display: block; padding: 0; }

/* ---------------------------------------------------------------- cards & blocks */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.card + .card { margin-top: 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h2, .card-h h3 { margin: 0; }
.card-h a.more { font-size: .88rem; color: var(--red); font-weight: 600; }
.stack > * + * { margin-top: 16px; }
.rail-r .card { padding: 16px; }
.rail-r { position: sticky; top: calc(var(--top) + 16px); align-self: start; max-height: calc(100vh - var(--top) - 24px); overflow: auto; scrollbar-width: none; }
.rail-r h3 { font-size: 1rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--ink-3); }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty .i { width: 40px; height: 40px; color: var(--line-2); margin-bottom: 10px; }
.empty h3 { color: var(--ink); }
.notice { padding: 12px 14px; border-radius: var(--r); background: var(--saffron-50); color: var(--ink); font-size: .93rem; margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--saffron) 35%, transparent); }
.notice.error { background: var(--red-50); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.notice.ok { background: var(--green-50); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip .n { color: var(--ink-3); font-weight: 500; }
.chip.on .n { color: inherit; opacity: .7; }
.scroll-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -16px; padding-right: 16px; padding-left: 16px; }
.scroll-x::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .scroll-x { margin: 0; padding-right: 0; padding-left: 0; flex-wrap: wrap; } }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: var(--pill); background: var(--hover); color: var(--ink-2); vertical-align: 2px; }
.pill.red { background: var(--red-50); color: var(--red); }
.pill.green { background: var(--green-50); color: var(--green); }
.pill.gold { background: var(--saffron-50); color: color-mix(in srgb, var(--saffron) 55%, var(--ink)); }
.vbadge { color: #1D9BF0; display: inline-flex; }
.vbadge .i { width: 16px; height: 16px; fill: currentColor; stroke: #fff; stroke-width: 1.5; vertical-align: -3px; }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--surface); display: inline-block; }
.flag { font-family: 'Twemoji Country Flags', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 14px; font-weight: 600; color: var(--ink-3); border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--red); }
.tabs a:hover { color: var(--ink); }
.pager { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }

/* avatars & tiles */
.av { --h: 10; display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: hsl(var(--h) 55% 88%); color: hsl(var(--h) 55% 28%); font-weight: 700; font-family: var(--display); }
:root[data-theme="dark"] .av { background: hsl(var(--h) 35% 26%); color: hsl(var(--h) 60% 85%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .av { background: hsl(var(--h) 35% 26%); color: hsl(var(--h) 60% 85%); } }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-xs { width: 24px; height: 24px; font-size: 11px; }
.av-sm { width: 32px; height: 32px; font-size: 13px; }
.av-md { width: 44px; height: 44px; font-size: 17px; }
.av-lg { width: 64px; height: 64px; font-size: 24px; }
.av-xl { width: 128px; height: 128px; font-size: 48px; border: 4px solid var(--surface); }
.tile { --h: 10; display: inline-grid; place-items: center; flex: none; border-radius: 14px; overflow: hidden; background: hsl(var(--h) 60% 45%); color: #fff; font-weight: 800; font-family: var(--display); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-sm { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }
.tile-md { width: 48px; height: 48px; font-size: 17px; }
.tile-lg { width: 84px; height: 84px; font-size: 30px; border-radius: 20px; border: 4px solid var(--surface); }

/* person row */
.person { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.person .who { min-width: 0; flex: 1; }
.person .who b { display: flex; align-items: center; gap: 4px; font-weight: 650; }
.person .who b a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .who > span { display: block; font-size: .84rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- composer */
.composer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 16px; }
.composer-top { display: flex; gap: 12px; }
.composer textarea { flex: 1; border: 0; outline: none; resize: none; min-height: 52px; padding: 10px 0; font-size: 1.05rem; background: transparent; line-height: 1.45; }
.composer-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 8px 56px 0 0; }
.composer-previews:empty { display: none; }
.composer-previews figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--hover); }
.composer-previews img { width: 100%; height: 100%; object-fit: cover; }
.composer-previews button { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.composer-previews button .i { width: 14px; height: 14px; }
.composer-bar { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; flex-wrap: wrap; }
.composer-bar .tool { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: var(--pill); color: var(--ink-2); cursor: pointer; font-size: .9rem; font-weight: 600; border: 0; background: none; }
.composer-bar .tool:hover { background: var(--hover); }
.composer-bar .tool .i { color: var(--green); }
.composer-bar select { flex: 1 1 110px; height: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--pill); padding: 0 12px 0 28px; font-size: .88rem; max-width: 180px; }
.composer-bar .btn { margin-right: auto; }
.composer-mini { display: flex; align-items: center; gap: 12px; cursor: text; }
.composer-mini span { flex: 1; height: 44px; display: flex; align-items: center; padding: 0 16px; border-radius: var(--pill); background: var(--hover); color: var(--ink-3); }
.counter { font-size: .8rem; color: var(--ink-3); }

/* ---------------------------------------------------------------- posts */
.feed-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.post { container-type: inline-size; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 16px 8px; margin-bottom: 14px; }
.post-head { display: flex; gap: 12px; align-items: flex-start; }
.post-meta { flex: 1; min-width: 0; line-height: 1.3; }
.post-meta .name { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.post-meta .sub { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .84rem; color: var(--ink-3); margin-top: 2px; }
.post-meta .sub a { color: var(--ink-3); }
.post-meta .sub a:hover { color: var(--red); }
.post-meta .in-comm { color: var(--ink-2); font-weight: 600; }
.post-text { margin: 10px 0 0; font-size: 1.02rem; line-height: 1.55; white-space: normal; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { border: 0; background: none; color: var(--red); font-weight: 600; padding: 0; cursor: pointer; font-size: .92rem; }
.post-text .tag, .comment-text .tag { color: var(--red); font-weight: 550; }
.post-text .mention { color: var(--red); font-weight: 600; }
.gallery { display: grid; gap: 3px; margin: 12px -16px 0; overflow: hidden; }
.gallery a { display: block; background: var(--hover); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery.n1 img { max-height: 560px; width: 100%; height: auto; object-fit: contain; background: var(--hover); }
.gallery.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1.2; }
.gallery.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3; }
.gallery.n3 a:first-child { grid-row: span 2; }
.gallery.n4 { grid-template-columns: 1fr 1fr; aspect-ratio: 1; }
.gallery .more-n { position: relative; }
.gallery .more-n::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; font: 700 1.8rem var(--display); }
@media (min-width: 560px) { .gallery { margin: 12px 0 0; border-radius: var(--r); } }
.yt { position: relative; display: block; margin-top: 12px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16/9; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 14px; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; }
.yt-play .i { fill: currentColor; stroke: none; width: 26px; height: 26px; }
.post-listing { display: flex; gap: 12px; margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); align-items: center; }
.post-listing img { width: 76px; height: 76px; border-radius: var(--r-sm); object-fit: cover; }
.post-listing b { display: block; }
.post-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: .84rem; color: var(--ink-3); padding: 10px 0 0; min-height: 30px; }
.post-stats [data-cmt-count] { margin-right: auto; color: var(--ink-3); white-space: nowrap; }
.post-stats [data-cmt-count]:hover { color: var(--ink); text-decoration: underline; }
.post-stats [data-cmt-count]:empty { display: none; }
.post-stats [data-cmt-count]:empty + .post-views { margin-right: auto; }
.post-stats [data-cmt-count]:not(:empty) + .post-views::before { content: "·"; margin-left: 8px; }
.post-actions { display: flex; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 4px; }
.act { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border: 0; background: none; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; font-size: .9rem; cursor: pointer; }
.act:hover { background: var(--hover); color: var(--ink); }
.act.on { color: var(--red); }
.act.on .i { fill: currentColor; }
.act.saved .i { fill: currentColor; color: var(--saffron); }
.act { white-space: nowrap; }
.act .lbl { display: none; }
@container (min-width: 440px) { .act .lbl { display: inline; } }
.like-pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .like-pop { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }
.post-more { margin-right: auto; }
.load-more { display: flex; justify-content: center; padding: 10px 0 20px; }

/* comments */
.comments { margin-top: 6px; }
.comment { display: flex; gap: 10px; padding: 8px 0; }
.comment-body { flex: 1; min-width: 0; }
.bubble { display: inline-block; max-width: 100%; background: var(--hover); border-radius: 16px; padding: 8px 12px; }
.bubble .name { font-weight: 700; font-size: .9rem; display: inline-flex; gap: 4px; align-items: center; }
.comment-text { font-size: .96rem; line-height: 1.45; }
.comment-tools { display: flex; gap: 14px; font-size: .8rem; color: var(--ink-3); padding: 3px 12px 0; font-weight: 600; align-items: center; }
.comment-tools button { border: 0; background: none; padding: 0; color: var(--ink-3); font-weight: 600; cursor: pointer; font-size: .8rem; }
.comment-tools button:hover, .comment-tools button.on { color: var(--red); }
.replies { margin-right: 4px; padding-right: 12px; border-right: 2px solid var(--line); }
.comment-form { display: flex; gap: 10px; align-items: flex-end; padding: 10px 0; }
.comment-form textarea { flex: 1; min-height: 42px; max-height: 160px; border-radius: 21px; border: 1px solid var(--line-2); background: var(--surface-2); padding: 10px 16px; resize: none; outline: none; line-height: 1.4; }
.comment-form textarea:focus { background: var(--surface); border-color: var(--ink-3); }
.comment-form .btn { height: 42px; width: 42px; padding: 0; border-radius: 50%; }

/* ---------------------------------------------------------------- landing (logged out home) */
.hero { position: relative; overflow: hidden; background: #1C1613; color: #FFF7EF; }
:root[data-theme="dark"] .hero { background: #0A0706; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { background: #0A0706; } }
.hero-in { max-width: 1240px; margin: 0 auto; padding: 44px 16px 36px; display: grid; gap: 32px; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4.6vw, 4.6rem); line-height: 1; letter-spacing: -.022em; font-weight: 800; margin: 0 0 18px; max-width: 12ch; }
.hero p.lead { font-size: 1.12rem; color: #E9DCD2; max-width: 46ch; margin-bottom: 24px; }
.hero .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .stats { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; color: #CDBDB1; font-size: .92rem; }
.hero .stats b { display: block; color: #fff; font: 800 1.5rem var(--display); }
.hero-band { height: 8px; background: linear-gradient(-90deg, var(--red) 0 40%, #F5A623 40% 70%, #0B7A55 70% 100%); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; align-content: start; }
.wall a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.06); color: #F3E9E1; font-size: .88rem; font-weight: 550; border: 1px solid rgba(255,255,255,.07); min-width: 0; transition: background .15s; }
.wall a:hover { background: rgba(255,255,255,.14); color: #fff; }
.wall a .flag { font-size: 1.15rem; }
.wall a span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.wall a em { font-style: normal; font-size: .75rem; color: #F5A623; font-weight: 700; }
.wall { max-height: 380px; overflow: auto; overscroll-behavior: contain; }
.wall-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; color: #CDBDB1; font-size: .92rem; }
.wall-head input { height: 36px; border-radius: var(--pill); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; padding: 0 14px; width: 190px; outline: none; }
.wall-head input::placeholder { color: #B5A69B; }
@media (min-width: 1000px) {
  .hero-in { grid-template-columns: 1fr 1.15fr; padding: 72px 24px 60px; gap: 48px; align-items: start; }
  .wall { max-height: 520px; overflow: auto; padding-left: 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
}
.section { max-width: 1240px; margin: 0 auto; padding: 48px 16px 0; }
.section > h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin-bottom: 6px; }
.section > p.sub { color: var(--ink-3); margin-bottom: 20px; max-width: 60ch; }
.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: var(--red-50); color: var(--red); }
.feature:nth-child(2) .ic { background: var(--saffron-50); color: color-mix(in srgb, var(--saffron) 60%, var(--ink)); }
.feature:nth-child(3) .ic { background: var(--green-50); color: var(--green); }
.feature:nth-child(4) .ic { background: var(--hover); color: var(--ink); }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--ink-2); flex: 1; }
.feature a.go { font-weight: 650; color: var(--red); }
.cta-band { margin: 56px auto 0; max-width: 1240px; padding: 0 16px; }
.cta-band > div { background: var(--red); color: #fff; border-radius: 24px; padding: 36px 24px; display: grid; gap: 16px; align-items: center; }
.cta-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin: 0; }
.cta-band p { margin: 0; color: #FFE3DE; }
@media (min-width: 800px) { .cta-band > div { grid-template-columns: 1fr auto; padding: 44px; } }

/* grids of cards */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.comm-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.comm-card .cover { height: 74px; background: linear-gradient(-120deg, hsl(var(--h) 55% 42%), hsl(calc(var(--h) + 40) 60% 52%)); position: relative; }
.comm-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.comm-card .body { padding: 0 16px 16px; flex: 1; display: flex; flex-direction: column; }
.comm-card .tile { margin-top: -26px; border: 3px solid var(--surface); }
.comm-card h3 { margin: 8px 0 4px; font-size: 1.04rem; }
.comm-card p { font-size: .88rem; color: var(--ink-2); margin: 0 0 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comm-card .meta { font-size: .82rem; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.person-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; }
.person-card .av { margin-bottom: 10px; }
.person-card b { display: inline-flex; gap: 4px; align-items: center; font-weight: 700; max-width: 100%; }
.person-card b a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-card .sub { font-size: .84rem; color: var(--ink-3); margin: 2px 0 10px; min-height: 1.3em; }
.person-card .bio { font-size: .86rem; color: var(--ink-2); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 0 0 auto; max-height: 2.9em; line-height: 1.45; }
.person-card .bio:empty { display: none; }
.person-card .btn { width: 100%; margin-top: auto; }
.person-card .online-dot { position: absolute; top: 76px; right: calc(50% + 22px); }
.date-card { padding: 0; overflow: hidden; text-align: right; align-items: stretch; }
.date-card .ph { aspect-ratio: 4/5; background: var(--hover); position: relative; display: grid; place-items: center; }
.date-card .ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.date-card .ph .av { margin: 0; }
.date-card .ph .shade { position: absolute; inset: auto 0 0 0; padding: 40px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; }
.date-card .ph .shade b { color: #fff; font-size: 1.05rem; }
.date-card .ph .shade span { display: block; font-size: .82rem; opacity: .9; }
.date-card .body { padding: 10px 12px 12px; }
.date-card .online-dot { position: absolute; top: 10px; left: 10px; right: auto; }

/* listings */
.item-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.item-card .ph { aspect-ratio: 4/3; background: var(--hover); display: grid; place-items: center; color: var(--ink-3); position: relative; }
.item-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.item-card .ph .i { width: 36px; height: 36px; }
.item-card .ph .pill { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92); color: #1C1613; }
.item-card .body { padding: 12px 14px 14px; }
.item-card .price { font: 800 1.12rem var(--display); }
.item-card h3 { font-family: var(--body); font-weight: 550; font-size: .95rem; margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.item-card .place { font-size: .8rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; }
.item-gallery { display: grid; gap: 6px; }
.item-gallery .main-img { aspect-ratio: 4/3; background: var(--hover); border-radius: var(--r-lg); overflow: hidden; }
.item-gallery .main-img img { width: 100%; height: 100%; object-fit: contain; }
.item-gallery .thumbs { display: flex; gap: 6px; overflow-x: auto; }
.item-gallery .thumbs button { width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; flex: none; background: var(--hover); }
.item-gallery .thumbs button.on { border-color: var(--red); }
.item-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.item-layout { display: grid; gap: 20px; }
@media (min-width: 900px) { .item-layout { grid-template-columns: 1.4fr 1fr; align-items: start; } .item-layout aside { position: sticky; top: calc(var(--top) + 16px); } }
.item-price { font: 800 2rem var(--display); margin: 4px 0 8px; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .93rem; }
dl.facts dt { color: var(--ink-3); }
dl.facts dd { margin: 0; font-weight: 550; }
.filters { display: grid; gap: 10px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter-bar > * { min-width: 0; max-width: 100%; }
.select { max-width: 100%; text-overflow: ellipsis; }
.filter-bar .input, .filter-bar .select { height: 40px; min-height: 40px; width: auto; flex: 1 1 140px; border-radius: var(--pill); padding-right: 14px; }
.filter-bar .select { flex: 0 1 190px; }

/* profile & community headers */
.cover-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #1C1613; height: 170px; }
@media (min-width: 700px) { .cover-wrap { height: 240px; } }
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cover-wrap .cover-pattern { position: absolute; inset: 0; background:
  radial-gradient(circle at 20% 120%, color-mix(in srgb, var(--red) 80%, transparent) 0 35%, transparent 36%),
  radial-gradient(circle at 85% -20%, color-mix(in srgb, var(--saffron) 85%, transparent) 0 30%, transparent 31%),
  linear-gradient(-135deg, #2A1F1A, #1C1613); }
.cover-wrap .edit-cover { position: absolute; left: 12px; bottom: 12px; }
.profile-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; padding: 0 8px; margin-top: -48px; position: relative; }
.profile-head .av-xl { width: 112px; height: 112px; }
.profile-head .who { flex: 1; min-width: 200px; padding-top: 56px; }
.profile-head h1 { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.profile-head .handle { color: var(--ink-3); }
.profile-head .acts { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 58px; }
@media (max-width: 640px) { .profile-head .acts { padding-top: 0; width: 100%; } .profile-head .who { padding-top: 54px; } }
.profile-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: .92rem; margin: 12px 8px 4px; }
.profile-facts .i { width: 17px; height: 17px; color: var(--ink-3); }
.profile-counts { display: flex; gap: 18px; margin: 10px 8px 16px; font-size: .93rem; color: var(--ink-3); }
.profile-counts b { color: var(--ink); }
.bio { white-space: pre-line; margin: 10px 8px 0; }
.comm-head { display: flex; gap: 16px; align-items: flex-start; padding: 0 8px; margin-top: -42px; position: relative; flex-wrap: wrap; }
.comm-head .who { flex: 1; min-width: 200px; padding-top: 48px; }
.comm-head .acts { padding-top: 50px; }
@media (max-width: 640px) { .comm-head .acts { padding-top: 0; width: 100%; } }
.comm-head h1 { margin: 0; }

/* messages (chat) */
.page-chat .shell { padding-bottom: 0; }
.chat-app { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  height: calc(100dvh - var(--top) - var(--tabbar) - 24px); min-height: 380px; }
@media (min-width: 800px) { .chat-app { grid-template-columns: 330px minmax(0, 1fr); } }
@media (min-width: 1000px) { .chat-app { height: calc(100dvh - var(--top) - 32px); } }
@media (max-width: 799px) {
  .chat-app.has-thread .chat-list { display: none; }
  .chat-app:not(.has-thread) .chat-pane { display: none; }
  .page-chat .shell { padding: 0; }
  .page-chat .chat-app { border-radius: 0; border: 0; height: calc(100dvh - var(--top) - var(--tabbar)); }
  body.chat-open .top, body.chat-open .tabbar { display: none; }
  body.chat-open .chat-app { height: 100dvh; }
}
.chat-list { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-list-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 6px 12px; }
.chat-list-head h1 { font-size: 1.45rem; margin: 0; }
.chat-search { position: relative; margin: 4px 14px 8px; }
.chat-search .i { position: absolute; right: 12px; top: 10px; width: 18px; height: 18px; color: var(--ink-3); }
.chat-search input { width: 100%; height: 38px; border-radius: var(--pill); border: 0; background: var(--hover); padding: 0 38px 0 14px; outline: none; }
.chat-search input:focus { box-shadow: 0 0 0 2px var(--line-2); }
.chat-convs { overflow-y: auto; flex: 1; padding: 0 6px 10px; overscroll-behavior: contain; }
.conv { display: flex; gap: 12px; padding: 10px 10px; align-items: center; border-radius: var(--r); }
.conv:hover { background: var(--hover); color: inherit; }
.conv.on { background: var(--red-50); }
.conv-av { position: relative; flex: none; }
.conv-av .online-dot, .chat-head-av .online-dot { position: absolute; left: 0; bottom: 0; }
.conv .who { flex: 1; min-width: 0; }
.conv .who b { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.conv .who b .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .who time { font-weight: 400; font-size: .78rem; color: var(--ink-3); flex: none; }
.conv .pv { display: block; color: var(--ink-3); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .pv em { color: var(--green); font-style: normal; font-weight: 600; }
.conv.unread .who b, .conv.unread .pv { color: var(--ink); font-weight: 700; }
.conv .unread-n { background: var(--red); color: #fff; border-radius: var(--pill); font-size: .74rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; }
.chat-empty-list { text-align: center; color: var(--ink-3); padding: 30px 16px; }

.chat-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; background: var(--surface-2); }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface); z-index: 2; }
.chat-back { flex: none; }
@media (min-width: 800px) { .chat-back { display: none; } .chat-head { padding-right: 16px; } }
.chat-head-av { position: relative; flex: none; }
.chat-head-who { flex: 1; min-width: 0; line-height: 1.25; }
.chat-head-who b { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.chat-head-who span { display: block; font-size: .8rem; color: var(--ink-3); }
.chat-head-who span.typing-now { color: var(--green); font-weight: 600; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 12px 14px 8px; overscroll-behavior: contain; scroll-behavior: auto; }
.chat-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 18px 10px 22px; }
.chat-intro .av { margin-bottom: 6px; }
.chat-intro p { max-width: 36ch; margin: 10px 0 0; }
.chat-intro .i { width: 15px; height: 15px; vertical-align: -3px; }
.chat-older { display: flex; justify-content: center; padding: 8px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--red); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(-360deg); } }

.chat-sep { text-align: center; font-size: .74rem; color: var(--ink-3); font-weight: 600; margin: 14px 0 8px; }
.chat-new-divider { display: flex; align-items: center; gap: 10px; color: var(--red); font-size: .74rem; font-weight: 700; margin: 12px 0; }
.chat-new-divider::before, .chat-new-divider::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--red) 40%, transparent); }
.mrow { display: flex; align-items: flex-end; gap: 6px; margin-top: 2px; position: relative; }
.mrow.grp-start { margin-top: 10px; }
.mrow.mine { flex-direction: row-reverse; }
.mav { width: 26px; flex: none; align-self: flex-end; }
.mrow.mine .mav { display: none; }
.mrow:not(.grp-end) .mav .av { visibility: hidden; }
.mcol { display: flex; flex-direction: column; align-items: flex-start; max-width: min(78%, 520px); min-width: 0; }
.mrow.mine .mcol { align-items: flex-end; }
.bubble2 { position: relative; padding: 8px 13px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); line-height: 1.42; font-size: .97rem; max-width: 100%; word-wrap: break-word; }
.mrow.mine .bubble2 { background: var(--red); border-color: var(--red); color: #fff; }
.mrow.mine .bubble2 a { color: #fff; text-decoration: underline; }
.mrow.theirs:not(.grp-start) .bubble2 { border-top-right-radius: 6px; }
.mrow.theirs:not(.grp-end) .bubble2 { border-bottom-right-radius: 6px; }
.mrow.mine:not(.grp-start) .bubble2 { border-top-left-radius: 6px; }
.mrow.mine:not(.grp-end) .bubble2 { border-bottom-left-radius: 6px; }
.bubble2.emoji { background: none !important; border: 0 !important; font-size: 2.3rem; line-height: 1.15; padding: 0 2px; }
.bubble2.img { padding: 0; overflow: hidden; background: none !important; border: 0 !important; }
.mrow.mine .bubble2.img .cap { background: var(--red); color: #fff; border-radius: 0 0 17px 17px; margin-top: -14px; padding-top: 18px; }
.mrow.theirs .bubble2.img .cap { background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 17px 17px; margin-top: -14px; padding-top: 18px; }
.bubble2.img img { position: relative; z-index: 1; border-radius: 17px; max-height: 320px; max-width: min(100%, 300px); width: auto; display: block; cursor: zoom-in; }
.bubble2.img .cap { padding: 6px 10px 4px; }
.bubble2.pending { opacity: .6; }
.bubble2.failed { opacity: .6; border-style: dashed; }
.mstate { font-size: .72rem; color: var(--ink-3); margin: 3px 4px 0; font-weight: 600; }
.mstate.failed { color: var(--red); cursor: pointer; }
.mtime { display: none; font-size: .7rem; color: var(--ink-3); margin: 2px 6px 0; }
.mrow.show-time .mtime { display: block; }
.mquote { display: block; max-width: 100%; text-align: right; border: 0; background: none; padding: 0 4px 3px; cursor: pointer; font-size: .78rem; color: var(--ink-3); }
.mquote span { display: block; margin-top: 2px; padding: 6px 11px; border-radius: 14px; background: var(--hover); color: var(--ink-2); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; opacity: .9; }
.mrow.mine .mquote { text-align: left; }
.mrx { display: inline-flex; align-items: center; gap: 2px; margin: -8px 8px 0; z-index: 1; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 1px 7px; font-size: .86rem; cursor: pointer; box-shadow: var(--shadow); }
.mrx b { font-size: .74rem; color: var(--ink-3); margin-right: 2px; }
.mrx.mine-rx { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); }
.mact { display: none; align-items: center; gap: 0; align-self: center; }
@media (hover: hover) { .mrow:hover .mact { display: flex; } }
.mact button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; font-size: 15px; }
.mact button:hover { background: var(--hover); color: var(--ink); }
.mact .i { width: 17px; height: 17px; }
.mrow.flash .bubble2 { animation: flash 1.2s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--saffron) 60%, transparent); } 100% { box-shadow: none; } }
.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-jump { position: absolute; left: 16px; bottom: 86px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); display: grid; place-items: center; cursor: pointer; z-index: 3; color: var(--ink); }
.chat-jump .i { transform: rotate(90deg); }
.chat-jump span:not(:empty) { position: absolute; top: -6px; left: -4px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; border-radius: var(--pill); min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }

/* action sheet for one message */
.msheet { position: fixed; z-index: 120; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 220px; }
.msheet .rx-row { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.msheet .rx-row button { font-size: 1.45rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; cursor: pointer; transition: transform .12s; }
.msheet .rx-row button:hover, .msheet .rx-row button.on { background: var(--hover); transform: scale(1.15); }
.msheet .act-row button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; border: 0; background: none; cursor: pointer; color: var(--ink); text-align: right; font-size: .95rem; }
.msheet .act-row button:hover { background: var(--hover); }
.msheet .act-row .danger { color: var(--red); }
@media (max-width: 799px) { .msheet { right: 8px !important; left: 8px !important; bottom: 8px !important; top: auto !important; padding-bottom: calc(6px + env(safe-area-inset-bottom)); } .msheet .rx-row { justify-content: space-around; } }
.msheet-back { position: fixed; inset: 0; z-index: 119; background: rgba(20,14,12,.25); }
@media (min-width: 800px) { .msheet-back { background: transparent; } }

/* composer */
.chat-compose { border-top: 1px solid var(--line); background: var(--surface); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); position: relative; z-index: 2; }
.chat-form { display: flex; align-items: flex-end; gap: 6px; }
.chat-input { flex: 1; position: relative; display: flex; align-items: flex-end; background: var(--hover); border-radius: 22px; min-width: 0; }
.chat-input textarea { flex: 1; min-height: 42px; max-height: 150px; resize: none; border: 0; background: transparent; padding: 11px 16px 11px 6px; outline: none; line-height: 1.4; font-size: 1rem; }
.emoji-btn { width: 40px; height: 42px; font-size: 1.25rem; }
.chat-send { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .12s, opacity .12s; }
.chat-send:disabled { opacity: .35; cursor: default; }
.chat-send:not(:disabled):active { transform: scale(.92); }
.chat-send .i { width: 19px; height: 19px; margin-right: -2px; }
.chat-replying { display: flex; align-items: center; gap: 8px; padding: 2px 12px 8px 4px; border-right: 3px solid var(--red); margin: 0 4px 8px; }
.chat-replying div { flex: 1; min-width: 0; font-size: .84rem; }
.chat-replying b { display: block; color: var(--red); font-size: .78rem; }
.chat-replying span { display: block; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-attach { position: relative; display: inline-block; margin: 0 44px 8px 0; }
.chat-attach img { height: 90px; border-radius: 12px; display: block; }
.chat-attach button { position: absolute; top: -8px; left: -8px; width: 26px; height: 26px; background: var(--ink); color: var(--surface); }
.chat-attach button .i { width: 14px; height: 14px; }
.chat-about { display: flex; gap: 10px; align-items: center; padding: 6px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 12px; font-size: .86rem; }
.chat-about img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.chat-about b { display: block; }
.chat-about span span { color: var(--ink-3); }
.emoji-pop { position: absolute; bottom: calc(100% + 6px); left: 10px; width: min(330px, calc(100vw - 20px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 240px; overflow-y: auto; }
.emoji-pop[hidden] { display: none; }
.emoji-pop button { font-size: 1.35rem; height: 38px; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.emoji-pop button:hover { background: var(--hover); }
.chat-blocked { padding: 16px; text-align: center; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--surface); font-size: .92rem; }
.chat-none { margin: auto; text-align: center; padding: 30px; max-width: 360px; }
.chat-none-ic { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--ink); display: inline-grid; place-items: center; margin-bottom: 12px; }
.chat-none-ic .i { width: 36px; height: 36px; }
.people-results { margin-top: 10px; max-height: 50vh; overflow: auto; }
.people-results a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.people-results a:hover { background: var(--hover); color: inherit; }
.people-results small { display: block; color: var(--ink-3); }

/* notifications */
.notif { display: flex; gap: 12px; padding: 12px 16px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: color-mix(in srgb, var(--red-50) 30%, var(--surface)); }
.notif:hover { background: var(--surface-2); }
.notif .txt b { font-weight: 700; color: var(--ink); }
.notif .notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; align-self: center; }
.notif .txt { flex: 1; min-width: 0; }
.notif .txt small { display: block; color: var(--ink-3); }
.notif .kind { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; margin: -18px 26px 0 0; position: absolute; border: 2px solid var(--surface); }
.notif .kind .i { width: 12px; height: 12px; stroke-width: 2.6; }
.notif .avwrap { position: relative; }

/* topic & country pages */
.topic-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px; margin-bottom: 18px; position: relative; overflow: hidden; }
.topic-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(-90deg, var(--red) 0 40%, var(--saffron) 40% 70%, var(--green) 70%); }
.topic-hero .flag.big { font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 10px; }
.topic-hero h1 { margin-bottom: 10px; }
.topic-hero p { color: var(--ink-2); max-width: 70ch; }
.topic-hero .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { opacity: .5; }
.facts-card dl.facts { font-size: .9rem; }
.tips { margin: 0; padding-right: 20px; }
.tips li { margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }
.link-cloud { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.link-cloud a { color: var(--ink-2); }
.link-cloud a:hover { color: var(--red); }
.region h3 { margin-top: 18px; }
.country-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.country-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.country-tile .flag { font-size: 1.6rem; }
.country-tile b { display: block; font-weight: 650; }
.country-tile span { font-size: .8rem; color: var(--ink-3); }
.country-tile:hover { border-color: var(--ink-3); color: inherit; }
.two-col { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.clock { font-variant-numeric: tabular-nums; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 56px; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 36px 16px calc(var(--tabbar) + 30px); display: grid; gap: 28px; grid-template-columns: 1fr 1fr; font-size: .92rem; }
.foot-in h4 { font-family: var(--body); font-size: .9rem; margin-bottom: 10px; }
.foot-in ul { list-style: none; margin: 0; padding: 0; }
.foot-in li { margin-bottom: 7px; }
.foot-in a { color: var(--ink-2); }
.foot-in a:hover { color: var(--red); }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { color: var(--ink-3); max-width: 42ch; margin-top: 10px; }
.foot-bottom { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-3); font-size: .85rem; justify-content: space-between; }
.foot-countries { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.6fr repeat(4, 1fr); padding-bottom: 30px; } .foot-brand { grid-column: auto; } }
.in-app .foot { margin-top: 24px; }

/* toast & modal */
.toasts { position: fixed; right: 50%; transform: translateX(50%); bottom: calc(var(--tabbar) + 16px); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
@media (min-width: 1000px) { .toasts { bottom: 24px; } }
.toast { background: var(--ink); color: var(--surface); padding: 11px 18px; border-radius: var(--pill); box-shadow: var(--shadow-lg); font-weight: 550; font-size: .93rem; pointer-events: auto; animation: toastin .2s ease; }
.toast.error { background: var(--red); color: #fff; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }
dialog.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100% - 24px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(20,14,12,.55); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 12px 12px; border-bottom: 1px solid var(--line); }
.modal-h h2 { margin: 0; font-size: 1.1rem; }
.modal-b { padding: 16px 18px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 400; display: grid; place-items: center; }
.lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; }
.lightbox button { position: absolute; top: 14px; left: 14px; color: #fff; background: rgba(255,255,255,.15); }

/* auth */
.auth { max-width: 440px; margin: 10px auto 0; }
.auth .card { padding: 26px 22px; }
.auth h1 { font-size: 1.7rem; }
.auth .alt { text-align: center; margin-top: 16px; color: var(--ink-3); }
.auth .alt a { color: var(--red); font-weight: 650; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; left: 4px; top: 2px; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-right: 20px; }
.prose li { margin-bottom: 6px; }

/* admin */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: right; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--ink-3); font-weight: 600; font-size: .82rem; }
.table-wrap { overflow-x: auto; }
.statgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-bottom: 18px; }
.statgrid div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.statgrid b { display: block; font: 800 1.6rem var(--display); }
.statgrid span { color: var(--ink-3); font-size: .85rem; }

/* invite */
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.promo { display: flex; align-items: center; gap: 12px; background: var(--saffron-50); border: 1px solid color-mix(in srgb, var(--saffron) 40%, transparent); border-radius: var(--r-lg); padding: 14px 16px; }
.promo .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--saffron); color: #1C1613; display: grid; place-items: center; flex: none; }
.promo p { margin: 0; font-size: .92rem; }
.promo b { display: block; }
.install-bar { display: none; }
.install-bar.show { display: flex; }

.statcounter { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- gamification */
.only-narrow { display: none; }
@media (max-width: 1239px) { .only-narrow { display: block; margin-bottom: 16px; } }
.game-card { padding: 16px; }
.game-top { display: flex; align-items: center; gap: 12px; }
.lvl-ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--saffron) calc(var(--p) * 1%), var(--hover) 0); }
.lvl-ring span { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font: 800 1.15rem var(--display); color: var(--ink); }
.game-who { flex: 1; min-width: 0; line-height: 1.25; }
.game-who b { display: block; font-family: var(--display); font-size: 1.05rem; }
.game-who span { font-size: .8rem; color: var(--ink-3); }
.streak { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-3); font-weight: 800; padding: 4px 9px; border-radius: var(--pill); background: var(--hover); }
.streak .i { width: 18px; height: 18px; }
.streak.hot { color: #E8590C; background: color-mix(in srgb, #E8590C 14%, var(--surface)); }
.streak.hot .i { fill: #F5A623; stroke: #E8590C; }
.xpbar { display: block; height: 8px; border-radius: 8px; background: var(--hover); overflow: hidden; margin: 12px 0 4px; }
.xpbar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(-90deg, var(--saffron), var(--red)); transition: width .6s ease; }
.quests { margin-top: 12px; }
.quests-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: .9rem; }
.quest { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 10px; font-size: .9rem; }
.quest:hover { background: var(--hover); color: inherit; }
.q-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--hover); flex: none; font-size: .9rem; }
.q-ic .i { width: 14px; height: 14px; stroke-width: 2.6; }
.quest.done .q-ic { background: var(--green); color: #fff; }
.quest.done .q-l { text-decoration: line-through; color: var(--ink-3); }
.q-l { flex: 1; }
.q-n { font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.game-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.game-foot .i { color: var(--saffron); }

/* level on avatars and cards */
.av-lv { position: relative; display: inline-block; flex: none; }
.lv-dot { position: absolute; left: -3px; bottom: -3px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; background: var(--saffron); color: #1C1613; font: 800 .68rem/19px var(--body); text-align: center; border: 2px solid var(--surface); }
.lvl-mini { display: inline-block; font-size: .72rem; font-weight: 700; color: color-mix(in srgb, var(--saffron) 55%, var(--ink)); background: var(--saffron-50); border-radius: var(--pill); padding: 1px 8px; margin: -4px 0 8px; }

/* polls */
.composer-poll { display: grid; gap: 8px; margin: 10px 56px 0 0; }
.composer-poll .input { min-height: 40px; }
.composer-poll .hint { margin: 0; }
.composer-bar .tool.on { background: var(--red-50); color: var(--red); }
.composer-bar .tool .i { color: var(--green); }
.composer-bar [data-poll-toggle] .i { color: var(--saffron); }
.poll { display: grid; gap: 8px; margin-top: 12px; }
.poll-opt { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; text-align: right; font-weight: 600; color: var(--ink); }
.poll:not(.voted) .poll-opt:hover { border-color: var(--red); color: var(--red); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: var(--hover); transition: width .6s ease; }
.poll-opt.on .poll-bar { background: color-mix(in srgb, var(--red) 16%, var(--surface)); }
.poll-opt.on { border-color: var(--red); }
.poll-label, .poll-pct { position: relative; }
.poll-label .i { width: 16px; height: 16px; color: var(--red); stroke-width: 2.6; }
.poll-pct { font-weight: 800; }
.poll-meta { font-size: .82rem; color: var(--ink-3); display: flex; gap: 12px; }

/* leaderboard */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin: 6px 0 16px; }
.podium-spot { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 8px 14px; min-width: 0; }
.podium-spot:hover { color: inherit; border-color: var(--ink-3); }
.podium-spot b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-spot.p1 { padding-top: 26px; border-color: color-mix(in srgb, var(--saffron) 70%, var(--line)); background: linear-gradient(-180deg, var(--saffron-50), var(--surface)); }
.podium-spot .medal { font-size: 1.7rem; line-height: 1; }
.podium-spot .score { font: 800 1.05rem var(--display); color: var(--red); }
.lb-list { padding: 6px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.lb-row:hover { background: var(--hover); color: inherit; }
.lb-row.me { background: var(--saffron-50); }
.lb-rank { width: 28px; text-align: center; font: 800 1rem var(--display); color: var(--ink-3); }
.lb-who { flex: 1; min-width: 0; }
.lb-who b { display: flex; align-items: center; gap: 4px; }
.lb-who span { display: block; font-size: .82rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-score { font: 800 1rem var(--display); white-space: nowrap; }
.lb-score small { font: 600 .7rem var(--body); color: var(--ink-3); }
.xp-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.xp-item { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.xp-item span { font-size: 1.3rem; grid-row: span 2; }
.xp-item b { font-size: .9rem; font-weight: 600; }
.xp-item em { font-style: normal; font-weight: 800; color: var(--green); font-size: .88rem; }
.xp-item small { grid-column: 2 / -1; color: var(--ink-3); font-size: .76rem; }
.badge-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.badge-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.badge-item span { font-size: 1.8rem; }
.badge-item b { font-size: .88rem; }
.badge-item small { font-size: .76rem; color: var(--ink-3); }

/* profile */
.av-wrap { position: relative; flex: none; }
.av-zoom { display: block; border-radius: 50%; cursor: zoom-in; }
.av-zoom:hover .av { filter: brightness(.94); }
.lvl-badge { position: absolute; left: 2px; bottom: 6px; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 16px; background: var(--saffron); color: #1C1613; display: grid; place-items: center; font: 800 .95rem var(--display); border: 3px solid var(--surface); }
.av-edit { position: absolute; right: 2px; bottom: 6px; }
.av-edit label { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; cursor: pointer; border: 3px solid var(--surface); }
.av-edit .i { width: 16px; height: 16px; }
.cover-wrap > a { display: block; height: 100%; cursor: zoom-in; }
.profile-game { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 8px 0; }
.lvl-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: var(--pill); background: var(--saffron-50); border: 1px solid color-mix(in srgb, var(--saffron) 40%, transparent); }
.lvl-chip:hover { color: inherit; }
.lvl-n { width: 28px; height: 28px; border-radius: 50%; background: var(--saffron); color: #1C1613; display: grid; place-items: center; font: 800 .9rem var(--display); }
.lvl-chip b { display: block; font-size: .86rem; line-height: 1.1; }
.lvl-chip .xpbar { width: 90px; height: 5px; margin: 3px 0 0; }
.badges-row { display: flex; flex-wrap: wrap; gap: 6px; }
.bdg { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px 3px 10px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-size: 1rem; cursor: default; }
.bdg em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.photo-grid { display: grid; gap: 4px; grid-template-columns: repeat(3, 1fr); }
.photo-grid a { aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--hover); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.photo-grid a:hover img { transform: scale(1.04); }

/* photo viewer */
.lightbox { touch-action: pan-y; }
.lightbox .lb-close { position: absolute; top: 14px; left: 14px; }
.lightbox .icon-btn { color: #fff; background: rgba(255,255,255,.15); }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; }
.lightbox .lb-prev { right: 14px; } .lightbox .lb-next { left: 14px; }
.lightbox .lb-count { position: absolute; top: 22px; right: 50%; transform: translateX(50%); color: #fff; font-size: .85rem; font-weight: 600; }
.lightbox .lb-post { position: absolute; bottom: 20px; right: 50%; transform: translateX(50%); }

/* celebrations */
.celeb { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: rgba(20,14,12,.45); overflow: hidden; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } }
.celeb-card { position: relative; z-index: 2; background: var(--surface); border-radius: 24px; padding: 28px 26px 22px; width: min(360px, calc(100% - 32px)); text-align: center; box-shadow: var(--shadow-lg); animation: popin .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes popin { from { transform: scale(.6); opacity: 0; } }
.celeb-card h2 { margin: 12px 0 6px; font-size: 1.35rem; }
.celeb-card p { color: var(--ink-2); margin: 0 0 16px; }
.celeb-emoji { font-size: 3.6rem; line-height: 1; display: block; }
.celeb-lvl { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font: 800 2.4rem var(--display); color: #1C1613; background: conic-gradient(var(--saffron), var(--red), var(--saffron)); box-shadow: inset 0 0 0 6px var(--surface); }
.celeb-btns { display: flex; gap: 8px; justify-content: center; }
.confetto { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; z-index: 1; animation: fall linear forwards; }
@keyframes fall { to { top: 105%; transform: translateX(-40px) rotate(-720deg); } }
.just-voted .poll-bar { animation: grow .6s ease; }
@keyframes grow { from { width: 0 !important; } }

/* who liked */
.post-stats .likes-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--ink-3); font: inherit; cursor: pointer; }
.post-stats .likes-link:hover { color: var(--red); text-decoration: underline; }
.likes-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: 10px; line-height: 1; }
.comment-tools .c-likes { color: var(--red); }
.comment-tools .c-likes:hover { text-decoration: underline; }
.likers-modal { width: min(440px, calc(100% - 24px)); }
.likers-modal .modal-h h2 { display: flex; align-items: center; gap: 8px; }
.likers-list { max-height: min(65vh, 560px); overflow: auto; padding: 6px 10px 10px; }
.likers-list .person { padding: 8px; border-radius: 12px; }
.likers-list .person:hover { background: var(--hover); }
.liker-av { position: relative; flex: none; }
.liker-heart { position: absolute; left: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: 9px; font-style: normal; display: grid; place-items: center; border: 2px solid var(--surface); }
.likers-list .lvl-mini { margin-right: 4px; }
.likers-load { display: grid; place-items: center; padding: 18px; }

/* up/down votes on group posts */
.updown { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 2px; height: 40px; }
.updown > * { flex: none; }
.updown button { width: 38px; height: 34px; display: grid; place-items: center; border: 0; background: none; border-radius: 10px; color: var(--ink-3); cursor: pointer; transition: background .15s, color .15s; }
.updown button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.updown .ud-up:hover { background: var(--red-50, rgba(200,40,30,.08)); color: var(--red); }
.updown .ud-down:hover { background: rgba(70,90,220,.1); color: #4c5fd5; }
.updown b { min-width: 28px; text-align: center; font-weight: 750; font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.updown.is-up .ud-up { color: var(--red); } .updown.is-up .ud-up svg { fill: currentColor; } .updown.is-up b { color: var(--red); }
.updown.is-down .ud-down { color: #4c5fd5; } .updown.is-down .ud-down svg { fill: currentColor; } .updown.is-down b { color: #4c5fd5; }
[data-theme="dark"] .updown.is-down .ud-down, [data-theme="dark"] .updown.is-down b { color: #8f9dff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .updown.is-down .ud-down, :root:not([data-theme="light"]) .updown.is-down b { color: #8f9dff; } }
.ud-pop svg { animation: udpop .35s ease; }
@keyframes udpop { 40% { transform: scale(1.35); } }
.ud-down.ud-pop svg { animation-name: udpopd; }
@keyframes udpopd { 40% { transform: scale(1.35) translateY(2px); } }
.likes-ic.up { background: var(--red); font-size: 9px; }
.post-stats .ratio { color: var(--ink-3); white-space: nowrap; }
.post-stats .likes-link:not([hidden]) + .ratio::before { content: "·"; margin-left: 10px; }
.post-low .post-text, .post-low .read-more, .post-low .gallery, .post-low .poll, .post-low .post-listing { display: none; }
.post-low .post-head { opacity: .6; }
.low-bar { display: block; width: 100%; text-align: right; margin: 10px 0 0; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--hover); color: var(--ink-3); font: inherit; font-size: .88rem; cursor: pointer; }
.low-bar u { color: var(--ink-2); }
.sort-tabs .chip span { font-size: .95em; }
.top-window { margin-top: -6px; }
.top-window .chip { font-size: .8rem; padding: 4px 10px; min-height: 0; }

/* ---------------------------------------------------------------- model contest */
:root { --gold: #E9B43A; --gold-2: #F7D774; --plum: #2A0F14; }
.nav-new { margin-right: auto; font-size: .62rem; font-weight: 800; letter-spacing: .06em; background: linear-gradient(-135deg, var(--gold), var(--red)); color: #fff; padding: 2px 7px; border-radius: var(--pill); }
.chip-hot { border-color: color-mix(in srgb, var(--gold) 60%, transparent); background: linear-gradient(-135deg, color-mix(in srgb, var(--gold) 18%, var(--surface)), var(--surface)); color: var(--ink); font-weight: 650; }
.btn-gold { background: linear-gradient(-135deg, var(--gold-2), var(--gold) 55%, #D48A1C); color: #2A1608; font-weight: 750; box-shadow: 0 6px 22px rgba(233,180,58,.35); border: 0; }
.btn-gold:hover { filter: brightness(1.05); color: #2A1608; }
.btn-glass { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.18); color: #fff; }

.mhero { position: relative; overflow: hidden; border-radius: var(--r-lg); background: radial-gradient(120% 140% at 85% 0%, #7A1A14 0%, var(--plum) 45%, #120708 100%); color: #fff; padding: 34px 22px 26px; margin-bottom: 18px; isolation: isolate; }
.mhero-glow { position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; background: radial-gradient(circle, rgba(247,215,116,.35), transparent 60%); filter: blur(10px); z-index: -1; animation: glow 9s ease-in-out infinite alternate; }
.mhero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px; z-index: -1; mask-image: linear-gradient(90deg, transparent, #000); }
@keyframes glow { to { transform: translate(60px, 40px) scale(1.1); } }
.mhero-in { max-width: 720px; }
.mhero-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-2); background: rgba(233,180,58,.12); border: 1px solid rgba(233,180,58,.3); padding: 5px 12px; border-radius: var(--pill); margin-bottom: 14px; }
.mhero h1 { font-size: clamp(1.9rem, 5vw, 3rem); color: #fff; margin-bottom: 10px; letter-spacing: -.025em; }
.mhero p { color: rgba(255,255,255,.82); font-size: 1.04rem; max-width: 620px; margin: 0 0 20px; }
.mhero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.mhero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown, .mstat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 9px 14px; display: flex; flex-direction: column; gap: 1px; }
.cd-l, .mstat span { font-size: .72rem; color: rgba(255,255,255,.65); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.cd-v { font-family: var(--display); font-size: 1.15rem; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.7); }
.cd-v b, .mstat b { color: #fff; font-family: var(--display); font-size: 1.2rem; }

.mine-strip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-lg); background: linear-gradient(-135deg, color-mix(in srgb, var(--gold) 18%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); margin-bottom: 18px; }
.mine-strip img { width: 48px; height: 60px; object-fit: cover; border-radius: 10px; flex: none; }
.ms-who { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ms-who span { font-size: .86rem; color: var(--ink-2); }

.mpodiums { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 900px) { .mpodiums { grid-template-columns: 1fr 1fr; } }
.mpodium { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 14px 12px; }
.mpodium h2 { font-size: 1.1rem; }
.mp-row { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 10px; align-items: end; }
.mp { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink); min-width: 0; }
.mp b { font-size: .92rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 6px; }
.mp-v { font-size: .78rem; color: var(--ink-3); }
.mp-ph { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.mp.p1 .mp-ph { box-shadow: 0 0 0 3px var(--gold), 0 10px 30px rgba(233,180,58,.35); }
.mp.p2 .mp-ph { box-shadow: 0 0 0 2px #C9CED6; } .mp.p3 .mp-ph { box-shadow: 0 0 0 2px #D39A6A; }
.mp-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mp:hover .mp-ph img { transform: scale(1.04); }
.mp-medal { position: absolute; top: 6px; right: 6px; font-size: 1.3rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.mp.p1 .mp-medal { font-size: 1.7rem; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(6deg); } }

.mfilter { justify-content: space-between; }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (min-width: 640px) { .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.mcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mcard.top1 { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.mcard-ph { position: relative; display: block; aspect-ratio: 4/5; background: var(--hover); overflow: hidden; color: #fff; }
.mcard-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mcard:hover .mcard-ph img { transform: scale(1.04); }
.mrank { position: absolute; top: 8px; right: 8px; min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center; border-radius: var(--pill); background: rgba(0,0,0,.55); backdrop-filter: blur(4px); font-weight: 800; font-size: .85rem; }
.mcard.top1 .mrank, .mcard.top2 .mrank, .mcard.top3 .mrank { background: rgba(255,255,255,.9); font-size: 1.05rem; }
.mcat { position: absolute; top: 8px; left: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: var(--pill); backdrop-filter: blur(4px); }
.mshade { position: absolute; inset: auto 0 0 0; padding: 30px 10px 9px; background: linear-gradient(transparent, rgba(0,0,0,.75)); display: flex; flex-direction: column; }
.mshade b { font-size: 1rem; display: flex; align-items: center; gap: 4px; } .mshade span { font-size: .78rem; opacity: .9; }
.mcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px 8px 8px; }
.mvotes { font-size: .8rem; color: var(--ink-3); white-space: nowrap; } .mvotes b { color: var(--ink); font-size: .95rem; font-family: var(--display); }
.mvote-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: var(--pill); padding: 7px 12px; font: inherit; font-size: .84rem; font-weight: 700; color: #fff; background: linear-gradient(-135deg, #E0453A, var(--red)); cursor: pointer; box-shadow: 0 3px 10px rgba(200,40,30,.25); transition: transform .15s; white-space: nowrap; }
.mvote-btn:hover { transform: scale(1.04); color: #fff; }
.mvote-btn.done { background: var(--green-50); color: var(--green); box-shadow: none; cursor: default; }
.mvote-btn.mine { background: linear-gradient(-135deg, var(--gold-2), var(--gold)); color: #2A1608; }
.mvote-btn.is-busy, .mvote-big.is-busy { opacity: .6; }
.pop { animation: vpop .45s ease; } @keyframes vpop { 40% { transform: scale(1.12); } }
.bump { animation: vpop .45s ease; display: inline-block; }
.msec-h { margin: 22px 0 12px; }
.mempty .celeb-emoji { font-size: 2.6rem; display: block; margin-bottom: 4px; }

.msteps { margin: 26px 0; }
.msteps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .msteps-grid { grid-template-columns: repeat(4, 1fr); } }
.mstep { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.mstep-n { position: absolute; top: 12px; left: 14px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--line-2); }
.mstep-ic { font-size: 1.7rem; display: block; margin-bottom: 6px; }
.mstep b { display: block; margin-bottom: 4px; } .mstep p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.mxp { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mxp span { font-size: .84rem; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--pill); padding: 6px 12px; color: var(--ink-2); }
.mxp b { color: var(--ink); }

.mhall { margin: 24px 0; }
.mhall-season h3 { font-size: 1rem; color: var(--ink-2); margin: 12px 0 8px; }
.mhall-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.mhall-w { flex: none; width: 110px; display: flex; flex-direction: column; color: var(--ink); }
.mhall-w img { width: 110px; height: 138px; object-fit: cover; border-radius: 12px; border: 2px solid var(--gold); }
.mhall-w span { font-weight: 650; font-size: .86rem; margin-top: 4px; } .mhall-w small { color: var(--ink-3); font-size: .72rem; }
.mseo { max-width: none; } .mseo ul { padding-right: 20px; } .mseo li { margin-bottom: 6px; }
.mcountries .link-cloud a.on { color: var(--red); font-weight: 700; }
.mcountries small { color: var(--ink-3); font-weight: 700; }

/* entry page */
.mnew { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); background: linear-gradient(-135deg, color-mix(in srgb, var(--gold) 22%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); margin-bottom: 16px; }
.mnew .celeb-emoji { font-size: 2.2rem; } .mnew p { margin: 2px 0 0; font-size: .92rem; color: var(--ink-2); }
.mentry { display: grid; gap: 16px; margin-bottom: 18px; }
@media (min-width: 900px) { .mentry { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }
.mentry-ph { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--hover); box-shadow: var(--shadow-lg); }
.mentry-ph img { width: 100%; max-height: 82vh; object-fit: cover; display: block; }
.mwon { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92); color: #2A1608; font-weight: 800; font-size: .88rem; padding: 6px 12px; border-radius: var(--pill); box-shadow: var(--shadow); }
.mentry-card { padding: 18px; }
.mentry-who { display: flex; gap: 10px; align-items: center; color: var(--ink); margin-bottom: 10px; }
.mentry-who > span { display: flex; flex-direction: column; min-width: 0; } .mentry-who b { font-size: 1.2rem; font-family: var(--display); display: flex; align-items: center; gap: 4px; }
.mentry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; } .mentry-tags .pill { font-size: .78rem; padding: 4px 10px; vertical-align: 0; }
.mscore { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin-bottom: 8px; }
.mscore > div { background: var(--hover); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.mscore b { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; } .mscore span { font-size: .78rem; color: var(--ink-3); }
.mscore > div:first-child { background: linear-gradient(-135deg, var(--red-50), var(--hover)); } .mscore > div:first-child b { color: var(--red); }
.mnext { font-size: .9rem; color: var(--ink-2); margin: 6px 0 12px; }
.mvote-big { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; height: 58px; border: 0; border-radius: 16px; font: inherit; font-size: 1.12rem; font-weight: 800; color: #fff; cursor: pointer; background: linear-gradient(-135deg, #EF5A3C, var(--red) 60%, #9E1B14); box-shadow: 0 10px 28px rgba(200,40,30,.35); transition: transform .15s; position: relative; overflow: hidden; }
.mvote-big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(-120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(100%); animation: shine 3s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(-100%); } }
.mvote-big:hover { transform: translateY(-1px); }
.mvote-big .mv-ic { font-size: 1.3rem; }
.mvote-big.done { background: var(--green-50); color: var(--green); box-shadow: none; cursor: default; } .mvote-big.done::after { display: none; }
.mleft { text-align: center; margin: 6px 0 14px; }
.mshare { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.mshare-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 10px 0; }
.sh { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 12px; font-weight: 700; font-size: .9rem; color: #fff; border: 0; cursor: pointer; font-family: inherit; }
.sh:hover { filter: brightness(1.08); color: #fff; }
.sh.wa { background: #25D366; } .sh.tg { background: #229ED9; } .sh.fb { background: #1877F2; } .sh.x { background: #111; } .sh.more { background: var(--hover); color: var(--ink); } .sh.more:hover { color: var(--ink); }
[data-theme="dark"] .sh.x { background: #333; }
.mshare-link { display: flex; gap: 8px; } .mshare-link .input { flex: 1; min-width: 0; font-size: .85rem; height: 38px; }
.mcaption { margin: 14px 0 6px; font-size: .98rem; }
.mvoters { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.av-stack { display: inline-flex; } .av-stack .av { border: 2px solid var(--surface); margin-right: -8px; } .av-stack .av:first-child { margin-right: 0; }
.mentry-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; } .mentry-tools form { margin: 0; }
.confetti-box { position: fixed; inset: 0; pointer-events: none; z-index: 450; overflow: hidden; }

/* form */
.mcat-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mcat-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mcat-pick span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.mcat-pick i { font-style: normal; font-size: 2rem; } .mcat-pick small { color: var(--ink-3); }
.mcat-pick input:checked + span { border-color: var(--red); background: var(--red-50); }
.mcat-pick input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.mupload { position: relative; display: grid; place-items: center; aspect-ratio: 4/5; max-width: 320px; margin: 0 auto; border: 2px dashed var(--line-2); border-radius: 18px; background: var(--hover); cursor: pointer; overflow: hidden; }
.mupload:hover { border-color: var(--red); }
.mupload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mupload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mupload-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; color: var(--ink-2); padding: 20px; }
.mupload-empty .celeb-emoji { font-size: 2.4rem; } .mupload-empty small { color: var(--ink-3); }
.mupload.has { border-style: solid; border-color: var(--line); }
.mtips { list-style: none; padding: 0; margin: 12px 0 0; font-size: .86rem; color: var(--ink-2); display: grid; gap: 4px; }

/* promo */
.mpromo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: radial-gradient(140% 160% at 100% 0%, #7A1A14, var(--plum) 55%, #120708); color: #fff; box-shadow: var(--shadow); }
.mpromo:hover { color: #fff; filter: brightness(1.08); }
.mpromo-faces { display: flex; flex: none; }
.mpromo-faces img { width: 38px; height: 48px; object-fit: cover; border-radius: 10px; border: 2px solid var(--gold); margin-right: -12px; position: relative; } .mpromo-faces img:first-child { margin-right: 0; }
.mpromo-crown { font-size: 2rem; }
.mpromo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .mpromo-t b { font-size: .98rem; } .mpromo-t span { font-size: .78rem; color: rgba(255,255,255,.75); }
.mpromo-go { font-size: 1.6rem; color: var(--gold-2); }
@media (prefers-reduced-motion: reduce) { .mhero-glow, .mp.p1 .mp-medal, .mvote-big::after { animation: none; } }

/* inline replies */
.reply-form { margin: 6px 0 4px; padding-right: 12px; border-right: 2px solid var(--red); animation: fadein .15s ease; }
.reply-to { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--ink-3); padding: 0 2px 4px 0; }
.reply-to b { color: var(--ink-2); }
.reply-to button { border: 0; background: none; color: var(--ink-3); font: inherit; font-weight: 650; cursor: pointer; padding: 2px 4px; }
.reply-to button:hover { color: var(--red); }
.reply-row { display: flex; gap: 8px; align-items: flex-end; }
.reply-row .av { flex: none; width: 28px; height: 28px; }
.reply-row textarea { flex: 1; min-width: 0; min-height: 38px; max-height: 160px; border-radius: 19px; border: 1px solid var(--line-2); background: var(--surface); padding: 8px 14px; resize: none; outline: none; line-height: 1.4; font: inherit; font-size: .95rem; color: var(--ink); }
.reply-row textarea:focus { border-color: var(--ink-3); }
.reply-row .btn { height: 38px; width: 38px; padding: 0; border-radius: 50%; flex: none; }
.replies.collapsed > .comment:not(:nth-last-child(-n+2)) { display: none; }
.show-replies { border: 0; background: none; padding: 4px 14px 4px 0; font: inherit; font-size: .84rem; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.show-replies:hover { color: var(--red); }
.comment.just-added > .comment-body > .bubble { animation: justadded 2s ease; }
@keyframes justadded { 0%, 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--saffron) 60%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------------------------------------------------------------- profile photo prompts */
.pp-modal { width: min(440px, calc(100% - 24px)); }
.pp-start { text-align: center; }
.pp-ring { width: 120px; height: 120px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--hover); border: 3px dashed var(--line-2); color: var(--ink-3); }
.pp-ring .i { width: 40px; height: 40px; }
.pp-why { color: var(--ink-2); font-size: .95rem; margin: 0 0 16px; }
.pp-btns { display: grid; gap: 8px; } .pp-btns.row { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.pp-tip { text-align: center; font-size: .82rem; color: var(--ink-3); margin: 10px 0 0; }
.pp-stage { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #111; touch-action: none; cursor: grab; user-select: none; }
.pp-stage:active { cursor: grabbing; }
.pp-stage img { position: absolute; right: 50%; top: 50%; max-width: none; transform-origin: center; pointer-events: none; image-orientation: from-image; }
.pp-mask { position: absolute; inset: 0; pointer-events: none; border-radius: 16px; box-shadow: inset 0 0 0 999px rgba(0,0,0,.45); -webkit-mask: radial-gradient(circle at center, transparent 0 49.5%, #000 50%); mask: radial-gradient(circle at center, transparent 0 49.5%, #000 50%); }
.pp-stage::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.85); pointer-events: none; }
.pp-tools { display: flex; align-items: center; gap: 10px; max-width: 340px; margin: 12px auto 0; color: var(--ink-3); font-weight: 700; }
.pp-tools input[type=range] { flex: 1; accent-color: var(--red); }
.pn-cam { position: absolute; left: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; border: 2px solid var(--surface); }
.pn-cam .i { width: 15px; height: 15px; }
.pnudge { display: flex; gap: 16px; align-items: center; padding: 16px; margin-bottom: 16px; border-radius: var(--r-lg); background: linear-gradient(-135deg, color-mix(in srgb, var(--saffron) 20%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--saffron) 45%, transparent); }
.pn-ring { position: relative; flex: none; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.pn-ring .av { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--red); animation: pnpulse 2.2s ease-in-out infinite; }
@keyframes pnpulse { 50% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 9px color-mix(in srgb, var(--red) 35%, transparent); } }
.pn-body { flex: 1; min-width: 0; } .pn-body > b { font-family: var(--display); font-size: 1.08rem; display: block; }
.pn-body ul { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 2px; font-size: .88rem; color: var(--ink-2); }
.pn-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pnudge.done { justify-content: center; } .pn-done { font-size: 1.02rem; }
@media (max-width: 520px) { .pnudge { flex-direction: column; text-align: center; } .pn-body ul { justify-items: center; } .pn-btns { justify-content: center; } }
body.no-photo .me-btn { position: relative; }
body.no-photo .me-btn::after { content: "+"; position: absolute; left: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 800; line-height: 15px; text-align: center; border: 2px solid var(--surface); }
.menu-photo { color: var(--red) !important; font-weight: 700 !important; }
.composer-av-add { position: relative; border: 0; background: none; padding: 0; cursor: pointer; flex: none; border-radius: 50%; }
.composer-av-add .pn-cam { width: 20px; height: 20px; left: -4px; bottom: -4px; } .composer-av-add .pn-cam .i { width: 11px; height: 11px; }
.chat-photo-hint { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: var(--saffron-50); color: var(--ink-2); font: inherit; font-size: .84rem; padding: 7px 12px; border-radius: 12px; margin-bottom: 8px; cursor: pointer; text-align: right; }
.chat-photo-hint span { flex: 1; } .chat-photo-hint b { color: var(--red); white-space: nowrap; }
.av-add { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.av-add span { position: absolute; inset: auto 0 6px; margin: 0 auto; width: max-content; background: var(--red); color: #fff; font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: var(--pill); box-shadow: var(--shadow); }
.wphoto { text-align: center; padding: 8px 0 22px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.wphoto h2 { margin: 10px 0 4px; } .wphoto p { max-width: 420px; margin: 0 auto 14px; }
.wphoto-ring { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; margin-top: 10px; }
.wphoto:not(.has) .wphoto-ring .av { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--red); animation: pnpulse 2.2s ease-in-out infinite; }
.wphoto-ring .pn-cam { width: 36px; height: 36px; } .wphoto-ring .pn-cam .i { width: 18px; height: 18px; }
.wstep { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--red); background: var(--red-50); padding: 3px 10px; border-radius: var(--pill); vertical-align: middle; margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { .pn-ring .av, .wphoto-ring .av { animation: none; } }

/* polls: more options, length, multiple answers */
.poll-opts { display: grid; gap: 8px; }
.poll-row { display: flex; gap: 6px; align-items: center; } .poll-row .input { flex: 1; min-width: 0; }
.poll-add { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 1.5px dashed var(--line-2); background: none; border-radius: var(--pill); padding: 6px 14px; font: inherit; font-size: .88rem; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.poll-add:hover { border-color: var(--red); color: var(--red); } .poll-add .i { width: 15px; height: 15px; }
.poll-settings { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .9rem; color: var(--ink-2); }
.poll-settings > label:first-child { display: inline-flex; align-items: center; gap: 8px; }
.poll-settings .select { height: 36px; min-height: 36px; width: auto; padding: 0 12px 0 30px; font-size: .88rem; }
.poll-settings .check { margin: 0; }
.poll-hint { font-size: .8rem; font-weight: 650; color: var(--ink-3); }
.poll-box { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 8px; border: 2px solid var(--line-2); border-radius: 5px; vertical-align: -3px; background: var(--surface); }
.poll-opt.on .poll-box { background: var(--red); border-color: var(--red); } .poll-opt.on .poll-box .i { color: #fff; width: 12px; height: 12px; }
.poll.multi .poll-label .i { margin: 0; }
.poll-opt[disabled] { cursor: default; }
.poll-opt.win { border-color: var(--saffron); } .poll-opt.win .poll-bar { background: color-mix(in srgb, var(--saffron) 25%, var(--surface)); }
.poll-final { color: var(--ink-2); font-weight: 650; }
.poll-meta { flex-wrap: wrap; }

/* admin tools on profiles */
.admin-tools { margin: 14px 0; border: 1.5px dashed color-mix(in srgb, var(--red) 45%, transparent); border-radius: var(--r-lg); background: color-mix(in srgb, var(--red-50) 55%, var(--surface)); padding: 0 14px; }
.admin-tools.is-banned { border-style: solid; }
.admin-tools summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 0; cursor: pointer; font-weight: 700; list-style: none; }
.admin-tools summary::-webkit-details-marker { display: none; }
.admin-tools summary .i { color: var(--red); }
.at-hint { margin-right: auto; font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.at-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.at-stats span { background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 3px 10px; font-size: .82rem; color: var(--ink-2); }
.at-stats span.warn { border-color: var(--red); color: var(--red); }
.at-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-bottom: 12px; }
.at-actions form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.at-actions .select { height: 34px; min-height: 34px; width: auto; font-size: .85rem; padding: 0 10px 0 28px; }
.at-actions .check { margin: 0; }
.at-log { display: grid; gap: 2px; font-size: .8rem; color: var(--ink-3); padding: 8px 0 12px; border-top: 1px solid var(--line); }

/* avatars always lead to the profile */
.av[data-u] { cursor: pointer; }
button .av[data-u], label .av[data-u], .me-btn .av[data-u] { cursor: inherit; }
.poll-voters { border: 0; background: none; padding: 0; font: inherit; color: var(--ink-2); font-weight: 650; cursor: pointer; }
.poll-voters:hover { color: var(--red); text-decoration: underline; }
.likers-note { margin: 0; padding: 10px 18px 0; font-size: .82rem; color: var(--ink-3); }
.liker-heart.voted { background: var(--green); }

/* ---------------------------------------------------------------- explore + groups (2026-10-27) */
/* group cards: icon sits above the cover, join button on the card, whole card clickable */
.comm-card { position: relative; transition: transform .18s, box-shadow .18s; }
.comm-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.comm-card .cover { height: 84px; }
.cc-cat { position: absolute; right: 10px; top: 10px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.38); backdrop-filter: blur(4px); padding: 3px 9px; border-radius: var(--pill); }
.cc-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: -26px; position: relative; z-index: 2; }
.comm-card .cc-top .tile { margin-top: 0; border: 3px solid var(--surface); box-shadow: var(--shadow); }
.comm-card h3 { margin: 10px 0 4px; }
.cc-link { color: var(--ink); }
.cc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cc-join { position: relative; z-index: 3; height: 32px; padding: 0 16px; }
.cc-joined { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--green); background: var(--green-50); padding: 5px 11px; border-radius: var(--pill); }
.cc-joined .i { width: 14px; height: 14px; }
.comm-card .meta .i { width: 14px; height: 14px; vertical-align: -2px; }

/* horizontal rows */
.ex-sec { margin-bottom: 26px; }
.ex-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ex-h h2 { margin: 0; font-size: 1.2rem; }
.ex-h-r { display: flex; align-items: center; gap: 6px; }
.ex-h .more { color: var(--red); font-weight: 650; font-size: .9rem; margin-left: 4px; }
.hs-btn { display: none; width: 32px; height: 32px; border: 1px solid var(--line); background: var(--surface); font-size: 1.2rem; line-height: 1; }
@media (min-width: 900px) { .hs-btn { display: inline-grid; place-items: center; } }
.hrow { display: grid; grid-auto-flow: column; grid-auto-columns: var(--cw, 180px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.hrow::-webkit-scrollbar { display: none; }
.hrow > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 900px) { .hrow { margin: 0; padding: 2px 0 6px; scroll-padding: 0; } }
.hrow-people { --cw: 168px; }
.hrow-groups { --cw: 270px; }
.hrow-items { --cw: 176px; }
.hrow-mine { --cw: 150px; }
.hrow .person-card { height: 100%; }
.hrow .person-card .bio { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .84rem; min-height: 2.6em; }
.hrow .person-card .btn, .grid .person-card .btn { margin-top: auto; }
.hrow .comm-card, .hrow .item-card { height: 100%; }
.hs-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.hs-chips::-webkit-scrollbar { display: none; }
.hs-chips .chip { flex: none; }
@media (min-width: 900px) { .hs-chips { margin: 0; padding: 2px 0 4px; flex-wrap: wrap; } .g-cats { flex-wrap: nowrap; } }

/* explore */
.ex-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ex-head h1 { margin: 0; }
.ex-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line-2); }
.ex-search:focus-within { border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--hover); }
.ex-search .i { color: var(--ink-3); }
.ex-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; color: var(--ink); }
.ex-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
@media (min-width: 640px) { .ex-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ex-tile { --c: var(--red); display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--c) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 18%, transparent); color: var(--ink); transition: transform .15s, box-shadow .15s; min-width: 0; }
.ex-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.ex-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.ex-tx { display: flex; flex-direction: column; min-width: 0; }
.ex-tx b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-tx small { font-size: .76rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-gold { --c: #E9B43A; } .t-rose { --c: #E2557A; } .t-blue { --c: #3B6FD8; } .t-green { --c: var(--green); }
.t-orange { --c: #E8782A; } .t-teal { --c: #138A8A; } .t-violet { --c: #7A4FD1; } .t-red { --c: var(--red); }
.ex-countries .flag { font-size: 1.05em; }

/* groups page */
.g-search { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.g-q { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line-2); }
.g-q .i { color: var(--ink-3); } .g-q input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; color: var(--ink); }
.g-search .select { flex: 0 1 200px; height: 44px; border-radius: var(--pill); }
.g-search .btn { height: 44px; }
.g-cats { margin-bottom: 18px; }
.g-count { font-size: .86rem; color: var(--ink-3); margin: 0 0 10px; }
.my-g { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); height: 100%; }
.my-g:hover { box-shadow: var(--shadow); color: var(--ink); }
.my-g b { font-size: .88rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.my-g span { font-size: .76rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.dot-new { width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: inline-block; }
.ex-tile { padding: 10px; gap: 9px; }
.ex-ic { width: 36px; height: 36px; font-size: 1.15rem; border-radius: 11px; }
.ex-tx b { white-space: normal; overflow: visible; text-overflow: clip; font-size: .9rem; line-height: 1.2; overflow-wrap: anywhere; }
.ex-tx small { font-size: .74rem; }
.ex-tx b { overflow-wrap: normal; }
@media (min-width: 640px) { .ex-tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; } }

/* dropdowns: explicit colours for the open list (Windows/Android otherwise show white-on-white in dark mode) */
.input, .select, .textarea { color: var(--ink); font: inherit; }
.select option, .select optgroup { background-color: var(--surface); color: var(--ink); }
.select optgroup { font-weight: 700; color: var(--ink-3); font-style: normal; }
.select option:checked { background-color: var(--red-50); color: var(--ink); }
.select option[value=""] { color: var(--ink-3); }
.select:has(option[value=""]:checked) { color: var(--ink-3); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.chat-photo-hint span { flex: initial; }
.chat-photo-hint > span:not(.av) { flex: 1; }
.chat-photo-hint .av { flex: none; }

/* ---------------------------------------------------------------- local groups ("Groups near you") */
.near { background: linear-gradient(-135deg, color-mix(in srgb, var(--green) 9%, var(--surface)), var(--surface) 65%); border: 1px solid color-mix(in srgb, var(--green) 28%, transparent); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 18px; }
.near-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.near-h h2 { margin: 0; font-size: 1.1rem; }
.near-h .more { color: var(--red); font-weight: 650; font-size: .86rem; }
.near-list { display: grid; gap: 8px; }
@media (min-width: 900px) { .near:not(.near-compact) .near-list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
.near-g { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; min-width: 0; }
.near-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.near-link > span { display: flex; flex-direction: column; min-width: 0; }
.near-link small { font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; color: var(--green); }
.near-link b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.near-link em { font-style: normal; font-size: .76rem; color: var(--ink-3); }
.near-form { margin-top: 12px; }
.near-form label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 6px; }
.near-row { display: flex; gap: 8px; } .near-row .input { flex: 1; min-width: 0; height: 42px; min-height: 42px; } .near-row .btn { height: 42px; }
.near-compact { padding: 12px; } .near-compact .near-h h2 { font-size: 1rem; } .near-compact .near-g { padding: 6px 8px; } .near-compact .near-link b { font-size: .88rem; }
.near-compact .cc-joined { padding: 5px 7px; }
.near-guest .btn { margin-top: 6px; }
.tile-flag { font-size: 1.5em; position: relative; background: color-mix(in srgb, var(--green) 14%, var(--surface)) !important; }
.tile-sm.tile-flag { font-size: 1.15em; }
.tile-flag i { position: absolute; left: -4px; bottom: -4px; font-size: .55em; font-style: normal; }
.local-pill { display: inline-block; margin-top: 4px; font-size: .8rem; color: var(--green); background: var(--green-50); padding: 3px 10px; border-radius: var(--pill); font-weight: 600; }
.local-pill a { color: inherit; text-decoration: underline; }
.tile-flag { overflow: visible; font-size: 26px; } .tile-sm.tile-flag { font-size: 18px; } .tile-lg.tile-flag { font-size: 40px; }

/* inline comments under posts in feeds */
.post-cmts { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; animation: fadein .15s ease; }
.post-cmts .comments { max-height: none; }
.cmt-all { border: 0; background: none; padding: 4px 0 6px; font: inherit; font-size: .88rem; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.cmt-all:hover { color: var(--red); text-decoration: underline; }
.cmt-load { display: grid; place-items: center; padding: 10px; }
.cmt-empty { margin: 4px 0 8px; }
.post-cmts .comment-form { padding: 8px 0 2px; }

/* ---------------------------------------------------------------- messages on desktop: use the full width */
@media (min-width: 1240px) {
  .page-chat .shell { grid-template-columns: 230px minmax(0, 1fr); max-width: 1280px; }
  .page-chat .rail-r { display: none; }
}
@media (min-width: 1000px) {
  .chat-app { grid-template-columns: 340px minmax(0, 1fr); }
  .chat-app .mcol { max-width: min(560px, 72%); }
  .chat-scroll { padding-right: 24px; padding-left: 24px; }
}
.chat-info { display: none; }
@media (min-width: 1280px) {
  .chat-app.has-thread { grid-template-columns: 330px minmax(0, 1fr) 290px; }
  .chat-info { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 20px; border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: thin; }
}
.ci-av { margin-bottom: 8px; }
.ci-name { font-family: var(--display); font-size: 1.15rem; display: inline-flex; align-items: center; gap: 4px; }
.ci-pres { font-size: .82rem; color: var(--green); font-weight: 600; min-height: 1.2em; }
.ci-head { font-size: .9rem; color: var(--ink-2); margin: 8px 0 0; }
.ci-facts { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; color: var(--ink-2); margin: 12px 0 4px; }
.ci-btns { display: flex; gap: 8px; margin: 10px 0 6px; }
.ci-sec { width: 100%; text-align: right; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.ci-sec h4 { margin: 0 0 8px; font-size: .86rem; }
.ci-group { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 10px; color: var(--ink); font-size: .88rem; }
.ci-group:hover { background: var(--hover); color: var(--ink); }
.ci-group span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-safe p { font-size: .82rem; color: var(--ink-3); margin: 0 0 8px; }
.ci-link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 4px 0 4px 8px; font: inherit; font-size: .84rem; color: var(--ink-3); cursor: pointer; }
.ci-link:hover { color: var(--red); } .ci-link .i { width: 14px; height: 14px; }
@media (min-width: 1240px) { .page-chat .top-in { max-width: 1440px; } }

/* ---------------------------------------------------------------- feedback board */
.top-fb { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: var(--pill); color: var(--ink-2); font-weight: 650; font-size: .9rem; border: 1px solid var(--line); background: var(--surface); }
.top-fb:hover, .top-fb.on { color: var(--ink); border-color: color-mix(in srgb, var(--saffron) 70%, transparent); background: var(--saffron-50); }
.top-fb .i { color: #D99A0B; width: 20px; height: 20px; }
@media (max-width: 999px) { .top-fb { width: 40px; padding: 0; justify-content: center; border: 0; background: none; } }
.fb-hero { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 20px; margin-bottom: 16px; border-radius: var(--r-lg); background: linear-gradient(-135deg, color-mix(in srgb, var(--saffron) 22%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--saffron) 40%, transparent); }
.fb-hero h1 { margin: 0 0 6px; } .fb-hero p { margin: 0 0 10px; color: var(--ink-2); max-width: 620px; }
.fb-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--ink-3); } .fb-stats b { color: var(--ink); }
.fb-form { margin-bottom: 16px; }
.fb-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.fb-types input { position: absolute; opacity: 0; pointer-events: none; }
.fb-types span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 650; font-size: .88rem; }
.fb-types i { font-style: normal; font-size: 1.4rem; }
.fb-types input:checked + span { border-color: var(--red); background: var(--red-50); }
.fb-types input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.fb-similar { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--saffron-50); font-size: .86rem; }
.fb-similar a { display: block; color: var(--ink); padding: 4px 0; } .fb-similar a:hover { color: var(--red); }
.fb-filter { justify-content: space-between; }
.fb-list { display: grid; gap: 10px; margin-bottom: 18px; }
.fb-row { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; }
.fb-row:hover { box-shadow: var(--shadow); }
.fb-vote { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 54px; min-height: 58px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--ink-2); cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.fb-vote svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fb-vote b { font-family: var(--display); font-size: 1.05rem; line-height: 1.1; }
.fb-vote:hover { border-color: var(--red); color: var(--red); }
.fb-vote.on { background: var(--red-50); border-color: var(--red); color: var(--red); } .fb-vote.on svg { fill: currentColor; }
.fb-vote[disabled] { opacity: .6; cursor: default; }
.fb-vote.big { width: 72px; min-height: 84px; } .fb-vote.big svg { width: 26px; height: 26px; } .fb-vote.big b { font-size: 1.4rem; } .fb-vote small { font-size: .7rem; color: var(--ink-3); }
.fb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; color: var(--ink); }
.fb-main > b { font-size: 1.02rem; line-height: 1.3; }
.fb-ex { font-size: .88rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fb-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .78rem; color: var(--ink-3); margin-top: 4px; }
.fb-meta .i { width: 13px; height: 13px; vertical-align: -2px; }
.fb-type { font-weight: 700; color: var(--ink-2); }
.fb-st { font-weight: 750; padding: 2px 9px; border-radius: var(--pill); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.st-grey { background: var(--hover); color: var(--ink-2); } .st-blue { background: rgba(59,111,216,.14); color: #3B6FD8; } .st-gold { background: var(--saffron-50); color: #B07800; }
.st-green { background: var(--green-50); color: var(--green); } .st-red { background: var(--red-50); color: var(--red); }
.fb-priv { color: var(--ink-2); font-weight: 650; } .fb-team { color: var(--green); font-weight: 700; }
.fb-detail { padding: 18px; }
.fb-d-top { display: flex; gap: 16px; align-items: flex-start; }
.fb-d-main { flex: 1; min-width: 0; } .fb-d-main h1 { font-size: 1.5rem; margin: 6px 0; }
.fb-by { font-size: .86rem; color: var(--ink-3); } .fb-by a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.fb-body { margin-top: 12px; font-size: 1rem; }
.fb-share { margin-top: 12px; }
.fb-reply { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--green-50); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); }
.fb-reply-h { font-size: .86rem; color: var(--green); margin-bottom: 6px; }
.fb-manage { display: grid; gap: 10px; padding-bottom: 6px; } .fb-manage label { display: grid; gap: 4px; font-size: .86rem; font-weight: 650; } .fb-manage .select { max-width: 220px; }
.bubble.fb-staff { background: var(--green-50); }

/* ---------------------------------------------------------------- inbox: tabs, paging, AJAX switching */
.chat-list-head h1 a { color: inherit; }
.chat-tabs { display: flex; gap: 6px; padding: 0 14px 8px; overflow-x: auto; scrollbar-width: none; flex: none; }
.chat-tabs::-webkit-scrollbar { display: none; }
.chat-tabs a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--pill); background: var(--hover); color: var(--ink-2); font-weight: 650; font-size: .86rem; white-space: nowrap; }
.chat-tabs a:hover { color: var(--ink); }
.chat-tabs a.on { background: var(--ink); color: var(--surface); }
.chat-tabs .n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .7rem; display: inline-grid; place-items: center; }
.chat-tabs .n.muted-n { background: var(--line-2); color: var(--ink-2); }
.chat-tabs a.on .n.muted-n { background: color-mix(in srgb, var(--surface) 25%, transparent); color: var(--surface); }
.chat-more { display: flex; justify-content: center; padding: 14px; }
.conv-seen { flex: none; align-self: center; font-size: .72rem; color: var(--blue, #3B6FD8); font-weight: 700; letter-spacing: -2px; margin-right: 4px; }
.chat-pane { position: relative; }
.chat-pane.is-loading::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 55%, transparent); z-index: 5; }
.chat-pane.is-loading::before { content: ''; position: absolute; right: 50%; top: 45%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--red); animation: spin .8s linear infinite; z-index: 6; }

/* ---------------------------------------------------------------- search */
.i.flip { transform: scaleX(-1); }
mark { background: color-mix(in srgb, var(--saffron) 38%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
body.page-search .top .search { visibility: hidden; }
.sx { max-width: 900px; margin: 0 auto; }
.sx-bar { position: sticky; top: calc(var(--top) + 8px); z-index: 20; margin-bottom: 12px; }
@media (max-width: 999px) { .sx-bar { top: calc(var(--top) + 4px); } }
.sx-box { position: relative; display: flex; align-items: center; height: 56px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: var(--shadow); padding: 0 18px 0 8px; transition: border-color .15s, box-shadow .15s; }
.sx-box:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-50), var(--shadow); }
.sx-box > .i { width: 22px; height: 22px; color: var(--ink-3); flex: none; }
.sx-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 1.1rem; padding: 0 12px; color: var(--ink); }
.sx-box input::-webkit-search-cancel-button { display: none; }
.sx-clear, .sx-mic { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.sx-clear:hover, .sx-mic:hover { background: var(--hover); color: var(--ink); }
.sx-mic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sx-mic.on { color: #fff; background: var(--red); animation: sxpulse 1.2s infinite; }
@keyframes sxpulse { 50% { box-shadow: 0 0 0 8px var(--red-50); } }
.sx-hint { font-size: .78rem; color: var(--ink-3); padding: 8px 6px 0; }
.sx-hint kbd, .qs-row kbd, .qs-none kbd { font: 600 .72rem/1 var(--body); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); }
.sx.is-loading .sx-box::after { content: ''; position: absolute; right: 18px; left: 18px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(-90deg, transparent, var(--red), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: sxbar 1s linear infinite; }
@keyframes sxbar { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.sx.is-loading .sx-results { opacity: .55; transition: opacity .2s .1s; }
.sx-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 14px; padding: 2px 4px 8px; border-bottom: 1px solid var(--line); }
.sx-tabs::-webkit-scrollbar { display: none; }
.sx-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--pill); color: var(--ink-2); font-weight: 650; font-size: .9rem; }
.sx-tabs a:hover { background: var(--hover); color: var(--ink); }
.sx-tabs a.on { background: var(--ink); color: var(--surface); }
.sx-tabs a.empty { opacity: .45; }
.sx-tabs .n { font-size: .72rem; font-weight: 750; padding: 1px 7px; border-radius: 10px; background: var(--hover); color: var(--ink-2); }
.sx-tabs a.on .n { background: color-mix(in srgb, var(--surface) 22%, transparent); color: var(--surface); }
.sx-sec { margin-bottom: 22px; }
.sx-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
.sx-h h2 { font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.sx-cnt { font-size: .75rem; font-weight: 700; color: var(--ink-3); background: var(--hover); padding: 2px 8px; border-radius: 10px; }
.sx-link { border: 0; background: none; color: var(--red); font-weight: 700; font-size: .86rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0; }
.sx-link .i { width: 15px; height: 15px; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-chips .chip .i { width: 14px; height: 14px; color: var(--ink-3); }
.sx-rc { display: inline-flex; align-items: center; gap: 2px; padding-left: 4px; }
.sx-rc a { color: inherit; }
.sx-rc button { border: 0; background: none; color: var(--ink-3); font-size: 1.1rem; line-height: 1; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; }
.sx-rc button:hover { background: var(--hover); color: var(--ink); }
.sx-browse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .sx-browse { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } }
.sx-browse a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-align: center; transition: transform .12s, box-shadow .12s; }
.sx-browse a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sx-browse span { font-size: 1.6rem; line-height: 1; }
.sx-browse b { font-size: .82rem; }
.sx-faces { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.sx-faces a { position: relative; flex: none; width: 68px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-2); font-size: .78rem; font-weight: 600; }
.sx-faces a span { max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-faces .online-dot { position: absolute; top: 44px; left: 8px; }
/* result rows */
.sx-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.sx-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.sx-row:first-child { border-top: 0; }
.sx-row:hover { background: var(--surface-2); }
.sx-av { position: relative; flex: none; }
.sx-av .online-dot { position: absolute; left: 0; bottom: 2px; }
.sx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; color: var(--ink); }
.sx-main b { font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-sub { font-size: .8rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-ex { font-size: .86rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sx-act { flex: none; display: flex; align-items: center; gap: 6px; }
.sx-lock { width: 14px; height: 14px; color: var(--ink-3); vertical-align: -2px; }
@media (max-width: 520px) { .sx-act .icon-btn { display: none; } .sx-row { padding: 11px 12px; gap: 10px; } }
.sx-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sx-place { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.sx-place-top { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.sx-place-top .flag { font-size: 2rem; line-height: 1; }
.sx-place-top span:last-child { display: flex; flex-direction: column; } .sx-place-top small { color: var(--ink-3); font-size: .8rem; }
.sx-place-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-place-links a, .sx-short-links a { font-size: .8rem; font-weight: 650; padding: 5px 10px; border-radius: var(--pill); background: var(--hover); color: var(--ink-2); }
.sx-place-links a:hover, .sx-short-links a:hover { background: var(--red-50); color: var(--red); }
.sx-tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.sx-tag { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.sx-tag:hover { border-color: var(--red); }
.sx-hash, .qs-hash { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--red-50); color: var(--red); font-weight: 800; font-size: 1.1rem; flex: none; }
.sx-tag span:last-child { display: flex; flex-direction: column; min-width: 0; } .sx-tag small { color: var(--ink-3); font-size: .78rem; }
.sx-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sx-model { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: var(--hover); }
.sx-model img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sx-model:hover img { transform: scale(1.04); }
.sx-model-cap { position: absolute; inset: auto 0 0 0; padding: 26px 10px 9px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; display: flex; flex-direction: column; }
.sx-model-cap b { font-size: .9rem; } .sx-model-cap small { font-size: .76rem; opacity: .9; }
.sx-model-cap mark { color: #1c1613; }
.sx-posts > .post:first-child { margin-top: 0; }
/* shortcut card */
.sx-short { display: flex; gap: 14px; align-items: flex-start; padding: 16px; margin-bottom: 18px; border-radius: var(--r-lg); background: linear-gradient(-135deg, color-mix(in srgb, var(--saffron) 20%, var(--surface)), var(--surface) 75%); border: 1px solid color-mix(in srgb, var(--saffron) 40%, transparent); }
.sx-short-flag { font-size: 2.4rem; line-height: 1; flex: none; }
.sx-short-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sx-short-t { font-size: 1.2rem; font-family: var(--display); }
.sx-short-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 1.05rem; padding: 10px 16px; border-radius: var(--pill); background: var(--red); color: #fff; }
.sx-short-go .i { width: 18px; height: 18px; }
.sx-short-go:hover { filter: brightness(1.08); }
.sx-short-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sx-short-links a { background: color-mix(in srgb, var(--surface) 70%, transparent); }
/* filters */
.sx-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.sx-sel { height: 36px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 12px 0 30px; font-weight: 600; font-size: .86rem; max-width: 220px; appearance: none; background-image: linear-gradient(-45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(-135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - (100% - 15px)) 16px, calc(100% - (100% - 10px)) 16px; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.sx-sel option { color: var(--ink); background: var(--surface); }
.sx-tog { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: .86rem; cursor: pointer; user-select: none; }
.sx-tog input { position: absolute; opacity: 0; pointer-events: none; }
.sx-tog.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.sx-tog:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.sx-price { display: inline-flex; align-items: center; gap: 4px; }
.sx-num { width: 104px; height: 36px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 12px; font-size: .86rem; }
.sx-reset { margin-right: 4px; }
.sx-empty { text-align: center; padding: 40px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.sx-empty.small { padding: 28px 16px; }
.sx-empty-ic { font-size: 2.4rem; display: block; margin-bottom: 6px; }
.sx-empty h3 { margin: 0 0 6px; }
.sx-empty a { color: var(--red); }
/* header dropdown */
.qs-pop { position: absolute; top: calc(100% + 8px); right: 0; left: 0; min-width: 380px; max-height: min(70vh, 560px); overflow-y: auto; z-index: 120; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,.18)); padding: 6px; }
.qs-sec { padding: 4px 0; border-top: 1px solid var(--line); }
.qs-sec:first-child, .qs-all + .qs-sec, .qs-go + .qs-sec { border-top: 0; }
.qs-h { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 8px 10px 4px; }
.qs-h a, .qs-clear { color: var(--red); text-transform: none; letter-spacing: 0; font-size: .78rem; border: 0; background: none; cursor: pointer; font-weight: 700; }
.qs-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; color: var(--ink); }
.qs-row:hover, .qs-row.act { background: var(--hover); }
.qs-row.act { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.qs-ic, .qs-av { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.qs-ic { background: var(--hover); color: var(--ink-2); font-size: 1.05rem; }
.qs-ic .i { width: 18px; height: 18px; }
.qs-flag { font-size: 1.5rem; background: none; }
.qs-thumb { overflow: hidden; background: var(--hover); }
.qs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qs-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .9rem; overflow: hidden; }
.qs-t b, .qs-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-t small { color: var(--ink-3); font-size: .76rem; }
.qs-all .qs-t { display: block; white-space: nowrap; text-overflow: ellipsis; }
.qs-go { background: var(--red-50); color: var(--red); margin: 2px 0 4px; }
.qs-go .i { width: 16px; height: 16px; }
.qs-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 8px; }
.qs-chips .chip.act { outline: 2px solid var(--red); }
.qs-x { border: 0; background: none; color: var(--ink-3); font-size: 1.15rem; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; }
.qs-x:hover { background: var(--surface-2); color: var(--ink); }
.qs-none { padding: 12px; font-size: .86rem; color: var(--ink-3); }
@media (max-width: 479px) { .top-fb-guest { display: none; } }
.sx-browse b { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- language switch */
.menu-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 12px 8px; }
.menu-langs a { font-size: .8rem; font-weight: 650; padding: 4px 9px; border-radius: var(--pill); background: var(--hover); color: var(--ink-2); }
.menu-langs a.on { background: var(--ink); color: var(--surface); }
.foot-langs { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.foot-langs a { color: var(--ink-3); } .foot-langs a.on { color: var(--ink); font-weight: 700; }
.lang-pick label { display: inline-flex; align-items: center; gap: 6px; }
.lang-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.lang-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; color: var(--ink); }
.lang-opt span { font-size: 1.3rem; line-height: 1; } .lang-opt small { color: var(--ink-3); font-size: .76rem; }
.lang-opt.on { border-color: var(--red); background: var(--red-50); }
.nav-new { white-space: nowrap; flex: none; }
/* longer labels in other languages must never widen the tab bar */
.tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tabbar a { min-width: 0; padding: 0 2px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[lang="fr"] .tabbar a, html[lang="pt"] .tabbar a, html[lang="sw"] .tabbar a { font-size: 10.5px; letter-spacing: -.1px; }

/* ---------------------------------------------------------------- statistics */
.st { max-width: 1120px; margin: 0 auto; }
.st-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 26px 24px; margin-bottom: 14px; border-radius: var(--r-lg); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--red) 18%, transparent), transparent 60%), linear-gradient(-135deg, color-mix(in srgb, var(--saffron) 16%, var(--surface)), var(--surface) 70%); border: 1px solid var(--line); }
.st-hero h1 { margin: 6px 0 6px; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.st-hero p { margin: 0; color: var(--ink-2); max-width: 520px; }
.st-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.st-live { width: 8px; height: 8px; border-radius: 50%; background: #1FA855; box-shadow: 0 0 0 0 rgba(31,168,85,.5); animation: stlive 2s infinite; }
@keyframes stlive { 70% { box-shadow: 0 0 0 8px rgba(31,168,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,168,85,0); } }
.st-big { text-align: left; display: flex; flex-direction: column; align-items: flex-end; }
.st-big b { font-family: var(--display); font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }
.st-big > span { font-weight: 700; color: var(--ink-2); }
.st-big small { margin-top: 6px; color: var(--ink-3); font-size: .84rem; }
.st-up { color: var(--green); font-weight: 750; } .st-down { color: var(--red); font-weight: 750; }
@media (max-width: 640px) { .st-big { text-align: right; align-items: flex-start; } .st-hero { padding: 20px 16px; } }
.st-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 1000px) { .st-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.st-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-tile .st-ic { font-size: 1.1rem; }
.st-tile b { font-family: var(--display); font-size: 1.45rem; line-height: 1.15; }
.st-tile small { color: var(--ink-3); font-size: .78rem; line-height: 1.25; }
.st-card { padding: 18px 18px 14px; margin-bottom: 14px; }
.st-card h2 { font-size: 1.08rem; margin: 0 0 2px; }
.st-card p { margin: 0; }
.st-card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.st-card-h.st-sub { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.st-range a { cursor: pointer; }
.st-sum { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 4px 0 10px; }
.st-sum div { display: flex; flex-direction: column; }
.st-sum b { font-family: var(--display); font-size: 1.35rem; }
.st-sum span { font-size: .8rem; color: var(--ink-3); }
.st-chart { position: relative; }
.ch { width: 100%; height: auto; display: block; overflow: visible; }
.ch-bar { fill: var(--red); }
.ch-bar.hot { fill: color-mix(in srgb, var(--red) 70%, var(--ink)); }
.ch-line { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ch-area { fill: var(--red); opacity: .10; }
.ch-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; } .ch-grid.base { stroke: var(--line-2); }
.ch-ylab, .ch-xlab, .ch-avg-lab { fill: var(--ink-3); font-size: 11px; font-family: var(--body); }
.ch-avg { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: .7; }
.ch-avg-lab { fill: var(--ink-2); font-weight: 650; }
.ch-hit { fill: transparent; cursor: crosshair; }
.ch-cross { stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-dot { fill: var(--red); stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.st-tip { position: fixed; z-index: 200; pointer-events: none; background: var(--ink); color: var(--surface); border-radius: 10px; padding: 7px 10px; font-size: .8rem; line-height: 1.3; box-shadow: var(--shadow); transform: translate(50%, calc(-100% - 12px)); white-space: nowrap; }
.st-tip b { display: block; font-size: .92rem; }
.st-table { margin-top: 10px; font-size: .86rem; }
.st-table summary { cursor: pointer; color: var(--ink-2); font-weight: 650; }
.st-table-in { max-height: 280px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; }
.st-table table { width: 100%; border-collapse: collapse; } .st-table th, .st-table td { padding: 6px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.st-table th { position: sticky; top: 0; background: var(--surface-2); font-size: .78rem; color: var(--ink-3); } .st-table td:not(:first-child), .st-table th:not(:first-child) { text-align: left; font-variant-numeric: tabular-nums; }
.st-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.st-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .st-three, .st-two { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.st-mini-h { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.st-mini-h b { font-family: var(--display); font-size: 1.3rem; }
.st-mini .st-chart { margin-top: 8px; }
.st-bars { display: flex; flex-direction: column; gap: 6px; }
.st-bar-row { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 44px; align-items: center; gap: 10px; color: var(--ink); font-size: .88rem; padding: 3px 4px; border-radius: 8px; }
.st-bar-row:hover { background: var(--hover); }
.st-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-bar-track { height: 12px; border-radius: 4px; background: var(--hover); overflow: hidden; }
.st-bar-fill { display: block; height: 100%; background: var(--red); border-radius: 4px 0 0 4px; }
.st-bar-val { text-align: left; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-note { margin-top: 10px !important; }
.st-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 4px; }
.st-cell { aspect-ratio: 1; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--ink); background: var(--hover); border: 1px solid transparent; }
.st-cell .flag { font-size: 1.15rem; line-height: 1; } .st-cell b { font-size: .68rem; font-variant-numeric: tabular-nums; }
.st-cell.l1 { background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.st-cell.l2 { background: color-mix(in srgb, var(--red) 26%, var(--surface)); }
.st-cell.l3 { background: color-mix(in srgb, var(--red) 42%, var(--surface)); }
.st-cell.l4 { background: color-mix(in srgb, var(--red) 62%, var(--surface)); color: #fff; }
.st-cell.l5 { background: var(--red); color: #fff; }
a.st-cell:hover { border-color: var(--ink); }
.st-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: .74rem; color: var(--ink-3); }
.st-legend i { width: 16px; height: 16px; aspect-ratio: auto; border-radius: 4px; }
.st-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 170px; align-items: end; }
.st-wd { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: default; }
.st-wd-bar { flex: 1; width: 100%; max-width: 46px; display: flex; align-items: flex-end; }
.st-wd-bar i { display: block; width: 100%; background: var(--red); border-radius: 4px 4px 0 0; }
.st-wd:hover .st-wd-bar i { background: color-mix(in srgb, var(--red) 70%, var(--ink)); }
.st-wd small { font-size: .76rem; color: var(--ink-3); font-weight: 650; }
.st-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.st-facts a { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.st-facts a:hover { border-color: var(--line-2); }
.st-facts span { font-size: 1.15rem; } .st-facts b { font-family: var(--display); font-size: 1.35rem; } .st-facts small { color: var(--ink-3); font-size: .78rem; }
.st-list { display: flex; flex-direction: column; }
.st-list a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); color: var(--ink); }
.st-list a:first-child { border-top: 0; }
.st-list a:hover { background: var(--surface-2); }
.st-rank { width: 22px; text-align: center; font-weight: 800; color: var(--ink-3); font-size: .86rem; }
.st-list-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.st-list b { font-variant-numeric: tabular-nums; }
.st-foot { text-align: center; margin: 8px 0 20px; }
.st-foot a { color: var(--red); font-weight: 700; }
.ch-wrap { position: relative; height: var(--h); }
@media (max-width: 640px) { .ch-wrap:not(.bare) { height: calc(var(--h) * .8); } }
.ch-wrap .ch { width: 100%; height: 100%; }
.ch-ylab, .ch-xlab, .ch-avg-lab { position: absolute; font-size: 11px; color: var(--ink-3); line-height: 1; pointer-events: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-ylab { transform: translateY(-50%); }
.ch-xlab { bottom: 2px; } .ch-xlab.mid { transform: translateX(50%); } .ch-xlab.end { transform: translateX(100%); }
.ch-avg-lab { transform: translateY(calc(-100% - 3px)); color: var(--ink-2); font-weight: 650; background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 1px 4px; border-radius: 4px; }
.ch-dot { position: absolute; width: 10px; height: 10px; margin: -5px -5px 0 0; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.st-card.is-loading { opacity: .55; transition: opacity .15s; }
.st-three > .card, .st-two > .card { margin-top: 0; }
.st-cell .flag { font-size: 1.5rem; }
.st-map { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
@media (max-width: 640px) {
  .ch-xlab.mid:not(.keep) { display: none; }
  .st-card-h { flex-direction: column; align-items: stretch; }
  .st-range { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .st-range a { text-align: center; padding-right: 4px; padding-left: 4px; font-size: .8rem; white-space: nowrap; }
  .st-sum { gap: 8px 20px; }
}
@media (max-width: 640px) { .st-range a { white-space: normal; line-height: 1.15; display: flex; align-items: center; justify-content: center; min-height: 36px; } }
.st-range { max-width: 100%; }
/* header must always fit the phone, whatever the language */
@media (max-width: 480px) {
  .top-in { gap: 8px; }
  .top-actions { gap: 6px; min-width: 0; }
  .top-actions .btn-sm { padding: 0 11px; font-size: .84rem; white-space: nowrap; }
  .brand { min-width: 0; }
}
@media (max-width: 400px) {
  .brand { font-size: 1.12rem; gap: 7px; } .brand img { width: 30px; height: 30px; }
}
@media (max-width: 340px) { .brand > span { display: none; } }

.top-login .i { display: none; width: 20px; height: 20px; }
@media (max-width: 400px) { .top-login { width: 40px; padding: 0 !important; justify-content: center; } .top-login .i { display: block; } .top-login span { display: none; } }

/* ---------------------------------------------------------------- profile header: no fixed paddings (a wrapped button row left a big gap) */
.profile-head { align-items: flex-end; row-gap: 10px; }
.profile-head .av-wrap { align-self: flex-start; }
.profile-head .who { padding-top: 0; margin-top: 54px; align-self: flex-end; padding-bottom: 4px; }
.profile-head .acts { padding-top: 0; align-self: flex-end; margin-right: auto; padding-bottom: 6px; }
.profile-head .handle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 2px; }
@media (max-width: 640px) {
  .profile-head .who { margin-top: 54px; padding-top: 0; }
  .profile-head .acts { margin-right: 0; width: 100%; padding-bottom: 0; }
  .profile-head .acts .btn { flex: 1; justify-content: center; }
  .profile-head .acts .menu { flex: none; }
}
@media (min-width: 641px) { .profile-head .acts { flex-basis: 100%; margin-right: 0; padding-right: 128px; padding-bottom: 0; } }
.comm-head .acts { padding-top: 0; align-self: flex-end; }
.cron-cmd { white-space: pre-wrap; word-break: break-all; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .82rem; user-select: all; }

/* ---------------------------------------------------------------- vanity metrics */
.pc-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; font-size: .78rem; color: var(--ink-3); margin: 4px 0 2px; }
.pc-stats b { color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; }
.post-views { display: inline-flex; white-space: nowrap; align-items: center; gap: 4px; color: var(--ink-3); font-size: .85rem; font-variant-numeric: tabular-nums; }
.post-views .i { width: 15px; height: 15px; }
.profile-counts { flex-wrap: wrap; gap: 6px 18px; }
.profile-counts span { color: var(--ink-3); }
.pc-week { margin: -8px 8px 14px; font-size: .86rem; font-weight: 650; color: var(--green); }

/* ---- UI polish 28h ---- */
@media (max-width: 600px) {
  form.filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  form.filter-bar > input[type=search] { grid-column: 1 / -1; }
  form.filter-bar .input, form.filter-bar .select { width: 100%; flex: none; }
  form.filter-bar > button:last-child:nth-child(even) { grid-column: 1 / -1; }
  form.filter-bar > button { justify-content: center; }
}
/* phone home: compact progress card so the composer and feed stay above the fold */
.only-narrow .game-card { padding: 12px 14px; }
.only-narrow .game-card .lvl-ring { transform: scale(.8); margin: -6px; }
.only-narrow .game-card .xpbar { margin-top: 8px; }
.only-narrow .game-card .quests { margin-top: 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; }
.only-narrow .game-card .quests::-webkit-scrollbar { display: none; }
.only-narrow .game-card .quests-h, .only-narrow .game-card .game-foot { display: none; }
.only-narrow .game-card .quest { flex: none; padding: 5px 5px 5px 10px; gap: 6px; border: 1px solid var(--line); border-radius: var(--pill); font-size: .8rem; white-space: nowrap; }
.only-narrow .game-card .quest .q-ic { width: 22px; height: 22px; font-size: .75rem; }
.only-narrow .game-card .quest .q-n { font-weight: 700; color: var(--ink-3); }
.only-narrow .game-card .quest.done { order: 9; }
.item-desc { margin-top: 16px; }
.item-gallery .main-img:has(> .empty) { aspect-ratio: 5/2; }
@media (max-width: 899px) {
  .item-layout > div:first-child { display: contents; }
  .item-layout .item-gallery { order: 1; }
  .item-layout > aside { order: 2; }
  .item-layout .item-desc { order: 3; margin-top: 0; }
}
.notif, .notif:hover { color: var(--ink); }
@media (max-width: 600px) {
  .profile-game .badges-row { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .profile-game .badges-row::-webkit-scrollbar { display: none; }
  .profile-game .bdg { flex: none; }
}
@media (max-width: 600px) {
  .composer:not(:focus-within):has(textarea:placeholder-shown):not(:has(.composer-previews figure)) .composer-bar > select { display: none; }
  .composer-bar .btn[type=submit] { margin-right: auto; }
  .composer textarea { min-height: 44px; }
}

/* ---- Say hello (sign-up step 3) ---- */
.hello { max-width: 620px; }
.hello-steps { display: flex; gap: 6px; justify-content: center; margin: 4px 0 18px; }
.hello-steps i { width: 34px; height: 5px; border-radius: 9px; background: var(--line); }
.hello-steps i.on { background: var(--red); }
.hello-head { text-align: center; margin-bottom: 18px; }
.hello-head h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 6px 0 8px; }
.hello-head p { color: var(--ink-2); max-width: 480px; margin: 0 auto; }
.hello-wave { font-size: 3rem; display: inline-block; animation: wave 1.8s ease-in-out 2; transform-origin: 30% 70%; }
@keyframes wave { 10%, 30% { transform: rotate(-14deg); } 20% { transform: rotate(8deg); } 40%, 100% { transform: rotate(0); } }
.hello-card { display: flex; flex-direction: column; gap: 12px; }
.hello-who { display: flex; gap: 10px; align-items: center; }
.hello-who b { display: block; }
.hello-who .muted { display: inline-flex; gap: 4px; align-items: center; }
.hello-who .i { width: 14px; height: 14px; }
.hello-text { min-height: 230px; font-size: 1.02rem; line-height: 1.5; }
.hello-previews { display: flex; gap: 8px; flex-wrap: wrap; }
.hello-previews:empty { display: none; }
.hello-previews img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); }
.hello-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hello-skip { text-align: center; color: var(--ink-3); font-size: .9rem; }
.hello-h2 { font-size: 1.05rem; margin: 26px 0 10px; }
.hello-recent { display: grid; gap: 10px; }
.hello-ex { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.hello-ex:hover { color: inherit; border-color: var(--ink-3); }
.hello-ex-top { display: flex; align-items: center; gap: 8px; }
.hello-ex-t { color: var(--ink-2); font-size: .92rem; }
.hello-nudge { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px 16px; border-color: color-mix(in srgb, var(--red) 35%, var(--line)); background: color-mix(in srgb, var(--red-50) 45%, var(--surface)); }
.hello-nudge:hover { color: inherit; }
.hello-nudge-ic { font-size: 1.9rem; flex: none; }
.hello-nudge b { display: block; }
.hello-nudge small { display: block; color: var(--ink-2); font-size: .86rem; margin-top: 2px; }
.hello-nudge .btn { margin-right: auto; flex: none; }
@media (max-width: 480px) { .hello-nudge { flex-wrap: wrap; } .hello-nudge > span:nth-child(2) { flex: 1 1 60%; } .hello-nudge .btn { width: 100%; justify-content: center; } }

/* ---- Say welcome strip ---- */
.wstrip { margin: 0 0 16px; }
.wstrip-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.wstrip-h h2 { font-size: 1.05rem; margin: 0; }
.wstrip-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.wstrip-row::-webkit-scrollbar { display: none; }
.wcard { flex: 0 0 min(260px, 78%); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wcard.done { opacity: .75; }
.wcard-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.wcard-top:hover { color: inherit; }
.wcard-top > span { min-width: 0; }
.wcard-top b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcard-top small { display: block; color: var(--ink-3); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard-t { font-size: .88rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.wcard-t:hover { color: var(--ink); }
.wcard-a { display: flex; gap: 6px; align-items: center; }
.wcard-a .btn-red { flex: 1; justify-content: center; }
.wcard-ok { flex: 1; display: inline-flex; gap: 5px; align-items: center; justify-content: center; color: var(--green); font-weight: 700; font-size: .88rem; height: 32px; }
.wcard-ok .i { width: 15px; height: 15px; }

/* ---- composer idea prompts ---- */
.composer-ideas { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; margin: 4px 56px 0 0; padding-bottom: 2px; }
.composer-ideas::-webkit-scrollbar { display: none; }
.composer:has(textarea:not(:placeholder-shown)) .composer-ideas { display: none; }
.composer-ideas .ci-l { flex: none; }
.composer-ideas .ci { flex: none; border: 1px dashed var(--line); background: none; color: var(--ink-2); border-radius: var(--pill); padding: 5px 11px; font: inherit; font-size: .8rem; cursor: pointer; white-space: nowrap; }
.composer-ideas .ci:hover { border-style: solid; border-color: var(--red); color: var(--ink); }
@media (max-width: 600px) { .composer-ideas { margin-right: 0; } }
.funnel .table-wrap { overflow-x: auto; margin-top: 14px; }
.funnel-t { width: 100%; font-size: .86rem; border-collapse: collapse; white-space: nowrap; }
.funnel-t th, .funnel-t td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--line); }
.funnel-t th { font-size: .78rem; color: var(--ink-3); font-weight: 650; }
.funnel-tot td { border-bottom: 0; border-top: 2px solid var(--line); }
.fbar { display: inline-block; min-width: 46px; padding: 2px 6px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; background: linear-gradient(-90deg, color-mix(in srgb, var(--green) 30%, transparent) var(--p), var(--hover) var(--p)); }

/* =================== Dating =================== */
.dt-head { margin-bottom: 14px; }
.dt-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dt-title h1 { margin: 0; }
.dt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.dt-tabs::-webkit-scrollbar { display: none; }
.dt-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; font-weight: 650; color: var(--ink-3); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.dt-tabs a .i { width: 17px; height: 17px; }
.dt-tabs a.on { color: var(--ink); border-color: var(--red); }
.dt-tabs .badge { background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; padding: 1px 7px; border-radius: var(--pill); }
.dt-tabs .badge.soft { background: var(--hover); color: var(--ink-2); }
.dt-intro { color: var(--ink-2); margin: 0 0 14px; }
.dt-h2 { font-size: 1.05rem; margin: 26px 0 10px; }
.dt-setup { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-color: color-mix(in srgb, var(--red) 40%, var(--line)); background: linear-gradient(-120deg, color-mix(in srgb, var(--red-50) 70%, var(--surface)), var(--surface)); }
.dt-setup.soft { border-color: var(--line); background: var(--surface); }
.dt-setup:hover { color: inherit; }
.dt-setup b { display: block; }
.dt-setup small { display: block; color: var(--ink-2); font-size: .86rem; margin-top: 2px; }
.dt-setup .btn { margin-right: auto; flex: none; }
.dt-setup-ic { font-size: 2rem; flex: none; }
.dt-ring { --p: 0; flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--red) calc(var(--p) * 1%), var(--hover) 0); position: relative; }
.dt-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.dt-ring b { position: relative; font-size: .84rem; font-variant-numeric: tabular-nums; }
.dt-filters { padding: 0; margin-bottom: 12px; overflow: hidden; }
.dt-filters summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; font-size: .92rem; color: var(--ink-2); }
.dt-filters summary::-webkit-details-marker { display: none; }
.dt-filters summary > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-filters summary b { color: var(--ink); }
.dt-filters summary .i { width: 18px; height: 18px; flex: none; }
.dt-f-edit { font-weight: 700; color: var(--red); flex: none; }
.dt-filters[open] summary { border-bottom: 1px solid var(--line); }
.dt-fform { padding: 14px 16px; display: grid; gap: 12px; }
.dt-frow { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 10px; }
.dt-flabel { font-size: .86rem; font-weight: 650; color: var(--ink-3); }
.dt-fform .seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.dt-fform .select { max-width: 320px; }
.dt-age { display: flex; align-items: center; gap: 8px; }
.dt-age .input { width: 84px; text-align: center; }
.dt-checks { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.dt-checks .check { margin: 0; }
.dt-fbtns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) { .dt-frow { grid-template-columns: 1fr; gap: 6px; } .dt-fform .select { max-width: none; } }
.dt-count { margin: 4px 0 10px; }
.dt-more { text-align: center; margin: 18px 0; }
.dt-safe { display: block; margin-top: 22px; }
.dt-safe a { color: var(--red); }
.dt-safe .i { width: 15px; height: 15px; vertical-align: -3px; margin-left: 4px; }
.dt-faces { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.dt-faces a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .82rem; color: var(--ink-2); flex: none; }

/* cards */
.dgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
@media (max-width: 520px) { .dgrid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s ease, opacity .35s ease; }
.dcard.gone-like { transform: translateX(-40px) rotate(-4deg); opacity: 0; }
.dcard.gone-pass { transform: translateX(40px) rotate(4deg); opacity: 0; }
.dcard-ph { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--hover); overflow: hidden; }
.dcard-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dcard-ph:hover img { transform: scale(1.03); }
.dcard-ph > .av { width: 100%; height: 100%; border-radius: 0; font-size: 3rem; }
.dcard-shade { position: absolute; inset: auto 0 0 0; padding: 40px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; }
.dcard-shade b { display: flex; align-items: center; gap: 5px; font-size: 1.08rem; line-height: 1.2; }
.dcard-shade b .online-dot { position: static; border-color: transparent; }
.dcard-shade small { display: block; font-size: .8rem; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard-pct { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; font-weight: 800; font-size: .78rem; padding: 3px 8px; border-radius: var(--pill); backdrop-filter: blur(4px); }
.dcard-n { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 7px; border-radius: var(--pill); display: inline-flex; gap: 4px; align-items: center; }
.dcard-n .i { width: 12px; height: 12px; }
.dcard-body { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 36px; }
.dchip { align-self: flex-start; display: inline-flex; gap: 5px; align-items: center; font-size: .76rem; font-weight: 650; padding: 3px 9px; border-radius: var(--pill); background: color-mix(in srgb, var(--red-50) 70%, var(--surface)); color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dchip.big { font-size: .88rem; padding: 5px 12px; white-space: normal; }
.dcard-common { display: flex; gap: 4px; flex-wrap: wrap; }
.dcard-common i { font-style: normal; font-size: .72rem; padding: 2px 7px; border-radius: var(--pill); border: 1px solid color-mix(in srgb, var(--green) 45%, var(--line)); color: var(--ink-2); white-space: nowrap; }
.dcard-about { margin: 0; font-size: .82rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard-act { display: flex; gap: 8px; justify-content: center; padding: 8px 12px 12px; }
.dcard-act .btn { flex: 1; justify-content: center; }
.dbtn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: transform .15s ease, background .15s; color: var(--ink-3); }
.dbtn .i { width: 22px; height: 22px; }
.dbtn:hover { transform: scale(1.08); }
.dbtn.like { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.dbtn.like .i { fill: currentColor; }
.dbtn.like.on, .dbtn.like:active { background: var(--red); color: #fff; }
.dbtn.pass.on { background: var(--ink-3); color: var(--surface); }
.dbtn.big { width: 58px; height: 58px; }
.dbtn.big .i { width: 26px; height: 26px; }
.dbtn.pop { animation: likepop .45s ease; }
@keyframes likepop { 40% { transform: scale(1.25); } }

/* match pop-up */
.dmatch { position: fixed; inset: 0; z-index: 200; background: rgba(10,6,6,.72); display: grid; place-items: center; padding: 16px; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } }
.dmatch-box { background: var(--surface); border-radius: 22px; padding: 26px 22px 18px; width: min(380px, 100%); text-align: center; display: grid; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); animation: popin .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes popin { from { transform: scale(.85); opacity: 0; } }
.dmatch-hearts { font-size: 2.6rem; }
.dmatch-box h2 { margin: 0; font-size: 1.7rem; background: linear-gradient(-135deg, var(--red), var(--saffron)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dmatch-box p { margin: 0; color: var(--ink-2); }
.dmatch-avs { display: flex; justify-content: center; margin: 8px 0 6px; }
.dmatch-avs img, .dmatch-av { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); background: var(--hover); box-shadow: var(--shadow); }
.dmatch-avs > :first-child { transform: rotate(8deg); margin-left: -16px; }
.dmatch-avs > :last-child { transform: rotate(-8deg); }

/* dating profile */
.dp-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .dp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .dp-gal { position: sticky; top: calc(var(--top) + 16px); } }
.dp-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--hover); }
.dp-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .3s ease; }
.dp-slide.on { opacity: 1; }
.dp-slide img { width: 100%; height: 100%; object-fit: cover; }
.dp-slide > .av { width: 100%; height: 100%; border-radius: 0; font-size: 4rem; }
.dp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; cursor: pointer; }
.dp-nav .i { width: 20px; height: 20px; }
.dp-nav.prev { right: 10px; }
.dp-nav.next { left: 10px; }
.dp-dots { position: absolute; top: 10px; right: 10px; left: 10px; display: flex; gap: 4px; }
.dp-dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.4); }
.dp-dots i.on { background: #fff; }
.dp-likesyou { position: absolute; bottom: 12px; right: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: .86rem; padding: 5px 12px; border-radius: var(--pill); box-shadow: var(--shadow); }
.dp-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.dp-thumbs button { flex: none; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; opacity: .7; }
.dp-thumbs button.on { border-color: var(--red); opacity: 1; }
.dp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dp-info { display: grid; gap: 12px; }
.dp-top h1 { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dp-age { font-weight: 500; }
.dp-where { margin: 0 0 10px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dp-on { color: var(--green); font-weight: 650; display: inline-flex; align-items: center; gap: 5px; }
.dp-on .online-dot { position: static; }
.dp-match { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--surface-2); margin: 10px 0; }
.dp-match ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: .86rem; color: var(--ink-2); }
.dp-match li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.dp-actions { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.dp-matched { font-weight: 800; color: var(--red); }
.dp-sent { text-align: center; }
.dp-sec h2 { font-size: 1rem; margin: 0 0 10px; }
.dp-about { margin: 0; line-height: 1.55; }
.dp-prompt { padding: 16px 18px; }
.dp-q { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }
.dp-prompt p { margin: 0; font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
.dp-basics, .dp-ints { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-basics span, .dp-ints span { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--line); font-size: .88rem; }
.dp-basics i { font-style: normal; }
.dp-ints span.same { border-color: var(--green); background: color-mix(in srgb, var(--green-50) 70%, var(--surface)); font-weight: 650; }
.dp-foot { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 899px) {
  .dp-actions[data-dp-actions] { position: sticky; bottom: calc(var(--tabbar) + 10px); z-index: 5; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); padding: 8px; border-radius: var(--pill); border: 1px solid var(--line); box-shadow: var(--shadow); }
}

/* dating editor */
.de { max-width: 760px; }
.de-head h1 { margin: 10px 0 4px; }
.de-meter { display: flex; align-items: center; gap: 12px; margin: 14px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.de-meter b { display: block; }
.de-meter small { display: block; color: var(--ink-2); font-size: .84rem; }
.de-meter .btn { margin-right: auto; flex: none; }
.de-sec { margin-bottom: 14px; }
.de-sec h2 { font-size: 1.05rem; margin: 0 0 10px; }
.de-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.de-ph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--hover); margin: 0; }
.de-ph img { width: 100%; height: 100%; object-fit: cover; }
.de-ph.main { outline: 2px solid var(--red); outline-offset: -2px; }
.de-ph-empty { display: grid; place-items: center; height: 100%; color: var(--ink-3); }
.de-ph-tag { position: absolute; top: 6px; right: 6px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: var(--pill); }
.de-ph-btn { position: absolute; right: 6px; left: 6px; bottom: 6px; border: 0; border-radius: var(--pill); background: rgba(0,0,0,.6); color: #fff; font: inherit; font-size: .78rem; font-weight: 700; padding: 5px; display: inline-flex; gap: 4px; justify-content: center; align-items: center; cursor: pointer; }
.de-ph-btn .i { width: 14px; height: 14px; }
.de-ph-del { position: absolute; top: 6px; left: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.de-ph-del .i { width: 15px; height: 15px; }
.de-ph.add { border: 2px dashed var(--line); background: none; }
.de-ph.add label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; cursor: pointer; color: var(--ink-2); font-size: .84rem; font-weight: 650; }
.de-ph.add:hover { border-color: var(--red); }
.de-switch { display: flex; gap: 12px; align-items: center; cursor: pointer; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.de-switch input { position: absolute; opacity: 0; pointer-events: none; }
.de-switch .sw { flex: none; width: 48px; height: 28px; border-radius: 99px; background: var(--hover); border: 1px solid var(--line); position: relative; transition: background .2s; }
.de-switch .sw::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.de-switch input:checked + .sw { background: var(--red); border-color: var(--red); }
.de-switch input:checked + .sw::after { transform: translateX(-20px); }
.de-switch input:focus-visible + .sw { outline: 2px solid var(--red); outline-offset: 2px; }
.de-switch b { display: block; }
.de-switch small { display: block; color: var(--ink-3); font-size: .84rem; }
.de-intents { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.de-intent input, .de-ints input { position: absolute; opacity: 0; pointer-events: none; }
.de-intent span { display: flex; gap: 8px; align-items: center; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; font-weight: 600; font-size: .92rem; height: 100%; }
.de-intent span i { font-style: normal; font-size: 1.2rem; }
.de-intent input:checked + span { border-color: var(--red); background: color-mix(in srgb, var(--red-50) 60%, var(--surface)); }
.de-intent input:focus-visible + span, .de-ints input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.de-prompt { display: grid; gap: 6px; margin-bottom: 12px; }
@media (min-width: 640px) { .de-prompt { grid-template-columns: 240px minmax(0, 1fr); } }
.de-ints { display: flex; flex-wrap: wrap; gap: 6px; }
.de-ints label { position: relative; }
.de-ints span { display: inline-block; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: var(--pill); font-size: .86rem; cursor: pointer; user-select: none; }
.de-ints input:checked + span { border-color: var(--red); background: var(--red); color: #fff; font-weight: 650; }
.de-ints input:disabled + span { opacity: .45; cursor: not-allowed; }
.de-save { position: sticky; bottom: calc(var(--tabbar) + 10px); z-index: 5; display: flex; justify-content: center; margin: 4px 0 10px; }
@media (min-width: 1000px) { .de-save { bottom: 16px; } }
.de-save .btn { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
@media (min-width: 560px) and (max-width: 760px) { .de .row3 { grid-template-columns: 1fr 1fr; } }
.de { margin: 0 auto; }
.dp-intent { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 4px; }
.dt-title h1 { white-space: nowrap; min-width: 0; }
.dt-mine { flex: none; }
@media (max-width: 480px) { .dt-mine span { display: none; } .dt-mine { width: 38px; height: 38px; padding: 0; justify-content: center; } }
.dp-grid > *, .dp-info > * { min-width: 0; }

/* =================== Sign-up (email first) =================== */
.su { max-width: 1120px; margin: 0 auto; padding: 22px 16px 40px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "card" "more"; }
@media (min-width: 900px) { .su { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "hero card" "more card"; column-gap: 48px; padding-top: 48px; align-items: start; } }
.su-hero { grid-area: hero; }
.su-card { grid-area: card; padding: 22px 20px; box-shadow: 0 10px 40px rgba(0,0,0,.08); border-radius: 22px; }
@media (min-width: 900px) { .su-card { position: sticky; top: calc(var(--top) + 20px); padding: 28px 26px; } }
.su-more { grid-area: more; display: grid; gap: 18px; }
.su-kicker { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 5px 11px; border-radius: var(--pill); }
.su-hero h1 { font-size: clamp(1.9rem, 6vw, 3.3rem); line-height: 1.05; letter-spacing: -.02em; margin: 14px 0 10px; }
.su-sub { font-size: clamp(1rem, 2.4vw, 1.18rem); color: var(--ink-2); margin: 0; max-width: 560px; line-height: 1.5; }
.su-card h2 { margin: 0 0 14px; font-size: 1.3rem; }
.su-ref { display: flex; gap: 10px; align-items: center; }
.su-err-act { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.su-for { border: 0; padding: 0; margin: 0 0 14px; }
.su-for legend { font-size: .9rem; font-weight: 650; margin-bottom: 8px; padding: 0; }
.su-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.su-chips label { position: relative; }
.su-chips input { position: absolute; opacity: 0; pointer-events: none; }
.su-chips span { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 650; font-size: .92rem; cursor: pointer; height: 100%; transition: border-color .15s, background .15s; }
.su-chips span i { font-style: normal; font-size: 1.25rem; }
.su-chips span:hover { border-color: var(--ink-3); }
.su-chips input:checked + span { border-color: var(--red); background: color-mix(in srgb, var(--red-50) 65%, var(--surface)); }
.su-chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.input-lg { height: 50px; font-size: 1.05rem; }
.su .pw-wrap button { top: 5px; }
.su-go { margin-top: 4px; font-size: 1.1rem; height: 54px; }
.su-terms { font-size: .78rem; color: var(--ink-3); margin: 10px 0 0; text-align: center; line-height: 1.45; }
.su-terms a { color: var(--ink-2); text-decoration: underline; }
.su-trust { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .85rem; color: var(--ink-2); }
.su-trust li { display: flex; gap: 8px; align-items: center; }
.su-trust .i { width: 16px; height: 16px; color: var(--green); flex: none; }
.su-login { text-align: center; margin: 14px 0 0; font-size: .92rem; }
.su-login a { color: var(--red); font-weight: 700; }
.su-proof { display: flex; flex-wrap: wrap; gap: 10px; }
.su-proof div { flex: 1 1 120px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.su-proof b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.su-proof span { font-size: .84rem; color: var(--ink-3); }
.su-faces { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 4px; }
.su-face { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 62px; }
.su-face .av { box-shadow: 0 0 0 3px var(--bg); }
.su-face small { font-size: .72rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62px; }
.su-faces-l { flex-basis: 100%; font-size: .82rem; color: var(--ink-3); }
.su-bens { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.su-bens li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.su-bens li > span { font-size: 1.6rem; line-height: 1; }
.su-bens b { display: block; margin-bottom: 2px; }
.su-bens small { color: var(--ink-2); font-size: .86rem; line-height: 1.4; }
@media (max-width: 899px) { .su-hero h1 { margin-top: 10px; } .su-sub { font-size: .98rem; } }

/* ---- onboarding steps ---- */
.wz { max-width: 560px; }
.wz-top { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 16px; }
.wz-top .hello-steps { margin: 0; }
.wz-count { font-size: .8rem; color: var(--ink-3); font-weight: 650; }
.wz-head { text-align: center; margin-bottom: 16px; }
.wz-head h1 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); margin: 4px 0 6px; }
.wz-head p { color: var(--ink-2); margin: 0 auto; max-width: 440px; }
.wz-emoji { font-size: 2.4rem; }
.wz-card { display: grid; gap: 4px; padding: 20px; }
.wz-card .su-for { margin-top: 6px; }
.wz-more { margin: 4px 0 14px; font-size: .9rem; color: var(--ink-2); }
.wz-more summary { cursor: pointer; list-style: none; }
.wz-more summary::-webkit-details-marker { display: none; }
.wz-edit { color: var(--red); font-weight: 700; margin-right: 4px; }
.wz-photo { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px; }
.wz-photo h2 { margin: 6px 0 0; }
.wz-skip { text-align: center; margin: 14px 0; font-size: .9rem; }
.wz-skip a { color: var(--ink-3); }
.funnel-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; margin: 12px 0 0; }
.funnel-steps span { background: var(--hover); padding: 3px 9px; border-radius: var(--pill); }

/* ---- post box stands out from the feed ---- */
.composer { position: relative; border-color: color-mix(in srgb, var(--red) 28%, var(--line)); background: linear-gradient(-180deg, color-mix(in srgb, var(--red-50) 38%, var(--surface)), var(--surface) 70%); box-shadow: 0 6px 22px rgba(0,0,0,.07); }
.composer::before { content: ""; position: absolute; right: 18px; left: 18px; top: -1px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(-90deg, var(--red), var(--saffron), var(--green)); opacity: .9; }
.composer textarea { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; min-height: 52px; transition: border-color .15s, box-shadow .15s, background .15s; }
.composer textarea::placeholder { color: var(--ink-2); }
.composer textarea:hover { border-color: var(--ink-3); }
.composer textarea:focus { background: var(--surface); border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent); }
.composer:focus-within { box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.composer-bar { border-top: 0; margin-top: 8px; padding-top: 4px; }
.composer-bar > select { height: 32px; min-height: 32px; padding: 0 10px 0 28px; font-size: .82rem; border-radius: var(--pill); background-color: transparent; border: 1px solid var(--line); color: var(--ink-2); width: auto; max-width: 150px; background-position: left 9px center; }
.composer-bar > select:hover { border-color: var(--ink-3); color: var(--ink); }
.composer-bar .btn[type=submit] { margin-right: auto; padding-inline: 22px; }
.composer:has(textarea:placeholder-shown) .composer-bar .btn[type=submit]:not(:hover) { opacity: .75; }
.composer-ideas { margin-top: 8px; }
.composer-bar > select { flex: 0 0 auto; }

/* ---- Photos tab: grid of posted photos ---- */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
@media (max-width: 420px) { .pgrid { gap: 3px; margin-inline: -4px; } }
.ptile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--hover); }
@media (max-width: 420px) { .ptile { border-radius: 4px; } }
.ptile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ptile:hover img { transform: scale(1.04); }
.ptile-n { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 3px; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 6px; border-radius: var(--pill); }
.ptile-n .i { width: 12px; height: 12px; }
.ptile-info { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 26px 8px 7px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .78rem; opacity: 0; transition: opacity .2s; }
.ptile:hover .ptile-info, .ptile:focus-visible .ptile-info { opacity: 1; }
@media (hover: none) { .ptile-info { opacity: 1; padding-top: 20px; } .ptile-who .av { display: none; } }
.ptile-who { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ptile-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.ptile-who .av { width: 22px; height: 22px; font-size: .6rem; flex: none; }
.ptile-st { display: flex; gap: 6px; flex: none; font-weight: 700; }
@media (max-width: 420px) { .ptile-st { display: none; } }
.feed-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tabs .chip { flex: none; }

/* ---- Arabic / right-to-left (app.rtl.css is generated from this file with rtlcss) ---- */
[lang="ar"] body, [lang="ar"] button, [lang="ar"] input, [lang="ar"] select, [lang="ar"] textarea { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", system-ui, sans-serif; }
[lang="ar"] * { letter-spacing: 0 !important; }
[lang="ar"] body { line-height: 1.6; }
[dir="rtl"] svg:has(use[href="#i-chevron"]), [dir="rtl"] svg:has(use[href="#i-back"]), [dir="rtl"] svg:has(use[href="#i-send"]), [dir="rtl"] .arr { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .brand, [dir="rtl"] [data-notr] { unicode-bidi: isolate; }
/* members' own words keep their own direction inside the Arabic layout (English bios, French posts...) */
[dir="rtl"] :is(.post-text, .prose, .comment-text, .bubble, .bio, .dp-about, .dcard-about, .chat-about, .pv, .fb-body, .wcard-t, .hello-ex-t, .dp-prompt p, .notif .txt > span, textarea, input) { unicode-bidi: plaintext; text-align: start; }
