:root {
  --bg: #f4f5f8;
  --card: #ffffff;
  --text: #16171d;
  --muted: #6b6f7b;
  --line: #e4e6ec;
  --hover: #eef0f5;
  --accent: var(--accent-l, #8a6cff);
  --accent-soft: color-mix(in srgb, var(--accent) 13%, #ffffff);
  --red: #e5484d;
  --avatar-bg: #c9cdd5;
  --avatar-fg: #ffffff;
  --radius: 16px;
  color-scheme: light;
}
/* Dark palette: follows the system unless Settings forces a theme (html[data-theme]). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1014;
    --card: #18191f;
    --text: #ececf1;
    --muted: #9a9dab;
    --line: #2a2c35;
    --hover: #22242c;
    --accent: var(--accent-d, #b9a6ff);
    --accent-soft: color-mix(in srgb, var(--accent) 20%, #18191f);
    --avatar-bg: #3a3d47;
    --avatar-fg: #8a8f9d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1014;
  --card: #18191f;
  --text: #ececf1;
  --muted: #9a9dab;
  --line: #2a2c35;
  --hover: #22242c;
  --accent: var(--accent-d, #b9a6ff);
  --accent-soft: color-mix(in srgb, var(--accent) 20%, #18191f);
  --avatar-bg: #3a3d47;
  --avatar-fg: #8a8f9d;
  color-scheme: dark;
}
html[data-font-size="small"] #app { zoom: .92; }
html[data-font-size="large"] #app { zoom: 1.1; }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.content a, .bio a, .cbody a, .bubble a { color: var(--accent); }
button, input, textarea { font: inherit; color: inherit; }
input, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  outline: none;
  transition: border-color .15s;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: none; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.02em; }
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, opacity .15s;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { opacity: .9; }
.btn.live-btn { background: var(--red); border-color: var(--red); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn.block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--muted);
  cursor: pointer; flex-shrink: 0; font-size: 18px;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.link { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: inherit; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.avatar {
  display: inline-grid; place-items: center;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.avatar.default { background: var(--avatar-bg); overflow: hidden; }
.avatar.default svg { width: 100%; height: 100%; fill: var(--avatar-fg); }
a.mention { color: var(--accent); font-weight: 600; }
a.mention:hover, .content a:hover, .bio a:hover, .cbody a:hover { text-decoration: underline; }
.reset-avatar { justify-self: center; font-size: 13px; color: var(--muted); }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty.small { padding: 24px 12px; font-size: 14px; }
.empty a { color: var(--accent); }
.badge {
  min-width: 19px; height: 19px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
}
.badge.live { background: var(--red); }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700; color: #fff;
}
.pill.red { background: var(--red); }
.pill.dark { background: rgba(0,0,0,.55); }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--hover); color: var(--muted); }

/* ---------- Auth ---------- */
body.auth-mode #app { display: block; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 10% -10%, var(--accent-soft), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 380px; padding: 40px 32px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; text-align: center; }
.auth form { display: grid; gap: 10px; margin-top: 24px; }
.auth .error { color: var(--red); font-size: 14px; min-height: 1.2em; }
.pw { position: relative; }
.pw input { padding-right: 46px; }
.pw input.invalid { border-color: var(--red); }
.pw .eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.pw .eye svg { width: 20px; height: 20px; }
.tagline { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.auth-switch { margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--accent); font-weight: 600; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(255,77,157,.35)); }
.wordmark {
  font-weight: 900; font-style: italic; font-size: 30px; letter-spacing: -.06em; line-height: 1;
  padding-right: .18em; /* room for the italic f, which background-clip would otherwise cut */
  background: linear-gradient(100deg, #7c5cff, #ff4d9d 55%, #ffb547);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo.big { gap: 14px; }
.logo.big .wordmark { font-size: 58px; }
.ai-tag {
  display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 5px;
  background: linear-gradient(100deg, #7c5cff, #ff4d9d); color: #fff;
  font-size: 10px; font-weight: 800; font-style: normal; line-height: 16px; vertical-align: 2px; letter-spacing: .02em;
}
h1 .ai-tag { font-size: 12px; line-height: 18px; vertical-align: 4px; }
.verified { display: inline-grid; place-items: center; margin-left: 3px; color: #1d9bf0; vertical-align: -3px; }
h1 .verified svg { width: 22px; height: 22px; }
.official-row .user-row, .verified-list .user-row { padding: 8px 0; border: 0; }
.official-row .user-row:hover, .verified-list .user-row:hover { background: none; }
.file-btn { cursor: pointer; }
.file-btn svg { width: 18px; height: 18px; }
.file-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.check input { width: auto; }

/* ---------- Shell ---------- */
#app { display: grid; grid-template-columns: 230px minmax(0, 1fr); max-width: 1120px; margin: 0 auto; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 2px;
  padding: 20px 12px;
  border-right: 1px solid var(--line);
}
.side .logo { padding: 4px 12px 20px; }
.nav {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; border: 0; border-radius: 12px;
  background: none; font-size: 16px; cursor: pointer; text-align: left;
  position: relative;
}
.nav:hover { background: var(--hover); }
.nav.active { font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.nav .badge { margin-left: auto; }
.nav.logout { color: var(--muted); }
.nav.me-nav { margin-top: auto; border: 1px solid var(--line); }
.me-label { display: grid; line-height: 1.2; min-width: 0; }
.me-label b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-label small { font-size: 12px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
main { padding: 24px 28px 60px; min-width: 0; }
.page { max-width: 620px; }
.page.messages-page { max-width: none; }
.page-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 16px; min-height: 40px; }
.page-head .back + h1 { margin-right: auto; }
h2.sub { font-size: 14px; color: var(--muted); font-weight: 600; margin: 20px 4px 8px; }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.tabs button { flex: 1; padding: 8px; border: 0; border-radius: 9px; background: none; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.active { background: var(--accent-soft); color: var(--accent); }

/* ---------- Composer & posts ---------- */
.composer { display: flex; gap: 12px; padding: 16px; margin-bottom: 14px; }
.c-body { flex: 1; min-width: 0; }
.composer textarea { border: 0; background: none; padding: 8px 0; font-size: 16px; min-height: 44px; max-height: 300px; }
.c-preview { position: relative; margin: 6px 0; }
.c-preview img, .c-preview video { max-width: 100%; max-height: 320px; border-radius: 12px; display: block; background: #000; }
.c-preview .x { z-index: 1; }
.c-preview .x { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff; }
.c-actions { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.c-actions label { color: var(--accent); }
.count { margin-left: auto; font-size: 13px; color: var(--muted); }
.c-actions .btn { margin-left: auto; }
.count:not(:empty) + .btn { margin-left: 0; }

.feed { display: grid; gap: 14px; }
.post { padding: 16px 16px 6px; animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } }
.post header { display: flex; align-items: center; gap: 8px; }
.author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.author div { display: grid; line-height: 1.3; min-width: 0; }
.author b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author span { color: var(--muted); font-size: 13px; }
.ptime { color: var(--muted); font-size: 13px; margin-left: auto; white-space: nowrap; }
.ptime:hover { text-decoration: underline; }
.post .del { width: 30px; height: 30px; }
.post .del svg { width: 16px; height: 16px; }
.content { margin: 12px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 15.5px; }
.post-img { display: block; width: 100%; max-height: 600px; object-fit: cover; margin-top: 12px; border-radius: 12px; background: var(--hover); cursor: pointer; }
.post-video { display: block; width: 100%; max-height: 600px; margin-top: 12px; border-radius: 12px; background: #000; }
.post footer { display: flex; gap: 4px; margin-top: 8px; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; font-weight: 600; }
.act:hover { background: var(--hover); }
.act svg { width: 20px; height: 20px; }
.like.on { color: var(--red); }
.like.on svg { fill: currentColor; }
.like.pop svg { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
.comments { border-top: 1px solid var(--line); margin: 6px -16px 0; padding: 12px 16px; }
.clist { display: grid; gap: 12px; margin-bottom: 12px; }
.comment { display: flex; gap: 10px; font-size: 14px; }
.cbody { word-break: break-word; }
.cmeta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.cform { display: flex; gap: 8px; align-items: center; }
.cform input { padding: 8px 14px; border-radius: 999px; }
.more { margin-top: 14px; }

/* ---------- Profile & lists ---------- */
.profile { padding: 24px; margin-bottom: 14px; }
.profile-top { display: flex; gap: 22px; align-items: center; }
.avatar-wrap { border-radius: 50%; padding: 3px; }
.avatar-wrap.is-live { background: linear-gradient(135deg, var(--red), #ff9f43); }
.avatar-wrap.is-live .avatar { border: 3px solid var(--card); }
.pinfo { min-width: 0; }
.handle { color: var(--muted); margin-top: 2px; }
.stats { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.stats a:hover { text-decoration: underline; }
.bio { margin: 16px 0 0; white-space: pre-wrap; }
.actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.actions .btn { flex: 1; min-width: 120px; }

.list { overflow: hidden; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.user-row:hover { background: var(--hover); }
.uinfo { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.uinfo span { color: var(--muted); font-size: 13px; }
.uinfo p { margin: 3px 0 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-input { border-radius: 999px; padding: 12px 18px; background: var(--card); }
.stabs { margin-top: 12px; }
.search-body { display: grid; gap: 4px; }
.search-body .row-between h2.sub { margin-bottom: 8px; }
mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

.notif { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--hover); }
.notif.unread { background: var(--accent-soft); }
.notif p { margin: 0; }
.notif time { color: var(--muted); font-size: 13px; }

.settings { display: grid; gap: 16px; padding: 24px; }
.settings label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.avatar-pick { justify-items: center; cursor: pointer; }
.logout-btn { margin-top: 14px; color: var(--red); }

/* ---------- Messages ---------- */
.messages-page { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; height: calc(100dvh - 84px); }
.conv-pane { display: flex; flex-direction: column; min-height: 0; }
.convs { overflow-y: auto; display: grid; align-content: start; gap: 2px; }
.conv { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.conv:hover { background: var(--hover); }
.conv.active { background: var(--accent-soft); }
.cinfo { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.cinfo span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cside { display: grid; justify-items: end; gap: 4px; }
.cside time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.chat { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.chat > .empty { margin: auto; }
.chat header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chat header .back { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 75%; align-self: flex-start; display: flex; align-items: flex-end; gap: 6px; }
.bubble span { padding: 9px 14px; border-radius: 18px 18px 18px 4px; background: var(--hover); white-space: pre-wrap; word-break: break-word; }
.bubble time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.bubble.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble.mine span { background: var(--accent); color: #fff; border-radius: 18px 18px 4px 18px; }
.bubble.mine a { color: #fff; text-decoration: underline; }
.bubble.typing span { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite ease-in-out; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ai-status code, .ai-help code { font-size: 12px; padding: 1px 5px; border-radius: 5px; background: var(--hover); }
.msg-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.msg-form input { border-radius: 999px; }

/* ---------- Live ---------- */
.page:has(.live-layout) { max-width: none; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.live-grid > .empty { grid-column: 1 / -1; }
.live-card { overflow: hidden; transition: transform .15s; }
.live-card:hover { transform: translateY(-2px); }
.thumb { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #c06cf0); }
.thumb .pill.red { position: absolute; top: 10px; left: 10px; }
.thumb .pill.dark { position: absolute; top: 10px; right: 10px; }
.thumb .avatar { border: 3px solid rgba(255,255,255,.85); }
.meta { padding: 12px 14px; display: grid; }
.meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta span { color: var(--muted); font-size: 13px; }

/* The live page fits the viewport so the stage controls and chat are always visible. */
.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; height: calc(100dvh - 112px); min-height: 440px; }
.live-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.stage { position: relative; flex: 1; min-height: 0; background: #000; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.stage .empty { color: #bbb; }
.tiles { position: absolute; inset: 0; display: grid; gap: 3px; }
.tiles[data-count="2"] { grid-template-columns: 1fr 1fr; }
.tiles[data-count="3"], .tiles[data-count="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tiles[data-count="3"] .tile:first-child { grid-row: span 2; }
.tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #111; }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tiles[data-count="1"] .tile video { object-fit: contain; }
.tile.mirror video { transform: scaleX(-1); }
.cam-off { position: absolute; inset: 0; display: none; place-items: center; background: #1c1d24; }
.tile.no-video .cam-off { display: grid; }
.tile-label {
  position: absolute; left: 8px; bottom: 8px;
  display: flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 6px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600;
}
.tiles[data-count="1"] .tile-label { display: none; }
.mic-off { display: inline-grid; color: #ff6b6b; }
.mic-off svg { width: 14px; height: 14px; }
.tile .kick { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; background: rgba(0,0,0,.55); color: #fff; }
.tile .kick svg { width: 14px; height: 14px; }
.ctrl-slot { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4; display: flex; justify-content: center; pointer-events: none; }
.ctrl-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; }
.ctrl-wrap > * { pointer-events: auto; }
.media-ctrls {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 6px; border-radius: 999px; background: rgba(15,15,20,.55); backdrop-filter: blur(10px);
}
.ctrl {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 19px;
  transition: background .15s, transform .1s;
}
.ctrl svg { width: 21px; height: 21px; }
.ctrl:hover { background: rgba(255,255,255,.22); }
.ctrl:active { transform: scale(.94); }
.ctrl.off { background: var(--red); }
.ctrl.on { background: #fff; color: #111; }
.ctrl:disabled { opacity: .4; cursor: default; }
.ctrl.go-live { width: auto; padding: 0 18px; border-radius: 999px; background: var(--red); font-size: 14px; font-weight: 800; white-space: nowrap; }
.ctrl.go-live.on-air { background: #fff; color: var(--red); }
.fx-pop { width: min(560px, calc(100vw - 48px)); }
.fx-panel { display: grid; gap: 6px; padding: 10px; border-radius: 18px; background: rgba(15,15,20,.82); backdrop-filter: blur(12px); color: #fff; }
.fx-tabs { display: flex; gap: 4px; }
.fx-tabs button { flex: 1; padding: 6px; border: 0; border-radius: 10px; background: none; color: #aaa; font-weight: 700; font-size: 13px; cursor: pointer; }
.fx-tabs button.active { background: rgba(255,255,255,.14); color: #fff; }
.fx-row { display: flex; gap: 4px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: thin; }
.fx-status { font-size: 12px; color: #bbb; text-align: center; min-height: 1.2em; }
.fx-panel .fchip { color: #bbb; width: 62px; }
.fx-panel .fchip:hover { background: rgba(255,255,255,.08); }
.fx-panel .fchip.active { color: #fff; }
.fx-panel .fchip.active .fprev { border-color: #fff; box-shadow: 0 0 0 2px #15161b inset; }
.fprev.emoji { background: rgba(255,255,255,.1); font-size: 24px; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
.on-air-text { color: var(--red); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-bar, .unmute { z-index: 2; }
.overlay { z-index: 3; }
.requests { overflow: hidden; }
.req-list { display: grid; }
.req { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.req b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-box { padding: 12px; }
.thumb-avatars { display: flex; }
.thumb-avatars .avatar + .avatar { margin-left: -14px; }
.thumb .collab { position: absolute; bottom: 10px; left: 10px; }
.live-bar { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.unmute { position: absolute; bottom: 12px; right: 12px; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.6); font-weight: 600; }
.live-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.setup, .host { padding: 12px; display: grid; gap: 8px; }
.chat-slot { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.live-chat { flex: 1; min-height: 180px; display: flex; flex-direction: column; overflow: hidden; }
.lc-head { padding: 12px 14px; font-weight: 700; border-bottom: 1px solid var(--line); }
.lc-msgs { flex: 1; overflow-y: auto; padding: 10px 14px; display: grid; align-content: start; gap: 6px; font-size: 14px; }
.lc-msg { word-break: break-word; }
.lc-msg b { color: var(--accent); margin-right: 4px; }
.live-chat form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.live-chat input { padding: 8px 12px; border-radius: 999px; }

/* ---------- Effect chips ---------- */
.fchip {
  flex-shrink: 0; display: grid; justify-items: center; gap: 5px;
  padding: 6px 4px; width: 68px;
  border: 0; border-radius: 12px; background: none; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.fchip:hover { background: var(--hover); }
.fchip.active { color: var(--accent); }
.fprev {
  position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-size: 20px;
  background: radial-gradient(circle at 50% 38%, #f3c7a6 0 22%, transparent 23%),
              radial-gradient(ellipse at 50% 100%, #e05a7a 0 42%, transparent 43%),
              linear-gradient(160deg, #7cc4ff, #ffd58a);
  border: 2px solid transparent;
}
.fprev i { position: absolute; inset: 0; }
.fchip.active .fprev { border-color: var(--accent); box-shadow: 0 0 0 2px var(--card) inset; }

/* ---------- Camera modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.75); }
.cam-box { position: relative; width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto; padding: 14px; border-radius: 20px; background: #15161b; color: #fff; display: grid; gap: 10px; }
.cam-view { position: relative; border-radius: 14px; overflow: hidden; background: #000; min-height: 240px; display: grid; place-items: center; }
.cam-canvas { width: 100%; max-height: 60vh; object-fit: contain; display: block; }
.cam-canvas.mirror { transform: scaleX(-1); }
.cam-loading { color: #aaa; }
.cam-view .icon-btn { position: absolute; top: 10px; background: rgba(0,0,0,.5); color: #fff; }
.cam-close { left: 10px; }
.cam-flip { right: 10px; }
.rec-timer { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 6px; background: var(--red); font-size: 13px; font-weight: 700; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.modal.flashing .flash { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.cam-box .fx-panel { background: rgba(255,255,255,.05); }
.cam-modes { display: flex; justify-content: center; gap: 4px; }
.cam-modes button { padding: 6px 16px; border: 0; border-radius: 999px; background: none; color: #999; font-weight: 700; cursor: pointer; }
.cam-modes button.active { background: rgba(255,255,255,.12); color: #fff; }
.is-recording .cam-modes, .is-recording .cam-flip { opacity: .3; pointer-events: none; }
.cam-actions { display: flex; justify-content: center; padding: 4px 0 6px; }
.shutter { position: relative; width: 68px; height: 68px; border-radius: 50%; border: 4px solid #fff; background: none; cursor: pointer; }
.shutter::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; transition: all .2s; }
.shutter.video::after { background: var(--red); }
.shutter.recording::after { inset: 18px; border-radius: 6px; }
.cam-review { position: absolute; inset: 0; z-index: 2; padding: 14px; background: #15161b; display: flex; flex-direction: column; gap: 12px; }
.review-media { flex: 1; min-height: 0; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: #000; }
.review-media img, .review-media video { max-width: 100%; max-height: 70vh; display: block; }
.review-actions { display: flex; gap: 8px; }
.review-actions .btn { flex: 1; }
.cam-review .btn:not(.primary) { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }

/* ---------- Settings ---------- */
.page.settings-page { max-width: 860px; }
.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: start; }
.set-nav { position: sticky; top: 24px; display: grid; gap: 2px; padding: 8px; }
.set-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.set-nav a:hover { background: var(--hover); }
.set-nav a.active { background: var(--accent-soft); color: var(--accent); }
.set-body { display: grid; gap: 14px; min-width: 0; }
.set-card { padding: 18px; display: grid; gap: 12px; }
.set-card h2 { margin: 0; font-size: 16px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.set-card h2 + .set-row, .set-card .muted + .set-row { border-top: 0; padding-top: 0; }
.set-text { display: grid; gap: 2px; min-width: 0; }
.set-text b { font-size: 15px; }
.set-text span { color: var(--muted); font-size: 13px; }
.set-label { font-size: 14px; margin-top: 4px; }
.seg { display: inline-flex; flex-shrink: 0; padding: 3px; gap: 2px; border-radius: 10px; background: var(--hover); }
.seg button { padding: 6px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.seg button.active { background: var(--card); color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.swatches { display: flex; gap: 8px; flex-shrink: 0; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px transparent; transition: box-shadow .15s; }
.swatch.active { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--text); }
.chip-row { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.stack { display: grid; gap: 10px; }
.inline-form.wide input { flex: 1; width: auto; }
.prefix { font-weight: 700; color: var(--muted); }
.danger-zone { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.btn.danger-fill { background: var(--red); border-color: var(--red); color: #fff; }
.saved-tag { font-size: 13px; font-weight: 700; color: #1f9d6b; opacity: 0; }
.saved-tag.show { animation: saved 1.6s ease; }
@keyframes saved { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Tags, likes list ---------- */
.ptags { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ptags a { color: var(--accent); font-weight: 600; }
.ptags a:hover { text-decoration: underline; }
.like-group { display: inline-flex; align-items: center; }
.like-group .act { padding-right: 4px; }
.lc-btn { padding: 8px 8px 8px 2px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.lc-btn:hover { color: var(--text); text-decoration: underline; }
.c-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; font-size: 13px; }
.tag-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tag-chip button { border: 0; background: none; color: inherit; font-size: 15px; line-height: 1; cursor: pointer; padding: 0 4px; }
.tag-picker { margin-bottom: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.tag-picker input { padding: 8px 12px; border-radius: 999px; background: var(--card); }
.tag-results { display: grid; margin-top: 6px; max-height: 240px; overflow-y: auto; }
.tag-result { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; font-size: 14px; color: var(--text); }
.tag-result:hover { background: var(--hover); }
.tag-result span { color: var(--muted); }
.tag-result b { color: var(--text); }
.ptabs { margin-top: 4px; }
.mention-wrap { position: relative; flex: 1; min-width: 0; }
.mention-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  display: grid; padding: 4px; max-height: 280px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.mp-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-radius: 9px; background: none; color: var(--text); text-align: left; cursor: pointer; }
.mp-row.active, .mp-row:hover { background: var(--accent-soft); }
.mp-text { display: grid; line-height: 1.3; min-width: 0; }
.mp-text b { font-size: 14px; }
.mp-text small { color: var(--muted); font-size: 12px; }
.mp-empty { padding: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.sheet { width: 100%; max-width: 420px; max-height: 70vh; display: flex; flex-direction: column; overflow: hidden; }
.sheet header { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.sheet-body { overflow-y: auto; }
.user-row.deleted { opacity: .6; }
.persona-tag { font-size: 11px; font-weight: 700; color: var(--muted); padding: 1px 6px; border-radius: 6px; background: var(--hover); margin-left: 4px; vertical-align: 1px; }
.persona-select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; }
.small-note { font-size: 12px; }

/* ---------- Gems & donations ---------- */
.gem-icon { width: 22px; text-align: center; font-size: 18px; }
.live-side { overflow-y: auto; }
.donate-box { padding: 12px; display: grid; gap: 10px; }
.own-live { padding: 12px; font-size: 14px; line-height: 1.5; }
.own-live small { color: var(--muted); }
.my-gems { font-size: 13px; color: var(--muted); }
.my-gems b { color: var(--text); }
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.amt { padding: 7px 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.amt.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.donate-form { display: flex; gap: 6px; }
.donate-form input { padding: 8px 12px; border-radius: 999px; }
.donate-hint { margin: 0; font-size: 13px; color: var(--red); }
.rank-box { overflow: hidden; }
.rank-total { float: right; font-weight: 700; color: var(--accent); font-size: 13px; }
.rank-list { padding: 4px 10px 8px; display: grid; }
.rank-row { display: flex; align-items: center; gap: 8px; padding: 5px 2px; font-size: 13px; }
.rank-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-no { width: 22px; text-align: center; font-weight: 800; color: var(--muted); }
.rank-gems { font-weight: 700; color: var(--accent); white-space: nowrap; }
.lc-msg.donation { padding: 6px 10px; border-radius: 10px; background: linear-gradient(100deg, rgba(124,92,255,.18), rgba(255,77,157,.18)); font-weight: 600; }

/* Donation show: canvas particles + flash / rays / shake + a tiered card */
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.fx-flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; animation: fx-flash .9s ease-out forwards; }
@keyframes fx-flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.fx-rays {
  position: absolute; left: 50%; top: 40%; width: 220%; aspect-ratio: 1; z-index: 3; pointer-events: none;
  transform: translate(-50%, -50%); opacity: .55; mix-blend-mode: screen;
  background: repeating-conic-gradient(from 0deg, rgba(255,215,0,.55) 0deg 8deg, transparent 8deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 60%); mask: radial-gradient(circle, #000 10%, transparent 60%);
  animation: fx-spin 6s linear infinite, fx-fade-in .6s ease;
}
.fx-rays.out { transition: opacity .6s; opacity: 0; }
@keyframes fx-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes fx-fade-in { from { opacity: 0; } }
.fx-rocket { position: absolute; left: 0; top: 0; z-index: 6; font-size: 60px; pointer-events: none; filter: drop-shadow(0 0 12px rgba(255,160,60,.9)); }
.stage.shake { animation: fx-shake .5s; }
.stage.shake-strong { animation: fx-shake-strong .8s; }
@keyframes fx-shake { 20%, 60% { transform: translate(-6px, 2px); } 40%, 80% { transform: translate(6px, -2px); } }
@keyframes fx-shake-strong {
  10% { transform: translate(-12px, 4px) rotate(-1deg); } 25% { transform: translate(12px, -6px) rotate(1deg); }
  40% { transform: translate(-10px, 6px); } 55% { transform: translate(10px, -4px) rotate(.6deg); }
  70% { transform: translate(-6px, 2px); } 85% { transform: translate(4px, -2px); }
}

.donation-fx {
  position: absolute; left: 50%; top: 16%; transform: translateX(-50%); z-index: 7;
  display: grid; justify-items: center; gap: 2px; width: max-content; max-width: 86%;
  padding: 14px 26px 16px; border-radius: 22px; text-align: center; color: #fff;
  background: rgba(15,15,25,.75); backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  animation: dfx-in .55s cubic-bezier(.2,1.5,.4,1);
}
.donation-fx.out { animation: dfx-out .45s ease forwards; }
.dfx-badge { font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.2); }
.dfx-text { font-size: 15px; margin-top: 4px; }
.dfx-amount { font-size: 30px; font-weight: 900; color: #ffd76a; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(255,190,60,.6); }
.dfx-msg { margin-top: 6px; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.16); font-size: 15px; font-weight: 600; word-break: break-word; max-width: 420px; }
.dfx-voice { display: inline-block; animation: dfx-talk .5s ease-in-out infinite alternate; }
@keyframes dfx-talk { to { transform: scale(1.25); } }
.donation-fx.tier-rain { background: linear-gradient(135deg, rgba(30,111,168,.85), rgba(79,172,254,.85)); }
.donation-fx.tier-hearts { background: linear-gradient(135deg, rgba(255,77,157,.9), rgba(255,154,158,.9)); box-shadow: 0 0 40px rgba(255,77,157,.7); }
.donation-fx.tier-hearts .dfx-amount { font-size: 36px; }
.donation-fx.tier-rocket { background: linear-gradient(135deg, #ff6a3d, #ffb547); box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 0 50px rgba(255,140,60,.8); }
.donation-fx.tier-rocket .dfx-amount { font-size: 42px; color: #fff; }
.donation-fx.tier-legend {
  top: 12%; padding: 18px 34px 20px;
  background: linear-gradient(120deg, #7c5cff, #ff4d9d, #ffb547, #4fd39c, #4facfe, #7c5cff);
  background-size: 300% 300%;
  box-shadow: 0 0 0 4px #fff3a0, 0 0 80px rgba(255,215,0,.9);
  animation: dfx-in-legend .8s cubic-bezier(.2,1.6,.4,1), dfx-rainbow 3s linear infinite;
}
.donation-fx.tier-legend .dfx-amount { font-size: 54px; color: #fff; text-shadow: 0 0 20px #ffd700, 0 4px 0 rgba(0,0,0,.25); }
.donation-fx.tier-legend .dfx-text { font-size: 18px; }
.dfx-crown { font-size: 44px; margin-top: -48px; animation: dfx-crown 1.2s ease-in-out infinite; filter: drop-shadow(0 4px 10px rgba(255,200,0,.8)); }
@keyframes dfx-in { from { opacity: 0; transform: translateX(-50%) scale(.4) rotate(-6deg); } }
@keyframes dfx-in-legend { 0% { opacity: 0; transform: translateX(-50%) scale(3); } 60% { opacity: 1; transform: translateX(-50%) scale(.9); } }
@keyframes dfx-out { to { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(.9); } }
@keyframes dfx-rainbow { to { background-position: 300% 0; } }
@keyframes dfx-crown { 50% { transform: translateY(-8px) rotate(6deg); } }
.donation-fx.tier-legend.out { animation: dfx-out .45s ease forwards; }
.tier-name { font-size: 12px; color: var(--muted); margin-top: -4px; }
.tts-row { margin-top: -4px; font-size: 12px; }
.msg-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.msg-count.full { color: var(--red); font-weight: 700; }
.donate-form input:disabled { opacity: .6; }
.tts-toggle { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.received-pill {
  position: absolute; left: 12px; bottom: 12px; z-index: 6;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(100deg, rgba(124,92,255,.85), rgba(255,77,157,.85)); box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.received-pill b { color: #ffe066; margin-left: 2px; }
.received-pill.bump { animation: pill-bump .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes pill-bump { 40% { transform: scale(1.25); } }
.tx-amt.gift { color: var(--accent); }
/* When the stage has the control bar (host / guest), sit just above it so they don't overlap. */
.stage:has(.ctrl-slot > *) .received-pill { bottom: 74px; }

.wallet { padding: 24px; display: grid; justify-items: center; gap: 6px; text-align: center; margin-bottom: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, #7c5cff 12%, var(--card)), color-mix(in srgb, #ff4d9d 12%, var(--card))); }
.wallet > span { color: var(--muted); font-weight: 600; }
.wallet > b { font-size: 40px; letter-spacing: -.03em; }
.wallet > b::before { content: '🪙 '; font-size: 30px; }
.tx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.tx-row:last-child { border-bottom: 0; }
.admin-card .tx-row { padding: 8px 0; }
.tx-info { display: grid; gap: 1px; min-width: 0; }
.tx-info span, .tx-info time { color: var(--muted); font-size: 12px; }
.tx-amt { white-space: nowrap; }
.cashout { padding: 16px; display: grid; gap: 10px; margin-bottom: 8px; }
.cashout .tx-row { padding: 8px 0; }
.co-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.co-top > span { color: var(--muted); font-weight: 600; }
.co-top > b { font-size: 26px; letter-spacing: -.02em; }
.co-account { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 8px; }
.co-account input { min-width: 0; }
.co-won, .co-amt { color: var(--accent); }
.co-pending { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); font-weight: 600; }
.co-status { white-space: nowrap; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--muted); }
.co-status.pending { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.co-status.paid { background: color-mix(in srgb, #22c55e 15%, transparent); color: #16a34a; }
.co-status.rejected { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }
@media (max-width: 600px) { .co-account { grid-template-columns: 1fr; } }
.purchase { padding: 16px; display: grid; gap: 10px; margin-bottom: 8px; }
.purchase .tx-row { padding: 8px 0; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.pkg { display: grid; gap: 2px; padding: 12px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: inherit; cursor: pointer; font: inherit; }
.pkg span { color: var(--muted); font-size: 13px; }
.pkg.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.pkg.active span { color: var(--accent); font-weight: 600; }
.bank-box { padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); font-weight: 600; user-select: all; }
.tx-amt.plus { color: #1f9d6b; }
.tx-amt.minus { color: var(--red); }

/* ---------- Admin ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { padding: 14px; display: grid; gap: 2px; text-align: center; }
.stat b { font-size: 26px; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 13px; }
.admin-card { padding: 18px; margin-bottom: 14px; display: grid; gap: 10px; }
.admin-card h2 { margin: 0; font-size: 17px; }
.muted { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline-form input { width: 80px; padding: 8px 10px; }
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.act-grid .btn { border-radius: 12px; justify-content: flex-start; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.bot-list { display: grid; }
.bot-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.bot-row .uinfo:hover b { text-decoration: underline; }
.switch { position: relative; flex-shrink: 0; width: 52px; height: 30px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(22px); }

/* ---------- Toasts ---------- */
#toasts { position: fixed; top: 16px; right: 16px; display: grid; gap: 8px; z-index: 100; max-width: min(360px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  font-size: 14px; cursor: pointer;
  animation: toast-in .25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .live-layout { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .stage { flex: none; height: 62dvh; min-height: 320px; }
  .live-chat { height: 46dvh; flex: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-layout { grid-template-columns: 1fr; }
  .set-nav { position: static; display: flex; overflow-x: auto; }
  .set-nav a { flex-shrink: 0; }
  .set-row { flex-wrap: wrap; }
}
/* Phone top bar (logo, points, admin, settings) — only shown on small screens. */
.m-top { display: none; }

@media (max-width: 760px) {
  #app { grid-template-columns: 1fr; }
  /* Bottom tab bar: home, search, live, messages, notifications, me. The rest lives in the top bar. */
  .side {
    position: fixed; inset: auto 0 0 0; height: auto; z-index: 20;
    flex-direction: row; justify-content: space-around; gap: 0;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px);
  }
  .side .logo, .side .logout, .nav .label, .side .gem-nav,
  .side [data-nav="#/settings"], .side [data-nav="#/admin"] { display: none; }
  .nav { flex: 1; justify-content: center; padding: 10px 0; min-height: 48px; }
  .nav.me-nav { margin: 0; border: 0; }
  .nav .badge { position: absolute; top: 4px; left: 52%; margin: 0; }
  .m-top {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; inset: 0 0 auto 0; z-index: 20; height: calc(52px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0 14px;
    background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .m-top .wordmark { font-size: 24px; }
  .m-top-actions { display: flex; align-items: center; gap: 2px; }
  .m-top-actions .icon-btn { width: 40px; height: 40px; color: var(--text); }
  .m-gems { padding: 6px 12px; margin-right: 4px; border-radius: 999px; background: var(--accent-soft); font-size: 14px; }
  main { padding: calc(64px + env(safe-area-inset-top)) 12px calc(76px + env(safe-area-inset-bottom)); }
  #toasts { top: calc(60px + env(safe-area-inset-top)); right: 12px; left: 12px; max-width: none; }
  /* iOS zooms into inputs under 16px */
  input, textarea, select { font-size: 16px; }
  .btn { min-height: 40px; }
  .page-head { margin-bottom: 12px; }
  h1 { font-size: 20px; }
  .profile { padding: 18px; }
  .profile-top { gap: 16px; }
  .profile-top .avatar { width: 72px !important; height: 72px !important; }
  .post { padding: 14px 14px 4px; border-radius: 14px; }
  .comments { margin: 6px -14px 0; padding: 12px 14px; }
  .composer { padding: 12px; }
  .messages-page { grid-template-columns: 1fr; height: calc(100dvh - 150px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .messages-page.has-chat .conv-pane { display: none; }
  .messages-page:not(.has-chat) .chat { display: none; }
  .chat header .back { display: inline-grid; }
  .live-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Live on a phone: big stage first, then donate / ranking / chat below */
  .page:has(.live-layout) .page-head { margin-bottom: 8px; min-height: 0; }
  .live-layout { gap: 10px; }
  .stage { height: calc(100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 360px; border-radius: 14px; }
  .tiles[data-count="1"] .tile video { object-fit: cover; }
  .media-ctrls { gap: 6px; padding: 5px; }
  .ctrl { width: 46px; height: 46px; }
  .ctrl.go-live { padding: 0 14px; }
  .fx-pop { width: calc(100vw - 40px); }
  .fx-panel .fchip { width: 58px; }
  .live-chat { height: 55dvh; }
  .unmute { bottom: auto; top: 48px; right: 10px; }
  .donation-fx { max-width: 92%; padding: 12px 18px 14px; }
  .dfx-msg { font-size: 14px; }
  .donation-fx.tier-legend .dfx-amount { font-size: 42px; }
  .amounts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .amt { padding: 10px 0; }

  .modal { padding: 0; }
  .cam-box { max-width: none; height: 100%; border-radius: 0; padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)); align-content: start; }
  .cam-canvas { max-height: 58dvh; }
  .sheet { max-height: 80dvh; border-radius: 18px 18px 0 0; align-self: end; }
}

/* =========================================================================
   Cute theme 🐰 — pastel colors, round fonts, squishy motion.
   Layered last so it restyles everything above without touching it.
   ========================================================================= */
:root {
  --bg: #fff6fb;
  --card: #ffffff;
  --text: #3d2f4f;
  --muted: #a08fb3;
  --line: #f7e2ee;
  --hover: #fff0f7;
  --red: #ff5c84;
  --avatar-bg: #ffd9ea;
  --avatar-fg: #ffffff;
  --radius: 24px;
  --shadow: 0 6px 22px rgba(255, 120, 180, .13);
  --dots: rgba(255, 140, 190, .16);
  --font-title: 'Jua', 'Gowun Dodum', system-ui, sans-serif;
  --font-body: 'Gowun Dodum', system-ui, -apple-system, 'Malgun Gothic', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1527; --card: #281e36; --text: #f7eeff; --muted: #b6a5cc; --line: #3b2d4e; --hover: #33264a;
    --avatar-bg: #4b3a63; --avatar-fg: #e6d8ff; --shadow: 0 6px 22px rgba(0,0,0,.35); --dots: rgba(190,160,255,.08);
  }
}
:root[data-theme="dark"] {
  --bg: #1c1527; --card: #281e36; --text: #f7eeff; --muted: #b6a5cc; --line: #3b2d4e; --hover: #33264a;
  --avatar-bg: #4b3a63; --avatar-fg: #e6d8ff; --shadow: 0 6px 22px rgba(0,0,0,.35); --dots: rgba(190,160,255,.08);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1.6px, transparent 1.8px);
  background-size: 22px 22px;
}
h1, h2, .btn, .nav, .tabs button, .seg button, .fx-tabs button, .lc-head, .stat b, .wallet > b,
.dfx-amount, .dfx-badge, .pill, .badge, .fchip, .set-nav a, .co-top > b, .tier-name, .amt {
  font-family: var(--font-title);
  font-weight: 400;
}
h1 { letter-spacing: 0; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

/* logo */
.wordmark { font-family: var(--font-title); font-style: normal; letter-spacing: 0; font-weight: 400; padding-right: 0; }
.wordmark::after { content: '✦'; font-size: .45em; vertical-align: super; margin-left: 2px; color: #ffb547; -webkit-text-fill-color: #ffb547; }
.logo:hover .logo-mark { animation: wiggle .5s ease; }
@keyframes wiggle { 25% { transform: rotate(-8deg) scale(1.05); } 75% { transform: rotate(8deg) scale(1.05); } }

/* cards & surfaces */
.card { border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.post { transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 120, 180, .18); }
.post-img, .post-video, .c-preview img, .c-preview video { border-radius: 18px; }
.avatar { box-shadow: 0 0 0 2px var(--card), 0 2px 8px rgba(255, 120, 180, .18); }
.avatar.default { background: linear-gradient(160deg, #ffd9ea, #e4dcff); }

/* buttons: squishy */
.btn { border-radius: 999px; border-width: 1.5px; transition: transform .12s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.94); }
.btn.primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #ff7eb6));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn.primary:hover { opacity: 1; filter: brightness(1.05); }
.btn:disabled { transform: none; }
.icon-btn { transition: transform .12s, background .15s; }
.icon-btn:active { transform: scale(.88); }

/* inputs */
input, textarea { border-radius: 16px; border-width: 1.5px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }

/* navigation */
.nav { border-radius: 16px; transition: background .15s, transform .12s; }
.nav:active { transform: scale(.95); }
.nav.active svg, .nav.active .avatar { animation: hop .45s ease; }
@keyframes hop { 40% { transform: translateY(-4px) scale(1.12); } }
.nav:hover svg { transform: rotate(-6deg); transition: transform .15s; }
.tabs { border-radius: 18px; border-width: 1.5px; box-shadow: var(--shadow); }
.tabs button { border-radius: 14px; font-size: 15px; }
.badge { box-shadow: 0 0 0 2px var(--card); }

/* likes: pink heart + little hearts popping out */
.like { position: relative; }
.like.on { color: #ff5c9a; }
.like.pop svg { animation: pop .35s cubic-bezier(.2,1.8,.4,1); }
@keyframes pop { 50% { transform: scale(1.5) rotate(-8deg); } }
.mini-heart {
  position: absolute; left: 50%; top: 40%; pointer-events: none; font-size: 14px;
  animation: mini-heart .8s ease-out forwards;
}
@keyframes mini-heart {
  0% { opacity: 1; transform: translate(-50%, 0) scale(.4); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(1.1); }
}

/* empty states get a little friend */
.empty:not(.small)::before { content: '🐰'; display: block; font-size: 44px; margin-bottom: 8px; animation: bob 2.4s ease-in-out infinite; }
.feed .empty:not(.small)::before { content: '🐣'; }
.notifs .empty:not(.small)::before { content: '🔔'; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* toasts */
.toast { border-radius: 20px; border-width: 1.5px; box-shadow: 0 12px 30px rgba(255, 120, 180, .22); animation: toast-bounce .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes toast-bounce { from { opacity: 0; transform: translateY(-12px) scale(.9); } }

/* auth screen */
.auth { background:
  radial-gradient(500px 360px at 12% 10%, #ffd9ea, transparent 70%),
  radial-gradient(520px 380px at 88% 90%, #e2dcff, transparent 70%),
  var(--bg); }
.auth-card { border: 1.5px solid var(--line); border-radius: 32px; box-shadow: 0 20px 50px rgba(255, 120, 180, .18); position: relative; }
.auth-card::before { content: '🐰'; position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-size: 54px; animation: bob 2.4s ease-in-out infinite; }
.tagline { font-family: var(--font-title); font-size: 16px; }
body.auth-mode #app { max-width: none; }
@media (max-width: 760px) {
  /* keep the account banner out of the page title */
  .page-head { padding-right: 4px; }
}

/* misc */
.ai-tag { border-radius: 8px; font-family: var(--font-title); font-weight: 400; }
.verified { color: #6fa8ff; }
.fprev { border-radius: 18px; }
.stat b { font-size: 28px; }
.wallet { border-radius: 28px; }
.set-nav a { font-size: 15px; }
.lc-msg b { font-family: var(--font-title); font-weight: 400; }
.received-pill { font-family: var(--font-title); font-weight: 400; }
/* ---------- Premium donations (5,000P+) ---------- */
.fx-flyer { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; line-height: 1; filter: drop-shadow(0 0 16px rgba(255,180,90,.9)); }
.fx-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; animation: fx-fade-in .8s ease; transition: opacity .8s; }
.fx-overlay.out { opacity: 0; }
.fx-rainbow {
  background: linear-gradient(115deg, rgba(255,0,90,.35), rgba(255,140,0,.35), rgba(255,230,0,.3), rgba(0,210,120,.3), rgba(0,150,255,.35), rgba(170,80,255,.35), rgba(255,0,90,.35));
  background-size: 300% 100%; mix-blend-mode: screen; animation: fx-fade-in .8s ease, rainbow-sweep 2.4s linear infinite;
}
@keyframes rainbow-sweep { to { background-position: 300% 0; } }
.fx-inferno {
  background: radial-gradient(120% 90% at 50% 110%, rgba(255,90,0,.65), rgba(120,10,0,.55) 45%, rgba(20,0,0,.7));
  animation: fx-fade-in .6s ease, inferno-flicker .18s steps(2) infinite;
}
@keyframes inferno-flicker { 50% { filter: brightness(1.15); } }
.fx-space { background: radial-gradient(ellipse at 30% 30%, rgba(90,40,160,.85), rgba(10,5,40,.95) 60%, #02010a); }
.fx-space::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent, rgba(160,120,255,.25), transparent 30%, rgba(80,170,255,.2), transparent 60%);
  border-radius: 50%; animation: fx-spin 8s linear infinite;
}
.fx-gold { background: radial-gradient(circle at 50% 40%, rgba(255,240,170,.75), rgba(255,190,40,.55) 45%, rgba(120,70,0,.6)); mix-blend-mode: normal; }

.donation-fx.premium { top: 10%; padding: 20px 36px 22px; }
.donation-fx.premium .dfx-amount { font-size: 58px; color: #fff; }
.donation-fx.premium .dfx-text { font-size: 19px; }
.donation-fx.premium .dfx-crown { font-size: 54px; margin-top: -58px; }
.donation-fx.tier-rainbow {
  background: linear-gradient(120deg, #ff3d7f, #ff9a3d, #ffe03d, #3ddc84, #3d9bff, #a35cff, #ff3d7f); background-size: 300% 300%;
  box-shadow: 0 0 0 4px #fff, 0 0 70px rgba(255,120,220,.9); animation: dfx-in-legend .8s cubic-bezier(.2,1.6,.4,1), dfx-rainbow 2s linear infinite;
}
.donation-fx.tier-dragon {
  background: linear-gradient(160deg, #3a0000, #b31200 55%, #ff7a00); border: 2px solid #ffb347;
  box-shadow: 0 0 0 4px rgba(255,140,0,.5), 0 0 90px rgba(255,60,0,.95); animation: dfx-in-legend .8s cubic-bezier(.2,1.6,.4,1), dragon-glow .5s ease-in-out infinite alternate;
}
.donation-fx.tier-dragon .dfx-amount { text-shadow: 0 0 18px #ff6a00, 0 0 40px #ff3d00; }
@keyframes dragon-glow { to { box-shadow: 0 0 0 6px rgba(255,180,0,.7), 0 0 130px rgba(255,90,0,1); } }
.donation-fx.tier-galaxy {
  background: radial-gradient(circle at 30% 20%, #6c3cff, #1a0b4a 60%, #05021a); border: 2px solid rgba(180,160,255,.8);
  box-shadow: 0 0 0 4px rgba(140,120,255,.4), 0 0 100px rgba(120,90,255,.95); animation: dfx-in-legend 1s cubic-bezier(.2,1.6,.4,1);
}
.donation-fx.tier-galaxy .dfx-amount { background: linear-gradient(90deg, #9fd2ff, #fff, #ffd27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.donation-fx.tier-god {
  top: 6%; padding: 24px 44px 26px;
  background: linear-gradient(135deg, #fff6c8, #ffd54a 35%, #ffb300 60%, #fff1a8); color: #5a3a00; border: 3px solid #fff;
  box-shadow: 0 0 0 6px #ffcf33, 0 0 0 10px rgba(255,255,255,.6), 0 0 140px rgba(255,200,0,1);
  animation: god-in 1.2s cubic-bezier(.2,1.6,.4,1), god-pulse 1s ease-in-out 1.2s infinite alternate;
}
.donation-fx.tier-god .dfx-badge { background: #5a3a00; color: #ffe27a; font-size: 14px; }
.donation-fx .dfx-amount { white-space: nowrap; }
.donation-fx.tier-god .dfx-amount { font-size: 64px; color: #fff; -webkit-text-stroke: 2px #b87900; text-shadow: 0 6px 0 #b87900, 0 0 40px #fff3a0; }
.donation-fx.tier-god .dfx-crown { font-size: 64px; margin-top: -72px; }
.donation-fx.tier-god .dfx-msg { background: rgba(90,58,0,.15); }
@keyframes god-in { 0% { opacity: 0; transform: translateX(-50%) scale(5) rotate(-20deg); } 60% { opacity: 1; transform: translateX(-50%) scale(.85) rotate(3deg); } }
@keyframes god-pulse { to { transform: translateX(-50%) scale(1.06); } }
.donation-fx.premium.out { animation: dfx-out .45s ease forwards; }
@media (max-width: 760px) {
  .donation-fx.premium .dfx-amount { font-size: 42px; }
  .donation-fx.tier-god .dfx-amount { font-size: 50px; }
  .donation-fx.premium { padding: 16px 22px 18px; }
}

/* card size grows with the price */
.donation-fx.tier-pop, .donation-fx.tier-rain { top: 18%; padding: 8px 16px 10px; border-radius: 16px; }
.donation-fx.tier-pop .dfx-amount, .donation-fx.tier-rain .dfx-amount { font-size: 22px; }
.donation-fx.tier-pop .dfx-text, .donation-fx.tier-rain .dfx-text { font-size: 13px; }
.donation-fx.tier-hearts .dfx-amount { font-size: 28px; }
/* 100P TTS donation: just the message, floating */
.donation-fx.tier-tts { top: 14%; padding: 6px 8px 8px; gap: 4px; background: rgba(15,15,25,.6); border-radius: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.donation-fx.tier-tts .dfx-msg { margin: 0; font-size: 17px; background: rgba(255,255,255,.14); }
.donation-fx.tier-tts small { font-size: 12px; opacity: .8; }
.donation-fx.tier-rocket .dfx-amount { font-size: 34px; }
.donation-fx.tier-legend .dfx-amount { font-size: 44px; }

/* waiting for a first tap before the browser allows speech */
.tts-toggle.needs-tap { animation: tts-pulse 1s ease-in-out infinite; background: #ff5c9a !important; }
.tts-toggle.needs-tap::after { content: ' 눌러주세요'; }
@keyframes tts-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(255,92,154,.3); } }

/* premium amount buttons in the donate box */
.amounts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.amt.premium { background: linear-gradient(135deg, #fff3c4, #ffd6ec); border-color: #ffc94d; color: #a05a00; }
.amt.premium.active { background: linear-gradient(135deg, #ffcf33, #ff7eb6); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(255,150,60,.45); }

/* ---------- Donation alert card (glass) ---------- */
@property --ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.dalert {
  --tier: #ff7eb6; --tier2: #b9a6ff;
  position: absolute; left: 50%; top: 52px; z-index: 7;
  width: min(420px, calc(100% - 24px)); padding: 12px 14px;
  border-radius: 20px; color: #fff; overflow: hidden; isolation: isolate;
  background: rgba(17, 14, 28, .58);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
  font-family: var(--font-body);
  transform: translateX(-50%);
  animation: dalert-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.stage .live-bar { z-index: 8; } /* LIVE / viewers stay readable over full-stage effects */
.fx-rays { opacity: .22; background: repeating-conic-gradient(from 0deg, rgba(255,215,0,.6) 0deg 3deg, transparent 3deg 18deg); }
/* thin accent ring in the tier's colours */
.dalert::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, var(--tier), var(--tier2) 60%, rgba(255,255,255,.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* soft glow behind */
.dalert::after {
  content: ''; position: absolute; left: -20%; right: -20%; top: -70%; height: 140%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tier) 40%, transparent), transparent);
}
.dalert.out { animation: dalert-out .38s ease forwards; }
@keyframes dalert-in { from { opacity: 0; transform: translate(-50%, -14px) scale(.97); filter: blur(6px); } }
@keyframes dalert-out { to { opacity: 0; transform: translate(-50%, -8px) scale(.98); filter: blur(4px); } }
.dalert-row { display: flex; align-items: center; gap: 12px; }
.dalert .avatar { box-shadow: 0 0 0 2px rgba(17,14,28,.6), 0 0 0 3.5px var(--tier); }
.dalert-who { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.dalert-tier {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 1px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--tier);
}
.dalert-tier::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tier); box-shadow: 0 0 8px var(--tier); }
.dalert-who b { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dalert-who small { font-size: 12px; color: rgba(255,255,255,.62); }
.dalert-amount {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 800 26px/1 system-ui, -apple-system, 'Segoe UI', 'Malgun Gothic', sans-serif;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.dalert-amount svg { width: 22px; height: 22px; flex-shrink: 0; }
.dalert-msg {
  display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.94); word-break: break-word;
}
.dalert-msg svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; color: var(--tier); }
.dalert.speaking .dalert-msg svg { animation: dfx-talk .45s ease-in-out infinite alternate; }
.dalert-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%);
  transform: translateX(-120%); animation: dalert-shine 1.3s .25s ease forwards;
}
@keyframes dalert-shine { to { transform: translateX(120%); } }

/* 100P: just the message */
.dalert.t-tts { --tier: #c4b5fd; --tier2: #ff9ccb; width: auto; max-width: min(400px, calc(100% - 24px)); padding: 10px 14px 9px; }
.dalert.t-tts .dalert-msg { margin: 0; padding: 0; border: 0; }
.dalert-foot { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.6); }
.dalert-foot svg { width: 13px; height: 13px; }
.dalert-foot b { color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }

/* tier accents */
.dalert.t-hearts { --tier: #ff7eb6; --tier2: #ffc2dc; }
.dalert.t-legend { --tier: #ffcf4d; --tier2: #ff9f43; }
.dalert.t-rainbow { --tier: #ff7eb6; --tier2: #5ec8ff; }
.dalert.t-dragon { --tier: #ff6a3d; --tier2: #ffc14d; }
.dalert.t-galaxy { --tier: #a78bfa; --tier2: #5ec8ff; }
.dalert.t-god { --tier: #ffd76a; --tier2: #fff1b8; }

/* premium: bigger, with a slowly turning gradient ring */
.dalert.premium { width: min(460px, calc(100% - 24px)); padding: 16px 18px; border-radius: 22px; }
.dalert.premium::before {
  padding: 2px;
  background: conic-gradient(from var(--ring), var(--tier), var(--tier2), transparent 40%, var(--tier) 70%, var(--tier2), var(--tier));
  animation: ring-turn 3s linear infinite;
}
.dalert.t-rainbow::before { background: conic-gradient(from var(--ring), #ff5f9e, #ffb347, #ffe066, #5ee6a8, #5ec8ff, #a78bfa, #ff5f9e); }
@keyframes ring-turn { to { --ring: 360deg; } }
.dalert.premium .dalert-amount { font-size: 32px; }
.dalert.premium .dalert-count {
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--tier) 70%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dalert.t-god { background: rgba(28, 20, 6, .62); }
.dalert.t-god .dalert-amount { font-size: 38px; }
.dalert.t-god::after { background: radial-gradient(closest-side, rgba(255, 210, 90, .55), transparent); }

@media (max-width: 760px) {
  .dalert { top: 48px; padding: 10px 12px; }
  .dalert-amount { font-size: 22px; }
  .dalert.premium .dalert-amount { font-size: 26px; }
  .dalert.t-god .dalert-amount { font-size: 30px; }
}

/* donate box: clean number chips; premium ones only get a gold hairline */
.donate-box .amounts { gap: 6px; }
.donate-box .amt {
  padding: 9px 0; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--text); font: 700 13px/1 system-ui, -apple-system, 'Segoe UI', 'Malgun Gothic', sans-serif;
  font-variant-numeric: tabular-nums; box-shadow: none; transition: border-color .15s, background .15s, transform .1s;
}
.donate-box .amt:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.donate-box .amt:active { transform: scale(.95); }
.donate-box .amt.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.donate-box .amt.premium { border-color: #f3d27a; color: #b07d00; background: var(--card); }
.donate-box .amt.premium.active { border-color: transparent; color: #fff; background: linear-gradient(135deg, #f5b11c, #ff8fbf); box-shadow: 0 4px 12px rgba(245,177,28,.35); }
.donate-box .tier-name { font-size: 12px; color: var(--muted); font-family: var(--font-body); }

/* donation lines in the live chat: a quiet accent instead of a coloured block */
.lc-msg.donation { background: none; border-left: 3px solid #ffcf4d; border-radius: 4px; padding: 4px 10px; font-weight: 400; }
.lc-msg.donation b { color: #e0a100; }

/* ---------- Donation rankings ---------- */
.rank-periods { margin-bottom: 10px; }
.rank-boards { display: flex; width: 100%; margin-bottom: 14px; }
.rank-boards button { flex: 1; padding: 8px; font-size: 14px; }
.rank-summary { padding: 18px; display: grid; justify-items: center; gap: 2px; text-align: center; margin-bottom: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, #ffcf33 18%, var(--card)), color-mix(in srgb, #ff7eb6 16%, var(--card))); }
.rank-summary > span { color: var(--muted); font-family: var(--font-title); }
.rank-summary > b { font-family: var(--font-title); font-weight: 400; font-size: 32px; }
.rank-summary small { color: var(--muted); }
.my-rank { padding: 12px 16px; margin-bottom: 14px; text-align: center; font-family: var(--font-title); }
.my-rank b { color: var(--accent); font-weight: 400; font-size: 18px; }
.my-rank small { color: var(--muted); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 8px 0 14px; }
.podium-spot { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.podium-spot b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-total { font-family: var(--font-title); color: var(--accent); font-size: 14px; }
.podium-spot .medal { font-size: 28px; animation: bob 2.4s ease-in-out infinite; }
.podium-block {
  width: 100%; display: grid; place-items: center; color: #fff; font-family: var(--font-title); font-size: 26px;
  border-radius: 16px 16px 6px 6px; margin-top: 4px; box-shadow: var(--shadow);
}
.podium-spot.p1 .podium-block { height: 96px; background: linear-gradient(180deg, #ffd54a, #ffab00); }
.podium-spot.p2 .podium-block { height: 70px; background: linear-gradient(180deg, #d9def0, #9aa6c8); }
.podium-spot.p3 .podium-block { height: 54px; background: linear-gradient(180deg, #ffc49a, #d9824a); }
.podium-spot.p1 .avatar { box-shadow: 0 0 0 3px #ffd54a, 0 0 18px rgba(255,200,0,.6); }
.rank-line { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.rank-line:last-child { border-bottom: 0; }
.rank-line:hover { background: var(--hover); }
.rank-line.me { background: var(--accent-soft); }
.rank-num { width: 26px; text-align: center; font-family: var(--font-title); color: var(--muted); font-size: 16px; }
.rank-amt { font-family: var(--font-title); font-weight: 400; color: var(--accent); white-space: nowrap; }
@media (max-width: 760px) { .side [data-nav="#/ranking"] { display: none; } }

/* ---------- DM: online dot, read receipts, photos ---------- */
.av-wrap { position: relative; display: inline-flex; flex: none; }
.av-wrap.online::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; min-width: 10px; min-height: 10px;
  border-radius: 50%; background: #22c37a; box-shadow: 0 0 0 2.5px var(--card);
}
.chat header .presence { font-style: normal; color: #1aa866; font-size: 12px; }
.chat header .presence:empty { display: none; }
.bubble .seen { align-self: flex-end; font-style: normal; font-size: 11px; color: var(--accent); white-space: nowrap; }
.bubble.sending { opacity: .6; }
.bubble .dm-photo { padding: 4px; display: grid; gap: 4px; max-width: 260px; }
.bubble .dm-photo img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 14px; cursor: zoom-in; display: block; }
.bubble .dm-photo em { font-style: normal; padding: 2px 8px 4px; }
.msg-form .photo-btn { color: var(--accent); flex: none; cursor: pointer; }
.photo-view { background: rgba(10, 6, 25, .92); padding: 16px; display: grid; place-items: center; z-index: 150; }
.photo-view img { max-width: 100%; max-height: calc(100dvh - 32px); border-radius: 12px; object-fit: contain; }
.photo-view .close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; color: #fff; }

/* ---------- Hashtags & bookmarks ---------- */
a.hashtag { color: var(--accent); font-weight: 600; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line); color: var(--accent); font-weight: 600; font-size: 14px;
}
.tag-chip:hover { border-color: var(--accent); }
.tag-chip small { color: var(--muted); font-weight: 400; font-size: 12px; }
.tag-title { color: var(--accent); }
.tag-hint { margin: -6px 0 12px; }
.post footer .act.bm { margin-left: auto; }
.post footer .act.bm.on { color: var(--accent); }
.post footer .act.bm.on svg { fill: currentColor; }

/* ---------- Ads (최상단 광고) ---------- */
.ad-slot { display: grid; gap: 14px; margin-bottom: 14px; }
.ad-slot:empty { display: none; }
.ad-card {
  position: relative; padding: 16px; display: grid; gap: 10px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: linear-gradient(135deg, var(--accent-soft), var(--card) 70%);
}
.ad-label { position: absolute; top: 12px; right: 14px; padding: 2px 8px; border-radius: 6px; background: var(--hover); color: var(--muted); font-size: 11px; font-weight: 700; }
.ad-who { display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 44px; }
.ad-who > span { display: grid; min-width: 0; line-height: 1.35; }
.ad-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.ad-who small { color: var(--muted); font-size: 13px; }
.ad-msg { margin: 0; white-space: pre-wrap; word-break: break-word; }
.ad-msg a { color: var(--accent); }
.ad-card.product { padding: 0 0 14px; overflow: hidden; gap: 6px; }
.ad-card.product > :not(a:first-child, .ad-label) { margin: 0 16px; }
.ad-card.product .ad-label { z-index: 1; background: rgba(0,0,0,.55); color: #fff; }
.ad-img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--hover); }
.ad-card.product .ad-title { font-size: 18px; margin-top: 8px; }
.ad-card.product:not(:has(.ad-img)) .ad-title { margin-top: 16px; padding-right: 40px; }
.ad-foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.ad-by { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; color: var(--muted); font-size: 13px; }
.ad-by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-actions { display: flex; gap: 8px; }
.ad-buy {
  position: absolute; top: 12px; right: 56px; z-index: 1; padding: 2px 8px; border: 0; border-radius: 6px;
  background: rgba(0,0,0,.55); color: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
}
.ad-card:not(.product) .ad-buy, .ad-card.product:not(:has(.ad-img)) .ad-buy { background: var(--hover); color: var(--muted); }
.ad-buy:hover { filter: brightness(1.15); }
.ad-who { padding-right: 140px; }
.ad-card.product:not(:has(.ad-img)) .ad-title { padding-right: 140px; }
.sponsored { margin-top: 10px; font-size: 12.5px; color: var(--muted); display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--hover); }
.sponsored a { color: var(--accent); font-weight: 700; margin-right: 3px; }
.adreq-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.adreq-row:last-of-type { border-bottom: 0; }
.adreq-row .tx-info { flex: 1; min-width: 0; }
.adreq-row .tx-info span { white-space: pre-wrap; word-break: break-word; }
.adreq-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.adreq-ask { padding: 10px 12px; border-radius: 12px; background: var(--hover); font-size: 14px; white-space: pre-wrap; display: grid; gap: 2px; }
.adreq-ask b { font-size: 12px; color: var(--muted); }
.ad-row { align-items: center; gap: 10px; }
/* 📣 광고 공고 */
.job-box {
  margin-top: 12px; padding: 12px 14px; display: grid; gap: 8px; border-radius: 14px;
  border: 1.5px solid color-mix(in srgb, #f5b11c 55%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, #ffd24a 16%, var(--card)), var(--card));
}
.job-box.closed { filter: grayscale(.7); opacity: .8; }
.job-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.job-head b { color: #c07a00; font-size: 16px; margin-left: auto; }
.job-tag { padding: 2px 10px; border-radius: 999px; background: #f5b11c; color: #fff; font-size: 12px; font-weight: 800; }
.job-cat, .job-dday { padding: 2px 8px; border-radius: 999px; background: var(--hover); color: var(--muted); font-size: 12px; font-weight: 700; }
.job-dday.soon { background: color-mix(in srgb, var(--red) 15%, var(--card)); color: var(--red); }
.job-title-line { font-size: 16.5px; font-weight: 800; }
.job-rules { display: flex; flex-wrap: wrap; gap: 5px; }
.job-rules span { padding: 3px 9px; border-radius: 8px; border: 1px solid color-mix(in srgb, #f5b11c 45%, var(--line)); background: var(--card); font-size: 12px; font-weight: 600; }
.job-rules span.rv { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); }
.job-meta { font-size: 13px; color: var(--muted); }
.job-bar { height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; display: flex; }
.job-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb547, #ff7a3d); transition: width .4s; }
.job-bar i.rv { background: repeating-linear-gradient(45deg, #ffd27a, #ffd27a 4px, #ffe9b8 4px, #ffe9b8 8px); }
.job-rejected { font-size: 13px; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--red) 10%, var(--card)); color: var(--red); }
.job-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.job-box .btn { justify-self: start; }
/* composer: 광고 공고 form */
.c-job { gap: 10px; }
.c-job-head { font-weight: 800; display: grid; }
.c-job-head small, .c-job-sec small { font-weight: 400; color: var(--muted); font-size: 12px; }
.c-job .job-title { padding: 9px 12px; border-radius: 10px; font-weight: 700; }
.c-job-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.c-job-grid label { display: grid; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); }
.c-job-grid select, .c-job-grid input { padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 14px; width: 100%; }
.unit-input { display: flex; align-items: center; gap: 4px; color: var(--text); font-size: 14px; }
.unit-input input { min-width: 0; }
.c-job-sec { font-weight: 800; margin-top: 2px; }
.c-job-checks { display: grid; gap: 6px; font-size: 14px; }
.c-job-checks label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.c-job-checks input { width: auto; margin: 0; accent-color: #f5b11c; }
.c-job-checks small { color: var(--muted); font-size: 12px; }
.job-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, #ffd24a 14%, var(--card)); }
.job-summary div { display: grid; text-align: center; }
.job-summary span { font-size: 11px; color: var(--muted); }
.job-summary b { font-size: 14px; }
.job-summary p { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; text-align: center; }
/* taking part: live checklist + steps */
.promo-checks { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--hover); font-size: 14px; }
.promo-checks .pc { color: var(--muted); }
.promo-checks .pc.ok { color: var(--text); }
.promo-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 700; }
.promo-flow span { padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.promo-flow i { font-style: normal; color: var(--muted); }
.promo-sheet .btn.primary:disabled { opacity: .5; }
/* owner: entries */
.job-manage-sheet { max-width: 560px; max-height: 85vh; }
.job-manage-sheet .sheet-body { padding: 12px 16px; display: grid; gap: 10px; }
.job-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.job-stats div { display: grid; text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--hover); }
.job-stats b { font-size: 15px; }
.job-stats span { font-size: 11px; color: var(--muted); }
.entry { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.entry-head { display: flex; align-items: center; gap: 10px; }
.entry-head .tx-info { flex: 1; min-width: 0; }
.entry-post { display: flex; gap: 10px; padding: 8px; border-radius: 10px; background: var(--hover); font-size: 14px; }
.entry-post img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.entry-post span { white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.entry-vid { font-size: 32px; }
.entry-post video { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: #000; }
.entry-post.draft { position: relative; border: 1.5px dashed color-mix(in srgb, #f5b11c 60%, var(--line)); padding-bottom: 24px; }
.entry-post.draft em { position: absolute; right: 8px; bottom: 4px; font-style: normal; font-size: 11px; font-weight: 700; color: #c07a00; }
.job-actions .btn.waiting { cursor: default; opacity: .85; }
.c-job-review { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); font-size: 13px; }
.adreq-actions small { font-size: 11px; }
.job-review-admin { display: grid; }
.entry-actions { display: flex; gap: 6px; }
/* 공고 board */
.jobs-intro { padding: 14px 16px; display: grid; gap: 6px; margin-bottom: 14px; }
.jobs-intro span { font-size: 13px; color: var(--muted); }
.jobs-intro .btn { justify-self: start; }
.job-filters { display: grid; gap: 8px; margin-bottom: 14px; }
.job-filters .tag-chips { margin: 0; }
.job-filters .tag-chip { cursor: pointer; font: inherit; font-size: 13px; }
.job-filters .tag-chip.active { border-color: var(--accent); background: var(--accent-soft); }
.job-sort { justify-self: end; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 13px; }
.m-top-actions .m-jobs svg { width: 21px; height: 21px; }
@media (max-width: 760px) {
  .side [data-nav="#/jobs"] { display: none; }
  .job-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 761px) { .m-jobs { display: none; } }
.job-check { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.job-check:has(input:checked) { background: color-mix(in srgb, #ffd24a 25%, var(--card)); color: #c07a00; }
.job-check input { width: auto; margin: 0; accent-color: #f5b11c; }
.c-job { display: grid; gap: 6px; margin: 6px 0; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, #f5b11c 60%, var(--line)); }
.c-job-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; }
.c-job-row input { width: 92px; padding: 6px 10px; border-radius: 10px; }
.c-job-row .job-slots { width: 62px; }
.c-actions { flex-wrap: wrap; row-gap: 6px; } /* the 광고 공고 checkbox can push 게시 to a second line on phones */
.danger-text { color: var(--red); }
.ad-row .tx-info { flex: 1; min-width: 0; }
.ad-thumb { width: 64px; height: 34px; object-fit: cover; border-radius: 6px; flex: none; }
.ad-actions .btn { flex: 1; }

/* ---------- Long posts (썰) ---------- */
.content.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.more-text { margin-top: 4px; color: var(--muted); font-weight: 600; }
/* ---------- Live donations (small, 100P = TTS) ---------- */
.donate-box .amounts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tts-toggle { color: #fff; }
.donate-box .tts-row { gap: 10px; }
.donate-box .tts-preview { white-space: nowrap; flex: none; }
.donate-box .tts-row small { text-align: right; }
.donation-pop {
  position: absolute; left: 50%; top: 16%; z-index: 7; transform: translateX(-50%); max-width: 88%;
  display: grid; gap: 4px; justify-items: center; text-align: center; padding: 10px 18px; border-radius: 16px;
  background: rgba(20, 16, 40, .72); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: pop-in .35s cubic-bezier(.2,1.5,.4,1);
}
.donation-pop b { color: #ffd84d; }
.donation-pop span { font-size: 15px; word-break: break-word; }
.donation-pop.out { opacity: 0; transition: opacity .5s; }
@keyframes pop-in { from { opacity: 0; transform: translateX(-50%) scale(.7); } }

/* ---------- 😀 DM reactions ---------- */
.bubble[data-mid] { position: relative; }
.bubble .reacts { position: absolute; bottom: -12px; left: 8px; display: flex; gap: 3px; z-index: 1; }
.bubble.mine .reacts { left: auto; right: 8px; }
.bubble:has(.reacts) { margin-bottom: 12px; }
.react {
  padding: 1px 6px; border-radius: 999px; border: 1.5px solid var(--card); background: var(--hover); color: var(--text);
  font: inherit; font-size: 12px; line-height: 1.5; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.react.mine { background: var(--accent-soft); border-color: var(--accent); }
.react-picker {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 5; display: flex; gap: 2px; padding: 4px 6px;
  border-radius: 999px; background: var(--card); box-shadow: 0 6px 20px rgba(0,0,0,.2); animation: pop-in-picker .18s ease;
}
.bubble.mine .react-picker { left: auto; right: 0; }
.react-picker.below { bottom: auto; top: calc(100% + 6px); }
.react-picker button { border: 0; background: none; font-size: 22px; cursor: pointer; padding: 2px 4px; border-radius: 8px; transition: transform .1s; }
.react-picker button:hover { transform: scale(1.25); background: var(--hover); }
@keyframes pop-in-picker { from { opacity: 0; transform: translateY(6px) scale(.9); } }

/* ---------- 📌 pinned post / 🔒 ad lock ---------- */
.post .pin, .post .ad-lock { width: 30px; height: 30px; }
.post .pin svg { width: 16px; height: 16px; }
.post .pin.on { color: var(--accent); }
.post .pin.on svg { fill: currentColor; }
.post .ad-lock { font-size: 14px; }
.post.pinned { border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pin-label { font-size: 12px; font-weight: 800; color: var(--accent); margin: -4px 0 8px; }

/* ---------- round 5: share, report, to-top, profile extras, followers, recent searches, pinned comment ---------- */
.post .report { width: 30px; height: 30px; color: var(--muted); opacity: .6; }
.post .report:hover { opacity: 1; color: var(--red); }
.post .report svg { width: 15px; height: 15px; }
.to-top {
  position: fixed; right: 18px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 30; width: 46px; height: 46px;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.2); cursor: pointer;
}
@media (max-width: 760px) { .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); right: 14px; } }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.profile-meta b { color: var(--text); font-weight: 700; }
.avatar-wrap:not(.story-ring):has(img.avatar) { cursor: zoom-in; }
.report-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.report-reasons label { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--hover); font-size: 14px; cursor: pointer; }
.report-reasons input { width: auto; margin: 0; accent-color: var(--red); }
.follower-packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.follower-packs .pack { display: grid; gap: 2px; padding: 10px 4px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.follower-packs .pack b { font-size: 15px; }
.follower-packs .pack span { font-size: 12px; color: var(--muted); }
.follower-packs .pack.active { border-color: var(--accent); background: var(--accent-soft); }
.buy-followers { padding: 14px 16px; }
.tag-chip.recent { padding: 4px 6px 4px 12px; }
.tag-chip.recent .link { color: inherit; font-weight: 600; }
.tag-chip.recent .rm { color: var(--muted); padding: 0 4px; }
.comment.pinned > .cbody { background: var(--accent-soft); padding: 6px 10px; border-radius: 10px; }
.cpin-label { font-size: 11px; font-weight: 800; color: var(--accent); }
.react-picker .unsend { border-left: 1px solid var(--line); margin-left: 2px; padding-left: 8px; border-radius: 0; font-size: 18px; }
.page-head.row-between { display: flex; align-items: center; justify-content: space-between; }

/* ---------- 👁 views · 🔁 quote reposts · ↩️ DM replies ---------- */
.post footer .views { display: inline-flex; align-items: center; gap: 4px; padding: 8px 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.post footer .views svg { width: 17px; height: 17px; }
.quote-card { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; color: var(--text); }
.quote-card:hover { background: var(--hover); }
.quote-card.gone { color: var(--muted); font-size: 13px; }
.quote-head { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.quote-head span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-card p { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.quote-card img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }
.quote-vid { font-size: 13px; color: var(--muted); }
.reply-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--hover); font-size: 13px; }
.reply-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar .icon-btn { width: 28px; height: 28px; }
.reply-quote {
  display: block; margin: -2px 0 6px; padding: 4px 8px; border-left: 3px solid currentColor; border-radius: 6px;
  background: rgba(0,0,0,.08); font-style: normal; font-size: 12.5px; opacity: .85; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px;
}
.reply-quote b { margin-right: 6px; }
.bubble.flash-msg > span { animation: flash-msg 1.2s ease; }
@keyframes flash-msg { 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); } }

/* ---------- ⋯ menus (cleaner cards & profiles) ---------- */
.post header .pmore { width: 32px; height: 32px; color: var(--muted); }
.pop-menu {
  position: absolute; z-index: 90; min-width: 200px; padding: 6px; display: grid; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.18); animation: pop-in-picker .15s ease;
}
.pm-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: none;
  color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
}
.pm-item span { width: 20px; text-align: center; }
.pm-item:hover:not(:disabled) { background: var(--hover); }
.pm-item.danger { color: var(--red); }
.pm-item:disabled { color: var(--muted); cursor: default; font-weight: 500; font-size: 13px; }
.actions .btn.icon-only { flex: none; min-width: 0; width: 44px; padding: 0; display: grid; place-items: center; font-size: 18px; }
.actions .btn.sub-btn.on { background: var(--accent-soft); border-color: var(--accent); }
.head-chips { display: flex; gap: 6px; }
.head-chips .chip, .folder-bar .chip, .folder-pick .chip {
  padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.head-chips .chip:hover, .folder-bar .chip:hover:not(.active), .folder-pick .chip:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* ---------- 🎨 profile cover ---------- */
.profile.has-cover { padding-top: 0; overflow: hidden; }
.profile .cover { height: 120px; margin: 0 -24px 0; background-size: cover; }
.profile.has-cover .profile-top { align-items: flex-start; }
.profile.has-cover .avatar-wrap { margin-top: -46px; flex: none; }
.profile.has-cover .pinfo { padding-top: 12px; }
.profile .actions .btn:not(.icon-only) { min-width: 90px; }
.profile.has-cover .avatar-wrap { background: var(--card); border-radius: 50%; }
.profile.has-cover .avatar-wrap .avatar { box-shadow: 0 0 0 4px var(--card); }
.cover-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px; }
.cover-opt { aspect-ratio: 16 / 9; border-radius: 12px; border: 2.5px solid transparent; cursor: pointer; background: var(--hover); font: inherit; font-size: 12px; color: var(--muted); }
.cover-opt.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--card) inset; }

/* ---------- 💌 question box ---------- */
.qna-ask { padding: 14px 16px; display: grid; gap: 8px; margin-bottom: 14px; }
.qna-ask textarea, .qna-item textarea { resize: none; }
.qna-ask .btn { justify-self: end; }
.qna-item { padding: 14px 16px; display: grid; gap: 10px; margin-bottom: 10px; }
.qna-item.waiting { border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); }
.qna-q { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; white-space: pre-wrap; word-break: break-word; }
.qna-q time, .qna-item > time { font-weight: 400; font-size: 12px; color: var(--muted); }
.qna-a { display: flex; gap: 8px; align-items: flex-start; }
.qna-a p { margin: 0; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: var(--accent-soft); white-space: pre-wrap; word-break: break-word; }
.qna-actions { display: flex; gap: 6px; justify-content: flex-end; }
.qna-tip { padding: 14px 16px; margin-bottom: 14px; font-size: 14px; }

/* ---------- 🏆 weekly top ---------- */
.rank-badge { display: inline-block; margin: -4px 0 8px; padding: 2px 10px; border-radius: 999px; background: var(--hover); font-weight: 800; font-size: 13px; }
.rank-badge.r1, .rank-badge.r2, .rank-badge.r3 { font-size: 22px; background: none; padding: 0; }
.top-note { margin: -6px 0 12px; }

/* ---------- 🌙 quiet hours ---------- */
.quiet-times { display: flex; align-items: center; gap: 10px; padding: 4px 0 6px; }
.quiet-times label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.quiet-times input { width: auto; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; }

/* ---------- Post editing ---------- */
.post .edit { width: 30px; height: 30px; }
.post .edit svg { width: 16px; height: 16px; }
.ptime .edited { font-size: 12px; }
.edit-box { margin-top: 12px; display: grid; gap: 8px; }
.edit-box textarea { font-size: 15.5px; resize: none; min-height: 60px; }
.edit-actions { display: flex; align-items: center; gap: 8px; }
.edit-actions small { flex: 1; color: var(--muted); font-size: 12px; }

/* ---------- Polls ---------- */
.poll { display: grid; gap: 8px; margin-top: 12px; }
.poll-opt {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; border: 1.5px solid var(--accent); border-radius: 12px; background: none;
  color: var(--accent); font-weight: 600; cursor: pointer; text-align: left;
}
.poll-opt:not(.shown):hover { background: var(--accent-soft); }
.poll-opt.shown { border-color: var(--line); color: var(--text); }
.poll-opt i { position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); transition: width .5s ease; }
.poll-opt.mine i { background: color-mix(in srgb, var(--accent) 32%, transparent); }
.poll-opt span, .poll-opt b { position: relative; }
.poll-opt b { font-variant-numeric: tabular-nums; }
.poll-opt.win b, .poll-opt.mine b { color: var(--accent); }
.poll-opt:disabled { cursor: default; }
.poll-meta { font-size: 13px; color: var(--muted); }
.c-poll { display: grid; gap: 8px; margin: 6px 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.c-poll-opts { display: grid; gap: 6px; }
.c-poll-opts input { padding: 8px 12px; border-radius: 10px; }
.c-poll-foot { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.c-poll-foot .rm-poll { margin-left: auto; color: var(--red); }
.poll-hours { padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 13px; }
.c-actions .poll-btn.on { color: var(--accent); background: var(--accent-soft); }

/* ---------- Comment replies & likes ---------- */
.comment .cbody { flex: 1; min-width: 0; }
.comment.reply { font-size: 13.5px; }
.replies { display: grid; gap: 10px; margin-top: 10px; }
.replies:empty { display: none; }
.clike {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 2px; vertical-align: middle;
  border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px;
}
.clike svg { width: 14px; height: 14px; }
.clike.on { color: var(--red); }
.clike.on svg { fill: currentColor; }
.reply-to { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding: 6px 12px; border-radius: 10px; background: var(--hover); color: var(--muted); font-size: 13px; }
.reply-to b { color: var(--text); }

/* ---------- Stories ---------- */
.story-tray { display: flex; gap: 12px; padding: 12px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.story-tray::-webkit-scrollbar { display: none; }
.story-item { position: relative; flex: none; width: 70px; display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; }
.story-item small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.story-ring { display: inline-flex; border-radius: 50%; padding: 3px; }
.story-ring .avatar { border: 3px solid var(--card); }
.story-ring.unseen { background: linear-gradient(45deg, #ffb547, #ff4d9d 50%, var(--accent)); }
.story-ring.seen { background: var(--line); }
.avatar-wrap.story-ring { cursor: pointer; }
.story-plus {
  position: absolute; top: 46px; left: 46px; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 0 0 2.5px var(--card);
}
.story-plus svg { width: 14px; height: 14px; stroke-width: 3; }
.story-view { position: fixed; inset: 0; z-index: 120; background: #000; display: grid; place-items: center; }
.story-view ~ .modal { z-index: 130; } /* viewers list opened from the player */
body:has(.story-view) #toasts { z-index: 140; }
.story-stage { position: relative; width: 100%; max-width: 440px; height: 100dvh; max-height: 100dvh; overflow: hidden; background: #111; color: #fff; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
@media (min-width: 600px) { .story-stage { height: min(92dvh, 800px); border-radius: 16px; } }
.story-media { position: absolute; inset: 0; display: grid; place-items: center; }
.story-media img, .story-media video { width: 100%; height: 100%; object-fit: contain; }
.story-bars { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.story-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-bars i { display: block; height: 100%; background: #fff; }
.story-head { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 10px; right: 6px; display: flex; align-items: center; z-index: 3; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.story-who { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.story-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-who small { opacity: .8; font-size: 12px; white-space: nowrap; }
.story-head .s-close { color: #fff; }
.story-nav { position: absolute; top: 80px; bottom: 90px; border: 0; background: none; z-index: 1; cursor: pointer; }
.story-nav.prev { left: 0; width: 35%; }
.story-nav.next { right: 0; width: 65%; }
.story-caption {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 2; max-width: calc(100% - 40px); margin: 0;
  padding: 8px 14px; border-radius: 12px; background: rgba(0,0,0,.5); text-align: center; white-space: pre-wrap; word-break: break-word;
}
.story-caption a { color: #fff; text-decoration: underline; }
.story-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.s-reply { display: flex; align-items: center; gap: 4px; flex: 1; }
.s-reply input { flex: 1; padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.6); background: transparent; color: #fff; }
.s-reply input::placeholder { color: rgba(255,255,255,.75); }
.story-foot .icon-btn { color: #fff; position: relative; }
.s-viewers { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; padding: 8px 10px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-weight: 600; cursor: pointer; }
.story-sheet .sheet-body { padding: 16px; display: grid; gap: 12px; }
.story-preview { width: min(100%, 240px); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 14px; overflow: hidden; background: var(--hover); display: grid; place-items: center; }
.story-preview.empty { width: 100%; aspect-ratio: auto; padding: 28px 12px; }
.story-preview img, .story-preview video { width: 100%; height: 100%; object-fit: cover; }
.story-src { display: flex; gap: 8px; margin-top: 10px; }
.story-src .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.story-src svg { width: 18px; height: 18px; }

/* ---------- Voice messages ---------- */
.msg-form .rec-btn { color: var(--accent); flex: none; }
.rec-bar { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.rec-bar .rec-cancel { color: var(--muted); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4d6d; animation: rec-blink 1s ease-in-out infinite; }
@keyframes rec-blink { 50% { opacity: .25; } }
.rec-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.rec-hint { flex: 1; color: var(--muted); font-size: 13px; }
.bubble .voice { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; min-width: 190px; cursor: pointer; --p: 0; }
.voice .vplay {
  width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: #fff;
}
.bubble.mine .voice .vplay { background: #fff; color: var(--accent); }
.voice .vbar { flex: 1; height: 24px; display: flex; align-items: center; gap: 2px; }
.voice .vbar b { flex: 1; border-radius: 2px; background: currentColor; opacity: .3; }
.voice .vbar b:nth-child(3n) { height: 70%; } .voice .vbar b:nth-child(3n+1) { height: 40%; } .voice .vbar b:nth-child(3n+2) { height: 90%; }
.voice .vbar b:nth-child(5n) { height: 55%; } .voice .vbar b:nth-child(7n) { height: 100%; }
.voice .vbar b.on { opacity: 1; } /* played part */
.bubble:not(.mine) .voice .vbar b.on { color: var(--accent); }
.voice .vtime { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .85; min-width: 30px; text-align: right; }

/* ---------- 1:1 calls ---------- */
.chat header .call-btns { margin-left: auto; display: flex; gap: 2px; }
.chat header .call-btns .icon-btn { color: var(--accent); }
.call-screen {
  position: fixed; inset: 0; z-index: 200; overflow: hidden; color: #fff;
  background: radial-gradient(120% 80% at 50% 0%, #6b4dff 0%, #2a1d5c 55%, #120c28 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(48px + env(safe-area-inset-top)) 20px calc(36px + env(safe-area-inset-bottom));
  animation: call-in .3s ease-out;
}
@keyframes call-in { from { opacity: 0; transform: scale(1.04); } }
.call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; background: #000; }
.call-screen.video[data-state="active"] .call-remote { display: block; }
.call-screen.video[data-state="active"].peer-cam-off .call-remote { display: none; }
.call-audio { display: none; }
.call-info { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; margin-top: 6vh; text-align: center; }
.call-info .avatar { box-shadow: 0 0 0 6px rgba(255, 255, 255, .12); }
.call-screen:is([data-state="calling"], [data-state="ringing"]) .call-info .avatar { animation: call-pulse 1.6s ease-out infinite; }
@keyframes call-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45), 0 0 0 0 rgba(255, 255, 255, .25); }
  100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0), 0 0 0 44px rgba(255, 255, 255, 0); }
}
.call-info b { font-family: var(--font-title); font-weight: 400; font-size: 28px; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.call-status { font-size: 15px; opacity: .85; font-variant-numeric: tabular-nums; }
.call-peer-off { display: none; font-size: 13px; opacity: .8; }
.call-screen.peer-cam-off[data-state="active"] .call-peer-off { display: block; }
/* in a video call the name moves to a small label at the top */
.call-screen.video[data-state="active"]:not(.peer-cam-off) .call-info { margin-top: 0; }
.call-screen.video[data-state="active"]:not(.peer-cam-off) .call-info .avatar { display: none; }
.call-screen.video[data-state="active"]:not(.peer-cam-off) .call-info b { font-size: 18px; }
.call-local {
  position: absolute; z-index: 2; top: calc(16px + env(safe-area-inset-top)); right: 16px;
  width: 104px; height: 150px; object-fit: cover; border-radius: 16px; background: #000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4); transform: scaleX(-1); display: none;
}
.call-screen.video:not(.my-cam-off) .call-local { display: block; }
.call-screen.rear .call-local { transform: none; }
.call-actions { position: relative; z-index: 1; display: none; gap: 22px; align-items: center; }
.call-screen[data-state="ringing"] .call-actions.incoming { display: flex; gap: 72px; }
.call-screen:not([data-state="ringing"]) .call-actions.talking { display: flex; }
.call-btn {
  width: 62px; height: 62px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(8px); transition: transform .15s, background .15s;
}
.call-btn:active { transform: scale(.92); }
.call-btn svg { width: 26px; height: 26px; }
.call-btn.off { background: #fff; color: #2a1d5c; }
.call-btn.hang, .call-btn.decline { background: #ff4d6d; width: 70px; height: 70px; }
.call-btn.hang svg, .call-btn.decline svg { transform: rotate(135deg); }
.call-btn.accept { background: #22c37a; width: 70px; height: 70px; animation: call-wiggle 1.2s ease-in-out infinite; }
@keyframes call-wiggle { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } }

/* "turn on phone notifications" offer */
.push-banner {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  width: min(440px, calc(100% - 32px)); display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(124, 92, 255, .25); animation: push-in .35s ease-out;
}
.push-banner > span { flex: 1; font-size: 14px; line-height: 1.45; }
.push-banner .inline-form { flex-wrap: nowrap; }
@keyframes push-in { from { opacity: 0; transform: translate(-50%, 16px); } }
@media (min-width: 761px) { .push-banner { bottom: 24px; } }
.wallet-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gift-sheet .sheet-body { padding: 14px 18px 18px; }
.gift-sheet .amounts { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* page buttons under long lists */
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; flex-wrap: wrap; padding: 10px 0 4px; }
.pager button {
  min-width: 34px; height: 34px; padding: 0 8px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--muted); font-family: var(--font-title); font-size: 15px; cursor: pointer;
  transition: transform .12s, background .15s;
}
.pager button:hover:not(:disabled):not(.active) { background: var(--hover); color: var(--text); }
.pager button:active:not(:disabled) { transform: scale(.9); }
.pager button.active { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #ff7eb6)); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager span { color: var(--muted); padding: 0 2px; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 35%, transparent) transparent; }

/* ---------- round 8: levels, birthdays, bg cards, spoilers, stats, admin members, ✊ ---------- */
.lv {
  display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), #ff7eb6);
}
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.badge-chip { padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: 12.5px; }
.xp { position: relative; height: 8px; margin: 10px 0 2px; border-radius: 999px; background: var(--line); overflow: hidden; }
.xp i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ff7eb6); }
.bday-banner {
  margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; font-weight: 600;
  background: linear-gradient(135deg, #ffe08a, #ffb3c7); color: #4a2a00;
}
.bday-banner.home { margin: 0 0 12px; }
.bday-banner a { color: inherit; }
.daily-q { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.daily-q b { flex: 1 1 200px; }
.dq-label { width: 100%; font-size: 12.5px; color: var(--muted); }
.daily-q:empty { display: none; }
.rp-group { display: inline-flex; align-items: center; gap: 2px; }
.rp-count { color: var(--muted); font-size: 13px; text-decoration: none; padding: 2px 4px; border-radius: 8px; }
.rp-count:hover { color: var(--accent); text-decoration: underline; }
.repost-origin { margin-bottom: 14px; }
.repost-origin .set-label { display: block; margin-bottom: 6px; }

/* 🎨 background card posts */
.bg-card {
  display: grid; place-items: center; min-height: 190px; padding: 24px 18px; margin: 6px 0; border-radius: 18px;
  text-align: center; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}
.bg-card .content { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.bg-card a { color: #fff; }
textarea.on-bg { color: #fff; text-align: center; font-size: 19px; font-weight: 700; border-radius: 16px; padding: 30px 14px; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
textarea.on-bg::placeholder { color: rgba(255, 255, 255, .8); }
.c-bg-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.c-bg-row[hidden] { display: none; }
.bg-sw {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1.5px var(--line);
  cursor: pointer; background: var(--bg); color: var(--muted); font-size: 12px;
}
.bg-sw.active { box-shadow: 0 0 0 2.5px var(--accent); }

/* ||spoiler|| */
.spoiler { background: var(--text); color: transparent; border-radius: 4px; padding: 0 3px; cursor: pointer; transition: background .2s, color .2s; user-select: none; }
.spoiler.shown { background: var(--accent-soft); color: inherit; user-select: text; cursor: text; }
.bg-card .spoiler { background: rgba(0, 0, 0, .55); text-shadow: none; }
.bg-card .spoiler.shown { background: rgba(255, 255, 255, .2); color: #fff; }

/* 📊 stats */
.stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; margin: 0; }
.stat-card span { color: var(--muted); font-size: 13px; }
.stat-card b { font-size: 22px; }
@media (max-width: 560px) { .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.week-card { display: flex; flex-direction: column; gap: 6px; }
.week-card > span { color: var(--muted); font-size: 13.5px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 18px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar i { display: block; width: 100%; max-width: 34px; min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #ff7eb6, var(--accent)); }
.bar small { margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.bar em { position: absolute; top: 0; font-style: normal; font-size: 11px; color: var(--muted); }
h2.sub { font-size: 17px; margin: 18px 0 8px; }

/* 🛡️ admin: member list + detail */
.member-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; border-radius: 10px;
}
.member-row:hover { background: var(--hover); }
.member-row .chev { margin-left: auto; color: var(--muted); font-size: 20px; }
.admin-user { display: flex; flex-direction: column; gap: 12px; }
.au-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.au-head > div { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.au-head > div span { color: var(--muted); font-size: 13px; }
.au-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.au-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.au-grid span { color: var(--muted); font-size: 12px; }
.au-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ✊ rock-paper-scissors bubble */
.bubble .rps { display: flex; flex-direction: column; gap: 4px; min-width: 190px; }
.bubble .rps em { font-style: normal; font-size: 13px; opacity: .85; }
.bubble .rps strong { font-size: 18px; }
.rps-picks { display: flex; gap: 8px; margin-top: 4px; }
.rps-picks button {
  flex: 1; height: 46px; font-size: 24px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); transition: transform .12s;
}
.rps-picks button:hover { transform: scale(1.08); }
.rps-picks button:active { transform: scale(.9); }

/* ---------- round 9: 📤 share by DM, 📅 scheduled posts, 🎵 profile BGM ---------- */
.post footer .act.dm-share { margin-left: auto; }
.post footer .act.dm-share + .act.bm { margin-left: 0; }
.share-people { max-height: 260px; overflow-y: auto; display: grid; gap: 2px; }
.share-person { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; cursor: pointer; }
.share-person:hover { background: var(--hover); }
.share-person input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.share-person span { display: flex; flex-direction: column; min-width: 0; }
.share-person small { color: var(--muted); font-size: 12px; }
.share-sheet .quote-card { margin-top: 0; pointer-events: none; }
.dm-share-msg { display: flex; flex-direction: column; gap: 2px; }
.dm-share-msg .quote-card { margin-top: 6px; background: var(--card); color: var(--text); min-width: 200px; }
.dm-share-msg .quote-card.gone { color: var(--muted); }
.dm-share-msg .quote-card span:not(.avatar) { padding: 0; border-radius: 0; background: none; white-space: nowrap; }
.dm-share-msg .quote-card span.avatar { padding: 0; border-radius: 50%; flex: none; }
.dm-share-msg .quote-head b { white-space: nowrap; }

.c-actions .sched-btn.on, .c-actions .bg-btn.on { background: var(--accent-soft); }
.c-sched { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; font-size: 14px; }
.c-sched[hidden] { display: none; }
.c-sched input { padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; }
.c-sched small { width: 100%; }
.sched-list { display: grid; gap: 10px; }
.sched-item { display: grid; gap: 8px; margin: 0; }
.sched-when { font-weight: 700; color: var(--accent); }
.sched-item .content { margin: 0; white-space: pre-wrap; word-break: break-word; }
.sched-actions { display: flex; gap: 6px; justify-content: flex-end; }

.bgm-player {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 10px 0 0; padding: 7px 14px 7px 8px;
  border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13.5px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff7eb6);
}
.bgm-player b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bgm-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .25); font-size: 11px; flex: none; }
.bgm-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.bgm-eq i { width: 3px; background: #fff; border-radius: 2px; animation: bgm-eq .8s ease-in-out infinite alternate; }
.bgm-eq i:nth-child(2) { animation-delay: .25s; }
.bgm-eq i:nth-child(3) { animation-delay: .5s; }
.bgm-player.playing .bgm-eq { display: inline-flex; }
@keyframes bgm-eq { from { height: 3px; } to { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .bgm-eq i { animation: none; height: 8px; } }
.file-pick { cursor: pointer; }

/* ---------- round 10: 📅 check-in, 🎲 dice, 📁 folders, 🔇 muted words, menu groups ---------- */
.pop-menu .pm-sep { border: 0; border-top: 1px solid var(--line); margin: 4px 8px; }
.chip.dot { position: relative; }
.chip.dot::after { content: ''; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 2px var(--card); }
.attend-streak { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #ff9a3c, #ff4d6d); text-align: center; }
.attend-streak b { font-size: 28px; }
.attend-streak span { font-size: 13px; opacity: .9; }
.stamps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.stamp { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; background: var(--bg); border: 1.5px solid transparent; }
.stamp i { font-style: normal; font-size: 18px; color: var(--muted); }
.stamp small { font-size: 11px; color: var(--muted); }
.stamp.on { background: var(--accent-soft); }
.stamp.today { border-color: var(--accent); }

.dice-msg { display: flex; align-items: center; gap: 10px; }
.dice-face { font-style: normal; font-size: 40px; line-height: 1; animation: dice-roll .6s ease-out; }
@keyframes dice-roll { from { transform: rotate(-540deg) scale(.4); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .dice-face { animation: none; } }

.folder-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.folder-bar .chip.active, .folder-pick .chip.active { background: var(--accent); color: #fff; border-color: transparent; }
.folder-bar .chip small { opacity: .75; margin-left: 2px; }
.folder-bar .link { font-size: 13px; }
.folder-pick { display: flex; flex-wrap: wrap; gap: 6px; }

.post.folded > :not(.fold-note) { display: none; }
.fold-note { width: 100%; padding: 6px 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.fold-note:hover { color: var(--accent); }
.set-row.column { flex-direction: column; align-items: stretch; gap: 8px; }
.muted-words { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; }
.attend-top { display: grid; gap: 4px; }
.attend-top:empty { display: none; }
.attend-rank { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; color: var(--text); text-decoration: none; }
.attend-rank:hover { background: var(--hover); }
.attend-rank > span { width: 22px; text-align: center; font-weight: 700; }
.attend-rank em { margin-left: auto; font-style: normal; font-size: 13px; color: #ff6a3c; font-weight: 700; }

/* ---------- round 11: profile extras, rankings, DM tools, composer extras, conveniences ---------- */
/* profile */
.prof-presence { font-style: normal; font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.prof-presence.on { color: #1aa866; font-weight: 600; }
.avatar-wrap .av-wrap.online::after { width: 20px; height: 20px; right: 4px; bottom: 4px; box-shadow: 0 0 0 3px var(--card); }
.status-bubble { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 14px 14px 14px 4px; background: var(--accent-soft); font-size: 13.5px; max-width: 100%; overflow-wrap: anywhere; }
.interests { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.interest { padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.interest:hover { border-color: var(--accent); }
.prof-link { color: var(--accent); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.prof-link:hover { text-decoration: underline; }
.bgm-count { font-size: 11.5px; opacity: .9; white-space: nowrap; padding-left: 4px; border-left: 1px solid rgba(255, 255, 255, .4); }
.prof-search { margin: 0 0 12px; }
.status-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.status-presets .chip { padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.status-presets .chip:hover { border-color: var(--accent); }
.status-emoji { width: 56px; flex: none !important; text-align: center; font-size: 18px; }
.tag.mutual { background: var(--accent-soft); color: var(--accent); }

/* lists: history, my comments, rankings, memories */
.row { display: flex; align-items: center; gap: 6px; }
.hist-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.hist-item:last-child { border-bottom: 0; }
.hist-item:hover { background: var(--hover); }
.hist-item > div { flex: 1; min-width: 0; }
.hist-item p { margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-item .muted { font-size: 12.5px; }
.hist-item .chev { color: var(--muted); font-size: 20px; }
.rank-tabs { overflow-x: auto; }
.rank-tabs button { white-space: nowrap; }
.rank-mine { margin: 0 0 10px; font-size: 14px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: var(--hover); }
.rank-row.me { background: var(--accent-soft); }
.rank-row > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rank-row .muted { font-size: 12.5px; }
.rank-no { width: 28px; text-align: center; font-weight: 800; font-size: 16px; flex: none; }
.rank-row em { font-style: normal; font-weight: 800; color: var(--accent); white-space: nowrap; }
.memory-label { margin: 10px 0 6px; font-weight: 700; color: var(--accent); }
.attend-top .row-between { display: flex; justify-content: space-between; align-items: center; }

/* posts */
.read-time { margin-left: 8px; font-size: 12.5px; color: var(--muted); }
.expiring { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: 999px; background: #fff1e6; color: #c2410c; font-size: 12.5px; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .expiring { background: #3a2414; color: #ffb27a; } }
:root[data-theme="dark"] .expiring { background: #3a2414; color: #ffb27a; }
.content b { font-weight: 800; }
.c-sort { display: flex; gap: 4px; margin: 0 0 8px; }
.c-sort button { padding: 3px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.c-sort button.active { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.post-img { cursor: zoom-in; }
.photo-save { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); }

/* composer */
.c-expire { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0; font-size: 14px; }
.c-expire[hidden], .emoji-grid[hidden] { display: none; }
.c-expire select { padding: 4px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; }
.c-actions .expire-btn.on { background: var(--accent-soft); }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 2px; margin: 6px 0; padding: 6px; border-radius: 14px; background: var(--bg); }
.emoji-grid button { height: 36px; border: 0; border-radius: 10px; background: none; font-size: 20px; cursor: pointer; }
.emoji-grid button:hover { background: var(--hover); }

/* DM */
.chat-find { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.chat-find[hidden], .dm-pin[hidden] { display: none; }
.chat-find input { flex: 1; min-width: 0; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; }
.cf-count { font-size: 12.5px; min-width: 34px; text-align: center; }
.bubble.hit > span { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.bubble.hit-now > span { outline: 2.5px solid var(--accent); }
.dm-pin { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: var(--accent-soft); }
.pin-jump { flex: 1; min-width: 0; display: flex; gap: 6px; align-items: center; border: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.pin-jump span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.star-btn { border: 0; background: none; padding: 2px; font-size: 15px; cursor: pointer; color: var(--muted); line-height: 1; }
.conv.starred { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* notifications */
.notif-tabs { overflow-x: auto; margin-bottom: 10px; }
.notif-tabs button { white-space: nowrap; }

/* home chips scroll sideways on small screens */
.head-chips { overflow-x: auto; scrollbar-width: none; max-width: 70vw; }
.head-chips::-webkit-scrollbar { display: none; }

/* conveniences */
.offline-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 300; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: #3b3b4f; color: #fff; text-align: center; font-size: 13.5px; font-weight: 600; }
.offline-bar[hidden] { display: none; }
.keys { display: grid; gap: 8px; }
.keys div { display: flex; justify-content: space-between; gap: 12px; }
kbd { display: inline-block; min-width: 22px; padding: 1px 7px; border: 1.5px solid var(--line); border-bottom-width: 3px; border-radius: 7px; background: var(--bg); font: 700 12.5px/1.6 ui-monospace, monospace; text-align: center; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: confetti-fall linear forwards; }
@keyframes confetti-fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .9; } }
.pop-menu { max-height: calc(100vh - 16px); overflow-y: auto; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.act-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 16px 6px; border: 0; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: transform .12s; }
.act-tile span { font-size: 26px; }
.act-tile:hover { transform: translateY(-2px); }
.act-tile:active { transform: scale(.96); }
/* busy tab rows (profile, notifications, rankings) scroll sideways instead of squeezing their labels */
.ptabs, .notif-tabs, .rank-tabs { overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar, .notif-tabs::-webkit-scrollbar, .rank-tabs::-webkit-scrollbar { display: none; }
.ptabs button, .notif-tabs button, .rank-tabs button { flex: 1 0 auto; white-space: nowrap; padding-inline: 12px; }

/* ---------- 📍 location · 🤝 meet · 📇 cards ---------- */
.nearby-tabs { overflow-x: auto; scrollbar-width: none; }
.nearby-tabs::-webkit-scrollbar { display: none; }
.nearby-tabs button { flex: 1 0 auto; white-space: nowrap; padding-inline: 12px; }
.loc-share .allow-box { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.allow-list { display: flex; flex-wrap: wrap; gap: 6px; }
.allow-results:empty { display: none; }
.allow-results { display: grid; gap: 2px; }
.map-wrap { padding: 0; overflow: hidden; margin: 12px 0; }
.loc-map { height: 340px; width: 100%; background: var(--bg); }
.map-pin { background: none; border: 0; }
.map-pin .avatar { border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.map-pin.me .avatar { border-color: var(--accent); }
.leaflet-container { font: inherit; }
.loc-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.loc-row:last-child { border-bottom: 0; }
.loc-row:hover { background: var(--hover); }
.loc-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.loc-row .muted { font-size: 12.5px; }

.meet-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 24px 18px; }
.meet-hero h2 { margin: 4px 0 0; }
.meet-hero p { margin: 0; }
.meet-hero .warn { color: #c2410c; font-weight: 600; font-size: 14px; }
.meet-radar { position: relative; width: 110px; height: 110px; display: grid; place-items: center; }
.meet-radar b { font-size: 40px; z-index: 1; }
.meet-radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); opacity: 0; }
.meet-hero.on .meet-radar span { animation: radar 2.4s ease-out infinite; }
.meet-hero.on .meet-radar span:nth-child(2) { animation-delay: .8s; }
.meet-hero.on .meet-radar span:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar { from { transform: scale(.35); opacity: .9; } to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .meet-hero.on .meet-radar span { animation: none; opacity: .5; } }
.how ol { margin: 8px 0; padding-left: 20px; display: grid; gap: 4px; }
.meet-who { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.meet-who.small { flex-direction: row; gap: 8px; margin-bottom: 6px; }
.meet-body { text-align: center; }
.meet-body p { margin: 0; }
.meet-state:empty { display: none; }

.biz-card { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), var(--card)); border: 1.5px solid var(--line); }
.card-row { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.card-row:last-child { border-bottom: 0; }
.card-row span { flex: none; width: 92px; color: var(--muted); font-size: 13px; }
.card-row b { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.card-row a { color: var(--accent); }
.card-form { display: grid; gap: 10px; }
.card-field { display: grid; gap: 4px; }
.card-field span { font-size: 13px; color: var(--muted); font-weight: 600; }
.card-field input { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; }
.card-field input:focus { border-color: var(--accent); outline: none; }
.inbox-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inbox-row .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allow-box .inline-form input { flex: 1; min-width: 0; }
.bump-btn { font-size: 17px; padding: 14px; }
.bump-btn.busy { animation: bump-pulse 1s ease-in-out infinite; }
@keyframes bump-pulse { 50% { transform: scale(.97); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .bump-btn.busy { animation: none; } }
.gps-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg); color: var(--muted); }
.gps-chip.good { background: #e7f8ef; color: #12804a; }
.gps-chip.ok { background: #fff7d6; color: #8a6400; }
.gps-chip.poor { background: #fff1e6; color: #c2410c; }
.gps-chip.searching { animation: bump-pulse 1.2s ease-in-out infinite; }
:root[data-theme="dark"] .gps-chip.good { background: #133325; color: #6be3a4; }
:root[data-theme="dark"] .gps-chip.ok { background: #3a3110; color: #ffd75e; }
:root[data-theme="dark"] .gps-chip.poor { background: #3a2414; color: #ffb27a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gps-chip.good { background: #133325; color: #6be3a4; }
  :root:not([data-theme="light"]) .gps-chip.ok { background: #3a3110; color: #ffd75e; }
  :root:not([data-theme="light"]) .gps-chip.poor { background: #3a2414; color: #ffb27a; }
}
.loc-share .gps-chip { margin-top: 8px; }
/* ---------- tidy-up: ⋯ / ➕ menus ---------- */
.daily-q { position: relative; padding-right: 44px; }
.dq-close { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; color: var(--muted); }
.c-actions .c-more { font-size: 18px; }
.ptabs .ptab-more { flex: 0 0 auto; }
.ptabs .ptab-more.active { flex: 1 0 auto; }
.small-link { font-size: 13px; font-weight: 600; margin-left: 6px; }
.btn.ghost { background: none; border-color: var(--line); color: var(--muted); }
.center { text-align: center; }
.copy-val { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 600; cursor: copy; text-align: left; }
.copy-val small { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; }
/* 📱 대표 기기 · 맞대면 보낼 것 */
.device-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13.5px; }
.device-box.here { background: var(--accent-soft); }
.share-list { display: grid; gap: 2px; }
.share-item { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--line); cursor: pointer; }
.share-item span { flex: none; font-weight: 600; font-size: 14px; }
.share-item em { flex: 1; min-width: 0; font-style: normal; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.share-item input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.share-item.fixed { cursor: default; opacity: .85; }
.share-list .small-link { margin: 8px 0 4px; }
/* 📢 what's new */
.updates-sheet .sheet-body { max-height: min(70vh, 640px); overflow-y: auto; }
.upd-head { text-align: center; padding: 4px 0 2px; }
.upd-head h2 { margin: 4px 0 0; font-size: 19px; }
.upd-date { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.upd-list { display: grid; gap: 6px; }
.upd-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.upd-item:hover:not(:disabled) { border-color: var(--accent); }
.upd-item:disabled { cursor: default; opacity: 1; }
.upd-icon { font-size: 24px; flex: none; width: 32px; text-align: center; }
.upd-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.upd-text b { font-size: 14.5px; }
.upd-text small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.upd-item i { font-style: normal; color: var(--muted); font-size: 20px; }
.upd-older summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 6px 2px; }
.upd-older .upd-list { margin-top: 6px; }
/* 📢 admin: update notices */
.upd-admin-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.upd-admin-row:last-child { border-bottom: 0; }
.upd-admin-row > div:first-child { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.upd-admin-row .muted { font-size: 12.5px; }
.upd-admin-actions { display: flex; gap: 4px; align-items: center; }
.upd-editor .sheet-body { max-height: min(75vh, 680px); overflow-y: auto; }
.upd-rows { display: grid; gap: 10px; }
.upd-row { display: grid; gap: 6px; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; }
.upd-row input, .upd-row select { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; min-width: 0; }
.upd-row .inline-form input[name=t] { flex: 1; }

/* ---------- round 18: 30 features ---------- */
/* 😆 post reactions */
.p-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.p-reacts:empty { display: none; }
.p-react { padding: 2px 9px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.p-react.on { border-color: var(--accent); background: var(--accent-soft); }
/* 📶 data saver */
.saver-img { width: 100%; padding: 26px 10px; margin-top: 8px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.saver-img small { color: var(--muted); font-weight: 400; }
/* 🖼️ feed filter chip · 🚫 comments-off chip */
.media-filter { margin: 0 0 10px; }
.media-filter[hidden], .c-flag[hidden] { display: none; }
.media-filter .chip, .c-flag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.c-flag { margin: 6px 0; }
/* 👋 start guide */
.guide-card { display: grid; gap: 8px; margin-bottom: 12px; }
.guide-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-step { padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.guide-step:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.guide-step.ok { opacity: .55; text-decoration: line-through; cursor: default; }
/* 📷 photo filters · 🖍️ drawing */
.photo-filters { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.photo-filters .chip { flex: none; padding: 5px 11px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.photo-filters .chip.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.draw-canvas { width: 100%; aspect-ratio: 1; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; touch-action: none; cursor: crosshair; }
.draw-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.draw-color { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.draw-color.active { box-shadow: 0 0 0 3px var(--accent); }
.draw-size { padding: 5px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; }
/* ⏳ D-day · 🤝 common interests · 💖 praise */
.dday-chip { display: inline-block; margin: 6px 0 0 4px; padding: 3px 10px; border-radius: 999px; background: #fff1e6; color: #c2410c; font-size: 13px; font-weight: 700; }
:root[data-theme="dark"] .dday-chip { background: #3a2414; color: #ffb27a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dday-chip { background: #3a2414; color: #ffb27a; } }
.interest.common { background: var(--accent); color: #fff; border-color: transparent; }
.common-note { font-size: 12.5px; color: var(--accent); font-weight: 700; align-self: center; }
.praise-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.praise-chip { padding: 3px 10px; border-radius: 999px; background: #fff0f6; color: #c2255c; font-size: 13px; }
:root[data-theme="dark"] .praise-chip { background: #3b1426; color: #ff8cc0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .praise-chip { background: #3b1426; color: #ff8cc0; } }
.praise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.praise-pick { padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.praise-pick:hover { border-color: var(--accent); }
/* 🏅 badge book */
.badges[role="button"] { cursor: pointer; }
.badge-book { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-height: 65vh; overflow-y: auto; }
.badge-cell { display: grid; gap: 3px; justify-items: center; text-align: center; padding: 12px 8px; border-radius: 14px; background: var(--bg); opacity: .7; }
.badge-cell.earned { background: var(--accent-soft); opacity: 1; }
.badge-cell .b-icon { font-size: 28px; }
.badge-cell small { color: var(--muted); font-size: 11.5px; }
.badge-cell em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
.badge-cell .xp { width: 100%; margin: 2px 0 0; }
/* 📱 QR */
.qr-box { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 16px; min-height: 240px; }
/* 📝 guestbook */
.gb-form { margin: 0 0 10px; padding: 10px; }
.gb-form input { flex: 1; min-width: 0; }
.gb-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.gb-item:last-child { border-bottom: 0; }
.gb-item > div { flex: 1; min-width: 0; }
.gb-item p { margin: 3px 0 0; overflow-wrap: anywhere; }
.gb-item .muted { font-size: 12px; }
/* 💬 DM extras */
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; max-height: 65vh; overflow-y: auto; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.muted-ic { font-size: 12px; }
/* 📅 month calendar */
.attend-month summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--accent); padding: 4px 0; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 6px; text-align: center; }
.cal b { font-size: 11px; color: var(--muted); }
.cal span { padding: 6px 0; border-radius: 8px; font-size: 12.5px; background: var(--bg); }
.cal span:empty { background: none; }
.cal span.on { background: var(--accent-soft); }
.cal span.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.answers-sheet .sheet-body { max-height: 70vh; overflow-y: auto; }
/* ✏️ comments */
.c-edited { color: var(--muted); }
.comment.c-folded .ctext, .comment.c-folded > .cbody > .cmeta, .comment.c-folded > .cbody > a { display: none; }
.c-fold-note { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.c-off { padding: 10px 4px; font-size: 13.5px; }
/* 🔑 sessions */
.session-list { display: grid; gap: 2px; margin: 4px 0 10px; }
.session-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed var(--line); }
.session-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.session-row .muted { font-size: 12.5px; }
.s-ic { font-size: 22px; }
/* 😴 rest · 🤝 similar */
.rest-emoji { font-size: 52px; }
.rest-sheet h2 { margin: 0; }
.common-tags { display: block; color: var(--accent); font-size: 12px; font-weight: 600; }
.hint-card { padding: 14px; margin-bottom: 12px; }
.hint-card p { margin: 4px 0 0; }

/* ---------- 🎁 live gifts ---------- */
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.gift-opt { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; transition: transform .12s; }
.gift-opt span { font-size: 26px; line-height: 1.1; }
.gift-opt b { font-size: 12.5px; }
.gift-opt small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.gift-opt:active { transform: scale(.94); }
.gift-opt.active { border-color: var(--accent); background: var(--accent-soft); }
.gift-opt.epic small { color: #c2410c; }
.gift-opt.legend { background: linear-gradient(135deg, #fff6d6, #ffe0f0); border-color: #f5c542; }
.gift-opt.legend small { color: #b7791f; }
:root[data-theme="dark"] .gift-opt.legend { background: linear-gradient(135deg, #3a300f, #3b1426); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gift-opt.legend { background: linear-gradient(135deg, #3a300f, #3b1426); } }
.gift-opt.legend.active { box-shadow: 0 0 0 2px #f5c542; }
.lc-msg.donation.epic, .lc-msg.donation.legend { font-weight: 700; background: linear-gradient(90deg, rgba(255, 215, 0, .22), transparent); border-radius: 8px; padding: 2px 6px; }
/* stage effects */
.gift-fx { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; z-index: 6; overflow: hidden; }
.gift-icon { font-size: 90px; animation: gift-pop 3.2s ease-out forwards; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.gift-fx.small .gift-icon { font-size: 60px; }
.gift-fx.epic .gift-icon { font-size: 130px; }
.gift-fx.legend { background: radial-gradient(circle, rgba(255, 215, 0, .35), rgba(0, 0, 0, .55)); animation: gift-flash 6s ease-out forwards; }
.gift-fx.legend .gift-icon { font-size: 170px; animation-duration: 5.6s; }
.gift-rain i { position: absolute; top: -60px; font-style: normal; font-size: 40px; animation: gift-fall 2.6s linear infinite; }
@keyframes gift-pop { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 15% { transform: scale(1.15) rotate(6deg); opacity: 1; } 30% { transform: scale(1) rotate(0); } 80% { opacity: 1; } 100% { transform: translateY(-40px) scale(1.05); opacity: 0; } }
@keyframes gift-fall { to { transform: translateY(120vh) rotate(360deg); } }
@keyframes gift-flash { 0% { opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gift-icon, .gift-rain i, .gift-fx.legend { animation: none; } .gift-rain { display: none; } }
.donation-pop.epic b, .donation-pop.legend b { color: #ffd60a; }
.donation-pop.legend { transform: scale(1.08); }
.donors-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12.5px; }
.donors-bar small { opacity: .8; }
.donors-bar em { margin-left: auto; font-style: normal; font-weight: 700; color: #ffd60a; }

/* ---------- 🎆 per-gift stage animations ---------- */
.gift-fx i { position: absolute; font-style: normal; }
/* 🌹 petals */
.fx-rose .petal { top: -50px; font-size: 30px; animation: petal-fall 3s ease-in forwards; }
@keyframes petal-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(30px, 55vh) rotate(160deg); } 100% { transform: translate(-20px, 110vh) rotate(320deg); opacity: .4; } }
/* ✨ sparks fly out of the middle */
.gift-fx .spark { left: 50%; top: 50%; font-size: 22px; animation: spark-out 1.4s ease-out forwards; opacity: 0; }
@keyframes spark-out { 0% { transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(.4); opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-140px) scale(1.2); opacity: 0; } }
/* 💎 spin */
.gift-icon.spin { animation: gem-spin 3.2s ease-in-out forwards; }
@keyframes gem-spin { 0% { transform: scale(.2) rotateY(0); opacity: 0; } 20% { transform: scale(1.2) rotateY(360deg); opacity: 1; } 70% { transform: scale(1) rotateY(720deg); opacity: 1; } 100% { transform: scale(1.4) rotateY(900deg); opacity: 0; } }
/* 🚀 launch */
.gift-icon.launch { position: relative; animation: rocket-up 3.2s cubic-bezier(.5, 0, .7, .4) forwards; }
.gift-icon.launch .smoke { left: 50%; top: 85%; font-size: 48px; transform: translateX(-50%) rotate(90deg); animation: smoke-puff .25s ease-in-out infinite alternate; }
@keyframes rocket-up { 0% { transform: translateY(70vh) rotate(-45deg); opacity: 0; } 12% { opacity: 1; } 35% { transform: translateY(20vh) rotate(-45deg); } 55% { transform: translateY(10vh) rotate(-45deg) scale(1.05); } 100% { transform: translateY(-90vh) rotate(-45deg) scale(.8); opacity: 1; } }
@keyframes smoke-puff { to { transform: translateX(-50%) rotate(90deg) scale(1.3); opacity: .6; } }
/* 👑 drop + rays */
.gift-icon.drop { animation: crown-drop 3.8s cubic-bezier(.3, 1.5, .5, 1) forwards; }
@keyframes crown-drop { 0% { transform: translateY(-80vh); opacity: 0; } 25% { transform: translateY(0); opacity: 1; } 32% { transform: translateY(-20px); } 40% { transform: translateY(0) scale(1.1); } 85% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.4); } }
.fx-crown .rays { position: absolute; width: 160vmax; height: 160vmax; background: repeating-conic-gradient(rgba(255, 215, 0, .28) 0 10deg, transparent 10deg 20deg); animation: rays-spin 4s linear forwards; opacity: 0; }
@keyframes rays-spin { 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: rotate(120deg); opacity: 0; } }
/* 🛸 hover + beam */
.gift-icon.hover { position: relative; animation: ufo-move 4.4s ease-in-out forwards; }
.gift-icon.hover .beam { position: absolute; left: 50%; top: 70%; width: 0; height: 0; transform: translateX(-50%); border-left: 70px solid transparent; border-right: 70px solid transparent; border-top: 220px solid rgba(140, 255, 200, .45); filter: blur(2px); animation: beam-blink .5s ease-in-out infinite alternate 1s; opacity: 0; }
@keyframes ufo-move { 0% { transform: translate(-80vw, -20vh); } 25% { transform: translate(0, -15vh); } 35% { transform: translate(0, -18vh) rotate(-6deg); } 45% { transform: translate(0, -14vh) rotate(6deg); } 55% { transform: translate(0, -18vh) rotate(-6deg); } 75% { transform: translate(0, -16vh); } 100% { transform: translate(60vw, -90vh) scale(.4); } }
@keyframes beam-blink { from { opacity: .3; } to { opacity: 1; } }
/* 🏰 rise + fireworks */
.gift-icon.rise { animation: castle-rise 5.2s ease-out forwards; }
@keyframes castle-rise { 0% { transform: translateY(60vh) scale(.8); opacity: 0; } 30% { transform: translateY(0) scale(1); opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1); } }
.fx-castle .firework { font-size: 46px; opacity: 0; animation: firework-pop 1s ease-out forwards; }
@keyframes firework-pop { 0% { transform: scale(.1); opacity: 1; } 60% { transform: scale(1.6); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
/* 🐉 fly across, breathing fire */
.gift-icon.fly { position: relative; display: inline-block; animation: dragon-fly 5.6s ease-in-out forwards; }
.gift-icon.fly .fire { right: 82%; top: 30%; font-size: 40px; white-space: nowrap; animation: fire-flicker .15s linear infinite alternate; transform: scaleX(-1); }
@keyframes dragon-fly { 0% { transform: translate(-90vw, 10vh) scaleX(-1); } 40% { transform: translate(0, -6vh) scaleX(-1) scale(1.15); } 55% { transform: translate(8vw, 0) scaleX(-1) scale(1.2); } 100% { transform: translate(100vw, -20vh) scaleX(-1); } }
@keyframes fire-flicker { to { opacity: .6; transform: scaleX(-1) scale(1.15); } }
.fx-dragon .ember { bottom: -40px; font-size: 26px; animation: ember-up 2.4s ease-out forwards; opacity: 0; }
@keyframes ember-up { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-80vh) scale(.4); opacity: 0; } }
.gift-fx.fx-dragon { background: radial-gradient(circle at 50% 60%, rgba(255, 120, 0, .35), rgba(0, 0, 0, .55)); }
.stage.shake { animation: stage-shake .12s linear 10; }
@keyframes stage-shake { 25% { transform: translate(4px, -3px); } 50% { transform: translate(-4px, 3px); } 75% { transform: translate(3px, 4px); } }
/* 🌌 swirling stars */
.gift-fx.fx-galaxy { background: radial-gradient(circle, rgba(124, 92, 255, .55), rgba(10, 5, 40, .85)); }
.fx-galaxy .swirl { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: swirl 6.4s linear forwards; }
.fx-galaxy .swirl i { left: 0; top: 0; font-size: 22px; transform: rotate(var(--a)) translate(var(--r)); }
@keyframes swirl { 0% { transform: rotate(0) scale(.2); opacity: 0; } 15% { opacity: 1; } 70% { transform: rotate(540deg) scale(1.6); opacity: 1; } 100% { transform: rotate(720deg) scale(3); opacity: 0; } }
.gift-icon.cosmic { animation: cosmic 6.2s ease-in-out forwards; }
@keyframes cosmic { 0% { transform: scale(0) rotate(-180deg); opacity: 0; } 25% { transform: scale(1.2) rotate(0); opacity: 1; } 50% { transform: scale(1); filter: drop-shadow(0 0 30px #b39dff); } 75% { transform: scale(1.15); } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .gift-fx *, .stage.shake { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
  .gift-fx .gift-icon { animation: none !important; }
}

/* ---------- round 20: 100 small features ---------- */
/* 🎨 look & feel switches (classes on <html>) */
html.plain-bg body { background-image: none; }
html.bold-text body { font-weight: 600; }
html.bold-text .muted, html.bold-text small { font-weight: 500; }
html.compact .post { padding-top: 10px; padding-bottom: 8px; margin-bottom: 8px; }
html.compact .post .ptext { margin: 4px 0; }
html.compact .feed { gap: 6px; }
html.hide-likes .lc-btn, html.hide-likes .clc { display: none; }
html.hide-views .post footer .views, html.hide-views .total-views { display: none; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
/* 🗣️ voice / speed chips on the gift box */
.voice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 6px 0 0; }
.voice-row .muted { font-size: 12.5px; width: 40px; }
.voice-row .chip { padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.voice-row .chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.msg-dice { flex: none; }
.again { font-weight: 700; }
/* 💬 live chat */
.lc-msg.mine { background: var(--accent-soft); border-radius: 8px; padding: 1px 6px; }
.lc-big { margin-left: 2px; }
.lc-new { position: relative; margin: -36px auto 6px; display: block; padding: 4px 12px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); z-index: 2; }
.lc-new[hidden] { display: none; }
.dm-new { margin-top: -44px; }
/* ✍️ composer */
.composer.drop-on { outline: 2.5px dashed var(--accent); outline-offset: 2px; }
/* 📰 feed */
.feed-end { text-align: center; color: var(--muted); font-size: 13.5px; padding: 18px 0 8px; }
.post.just-in { animation: just-in 1.6s ease-out; }
@keyframes just-in { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: var(--shadow, none); } }
.post.kb-focus { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.new-pill { position: fixed; top: calc(70px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 30; padding: 7px 16px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 13.5px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); cursor: pointer; }
.new-pill[hidden] { display: none; }
.big-read .big-text { font-size: 22px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; margin: 0; }
.ptr { position: fixed; top: calc(62px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 40; padding: 6px 14px; border-radius: 999px; background: var(--card); box-shadow: 0 4px 14px rgba(0, 0, 0, .15); font-size: 13px; font-weight: 700; }
.ptr[hidden] { display: none; }
/* 💬 comments */
.comment.mine > .cbody { background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 10px; padding: 4px 8px; }
.c-author { padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.c-best { padding: 0 6px; border-radius: 999px; background: #fff1e6; color: #c2410c; font-size: 11px; font-weight: 700; }
.c-empty { padding: 10px 2px; font-size: 13.5px; }
.c-count { font-size: 11.5px; color: var(--muted); align-self: center; }
/* 👤 profile */
.grass { display: grid; grid-template-rows: repeat(7, 9px); grid-auto-flow: column; grid-auto-columns: 9px; gap: 2px; margin: 8px 0; }
.grass i { border-radius: 2px; background: var(--line); }
.grass i.g1 { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.grass i.g2 { background: color-mix(in srgb, var(--accent) 65%, transparent); }
.grass i.g3 { background: var(--accent); }
.mbti-chip { display: inline-block; margin: 6px 0 0 4px; padding: 3px 10px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 13px; font-weight: 700; }
:root[data-theme="dark"] .mbti-chip { background: #1e1b4b; color: #a5b4fc; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mbti-chip { background: #1e1b4b; color: #a5b4fc; } }
.anniv { color: var(--accent); font-weight: 700; }
.avatar-wrap.lv-ring .av-wrap > .avatar { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--ring, transparent); }
.lv-ring.lv1 { --ring: #d1d5db; } .lv-ring.lv2 { --ring: #86efac; } .lv-ring.lv3 { --ring: #60a5fa; } .lv-ring.lv4 { --ring: #c084fc; } .lv-ring.lv5 { --ring: #fbbf24; }
.list-tools { display: flex; gap: 6px; margin: 0 0 10px; }
.list-tools input { flex: 1; min-width: 0; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; }
.list-tools select { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; }
/* 💌 DM */
.day-sep { display: flex; justify-content: center; margin: 10px 0 4px; }
.day-sep span { padding: 2px 12px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 600; }
.greet-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.greet-chips .chip { padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.msgs[data-bg="sky"] { background: linear-gradient(180deg, #e0f2fe, #f0f9ff); }
.msgs[data-bg="peach"] { background: linear-gradient(180deg, #ffe4e6, #fff7ed); }
.msgs[data-bg="mint"] { background: linear-gradient(180deg, #dcfce7, #f0fdf4); }
.msgs[data-bg="night"] { background: radial-gradient(circle at 20% 20%, #fff 0 1px, transparent 2px), radial-gradient(circle at 70% 60%, #fff 0 1px, transparent 2px), linear-gradient(180deg, #1e1b4b, #312e81); }
.msgs[data-bg="night"] .day-sep span { background: rgba(255, 255, 255, .15); color: #e0e7ff; }
.vspeed { margin-left: 4px; padding: 0 6px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .08); color: inherit; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.conv-tools { display: flex; gap: 6px; margin: 0 0 8px; }
.conv-tools input { flex: 1; min-width: 0; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; }
.conv-tools .chip { padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.conv-tools .chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
/* 🔔 notifications */
.notif-day { padding: 8px 14px 2px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.notif { position: relative; }
.notif-av { position: relative; flex: none; display: inline-flex; }
.notif-kind { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--card); font-style: normal; font-size: 11px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.notif-del { margin-left: auto; opacity: .45; flex: none; }
.notif-del:hover { opacity: 1; }
/* 🔍 search */
.tag-rank { margin-right: 4px; color: var(--muted); font-size: 11px; }
/* ⚙️ settings search */
.set-search { position: relative; margin: 0 0 12px; }
.set-search input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; }
.set-results { display: grid; gap: 2px; margin-top: 6px; padding: 6px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow, 0 4px 14px rgba(0, 0, 0, .1)); }
.set-results[hidden] { display: none; }
.set-results a { padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; }
.set-results a:hover { background: var(--hover); }
/* 🪙 wallet */
.month-spent { display: block; margin-top: 4px; font-size: 13px; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 38px; margin: 8px 0 2px; }
.spark i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.spark i:last-child { background: var(--accent); }
.tx-filter { display: flex; gap: 6px; margin: 0 0 8px; }
.tx-filter .chip, .admin-toc .chip { padding: 5px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
.tx-filter .chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
/* 🛡️ admin */
.admin-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.today-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.today-stats div { display: grid; padding: 12px; border-radius: 12px; background: var(--bg); text-align: center; }
.today-stats b { font-size: 22px; }
.today-stats span { color: var(--muted); font-size: 12.5px; }
.upd-seen { font-size: 12px; }
.member-sort { padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; }

/* 👀 live viewers + 💎👑 live rankings */
.live-bar button.pill.viewers { border: 0; font-family: inherit; cursor: pointer; }
.live-bar button.pill.viewers[hidden] { display: none; }
.viewer-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.viewer-tags i { padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-style: normal; font-size: 11.5px; font-weight: 700; }
.live-ranks { display: flex; gap: 8px; margin: 0 0 12px; }
.live-ranks .chip, .rank-period .chip { padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.rank-period { margin: 0 0 8px; gap: 8px; }
.rank-period span { display: flex; gap: 6px; flex: none; }
.rank-period .chip { padding: 4px 11px; font-size: 12.5px; }
.rank-period .chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.rank-tabs { overflow-x: auto; scrollbar-width: none; }
.rank-row.rank-top { background: linear-gradient(90deg, #fff7d6, transparent 70%); }
:root[data-theme="dark"] .rank-row.rank-top { background: linear-gradient(90deg, #3b3214, transparent 70%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rank-row.rank-top { background: linear-gradient(90deg, #3b3214, transparent 70%); } }

/* 👗 avatar: closet · market · maker · my sales */
.av-tabs { overflow-x: auto; scrollbar-width: none; }
.av-tabs button { flex: 1 0 auto; white-space: nowrap; }
.av-stage { display: grid; justify-items: center; gap: 8px; padding: 12px; margin-bottom: 12px; }
.av-canvas, .mk-cv, .mk-3d, .mk-big canvas { width: 100%; max-width: 360px; height: auto; border-radius: 16px; display: block; }
.av-3d { display: flex; align-items: center; gap: 10px; width: 100%; }
.av-3d img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.av-3d small { display: block; }
.av-sec { padding: 12px 14px; margin-bottom: 10px; }
.av-sec h3 { margin: 0 0 8px; font-size: 15px; }
.av-bases { display: flex; flex-wrap: wrap; gap: 6px; }
.av-bases .chip, .mk-slots .chip { padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.av-bases .chip.active, .mk-slots .chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.av-owned { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; align-items: center; }
.av-opt { flex: none; width: 80px; display: grid; justify-items: center; gap: 3px; padding: 4px; border: 2px solid transparent; border-radius: 14px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.av-opt canvas, .av-opt span { width: 72px; height: 72px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); font-size: 24px; }
.av-opt small { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.av-opt.active { border-color: var(--accent); background: var(--accent-soft); }
.av-how { text-align: center; margin: 6px 0 20px; }
.mk-tools { display: grid; gap: 8px; margin-bottom: 12px; }
.mk-slots { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mk-row { display: flex; gap: 6px; }
.mk-row input { flex: 1; min-width: 0; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; }
.mk-row select { padding: 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mk-grid > .empty { grid-column: 1 / -1; }
.mk-card { display: grid; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.mk-card:hover { border-color: var(--accent); }
.mk-thumb { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); }
.mk-thumb canvas, .mk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-card b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-card span, .mk-card small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-card em { font-style: normal; font-weight: 800; color: var(--accent); font-size: 14px; }
.mk-card em.own { color: #16a34a; }
.mk-sheet .mk-big { display: grid; justify-items: center; margin-bottom: 8px; }
.mk-sheet .mk-big img { width: 100%; max-width: 320px; border-radius: 16px; }
.mk-desc { white-space: pre-wrap; margin: 4px 0 8px; }
.mk-maker { display: flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; margin-bottom: 4px; }
.mk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.mk-report { font-size: 12.5px; }
.mk-make { display: grid; gap: 12px; }
@media (min-width: 760px) { .mk-make { grid-template-columns: 340px 1fr; align-items: start; } .mk-preview { position: sticky; top: 70px; } }
.mk-preview { display: grid; justify-items: center; gap: 6px; padding: 10px; }
.mk-form { display: grid; gap: 10px; padding: 14px; }
.mk-field { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; }
.mk-field input:not([type="color"]):not([type="range"]):not([type="file"]), .mk-field select, .mk-field textarea { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; font-weight: 400; }
.mk-field small { font-weight: 400; }
.mk-color { grid-template-columns: 1fr auto; align-items: center; }
.mk-color input { width: 48px; height: 32px; border: 0; background: none; padding: 0; }
.mk-fields { display: grid; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.mk-fields:empty { display: none; }
.mk-files { display: grid; gap: 6px; }
.mk-own { font-size: 13px; }
.mk-earn { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; margin-bottom: 12px; }
.mk-earn div { display: grid; gap: 2px; }
.mk-earn span { font-size: 22px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.mk-mine { display: grid; gap: 8px; }
.mk-mine-row { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px; align-items: center; }
.mk-mine-row .mk-thumb { width: 72px; }
.mk-mine-info { display: grid; gap: 2px; min-width: 0; }
.mk-mine-info span { font-size: 12.5px; }
.mk-status.banned { color: var(--red); font-weight: 700; }
.mk-mine-tools { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; }
.mk-price { width: 110px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; }
.adm-market { display: grid; gap: 8px; max-height: 520px; overflow-y: auto; }
.adm-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; }
.adm-item .mk-thumb { width: 56px; }
.adm-item > div:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.adm-item span { font-size: 12px; }
.adm-item.banned { opacity: .55; }
.adm-rep { color: var(--red); }

/* 🎨 maker: every setting, grouped by part */
.mk-quick { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-quick[hidden] { display: none; }
.mk-quick span:last-child { display: flex; gap: 6px; }
.mk-fields { gap: 6px; }
.mk-group { border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; background: var(--card); }
.mk-group[open] { padding-bottom: 12px; }
.mk-group summary { cursor: pointer; padding: 8px 0; font-weight: 800; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 6px; }
.mk-group summary::-webkit-details-marker { display: none; }
.mk-group summary::before { content: '▸'; color: var(--accent); transition: transform .15s; }
.mk-group[open] summary::before { transform: rotate(90deg); }
.mk-group > .mk-field, .mk-group > .check { margin-top: 8px; }
.mk-range > span { display: flex; justify-content: space-between; gap: 8px; }
.mk-range output { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; font-size: 12.5px; }
.mk-range input[type="range"] { width: 100%; accent-color: var(--accent); }
/* on phones the preview stays in view while sliding the controls */
@media (max-width: 759px) {
  .mk-preview { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 5; padding: 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
  .mk-preview .mk-cv { max-width: 190px; }
  .mk-preview small { display: none; }
}
/* 🎨 → the full-screen 아이템 공방 (/studio/) */
.mk-studio { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; text-decoration: none; color: var(--text);
  background: linear-gradient(120deg, color-mix(in srgb, #7c5cff 14%, var(--card)), color-mix(in srgb, #ff4d9d 12%, var(--card))); }
.mk-studio b { font-size: 15px; }
.mk-studio .muted { font-size: 13px; }
.mk-studio:hover { filter: brightness(1.03); }
/* 🧍 전신 / 🙂 상반신 switch on the closet preview */
.av-stage { position: relative; }
.av-stage .av-full { position: absolute; top: 10px; right: 10px; z-index: 1; }

/* ❤️ the post's writer liked this comment */
.c-heart { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #ffe4ec; color: #e11d48; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
:root[data-theme="dark"] .c-heart { background: #4a1d2b; color: #fda4af; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-heart { background: #4a1d2b; color: #fda4af; } }
