/* ═══════════ 凉子论坛 · minimal, light + dark ═══════════ */
/* 源泉圆体 GenSenRounded（ButTaiwan, OFL-1.1）· 子集化 woff2，中文常用字+假名+拉丁 */
@font-face {
  font-family: "GenSenRounded";
  src: url("/static/fonts/GenSenRounded-M.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --accent: #4a8f52;        /* single watermelon-green accent */
  --accent-soft: #e8f1e6;
  --accent-ink: #2f6136;

  --bg:      #fbfbf9;
  --surface: #ffffff;
  --surface-2:#f4f4f1;
  --line:    #e9e8e2;
  --ink:     #26261f;
  --ink-2:   #6b6a61;
  --ink-3:   #9a998f;
  --gold:    #b98a2e;

  --r: 12px;
  --shadow: 0 1px 2px rgba(30,30,20,.04), 0 6px 20px rgba(30,30,20,.05);
  --sans:  "Baloo 2", "GenSenRounded", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  --round: "GenSenRounded", "Baloo 2", "PingFang SC", var(--sans);  /* 圆润的中文字体（源泉圆体） */
  --mono:  "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --maxw: 1080px;
  --readw: 820px;   /* 阅读内容（正文/表单）舒适宽度上限 */
}
:root[data-theme="dark"] {
  --accent: #6fb26f;
  --accent-soft: #24302a;
  --accent-ink: #8fca8f;
  --bg:      #14150f;
  --surface: #1c1e17;
  --surface-2:#23261d;
  --line:    #30332a;
  --ink:     #e8e7dc;
  --ink-2:   #a5a498;
  --ink-3:   #6e6d62;
  --gold:    #d5a94e;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* 头像容器统一 block，避免 <a>/<span> inline 时宽高失效被拉长 */
.ava, .mini-ava, .big-ava, .side-col .ava { display: block; flex-shrink: 0; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.65; min-height: 100vh; -webkit-text-size-adjust: 100%;
  transition: background .25s, color .25s;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
/* 阅读/发帖页收窄到舒适宽度（列表/首页/后台仍用满宽） */
.wrap.reading { max-width: 900px; }

/* 可爱圆润：标题/品牌用 ZCOOL 快乐体，正文/UI 用 Baloo 2 圆润拉丁 + 苹方 */
.brand b, h1, h2, .post .op-title, .hero h1,
.thread-row a.title, .board-row .bd b, .board-ico { font-family: var(--round); font-weight: 600; letter-spacing: .01em; }
.thread-row a.title { font-size: 15px; }
.coin-chip, .lvl .n, .co, .num, .rc b { font-family: var(--sans); }   /* 数字用 Baloo 2 更圆 */

/* ─── nav ─── */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 14px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); flex-shrink: 0; }
.brand .logo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.brand b { font-family: var(--round); letter-spacing: .01em; font-size: 18px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.navlink { color: var(--ink-2); font-size: 14px; padding: 7px 9px; border-radius: 8px; white-space: nowrap; }
.navlink:hover, .navlink.on { color: var(--accent-ink); background: var(--surface-2); text-decoration: none; }
.nav .nav-toggle { display: none; }   /* 桌面隐藏汉堡（压过 .icon-btn 的 grid） */
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 15px; }
.icon-btn:hover { color: var(--accent-ink); border-color: var(--accent); }
.coin-chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 13px;
  font-weight: 600; color: var(--gold); padding: 4px 9px; border-radius: 999px; background: var(--surface-2); }
.coin-chip .c { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #fff; font-size: 8px; font-weight: 800; }
.mini-ava { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.mini-ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

/* ─── buttons ─── */
.btn { display: inline-flex; align-items: center; gap: 6px; justify-content: center; font-family: var(--sans);
  font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 9px; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .1s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ─── layout ─── */
main { padding: 26px 0 70px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.cols { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 760px){ .cols { grid-template-columns: 1fr; } }
.section-title { font-size: 13px; color: var(--ink-3); letter-spacing: .05em; margin: 2px 2px 10px; font-weight: 600; }

/* ─── hero (minimal) ─── */
.hero { display: flex; align-items: center; gap: 18px; padding: 22px 24px; margin-bottom: 22px; }
.hero .cat { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.hero .cat img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.hero h1 { font-family: var(--sans); letter-spacing: -.01em; font-size: 21px; color: var(--ink); font-weight: 700; }
.hero .say { color: var(--ink-2); font-size: 14px; margin-top: 3px; font-style: italic; }
.hero .go { margin-left: auto; }
@media (max-width: 560px){ .hero .go { display: none; } }

/* ─── board banner：画卷，点住往下拉、慢慢展开（高度由 JS 跟随拖拽）─── */
.board-scroll { position: relative; height: 130px; overflow: hidden; border-radius: var(--r);
  border: 1px solid var(--line); margin-bottom: 16px; background: var(--surface-2);
  cursor: ns-resize; user-select: none; -webkit-user-select: none; touch-action: none; }
.board-scroll img { width: 100%; height: auto; display: block; pointer-events: none; }
/* 底部渐隐，暗示"还能往下拉"；开始拖动后淡出 */
.board-scroll::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 66px;
  background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 80%, transparent));
  pointer-events: none; transition: opacity .4s ease; }
.board-scroll.touched::after { opacity: 0; }
/* 底部小抓手（无文字），提示可下拉 */
.scroll-grip { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 42px; height: 5px; border-radius: 3px; pointer-events: none; transition: opacity .3s ease;
  background: color-mix(in srgb, var(--ink) 34%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--surface) 55%, transparent); }
.board-scroll.touched .scroll-grip { opacity: 0; }
@media (max-width: 560px){ .board-scroll { height: 110px; } }

/* ─── board list ─── */
.board-row { display: flex; align-items: center; gap: 13px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: var(--surface-2); text-decoration: none; }
.board-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-family: var(--sans); letter-spacing: -.01em; font-size: 18px; flex-shrink: 0; }
.board-ico.aaa { font-size: 15px; letter-spacing: -2px; }
.board-row .bd { flex: 1; min-width: 0; }
.board-row .bd b { font-size: 15px; color: var(--ink); }
.board-row .bd b .badge { font-size: 10px; font-weight: 500; color: var(--accent-ink); background: var(--accent-soft);
  padding: 1px 6px; border-radius: 5px; margin-left: 6px; vertical-align: 1px; }
.board-row .bd p { font-size: 12.5px; color: var(--ink-3); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); flex-shrink: 0; }

/* ─── thread list ─── */
.thread-row { display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: var(--surface-2); }
.thread-row .ava { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.thread-row .ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.thread-row .tt { flex: 1; min-width: 0; }
.thread-row .tt a.title { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.thread-row .tt .meta { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.thread-row .tt .meta .dot { margin: 0 5px; opacity: .5; }
.thread-row .rc { font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-align: center; min-width: 34px; }
.thread-row .rc b { display: block; font-size: 15px; color: var(--accent-ink); }
.pin { display: inline-block; font-size: 10px; background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 4px; margin-right: 5px; vertical-align: 1px; }
.tag-board { font-family: var(--mono); font-size: 11px; color: var(--accent-ink); background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; }

/* ─── side ─── */
.side .card { padding: 15px; }
.side .card + .card { margin-top: 18px; }
.lb-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.lb-row:hover { text-decoration: none; }
.lb-row .rank { font-family: var(--mono); font-size: 12px; color: var(--ink-3); width: 16px; }
.lb-row .rank.top { color: var(--gold); font-weight: 700; }
.lb-row .ava { width: 26px; height: 26px; border-radius: 7px; overflow: hidden; background: var(--surface-2); }
.lb-row .ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.lb-row .nm { flex: 1; font-size: 13px; color: var(--ink); }
.lb-row .co { font-family: var(--mono); font-size: 12px; color: var(--gold); font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); text-align: center; }
.stat-grid .s b { font-family: var(--sans); letter-spacing: -.01em; font-size: 20px; color: var(--accent-ink); display: block; }
.stat-grid .s span { font-size: 11px; color: var(--ink-3); }

/* ─── thread page ─── */
.crumb { font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; }
.crumb .sep { opacity: .5; margin: 0 5px; }
/* 帖子：横向作者头 + 全宽正文（对齐主流论坛） */
.post { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.pauthor { display: flex; align-items: center; gap: 10px; min-width: 0; border: 0; background: none; padding: 0;
  font-family: var(--sans); text-align: left; cursor: pointer; border-radius: 10px; }
.pauthor.plain, a.pauthor { cursor: default; }
a.pauthor { cursor: pointer; }
button.pauthor:hover { opacity: .82; }
.pauthor .ava { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.pauthor .ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.pa-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pa-name { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-sub { display: flex; align-items: center; gap: 7px; flex-wrap: nowrap; }
.tag-op { font-size: 11px; color: var(--accent-ink); background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.ph-right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.post .when { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.post-body { min-width: 0; }
.post .op-title { letter-spacing: -.01em; font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.3; }
.post .meta-line { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
.post .meta-line .gold { color: var(--gold); }
.post .content { font-size: 15px; line-height: 1.8; color: var(--ink); word-break: break-word; }
.floor { font-family: var(--mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }

/* 帖子「···」操作菜单 */
.pmenu { position: relative; }
.pmenu-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: none;
  color: var(--ink-3); cursor: pointer; font-size: 17px; line-height: 1; letter-spacing: 1px; display: grid; place-items: center; }
.pmenu-btn:hover { background: var(--surface-2); color: var(--ink); }
.pmenu-list { position: absolute; right: 0; top: 34px; z-index: 40; min-width: 128px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 5px; }
.pmenu-list a, .pmenu-list button { display: block; width: 100%; text-align: left; padding: 8px 10px; font-size: 13px;
  color: var(--ink); background: none; border: 0; border-radius: 7px; cursor: pointer; font-family: var(--sans); text-decoration: none; }
.pmenu-list a:hover, .pmenu-list button:hover { background: var(--surface-2); }
.pmenu-list button.danger { color: #b4372e; }
.pmenu-list form { margin: 0; }

/* 点头像的用户卡片 */
.ucard { position: absolute; z-index: 50; width: 200px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 12px; }
.uc-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.uc-link { display: inline-block; font-size: 12px; color: var(--accent-ink); margin-top: 2px; }
.uc-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.uc-act { padding: 8px 10px; font-size: 13px; border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 8px; cursor: pointer; font-family: var(--sans); color: var(--ink); text-align: center; }
.uc-act:hover { border-color: var(--accent); color: var(--accent-ink); }
.uc-act.danger:hover { border-color: #b4372e; color: #b4372e; }

/* 禁言 / 封禁 弹窗 */
.mod-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ink) 42%, transparent); padding: 20px; }
.mod-modal[hidden] { display: none; }
.mm-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px;
  width: 100%; max-width: 340px; box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.mm-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.mm-who { font-size: 13px; color: var(--accent-ink); font-family: var(--mono); margin-top: 2px; margin-bottom: 12px; }
.mm-field { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.mm-field input { display: block; width: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 14px; background: var(--surface-2); color: var(--ink); font-family: var(--sans); }
.mm-btns { display: flex; gap: 10px; margin-top: 6px; }
.mm-btns .btn { flex: 1; justify-content: center; }

/* 献祭 · 凉子赐福 card */
.fortune { display: flex; align-items: center; gap: 14px; margin: 0 18px 0; padding: 16px 18px;
  border-radius: var(--r); border: 1px solid var(--line); }
.fortune.great { background: linear-gradient(120deg, #f7edd2, #f3e2b4); border-color: #e6c979; }
.fortune.good  { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.fortune.meh   { background: var(--surface-2); }
:root[data-theme="dark"] .fortune.great { background: linear-gradient(120deg,#3a3320,#453b22); }
.fortune .fc { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.05); flex-shrink: 0; }
.fortune .fc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.fortune .ft b { color: var(--ink); font-family: var(--sans); letter-spacing: -.01em; font-size: 16px; }
.fortune .ft small { color: var(--ink-2); font-size: 12px; }

/* ─── forms ─── */
.form-card { max-width: 420px; margin: 34px auto; padding: 28px; }
.form-card.wide { max-width: 600px; }
.form-card h2 { font-family: var(--sans); letter-spacing: -.01em; font-size: 22px; color: var(--ink); }
.form-card .sub { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
label.field { display: block; margin-bottom: 15px; }
label.field .lb { font-size: 13px; color: var(--ink-2); margin-bottom: 5px; display: block; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; font-family: var(--sans); font-size: 14.5px; color: var(--ink); line-height: 1.4;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, background .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.err { background: color-mix(in srgb, #d94f4f 12%, var(--surface)); border: 1px solid color-mix(in srgb,#d94f4f 40%,var(--line));
  color: #c0453f; font-size: 13px; padding: 9px 12px; border-radius: 9px; margin-bottom: 15px; }
.form-foot { margin-top: 4px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* board picker — pills, no native select */
.board-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.board-pick .pill { font-size: 13.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; transition: all .14s; }
.board-pick .pill:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.board-pick .pill.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* avatar picker */
.ava-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.ava-pick label { cursor: pointer; }
.ava-pick input { position: absolute; opacity: 0; }
.ava-pick .opt { width: 54px; text-align: center; }
.ava-pick .opt .im { width: 54px; height: 54px; border-radius: 12px; overflow: hidden; background: var(--surface-2);
  border: 2px solid transparent; transition: border-color .12s; }
.ava-pick .opt .im img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.ava-pick input:checked + .opt .im { border-color: var(--accent); }
.ava-pick .opt span { font-size: 10.5px; color: var(--ink-3); display: block; margin-top: 3px; }

/* 上传头像 + 即时预览 */
.ava-upload { margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.up-preview { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--surface-2);
  border: 2px dashed var(--line); flex-shrink: 0; }
.up-preview.changed { border-style: solid; border-color: var(--accent); }
.up-preview img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.up-pick { position: relative; overflow: hidden; display: inline-flex; align-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 8px 12px;
  font-size: 13px; color: var(--ink-2); flex: 1; min-width: 150px; }
.up-pick:hover { border-color: var(--accent); color: var(--accent-ink); }
.up-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* flash */
.flash { display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin-bottom: 18px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb,var(--accent) 35%,transparent); border-radius: var(--r); }
.flash .cc { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: var(--gold);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.flash b { color: var(--ink); }
.flash small { color: var(--ink-2); }

/* wallet */
.wallet { padding: 22px 24px; display: flex; align-items: center; gap: 18px; }
.wallet .big-ava { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.wallet .big-ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.wallet h2 { font-family: var(--sans); letter-spacing: -.01em; font-size: 20px; color: var(--ink); }
.wallet .bal { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--accent-ink); margin-top: 2px; }
.wallet .bal small { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.wallet .streak { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.wallet .wgo { margin-left: auto; }

.log-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.log-row:last-child { border-bottom: 0; }
.log-row .rs { color: var(--ink); }
.log-row .dt { color: var(--ink-3); font-size: 11.5px; }
.log-row .dl { font-family: var(--mono); font-weight: 600; }
.log-row .dl.pos { color: var(--accent-ink); }
.log-row .dl.neg { color: var(--gold); }

.invite-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--mono);
  font-size: 13.5px; padding: 9px 12px; border-radius: 9px; background: var(--surface-2); border: 1px dashed var(--line); margin-bottom: 7px; color: var(--ink); }
.invite-code.used { opacity: .5; }
.invite-code .st.free { color: var(--accent-ink); font-size: 11px; }
.invite-code .st.used { color: var(--ink-3); font-size: 11px; }

.reward-list .r { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--ink); }
.reward-list .r b { color: var(--gold); font-family: var(--mono); }

.empty { text-align: center; padding: 44px 20px; color: var(--ink-3); }
.empty .cat { width: 96px; margin: 0 auto 12px; opacity: .85; }

footer { text-align: center; color: var(--ink-3); font-size: 12px; padding: 26px 0 36px; }

/* ─── 等级徽章 ─── */
.lvl { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--accent-ink);
  background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.lvl .n { font-family: var(--mono); opacity: .9; padding-right: 5px; border-right: 1px solid color-mix(in srgb,var(--accent-ink) 25%,transparent); }
.lvl-bar { height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.lvl-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* ─── 打赏礼物 ─── */
.gift-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; margin-top: 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.gift-bar .gl { font-size: 13px; color: var(--ink-2); margin-right: 2px; }
.gift-bar .gcount { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.gift-btn { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 5px 12px 5px 10px;
  cursor: pointer; font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--sans); transition: all .14s; }
.gift-btn:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-1px); }
.gift-btn .p { font-family: var(--mono); font-size: 11px; color: var(--gold); }
.gift-flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-top: 14px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb,var(--accent) 35%,transparent); border-radius: var(--r); font-size: 14px; }
.gift-bar.done .gift-mine { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink);
  border: 1px solid color-mix(in srgb,var(--gold) 45%,var(--line)); background: var(--surface-2); border-radius: 999px; padding: 4px 12px; }

/* 打赏确认弹窗 */
.gift-confirm { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ink) 42%, transparent); padding: 20px; }
.gift-confirm[hidden] { display: none; }
.gc-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px 22px;
  width: 100%; max-width: 340px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.gc-emoji { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.gc-msg { font-size: 15px; color: var(--ink); line-height: 1.6; }
.gc-msg small { color: var(--ink-3); font-size: 12px; }
.gc-msg b { color: var(--accent-ink); }
.gc-btns { display: flex; gap: 10px; margin-top: 20px; }
.gc-btns .btn { flex: 1; justify-content: center; }

/* ─── 编辑器 ─── */
.composer { position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.composer.dropping { border-color: var(--accent); }
.ctoolbar { display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ctool { min-width: 30px; height: 30px; padding: 0 7px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  border-radius: 7px; font-size: 14px; font-family: var(--sans); display: inline-flex; align-items: center; justify-content: center; }
.ctool:hover { background: var(--surface); color: var(--accent-ink); }
.ctool[data-md="code"] { font-family: var(--mono); font-size: 12px; }
.cdiv { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.cinput { width: 100%; border: 0; background: transparent; padding: 12px 14px; font-family: var(--sans); font-size: 14.5px;
  line-height: 1.7; color: var(--ink); resize: vertical; min-height: 130px; }
.cinput:focus { outline: none; }
.cdrop-hint { display: none; position: absolute; inset: 34px 0 0; background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  align-items: center; justify-content: center; color: var(--accent-ink); font-size: 14px; pointer-events: none; border-radius: 0 0 10px 10px; }
.composer.dropping .cdrop-hint { display: flex; }

.emoji-panel { position: absolute; right: 8px; top: 42px; z-index: 20; width: 268px; max-width: calc(100vw - 40px);
  max-height: min(280px, 60vh); overflow-y: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 10px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-grid.lz { grid-template-columns: repeat(6, 1fr); }
.emj { border: 0; background: transparent; cursor: pointer; font-size: 19px; height: 30px; border-radius: 6px; padding: 0;
  display: grid; place-items: center; }
.emj:hover { background: var(--surface-2); }
.emj.lz img { width: 30px; height: 30px; object-fit: cover; object-position: 50% 14%; border-radius: 6px; }
.emoji-lz-title { font-size: 11px; color: var(--ink-3); margin: 8px 2px 4px; }

/* 帖内渲染 */
.content p { margin: 0 0 8px; }
.content p:last-child { margin-bottom: 0; }
.content strong { font-weight: 700; }
.content .post-img { max-width: 100%; border-radius: 10px; margin: 6px 0; border: 1px solid var(--line); }
.content img.post-img[src*="/assets/liangzi/"] { width: 44px; height: 44px; display: inline-block; vertical-align: -12px;
  object-fit: cover; object-position: 50% 14%; margin: 0 1px; border-radius: 8px; }
.content blockquote { border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; margin: 6px 0; color: var(--ink-2); }
.content .post-pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; margin: 8px 0; }
.content .post-pre code { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.content code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.content .post-ul { margin: 6px 0 6px 20px; }
.content .post-ul li { margin: 2px 0; }

/* ─── 右下问候猫 ─── */
.greeter { position: fixed; right: 20px; bottom: 14px; z-index: 40; width: 84px; display: flex; justify-content: center;
  opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s cubic-bezier(.34,1.56,.64,1); }
.greeter.in { opacity: 1; transform: none; }
/* 气泡：浮在猫头顶，右对齐向左展开（猫在屏幕角落，避免右侧被裁切），尾巴朝下指着猫 */
.greeter-bubble { position: absolute; bottom: 100%; right: 2px; margin-bottom: 9px;
  width: max-content; max-width: min(240px, 74vw); background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 13px; padding: 8px 13px; font-size: 13px; line-height: 1.55; text-align: center;
  box-shadow: var(--shadow); transform-origin: bottom right; }
.greeter-bubble[hidden] { display: none; }
.greeter-bubble::before, .greeter-bubble::after { content: ""; position: absolute; top: 100%; right: 34px; border: 7px solid transparent; }
.greeter-bubble::before { border-top-color: var(--line); }
.greeter-bubble::after  { border-top-color: var(--surface); margin-top: -1px; }
.greeter-bubble.show { animation: bubble-pop .22s ease; }
.greeter-bubble.hide { animation: bubble-out .26s ease forwards; }
@keyframes bubble-pop { from { opacity: 0; transform: translateY(6px) scale(.82); }
  to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes bubble-out { to { opacity: 0; transform: translateY(4px) scale(.9); } }

.greeter-cat { width: 72px; image-rendering: pixelated; cursor: pointer; filter: drop-shadow(0 3px 5px rgba(0,0,0,.15));
  animation: greet-bob 3.6s ease-in-out infinite; }
@keyframes greet-bob { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-3px); } }
.greeter-cat.bounce { animation: cat-bounce .42s ease; }
.greeter-cat.shake  { animation: cat-shake .45s ease; }
@keyframes cat-bounce { 0%{ transform: translateY(0) rotate(0);} 30%{ transform: translateY(-11px) rotate(-5deg);}
  55%{ transform: translateY(0) rotate(3deg);} 75%{ transform: translateY(-4px) rotate(-1deg);} 100%{ transform: translateY(0);} }
@keyframes cat-shake { 0%,100%{ transform: translateX(0) rotate(0);} 15%{ transform: translateX(-5px) rotate(-4deg);}
  35%{ transform: translateX(5px) rotate(4deg);} 55%{ transform: translateX(-4px) rotate(-3deg);}
  75%{ transform: translateX(4px) rotate(3deg);} 90%{ transform: translateX(-2px) rotate(-1deg);} }
@media (max-width: 560px){ .greeter { width: 64px; } .greeter-cat { width: 56px; } .greeter-bubble { max-width: 170px; font-size: 12px; } }

/* ─── 内容管理 / 权限 UI ─── */
.ban-banner { background: #b4372e; color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; }
.mod-notice { background: var(--surface-2); border: 1px dashed color-mix(in srgb,var(--gold) 55%,var(--line));
  color: var(--ink-2); font-size: 13px; padding: 10px 16px; border-radius: 10px; margin-bottom: 14px; }
.card.is-hidden, .thread-row.is-hidden { opacity: .62; }
.tag-hidden { display: inline-block; font-size: 11px; color: #b4372e; border: 1px solid color-mix(in srgb,#b4372e 40%,var(--line));
  border-radius: 5px; padding: 0 5px; margin-right: 6px; vertical-align: middle; }
.edited { color: var(--ink-3); text-decoration: none; border-bottom: 1px dotted var(--ink-3); }
.edited:hover { color: var(--accent-ink); }

.mod-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mod-bar .mb-form { display: inline; }
.mb-sep { width: 1px; height: 18px; background: var(--line); margin: 0 2px; }
.mod-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 5px 12px;
  font-size: 13px; color: var(--ink-2); cursor: pointer; font-family: var(--sans); text-decoration: none; display: inline-block; transition: all .14s; }
.mod-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.mod-btn.danger:hover { border-color: #b4372e; color: #b4372e; }

.mod-panel .mod-form, .admin-grid .mod-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mod-form.col { flex-direction: column; align-items: stretch; }
.mod-form.col .row { display: flex; gap: 8px; align-items: center; }
/* 版务/后台表单里的输入框：不撑满，按内容排成一行 */
.mod-form input[type=text], .mod-form input[type=number], .mod-form select {
  width: auto; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px;
  background: var(--surface-2); color: var(--ink); font-family: var(--sans); }
.mod-form input[name=username] { width: 130px; }
.mod-form input[name=days] { width: 74px; }
.mod-form input[name=reason] { flex: 1; min-width: 120px; }
.mod-form.col .row select { flex: 1; }
.mod-hint { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }

/* 版务禁言表单：带标签、带单位、可自动补全 */
.mute-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.mf-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mf-field.grow { flex: 1; min-width: 150px; }
.mf-field label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.mf-field input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px;
  font-size: 14px; background: var(--surface-2); color: var(--ink); font-family: var(--sans); }
.mf-field input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.with-unit { position: relative; }
.with-unit input { width: 96px; padding-right: 30px; }
.with-unit .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-size: 13px; pointer-events: none; }
.mf-submit { align-self: flex-end; height: 40px; }

.mute-list { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.mute-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.mute-row a { color: var(--accent-ink); }
.mu-until { color: var(--ink-3); flex: 1; }

.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 720px){ .admin-grid { grid-template-columns: 1fr; } }
.roster { display: flex; flex-wrap: wrap; gap: 8px; }
.roster-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 10px 3px 3px; font-size: 13px; color: var(--ink); text-decoration: none; }
.roster-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.roster-chip .rr { font-size: 11px; color: var(--accent-ink); }
.board-mods { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.board-mods .mods { color: var(--ink-2); }
.hidden-row, .hist-item .hist-head { font-size: 13px; }
.hidden-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.hidden-row a { color: var(--accent-ink); text-decoration: none; }
.hidden-row .hm { color: var(--ink-3); }
.hist-item .hist-head { color: var(--ink-3); }

.admin-users table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-users th { text-align: left; color: var(--ink-3); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.admin-users td { padding: 8px; border-bottom: 1px solid var(--line); }
.admin-users td a { color: var(--accent-ink); text-decoration: none; }
.admin-users .mono { font-family: var(--mono); color: var(--ink-2); }
.st-ban { color: #b4372e; }
.st-ok { color: var(--ink-3); }
.log-row { display: flex; align-items: baseline; gap: 8px; font-size: 12px; padding: 5px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.log-row:first-child { border-top: 0; }
.lg-actor { color: var(--ink); font-weight: 600; }
.lg-act { color: var(--accent-ink); font-family: var(--mono); }
.lg-detail { flex: 1; color: var(--ink-3); }
.lg-time { color: var(--ink-3); font-family: var(--mono); }

/* ─── 签名 / 改名 / 背包 / 签到 ─── */
.bio-line { font-size: 13px; color: var(--ink-2); font-style: italic; margin-top: 4px; }
.sig-form { display: flex; gap: 10px; align-items: center; }
.sig-form input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 14px;
  background: var(--surface-2); color: var(--ink); font-family: var(--sans); }
.sig-form input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.sig-form input[disabled] { opacity: .55; }

.bag { display: flex; flex-direction: column; gap: 7px; }
.bag-item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface-2); }
.bag-item .bi-emoji { font-size: 18px; }
.bag-item .bi-name { font-size: 13px; color: var(--ink); flex: 1; }
.bag-item .bi-qty { font-family: var(--mono); font-size: 12px; color: var(--gold); }

.checkin-done { font-size: 12.5px; color: var(--ink-3); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.checkin-flash .cc { flex-shrink: 0; }

/* ─── 装扮渲染：头像框 / 角标 / 发言框 / 主页背景 ─── */
.ava-wrap { position: relative; }
.ava.ava-wrap, .big-ava.ava-wrap, .mini-ava.ava-wrap, .side-col .ava.ava-wrap { overflow: visible; }
.ava-wrap img { border-radius: inherit; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.ava-deco { position: absolute; right: -5px; bottom: -5px; font-size: 15px; line-height: 1; z-index: 2;
  filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.4)); pointer-events: none; }
.big-ava.ava-wrap .ava-deco { right: -3px; bottom: -3px; font-size: 24px; }
.frame-glow img { animation: fglow 1.9s ease-in-out infinite; }
@keyframes fglow { 0%,100%{ filter: brightness(1) } 50%{ filter: brightness(1.12) } }

.content.has-postbg { padding: 12px 15px; border-radius: 10px; border: 1px solid transparent; }
:root[data-theme="dark"] .content.has-postbg { color: #2a2a24; }   /* 发言框多为浅色，暗色下正文压深 */

.profile-banner { height: 128px; border-radius: var(--r); margin-bottom: 14px; border: 1px solid var(--line); }
@media (max-width: 560px){ .profile-banner { height: 96px; } }

/* ─── 商城 ─── */
.shop-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.shop-group { margin-bottom: 24px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.shop-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface);
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.shop-prev { width: 100%; height: 96px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); overflow: hidden; position: relative; }
.shop-prev .demo-ava { width: 54px; height: 54px; border-radius: 13px; background: var(--surface); position: relative; }
.shop-prev .demo-ava img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: 50% 16%; }
.shop-prev .demo-post { width: 82%; font-size: 12px; color: var(--ink); border-radius: 8px; padding: 8px 10px; border: 1px solid transparent; }
.shop-prev .demo-emoji { font-size: 40px; }
.shop-card .si-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.shop-card .si-price { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.shop-card .si-price .c { color: var(--gold); }
.shop-card form { width: 100%; }
.shop-card .buy-btn { width: 100%; }
.shop-card .owned-tag { font-size: 12px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
/* 批量购买数量步进器 */
.shop-card .buy-form { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.qty-step { display: flex; align-items: center; justify-content: center; height: 30px; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; background: var(--surface); }
.qs-btn { width: 34px; height: 100%; border: none; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 700;
  cursor: pointer; line-height: 1; display: grid; place-items: center; transition: background .12s, color .12s; }
.qs-btn:hover { background: var(--surface-2); color: var(--accent-ink); }
.qs-btn:active { transform: scale(.9); }
.qs-input { width: 44px; flex: 0 0 auto; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  background: transparent; text-align: center; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink); height: 100%; padding: 0; }
.qs-input:focus { outline: none; background: var(--surface-2); }

/* ─── 背包 ─── */
.bag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bag-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface);
  display: flex; flex-direction: column; gap: 9px; align-items: center; text-align: center; }
.bag-card.equipped { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.bag-card .qty { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.bag-empty { color: var(--ink-3); font-size: 13px; padding: 24px; text-align: center; }
.kind-tag { font-size: 11px; color: var(--ink-3); }

/* Steam 式实时预览面板 */
.preview-stage { position: sticky; top: 76px; border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--surface); }
.pv-title { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.pv-avatar { width: 84px; height: 84px; border-radius: 18px; margin: 0 auto 16px; position: relative; background: var(--surface-2); }
.pv-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: 50% 16%; }
.pv-deco { position: absolute; right: -4px; bottom: -4px; font-size: 26px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.pv-post { font-size: 13px; color: var(--ink); border-radius: 10px; padding: 11px 13px; border: 1px solid transparent; margin-bottom: 14px; }
.pv-bg { height: 70px; border-radius: 10px; border: 1px solid var(--line); }

.equip-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.equip-row:last-of-type { border-bottom: 0; }
.equip-row span { color: var(--ink-3); }
.equip-row b { color: var(--ink); font-weight: 600; }

/* ─── 统一 SVG 美术图标 ─── */
.ic { display: inline-block; vertical-align: middle; }
.gi { display: inline-flex; align-items: center; vertical-align: -3px; }
.gift-flash .gi { vertical-align: -5px; }
/* 等级徽章：小盾牌 + Lv + 名 */
.lvl { gap: 4px; padding-left: 5px; }
.lvl .lv-emblem { display: inline-block; vertical-align: -3px; flex-shrink: 0; }
.lb-lvl .lvl { background: transparent; padding: 0; }
/* 头像角标：装的是 svg 美术 */
.ava-deco { width: 16px; height: 16px; }
.ava-deco svg { display: block; width: 100%; height: 100%; }
.big-ava.ava-wrap .ava-deco { width: 24px; height: 24px; }
/* 商城/背包预览里的图标 */
.demo-emoji svg { display: block; }
.demo-ava .ava-deco svg { width: 100%; height: 100%; }
.pv-deco svg { display: block; width: 100%; height: 100%; }
.pv-avatar .pv-deco { width: 30px; height: 30px; }
/* 编辑器工具栏图标 */
.ctool svg { width: 17px; height: 17px; display: block; }
.gc-emoji svg { width: 44px; height: 44px; }

/* ─── UI 打磨：层次 / 悬停 / 呼吸感 ─── */
.card { box-shadow: var(--shadow); }
.section-title { margin: 4px 2px 12px; text-transform: none; }

/* 可点的卡片：悬停微微抬起 */
.shop-card, .bag-card { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; box-shadow: 0 1px 2px rgba(30,30,20,.03); }
.shop-card:hover, .bag-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(30,30,20,.09);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.shop-grid, .bag-grid { gap: 16px; }
.shop-prev { height: 104px; background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb,var(--surface-2) 60%, var(--surface))); }
.demo-emoji svg { width: 50px; height: 50px; }
.shop-card .si-name, .bag-card .si-name { font-size: 14px; }

/* 头像框预览底座更精致 */
.shop-prev .demo-ava { box-shadow: 0 2px 6px rgba(0,0,0,.08); }

/* 帖子/榜单/板块列表 hover 更顺滑 */
.thread-row, .board-row, .lb-row { transition: background .14s ease; }

/* 商城/背包页头统一 */
.shop-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.shop-head h1 { font-family: var(--round); }

/* 打赏礼物栏更成排美观 */
.gift-btn { padding: 6px 12px 6px 8px; gap: 6px; }
.gift-btn .gi svg { display: block; }

/* 预览台头图 */
.preview-stage { box-shadow: var(--shadow); }
.pv-avatar { box-shadow: 0 3px 10px rgba(0,0,0,.1); }

/* ─── 论坛规矩页 ─── */
.rules-card { max-width: 720px; margin: 0 auto; padding: 30px 34px; }
.rules-card h1 { font-family: var(--round); font-size: 24px; color: var(--ink); }
.rules-sub { color: var(--ink-3); font-size: 13px; margin-top: 4px; margin-bottom: 22px; }
.rules-list { list-style: none; counter-reset: rule; padding: 0; }
.rules-list li { counter-increment: rule; position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.rules-list li:last-child { border-bottom: 0; }
.rules-list li::before { content: counter(rule); position: absolute; left: 0; top: 12px; width: 26px; height: 26px;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--mono);
  font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.rules-foot { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); text-align: center;
  color: var(--ink-2); font-size: 14px; line-height: 2; }
footer a { color: var(--ink-3); }
footer a:hover { color: var(--accent-ink); }

/* ═══ 动态头像框（学 Steam 的酷炫特效）═══ */
@property --fxang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
/* 渐变环：conic/linear 铺满，再用 mask 抠成环形只留边 */
.fx-jade::before, .fx-gold::before, .fx-rainbow::before, .fx-flame::before {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; padding: 3px; pointer-events: none;
  -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, linear-gradient(#000 0 0); mask-composite: exclude; }
/* 外发光层（无 mask，box-shadow 才显） */
.fx-jade::after, .fx-gold::after, .fx-rainbow::after, .fx-flame::after, .fx-star::after {
  content: ""; position: absolute; border-radius: inherit; pointer-events: none; }

.fx-jade::before   { background: conic-gradient(from var(--fxang), #2f6136, #6bcb77, #a7e8ab, #6bcb77, #2f6136); animation: fx-rot 4s linear infinite; }
.fx-jade::after    { inset: -3px; box-shadow: 0 0 9px 1px rgba(107,203,119,.55); animation: fx-breathe 2.2s ease-in-out infinite; }

.fx-gold::before   { background: linear-gradient(110deg, #a97d12, #ffe58a 44%, #fff3c8 50%, #ffe58a 56%, #a97d12); background-size: 240% 100%; animation: fx-shine 2.4s linear infinite; }
.fx-gold::after    { inset: -3px; box-shadow: 0 0 11px 1px rgba(220,174,82,.6); }

.fx-rainbow::before{ background: conic-gradient(from var(--fxang), #ff4d6d, #ffd93d, #6bcb77, #4d9de0, #a06bd0, #ff4d6d); animation: fx-rot 3s linear infinite; }
.fx-rainbow::after { inset: -4px; box-shadow: 0 0 13px 2px rgba(160,107,208,.45); animation: fx-hue 6s linear infinite; }

.fx-flame::before  { background: conic-gradient(from var(--fxang), #ff3d00, #ff9d00, #ffe14d, #ff6b00, #ff3d00); animation: fx-rot 2.3s linear infinite; }
.fx-flame::after   { inset: -4px; box-shadow: 0 0 13px 2px rgba(255,90,0,.6); animation: fx-flicker 1.1s ease-in-out infinite; }

/* 霓虹：实心边 + 呼吸脉冲光 */
.fx-neon::before   { content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
  border: 2px solid #22e6e6; box-shadow: 0 0 9px #22e6e6, inset 0 0 6px rgba(34,230,230,.7); animation: fx-neon 1.7s ease-in-out infinite; }

/* 星河：旋转金点环 + 紫晕 */
.fx-star::before   { content: ""; position: absolute; inset: -3px; border-radius: inherit; pointer-events: none;
  border: 2px dotted #e8c66a; animation: fx-rot 9s linear infinite; }
.fx-star::after    { inset: -3px; border: 2px solid rgba(120,90,200,.3); box-shadow: 0 0 11px 1px rgba(232,198,106,.4); }

@keyframes fx-rot     { to { --fxang: 360deg; } }
@keyframes fx-shine   { to { background-position: 240% 0; } }
@keyframes fx-breathe { 0%,100% { opacity: .5 } 50% { opacity: 1 } }
@keyframes fx-flicker { 0%,100% { opacity: .7 } 45% { opacity: 1 } 60% { opacity: .58 } }
@keyframes fx-neon    { 0%,100% { box-shadow: 0 0 6px #22e6e6, inset 0 0 4px rgba(34,230,230,.6) } 50% { box-shadow: 0 0 16px #22e6e6, 0 0 26px rgba(34,230,230,.5), inset 0 0 8px rgba(34,230,230,.85) } }
@keyframes fx-hue     { to { filter: hue-rotate(360deg) } }

/* 装扮角标：也让它动起来 */
.ava-deco { animation: deco-bob 2.6s ease-in-out infinite; transform-origin: center; }
.ava-deco.deco-deco_star  { animation: deco-twinkle 1.8s ease-in-out infinite; }
.ava-deco.deco-deco_crown { animation: deco-glint 2.8s ease-in-out infinite; }
@keyframes deco-bob     { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-2px) } }
@keyframes deco-twinkle { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.2); opacity: .7 } }
@keyframes deco-glint   { 0%,100% { transform: rotate(-5deg) } 50% { transform: rotate(5deg) } }

@media (prefers-reduced-motion: reduce) {
  .fx-jade::before,.fx-gold::before,.fx-rainbow::before,.fx-flame::before,.fx-star::before,
  .fx-neon::before,.fx-jade::after,.fx-flame::after,.fx-rainbow::after,.ava-deco { animation: none !important; }
}

/* 新装扮动效 + 环绕之星 */
.ava-deco.deco-deco_heart { animation: deco-beat 1.1s ease-in-out infinite; }
.ava-deco.deco-deco_flame { animation: deco-flame .6s ease-in-out infinite alternate; filter: drop-shadow(0 0 3px rgba(255,120,0,.7)); }
.ava-deco.deco-deco_bolt  { animation: deco-bolt 1.5s steps(1) infinite; filter: drop-shadow(0 0 2px rgba(255,220,60,.9)); }
@keyframes deco-beat  { 0%,100%{ transform:scale(1) } 15%{ transform:scale(1.28) } 30%{ transform:scale(1) } 45%{ transform:scale(1.18) } }
@keyframes deco-flame { from{ transform:translateY(0) scale(1) } to{ transform:translateY(-1.5px) scale(1.08) } }
@keyframes deco-bolt  { 0%,100%{ opacity:1 } 50%{ opacity:.35 } 52%{ opacity:1 } 55%{ opacity:.5 } 57%{ opacity:1 } }

.ava-orbit { position: absolute; inset: 0; pointer-events: none; z-index: 3; animation: orbit-spin 3.2s linear infinite; }
.orbit-item { position: absolute; top: -7px; left: 50%; margin-left: -7px; width: 14px; height: 14px;
  animation: orbit-counter 3.2s linear infinite; filter: drop-shadow(0 0 3px rgba(232,198,106,.85)); }
.orbit-item svg { display: block; width: 100%; height: 100%; }
.big-ava .orbit-item, .pv-avatar .orbit-item { width: 18px; height: 18px; top: -9px; margin-left: -9px; }
@keyframes orbit-spin    { to { transform: rotate(360deg); } }
@keyframes orbit-counter { to { transform: rotate(-360deg); } }

@media (prefers-reduced-motion: reduce) {
  .ava-orbit, .orbit-item, .ava-deco.deco-deco_heart, .ava-deco.deco-deco_flame, .ava-deco.deco-deco_bolt { animation: none !important; }
}

/* ============ 帖子标签 / 加精 / 签名 / 状态 ============ */
/* 加精徽章（跟 .pin 同款，鎏金） */
.ess { display: inline-block; font-size: 10px; background: var(--gold); color: #fff; padding: 1px 6px; border-radius: 4px; margin-right: 5px; vertical-align: 1px; }

/* 标签小胶囊 */
.tag-chip { display: inline-block; font-size: 11px; line-height: 1; padding: 3px 8px; border-radius: 999px; margin-right: 5px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); text-decoration: none; white-space: nowrap; }
a.tag-chip:hover { filter: brightness(.97); }
.tag-game  { background:#e8f0fb; color:#3667a8; border-color:#d3e2f5; }
.tag-life  { background:#e8f1e6; color:#2f6136; border-color:#d6e6d2; }
.tag-food  { background:#fbeee6; color:#b5652f; border-color:#f2dccb; }
.tag-water { background:#e4f3f5; color:#2f7f8c; border-color:#cfeaee; }
.tag-duel  { background:#f2e8f7; color:#7a4aa0; border-color:#e6d5f0; }
:root[data-theme="dark"] .tag-game  { background:#1e2a3a; color:#8fb6e6; border-color:#2b3a4e; }
:root[data-theme="dark"] .tag-life  { background:#22301f; color:#8fca8f; border-color:#324229; }
:root[data-theme="dark"] .tag-food  { background:#32271d; color:#e0a473; border-color:#463522; }
:root[data-theme="dark"] .tag-water { background:#1d3033; color:#7fc4cf; border-color:#284247; }
:root[data-theme="dark"] .tag-duel  { background:#2b2033; color:#c39ae0; border-color:#3d2c49; }

.tag-row { margin: 2px 0 8px; }
.row-tags { margin-left: 7px; display: inline-flex; gap: 4px; vertical-align: middle; }
.row-tags .tag-chip { font-size: 10px; padding: 2px 7px; margin-right: 0; }

/* 板块顶部标签筛选条 */
.tag-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag-filter .tf { font-size: 13px; padding: 5px 13px; border-radius: 999px; text-decoration: none;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); transition: all .14s ease; }
.tag-filter .tf:hover { border-color: var(--accent); color: var(--accent-ink); }
.tag-filter .tf.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag-filter .tag-game.on{ background:#3667a8; border-color:#3667a8; }
.tag-filter .tag-food.on{ background:#b5652f; border-color:#b5652f; }
.tag-filter .tag-water.on{ background:#2f7f8c; border-color:#2f7f8c; }
.tag-filter .tag-duel.on{ background:#7a4aa0; border-color:#7a4aa0; }

/* 发帖/编辑：标签多选 */
.tag-pick { display: flex; gap: 9px; flex-wrap: wrap; }
.tag-pick .tag-opt { cursor: pointer; }
.tag-pick .tag-opt input { position: absolute; opacity: 0; }
.tag-pick .tag-opt span { display: inline-block; font-size: 13px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); border: 1.5px solid var(--line); transition: all .12s ease; }
.tag-pick .tag-opt input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 签名：楼层头部灰色小字 */
.pa-bio { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; margin-top: 1px; font-weight: 400; }

/* 小凉猫状态：发言楼右下角 */
.post { position: relative; }
.post-status { position: absolute; right: 16px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px 3px 3px; pointer-events: none; }
.post-status img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--surface); }
.post-status i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.post.op .post-status { bottom: 16px; }

/* 状态选择器里的「无」块 */
.status-pick .opt .im.none { display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-3);
  width: 54px; height: 54px; border-radius: 12px; background: var(--surface-2); border: 2px solid var(--line); }
.status-pick input:checked + .opt .im.none { border-color: var(--accent); color: var(--accent-ink); }

/* ============ 移动端导航（汉堡菜单） ============ */
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .nav-inner { gap: 9px; }
  .brand b { font-size: 17px; }
  .nav .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 14px 12px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links .navlink { padding: 11px 12px; font-size: 15px; }
  .nav-links .navjoin { margin-top: 6px; text-align: center; }
  .coin-chip { font-size: 12px; padding: 4px 8px; }
}

/* ============ 打赏记录（公开，NGA 式） ============ */
.gift-log { margin-top: 14px; padding: 12px 18px; cursor: pointer; }
.gl-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gl-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink); }
.gl-caret { margin-left: auto; color: var(--ink-3); flex-shrink: 0; transition: transform .2s ease; }
.gift-log.open .gl-caret { transform: rotate(180deg); }
.gl-list { display: none; flex-direction: column; gap: 2px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.gift-log.open .gl-list { display: flex; }
.gl-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; border-top: 1px dashed var(--line); }
.gl-row:first-child { border-top: 0; }
.gl-ico { width: 22px; height: 22px; display: grid; place-items: center; background: var(--surface-2); border-radius: 6px; flex-shrink: 0; }
.gl-user { color: var(--accent-ink); font-weight: 600; }
.gl-txt { color: var(--ink-2); }
.gl-txt b { color: var(--gold); font-weight: 600; }
.gl-when { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* ============ 楼层回复 + 楼中楼 ============ */
.post-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.reply-btn { border: 0; background: transparent; color: var(--ink-3); font-size: 13px; cursor: pointer; padding: 3px 8px; border-radius: 6px; font-family: var(--sans); }
.reply-btn:hover { color: var(--accent-ink); background: var(--surface-2); }
.reply-btn.mini { padding: 0 2px; font-size: 12px; }

.lzl { margin: 8px 0 2px 46px; background: var(--surface-2); border-radius: 10px; padding: 4px 12px; }
.lzl-row { display: flex; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lzl-row:last-of-type { border-bottom: 0; }
.lzl-ava { width: 26px; height: 26px; border-radius: 7px; overflow: hidden; background: var(--surface); flex-shrink: 0; }
.lzl-ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.lzl-body { min-width: 0; flex: 1; }
.lzl-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.lzl-name a, .lzl-name { color: var(--accent-ink); font-weight: 600; font-size: 13px; }
.lzl-to { font-size: 12px; color: var(--ink-3); }
.lzl-to b { color: var(--ink-2); font-weight: 600; }
.lzl-text { font-size: 14px; line-height: 1.6; color: var(--ink); word-break: break-word; margin: 2px 0; }
.lzl-text p { margin: 0; }
.lzl-text img { max-width: 180px; border-radius: 6px; vertical-align: middle; }
.lzl-meta { font-size: 12px; color: var(--ink-3); }
.lzl-form { margin: 8px 0; }
.lzl-input { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 8px 10px;
  font-family: var(--sans); font-size: 14px; color: var(--ink); resize: vertical; min-height: 46px; }
.lzl-input:focus { outline: none; border-color: var(--accent); }
.lzl-form-btns { display: flex; gap: 8px; margin-top: 6px; }
@media (max-width: 640px) { .lzl { margin-left: 0; } }

/* ============ 站内通知 ============ */
.bell-btn { position: relative; text-decoration: none; }
.bell-dot { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #d96a58; color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--bg); }
.notif-list { padding: 4px 0; }
.notif-row { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; position: relative; }
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { background: var(--surface-2); }
.notif-row.unread { background: var(--accent-soft); }
.notif-row.unread:hover { background: color-mix(in srgb, var(--accent-soft) 80%, var(--accent) 10%); }
.notif-ava { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.notif-ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.notif-body { min-width: 0; flex: 1; }
.notif-text { font-size: 14px; color: var(--ink); line-height: 1.5; }
.notif-text b { color: var(--accent-ink); font-weight: 600; }
.notif-thread { color: var(--ink-2); }
.notif-when { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #d96a58; flex-shrink: 0; }

/* 从通知/楼中楼跳转过来时高亮目标楼层 */
.post:target, .lzl-row:target { animation: jump-hl 2.4s ease; border-radius: 10px; }
@keyframes jump-hl {
  0%, 45% { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent) inset; }
  100% { background: transparent; box-shadow: 0 0 0 0 transparent inset; }
}

/* ============ Steam 式悬浮名片 ============ */
.usercard-pop { position: fixed; z-index: 60; width: 268px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 30px rgba(30,30,20,.16); padding: 16px; }
:root[data-theme="dark"] .usercard-pop { box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.uc-card .uc-top { display: flex; align-items: center; gap: 12px; }
.uc-card .uc-ava { width: 52px; height: 52px; border-radius: 13px; overflow: visible; flex-shrink: 0; }
.uc-card .uc-ava img { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; object-position: 50% 16%; }
.uc-id { min-width: 0; }
.uc-name { font-family: var(--round); font-weight: 700; font-size: 16px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-badges { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.uc-role { font-size: 10px; font-weight: 700; color: #fff; background: var(--gold); padding: 1px 6px; border-radius: 4px; }
.uc-bio { font-size: 12.5px; color: var(--ink-2); margin: 11px 0 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 13px 0 0;
  background: var(--surface-2); border-radius: 10px; padding: 9px 4px; }
.uc-stats > div { text-align: center; }
.uc-stats b { display: block; font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--accent-ink); }
.uc-stats span { font-size: 10.5px; color: var(--ink-3); }
.uc-status { display: flex; align-items: center; gap: 7px; margin-top: 11px; font-size: 12px; color: var(--ink-2); }
.uc-status img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; object-position: 50% 14%; background: var(--surface-2); }
.uc-visit { display: block; text-align: center; margin-top: 13px; }

/* ============ 真·头像装扮（叠加在头像上的配件）============ */
.ava-wrap { position: relative; }
.deco-ov { position: absolute; pointer-events: none; z-index: 3; }
.deco-ov svg { width: 100%; height: 100%; display: block; overflow: visible; }
.deco-slot-eyes  { left: 12%; top: 33%;   width: 76%;  height: 30%; }
.deco-slot-head  { left: -6%; top: -30%;  width: 112%; height: 66%; }
.deco-slot-mouth { left: 34%; bottom: 3%; width: 32%;  height: 34%; }
.deco-slot-mask  { left: 3%;  top: 2%;    width: 94%;  height: 94%; }

/* 谜语式物品描述 */
.si-desc { font-size: 11px; color: var(--ink-3); font-style: italic; line-height: 1.45; margin: 5px 2px 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 称号徽章（B 站粉丝牌风格） */
.title-badge { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #fff; border-radius: 5px; vertical-align: middle;
  background: linear-gradient(180deg, #6fb1e6, #3d7fc4); border: 1px solid rgba(0,0,0,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.12); text-shadow: 0 1px 1px rgba(0,0,0,.18);
  position: relative; overflow: hidden; white-space: nowrap; }
.title-badge .tb-ico { display: inline-flex; align-items: center; }
.tb-coin { width: 13px; height: 13px; display: block; }
/* 赞助大王：马里奥金币 + 鎏金流光 */
.title-mario { background: linear-gradient(180deg, #ffdf6b, #f0a91e); border-color: #c47f1e; color: #6b3d06;
  text-shadow: 0 1px 0 rgba(255,255,255,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 3px rgba(224,152,42,.5); }
.title-mario::after { content: ''; position: absolute; top: 0; left: -60%; width: 38%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.8), transparent); transform: skewX(-18deg);
  animation: tb-shine 3.4s ease-in-out infinite; }
.title-mario .tb-coin { animation: coin-spin 2.6s ease-in-out infinite; }
/* 雀雀大王：麻将發财牌 + 翠玉流光 */
.tb-tile { width: 12px; height: 15px; display: block; }
.title-mahjong { background: linear-gradient(180deg, #5fc07d, #2f9a52); border-color: #217a3e; color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 3px rgba(47,154,82,.5); }
.title-mahjong::after { content: ''; position: absolute; top: 0; left: -60%; width: 38%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-18deg);
  animation: tb-shine 3.8s ease-in-out infinite; }
.title-mahjong .tb-tile { animation: tile-bob 2.4s ease-in-out infinite; }
@keyframes tile-bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .title-mahjong::after, .title-mahjong .tb-tile { animation: none; } }
@keyframes tb-shine { 0%,55% { left: -60%; } 90%,100% { left: 130%; } }
@keyframes coin-spin { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.28); } }
@media (prefers-reduced-motion: reduce) { .title-mario::after, .title-mario .tb-coin { animation: none; } }

/* ============ 投票 ============ */
.poll-box { margin-top: 14px; padding: 16px 18px; }
.poll-q { font-family: var(--round); font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.poll-tag { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.poll-opts { display: flex; flex-direction: column; gap: 8px; }
.poll-voteform { margin: 0; }
.poll-opt { position: relative; display: flex; align-items: center; width: 100%; padding: 10px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink); overflow: hidden; text-align: left; }
button.poll-opt.votable { cursor: pointer; transition: all .12s ease; font-family: var(--sans); }
button.poll-opt.votable:hover { border-color: var(--accent); background: var(--accent-soft); }
.poll-opt.mine { border-color: var(--accent); }
.po-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); z-index: 0; transition: width .4s ease; }
.po-text { position: relative; z-index: 1; flex: 1; }
.po-pct { position: relative; z-index: 1; font-size: 12px; color: var(--ink-2); font-family: var(--mono); white-space: nowrap; }
.poll-total { font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* ============ roll 点擂台 ============ */
.roll-box { margin-top: 14px; padding: 16px 18px; }
.roll-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.roll-title { font-family: var(--round); font-weight: 700; font-size: 15px; color: var(--ink); }
.roll-mine { font-size: 13px; color: var(--accent-ink); }
.roll-mine b { font-family: var(--mono); font-size: 15px; }
.roll-list { display: flex; flex-direction: column; }
.roll-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.roll-row:first-child { border-top: 0; }
.roll-rank { width: 20px; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.roll-ava { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.roll-ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.roll-name { flex: 1; font-size: 14px; color: var(--ink); font-weight: 500; }
.roll-lead { font-size: 10px; font-weight: 700; color: #fff; background: var(--gold); padding: 1px 7px; border-radius: 999px; }
.roll-val { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--accent-ink); min-width: 42px; text-align: right; }
.roll-row.top .roll-val { color: var(--gold); }
.roll-empty { color: var(--ink-3); font-size: 13px; padding: 6px 0; }

/* ============ 发帖工具箱 ============ */
.tools-box { display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.tool-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.tool-panel { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 8px 24px; }
.tool-panel input[type=text] { width: 100%; }
.tool-inline { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.tool-hint { font-size: 12px; color: var(--ink-3); }

/* ============ 滚动公告横幅（底部中轴三角折叠）============ */
.notice-bar { position: relative; background: var(--accent-soft); border-bottom: 1px solid var(--line);
  height: 34px; overflow: visible; transition: height .25s ease; }
.nb-inner { display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 16px; overflow: hidden; }
.nb-ico { flex-shrink: 0; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.nb-viewport { flex: 1; overflow: hidden; white-space: nowrap; }
.nb-scroll { display: inline-flex; align-items: center; white-space: nowrap; animation: nb-marquee 30s linear infinite; }
.nb-scroll:hover { animation-play-state: paused; }
.nb-item { font-size: 13px; color: var(--accent-ink); }
.nb-sep { margin: 0 18px; color: var(--ink-3); }
/* 底部中轴的小三角折叠钮，收起时作为唯一可见的把手悬在顶端中央 */
.nb-toggle { position: absolute; left: 50%; transform: translateX(-50%); top: 100%;
  width: 46px; height: 17px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 9px 9px;
  background: var(--accent-soft); color: var(--accent-ink); cursor: pointer; z-index: 6;
  display: grid; place-items: center; padding: 0; }
.nb-toggle:hover { background: var(--accent); color: #fff; }
.nb-toggle svg { transition: transform .25s ease; display: block; }
.notice-bar.collapsed { height: 0; border-bottom: 0; }
.notice-bar.collapsed .nb-inner { display: none; }
.notice-bar.collapsed .nb-toggle svg { transform: rotate(180deg); }
@keyframes nb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .nb-scroll { animation: none; } }

/* ============ 富文本编辑器（所见即所得）============ */
.cinput.rich { min-height: 130px; padding: 12px 14px; font-size: 14.5px; line-height: 1.7; color: var(--ink);
  outline: none; overflow-wrap: break-word; word-break: break-word; cursor: text; }
.cinput.rich:empty:before { content: attr(data-ph); color: var(--ink-3); pointer-events: none; }
.cinput.rich img { max-width: 220px; max-height: 260px; border-radius: 8px; vertical-align: middle; margin: 2px 3px; }
.cinput.rich img.lz-emo { max-width: 40px; max-height: 40px; }
.cinput.rich img[data-up] { opacity: .45; filter: grayscale(.6); }
.cinput.rich blockquote { border-left: 3px solid var(--accent); padding-left: 10px; color: var(--ink-2); margin: 6px 0; }
.cinput.rich code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 13px; }
.cinput.rich a { color: var(--accent-ink); text-decoration: underline; }
.cinput.rich.empty-shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }

/* hidden 属性需压过 flex/grid 显式 display */
.tool-panel[hidden], .emoji-panel[hidden], .lzl-form[hidden] { display: none !important; }

/* ============ 打赏榜 / 称号简介 / 服务器倒计时 ============ */
.donor-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.donor-row:last-of-type { border-bottom: 0; }
.donor-row .nm { flex: 1; font-size: 14px; color: var(--ink); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donor-row .nm a { color: var(--ink); }
.donor-row .nm a:hover { color: var(--accent-ink); }
.donor-amt { font-family: var(--mono); font-weight: 700; color: #c0392b; }
:root[data-theme="dark"] .donor-amt { color: #e07a6a; }
.donor-note { font-size: 11px; color: var(--ink-3); margin-top: 9px; text-align: center; }

.uc-titledesc { font-size: 12px; color: #8a6a1c; margin-top: 11px; line-height: 1.55;
  background: linear-gradient(95deg, #fbf1d5, #f6e7bd); border: 1px solid #ecd9a6; border-radius: 9px; padding: 8px 10px; }
.uc-titledesc b { color: #a9781f; }
:root[data-theme="dark"] .uc-titledesc { color: #e6c877; background: #322a17; border-color: #4a3d1f; }
:root[data-theme="dark"] .uc-titledesc b { color: #f0d488; }

footer .server-countdown { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
footer .server-countdown b { color: var(--accent-ink); font-family: var(--sans); font-weight: 700; }

/* 个人主页头部：名字单独一行，徽章排下一行（对齐主流站点） */
.profile-name { line-height: 1.2; }
.profile-badges { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 7px 0 2px; }
.profile-titledesc { font-size: 12px; color: #8a6a1c; margin-top: 8px; line-height: 1.5;
  background: linear-gradient(95deg, #fbf1d5, #f6e7bd); border: 1px solid #ecd9a6; border-radius: 8px; padding: 6px 10px; display: inline-block; }
:root[data-theme="dark"] .profile-titledesc { color: #e6c877; background: #322a17; border-color: #4a3d1f; }

/* ============ 加密板（FIFA）解锁 ============ */
.locked-hint { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 14px; padding: 10px 0; }
.locked-hint .lh-ico svg { width: 20px; height: 20px; display: block; }
.lock-card { margin-top: 14px; padding: 22px; text-align: center; }
.lock-title { font-family: var(--round); font-weight: 700; font-size: 17px; color: var(--ink); }
.lock-sub { font-size: 13px; color: var(--ink-2); margin: 8px 0 16px; line-height: 1.6; }
.lock-sub b { color: var(--accent-ink); }
.lock-form { display: flex; gap: 8px; justify-content: center; max-width: 340px; margin: 0 auto; }
.lock-form input { flex: 1; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); padding: 9px 12px;
  font-family: var(--sans); font-size: 14px; color: var(--ink); }
.lock-form input:focus { outline: none; border-color: var(--accent); }
.lock-warn { font-size: 13px; color: #b5652f; background: #fbeee6; border: 1px solid #f2dccb; border-radius: 9px; padding: 10px 12px; display: inline-block; }
:root[data-theme="dark"] .lock-warn { color: #e0a473; background: #32271d; border-color: #463522; }

/* ============ 献祭输赢榜 / 超级大奖 ============ */
.sac-net.pos { color: #2f9a52; }
.sac-net.neg { color: #c0392b; }
:root[data-theme="dark"] .sac-net.pos { color: #6fc088; }
:root[data-theme="dark"] .sac-net.neg { color: #e07a6a; }
.sac-foot { font-size: 11px; color: var(--ink-3); margin-top: 10px; text-align: center; }
/* 超级大奖福签：鎏金流光 */
.fortune.jackpot { position: relative; overflow: hidden; border: 1px solid #e6bd54;
  background: linear-gradient(120deg, #fff6da, #ffe9a8, #fff6da); }
:root[data-theme="dark"] .fortune.jackpot { background: linear-gradient(120deg, #3a3016, #4a3d1c, #3a3016); border-color: #6b5320; }
.fortune.jackpot::after { content: ''; position: absolute; top: 0; left: -50%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent); transform: skewX(-18deg); animation: tb-shine 2.6s ease-in-out infinite; }
.fortune.jackpot .ft b { color: #b8860b; }
:root[data-theme="dark"] .fortune.jackpot .ft b { color: #f0d488; }
@media (prefers-reduced-motion: reduce) { .fortune.jackpot::after { animation: none; } }

/* ============ 搜索 ============ */
.nav-search { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; width: 180px; flex-shrink: 0; }
.nav-search svg { width: 15px; height: 15px; color: var(--ink-3); flex-shrink: 0; }
.nav-search input { border: 0; background: transparent; outline: none; font-size: 13px; color: var(--ink); width: 100%; font-family: var(--sans); }
.nav .nav-search-m { display: none; }
@media (max-width: 720px) { .nav-search { display: none; } }
@media (max-width: 640px) { .nav .nav-search-m { display: grid; } }

.search-box { margin-bottom: 18px; }
.sb-row { display: flex; gap: 8px; }
.sb-row input { flex: 1; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 11px 14px; font-size: 15px; color: var(--ink); font-family: var(--sans); }
.sb-row input:focus { outline: none; border-color: var(--accent); }
.sb-filters { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.sb-select { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); padding: 6px 10px; font-size: 13px; color: var(--ink); font-family: var(--sans); cursor: pointer; }
.sb-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sb-tag { position: relative; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; }
.sb-tag input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sb-tag.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.sr-snippet { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 3px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
mark { background: #fff2a8; color: inherit; border-radius: 2px; padding: 0 1px; }
:root[data-theme="dark"] mark { background: #6b5a1f; color: #f0e6c8; }

/* 起落随心：八卦太极牌 · 墨玉旋转 */
.tb-taichi { width: 14px; height: 14px; display: block; }
.title-taichi { background: linear-gradient(180deg, #808995, #464c58); border-color: #363b45; color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 3px rgba(60,66,78,.5); }
.title-taichi .tb-taichi { animation: taichi-spin 7s linear infinite; }
@keyframes taichi-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .title-taichi .tb-taichi { animation: none; } }

/* ============ 战网式用户名 #TAG + 注册验证码行 ============ */
.uhandle { color: var(--ink-3); font-weight: 400; font-size: .82em; margin-left: 1px; letter-spacing: .02em; }
.code-row { display: flex; gap: 8px; align-items: center; }
.code-row input { flex: 1; }
.code-row .btn { white-space: nowrap; flex-shrink: 0; }

/* 正义卡比：像素卡比兽(Snorlax) · 青灰牌 */
.tb-kirby { width: 15px; height: 15px; display: block; }
.title-kirby { background: linear-gradient(180deg, #6a8896, #47606c); border-color: #3a4e58; color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 3px rgba(71,96,108,.45); }
.title-kirby .tb-kirby { animation: kirby-bob 3.2s ease-in-out infinite; transform-origin: center bottom; }
@keyframes kirby-bob { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.94); } }
@media (prefers-reduced-motion: reduce) { .title-kirby .tb-kirby { animation: none; } }

.tb-sword, .tb-banner { width: 15px; height: 15px; display: block; }
/* 三尺秋水（老虎机彩蛋）：枯叶底色 + 落叶飘零 */
.title-sword { background: linear-gradient(180deg, #b28f56, #7a5629); border-color: #664521; color: #fbf3e2;
  text-shadow: 0 1px 1px rgba(60,40,10,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 1px 3px rgba(90,64,20,.5); }
.title-sword .qs-leaf { transform-box: fill-box; transform-origin: center; animation: qs-fall 2.8s linear infinite; }
.title-sword .qs-l2 { animation-delay: 1.4s; }
@keyframes qs-fall {
  0% { transform: translate(0, -1px) rotate(0deg); opacity: 0; }
  12% { opacity: .95; }
  100% { transform: translate(-7px, 15px) rotate(210deg); opacity: 0; }
}
/* 现世魂幡（献祭大奖彩蛋）：幽冥青紫 + 灵魂飘荡 */
.title-banner { background: linear-gradient(180deg, #6a5a8f, #423463); border-color: #372a55; color: #f1ecfa;
  text-shadow: 0 1px 1px rgba(0,0,0,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 1px 3px rgba(66,52,99,.55); }
.title-banner .tb-banner { animation: banner-sway 3.6s ease-in-out infinite; transform-origin: top center; }
.title-banner .hf-soul { transform-box: fill-box; transform-origin: center; animation: hf-float 3s ease-in-out infinite; }
@keyframes banner-sway { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes hf-float { 0% { transform: translate(0, 2px) scale(.85); opacity: .12; } 45% { opacity: .9; } 100% { transform: translate(-1.5px, -5px) scale(1.12); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .title-banner .tb-banner, .title-banner .hf-soul, .title-sword .qs-leaf { animation: none; } }
.egg-title { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--gold); }

/* 背包 · 头衔 */
.title-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.title-card { border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: var(--surface-2); text-align: center; }
.title-card.worn { border-color: var(--accent); background: var(--accent-soft); }
.tc-badge { margin-bottom: 8px; }
.tc-desc { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; margin-bottom: 10px; min-height: 32px; }

/* ============ 榜单信息浮层（凉币榜/等级榜 hover tip） ============ */
.lb-title { display: flex; align-items: center; }
.tip-wrap { position: relative; display: inline-flex; align-items: center; margin-left: 5px;
  color: var(--ink-3); cursor: help; outline: none; -webkit-tap-highlight-color: transparent; }
.tip-ico { width: 14px; height: 14px; opacity: .5; transition: opacity .15s, color .15s; }
.tip-wrap:hover .tip-ico, .tip-wrap:focus .tip-ico, .tip-wrap:focus-within .tip-ico { opacity: 1; color: var(--accent-ink); }
.tip-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 236px;
  padding: 11px 13px; text-align: left; letter-spacing: normal; font-weight: 400;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-5px); transition: opacity .16s, transform .16s, visibility .16s;
  pointer-events: none; }
.tip-wrap:hover .tip-pop, .tip-wrap:focus .tip-pop, .tip-wrap:focus-within .tip-pop {
  opacity: 1; visibility: visible; transform: translateY(0); }
.tip-pop b { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 7px; }
.tip-pop .tl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; font-size: 12.5px; }
.tip-pop .tl .k { color: var(--ink); white-space: nowrap; }
.tip-pop .tl .v { color: var(--accent-ink); font-weight: 600; text-align: right; }
.tip-pop .tn { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line);
  color: var(--ink-3); font-size: 11.5px; line-height: 1.55; }

/* ============ 比赛竞猜（xx大王） ============ */
.match-box { padding: 16px; margin-bottom: 16px; }
.match-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.match-game { font-size: 15px; font-weight: 700; color: var(--ink); }
.match-status { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.match-status.s-open { color: #fff; background: var(--accent); }
.match-status.s-closed { color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); }
.match-status.s-settled { color: var(--gold); background: var(--accent-soft); }
.match-status.s-refunded { color: var(--ink-3); background: var(--surface-2); }
.match-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.match-sub .gold, .match-box .gold { color: var(--gold); }
.match-parts { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.mp-row { display: flex; gap: 10px; align-items: stretch; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface-2); cursor: default; transition: border-color .15s, background .15s; }
.match-parts:not([data-nobet]) .mp-row { cursor: pointer; }
.match-parts:not([data-nobet]) .mp-row:hover { border-color: var(--accent); }
.mp-row.mine { border-color: var(--accent); background: var(--accent-soft); }
.mp-row.win { border-color: var(--gold); background: var(--accent-soft); }
.mp-row input[type=radio] { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.mp-main { flex: 1; min-width: 0; }
.mp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mp-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.mp-crown, .mp-row .mp-crown { font-size: 10px; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
.mp-odds { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.mp-odds b { font-size: 15px; color: var(--accent-ink); font-family: var(--mono); }
.mp-noodds { font-size: 11px; }
.mp-intro { font-size: 12px; color: var(--ink-3); margin: 3px 0 6px; line-height: 1.5; }
.mp-barwrap { height: 6px; border-radius: 4px; background: var(--surface); overflow: hidden; margin: 6px 0 5px; }
.mp-bar { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-ink)); border-radius: 4px; transition: width .4s; }
.mp-foot { font-size: 11.5px; color: var(--ink-3); }
.mp-foot b { color: var(--ink); font-family: var(--mono); }
.mp-mine { color: var(--accent-ink); font-weight: 600; }
.match-betbar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.match-betbar input[type=number] { width: 150px; flex-shrink: 0; }
.match-betbar .match-note { flex: 1; min-width: 120px; }
.match-hint { font-size: 12px; color: var(--ink-3); margin-top: 9px; line-height: 1.5; }
.match-feed { margin-top: 12px; font-size: 12.5px; }
.match-feed summary { cursor: pointer; color: var(--ink-3); font-size: 12px; user-select: none; }
.mf-row { display: flex; gap: 8px; align-items: baseline; padding: 4px 2px; border-top: 1px dashed var(--line); }
.mf-row:first-of-type { margin-top: 6px; }
.mf-who { flex: 1; color: var(--ink); }
.mf-amt { color: var(--gold); font-family: var(--mono); }
.mf-to { color: var(--ink-3); }
.match-admin { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.ma-title { font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 9px; }
.ma-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ma-btns .danger, .match-admin .danger { color: #c0563f; border-color: #d8a99b; }
.ma-settle { display: flex; gap: 8px; flex-wrap: wrap; }
.ma-settle select { flex: 1; min-width: 140px; }

/* 游戏图标（站长自备官方图标文件） */
.gi { width: 22px; height: 22px; display: block; object-fit: contain; border-radius: 5px; }
.mg-ico { display: inline-flex; align-items: center; }
.match-game .mg-ico { margin-right: 7px; }
.match-game .gi { width: 24px; height: 24px; }
.mg-opt .gi { width: 22px; height: 22px; }
/* 队伍阵容（thread 展示） */
.mp-roster { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 7px; }
.mp-player { font-size: 11.5px; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }

/* 发帖表单：比赛竞猜录入 */
.match-game-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mg-opt { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; font-size: 13px; background: var(--surface); transition: border-color .15s, background .15s; }
.mg-opt:hover { border-color: var(--accent); }
.mg-opt.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.mg-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.match-team-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.match-team-layout[hidden], .match-solo-layout[hidden] { display: none !important; }  /* [hidden] 被 display:grid 覆盖的修正 */
.team-card { border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: var(--surface-2); }
.team-name { width: 100%; font-weight: 600; margin-bottom: 8px; }
.team-players { display: flex; flex-direction: column; gap: 6px; }
.solo-players { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.solo-in { display: flex; gap: 8px; }
.solo-in .upick { width: 42%; flex-shrink: 0; }
.solo-in .solo-intro { flex: 1; }
@media (max-width: 560px) { .match-team-layout { grid-template-columns: 1fr; } .solo-in { flex-direction: column; } .solo-in .upick { width: 100%; } }

/* 论坛用户自动补全下拉 */
.upick { position: relative; }
.upick-input { width: 100%; }
.upick-menu { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  padding: 4px; max-height: 220px; overflow-y: auto; }
.upick-opt { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--ink); }
.upick-opt:hover, .upick-opt.on { background: var(--accent-soft); }
.upick-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; opacity: .7; }
.upick-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 老虎机（献祭板块） · Vegas skill-stop 机柜 ============ */
.slot-card { position: relative; margin-bottom: 16px; text-align: center; border-radius: 16px;
  background: radial-gradient(120% 90% at 50% -10%, #3a1420 0%, #250b14 55%, #1a070e 100%);
  border: 1px solid #4a1622; box-shadow: 0 10px 30px rgba(20,6,12,.35); }
/* 收起 / 展开条 */
.slot-collapse { position: absolute; top: 0; right: 0; left: 0; height: 24px; display: flex; align-items: center;
  justify-content: center; border: none; cursor: pointer; z-index: 6; border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(0,0,0,.22), transparent); color: #f3d9b0; }
.slot-card.collapsed { overflow: hidden; }
.scv-chev { transition: transform .2s; opacity: .7; }
.slot-card.collapsed .scv-chev { transform: rotate(180deg); }
.slot-body { position: relative; padding: 34px 18px 20px; transition: max-height .3s ease, opacity .2s, padding .3s; }
.slot-card.collapsed .slot-body { max-height: 0; padding-top: 26px; padding-bottom: 0; opacity: 0; overflow: hidden; pointer-events: none; }
/* 背景装饰：Shopping now! 招牌 + 漂浮金币钞票 */
.slot-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.slot-machine, .slot-result, .slot-wins { position: relative; z-index: 1; }
.neon-sign { position: absolute; left: 24px; top: 40px; font-family: 'Segoe Script', 'Brush Script MT', 'Snell Roundhand', cursive;
  font-style: italic; font-weight: 700; font-size: 24px; letter-spacing: .5px; white-space: nowrap; color: #fff4d2; transform: rotate(-9deg);
  text-shadow: 0 0 4px #ffd98a, 0 0 9px #ff9b3a, 0 0 17px #ff6a2a, 0 0 26px #ff4a2a; animation: neon-flick 4.5s infinite; }
@keyframes neon-flick { 0%,90%,100% { opacity: 1; } 91% { opacity: .5; } 92% { opacity: 1; } 95% { opacity: .7; } 96% { opacity: 1; } }
.deco-coin, .deco-bill { position: absolute; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.deco-coin { width: 30px; height: 30px; opacity: .92; }
.deco-bill { width: 44px; height: 24px; opacity: .9; }
.deco-coin svg, .deco-bill svg { width: 100%; height: 100%; display: block; }
.dc1 { left: 42px; bottom: 34px; animation: coin-bob 3.2s ease-in-out infinite; }
.dc2 { left: 128px; top: 46px; width: 22px; height: 22px; animation: coin-bob 2.6s ease-in-out infinite .4s; }
.dc3 { right: 46px; top: 58px; animation: coin-spin 3.6s linear infinite; }
.dc4 { right: 126px; bottom: 40px; width: 24px; height: 24px; animation: coin-bob 3.6s ease-in-out infinite .8s; }
.db1 { left: 74px; top: 84px; animation: bill-sway 4.2s ease-in-out infinite; }
.db2 { right: 66px; bottom: 70px; animation: bill-sway 3.6s ease-in-out infinite .6s; }
.db3 { left: 26px; bottom: 82px; width: 36px; height: 20px; animation: bill-drift 5s ease-in-out infinite; }
@keyframes coin-bob { 0%,100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-9px) rotate(7deg); } }
@keyframes coin-spin { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
@keyframes bill-sway { 0%,100% { transform: rotate(-13deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-7px); } }
@keyframes bill-drift { 0%,100% { transform: rotate(7deg) translate(0,0); } 50% { transform: rotate(-4deg) translate(6px,-6px); } }
.dc5 { left: 14px; top: 128px; width: 22px; height: 22px; animation: coin-bob 3s ease-in-out infinite .5s; }
.dc6 { right: 16px; bottom: 96px; animation: coin-spin 4.2s linear infinite; }
.db4 { right: 150px; top: 70px; animation: bill-sway 4.6s ease-in-out infinite .3s; }
/* 第二块霓虹灯牌 777（青色） */
.neon-777 { position: absolute; right: 34px; top: 42px; font-family: 'Segoe Script', 'Brush Script MT', cursive;
  font-style: italic; font-weight: 700; font-size: 23px; color: #dcfbff; transform: rotate(8deg); white-space: nowrap;
  text-shadow: 0 0 4px #8fe9ff, 0 0 10px #35c6ff, 0 0 18px #1aa0ff, 0 0 26px #0f7fe0; animation: neon-flick 3.8s infinite .7s; }
/* 各色赌场筹码 */
.deco-chip { position: absolute; width: 28px; height: 28px; opacity: .92; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.deco-chip svg { width: 100%; height: 100%; display: block; }
.chip1 { left: 156px; bottom: 42px; animation: chip-bob 3s ease-in-out infinite; }
.chip2 { right: 152px; bottom: 32px; animation: chip-spin 5s linear infinite; }
.chip3 { left: 92px; bottom: 16px; animation: chip-bob 3.6s ease-in-out infinite .5s; }
.chip4 { right: 92px; top: 112px; animation: chip-bob 2.8s ease-in-out infinite .3s; }
.chip5 { right: 44px; top: 128px; animation: chip-spin 6s linear infinite; }
@keyframes chip-bob { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-8px) rotate(8deg); } }
@keyframes chip-spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
/* 兔女郎耳饰 */
.deco-bunny { position: absolute; width: 30px; height: 30px; opacity: .9; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.deco-bunny svg { width: 100%; height: 100%; display: block; }
.bunny1 { left: 40px; top: 120px; transform-origin: bottom center; animation: bunny-wiggle 3.4s ease-in-out infinite; }
.bunny2 { right: 150px; top: 116px; transform-origin: bottom center; animation: bunny-wiggle 3s ease-in-out infinite .4s; }
@keyframes bunny-wiggle { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@media (max-width: 640px) { .neon-sign { font-size: 17px; left: 10px; top: 34px; } .neon-777 { font-size: 17px; }
  .dc2, .db1, .db3, .db4, .dc5, .chip3, .chip4, .bunny1 { display: none; } }
@media (prefers-reduced-motion: reduce) { .neon-sign, .neon-777, .deco-coin, .deco-bill, .deco-chip, .deco-bunny { animation: none; } }
/* 机身 */
.slot-machine { position: relative; display: inline-block; padding: 20px 20px 16px; border-radius: 18px;
  background: linear-gradient(170deg, #7a1524, #4e0d18); border: 2px solid #c9962f;
  box-shadow: 0 8px 22px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 4px rgba(201,150,47,.18); }
/* 静态金色铆钉（无闪烁，保留 Vegas 机身质感） */
.mq-lights { position: absolute; inset: 6px; border-radius: 14px; pointer-events: none; }
.mq-lights i { position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe6a3, #d59a2c); box-shadow: 0 0 4px rgba(255,190,90,.5), inset 0 -1px 1px rgba(0,0,0,.3); }
.mq-lights i:nth-child(1){top:-3px;left:8%}.mq-lights i:nth-child(2){top:-3px;left:26%}.mq-lights i:nth-child(3){top:-3px;left:44%}
.mq-lights i:nth-child(4){top:-3px;left:62%}.mq-lights i:nth-child(5){top:-3px;left:80%}.mq-lights i:nth-child(6){bottom:-3px;left:8%}
.mq-lights i:nth-child(7){bottom:-3px;left:26%}.mq-lights i:nth-child(8){bottom:-3px;left:44%}.mq-lights i:nth-child(9){bottom:-3px;left:62%}
.mq-lights i:nth-child(10){bottom:-3px;left:80%}.mq-lights i:nth-child(11){top:32%;left:-3px}.mq-lights i:nth-child(12){bottom:20%;left:-3px}
.mq-lights i:nth-child(13){top:32%;right:-3px}.mq-lights i:nth-child(14){bottom:20%;right:-3px}
/* 信息按钮 + 浮层 */
.slot-info { position: absolute; top: 8px; right: 8px; z-index: 5; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.25); color: #f3d9b0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.slot-info:hover { background: rgba(0,0,0,.4); }
.slot-info-pop { position: absolute; top: 36px; right: 8px; z-index: 20; width: 208px; max-width: calc(100vw - 40px); text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 11px 12px; }
/* 玻璃窗 + 转轴 */
.slot-glass { position: relative; padding: 8px; border-radius: 12px; background: #0d1014; box-shadow: inset 0 3px 14px rgba(0,0,0,.6), 0 0 0 2px rgba(201,150,47,.4); }
/* 出结果演出：中奖数字弹出 + 粒子迸发（覆盖在转轴上） */
.slot-fx { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 12; overflow: visible; }
.fx-amount { font-weight: 800; font-size: 30px; color: #ffd873; opacity: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,.65), 0 0 14px rgba(255,190,70,.9); }
.slot-fx.show .fx-amount { animation: fx-pop 1.5s cubic-bezier(.2,1.5,.3,1) forwards; }
.slot-fx.big .fx-amount { color: #fff; font-size: 32px; text-shadow: 0 2px 8px rgba(0,0,0,.7), 0 0 18px #ffcf6b, 0 0 32px #ff8a3a; }
@keyframes fx-pop { 0% { opacity: 0; transform: translateY(14px) scale(.5); } 18% { opacity: 1; transform: translateY(0) scale(1.22); } 34% { transform: scale(1); } 74% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(-16px) scale(1.04); } }
.fx-spark { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%;
  background: #ff5a44; box-shadow: 0 0 6px rgba(255,90,68,.85); opacity: 0; }
.fx-spark.gold { background: #ffd873; box-shadow: 0 0 6px rgba(255,200,80,.95); }
.slot-fx.show .fx-spark { animation: fx-spark .9s ease-out forwards; }
@keyframes fx-spark { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.3); } }
/* 机身演出：赢发光 / 头奖震动 / 未中轻晃 */
.slot-machine.fx-win { animation: mfx-glow .6s ease; }
.slot-machine.fx-jackpot { animation: mfx-shake .55s ease, mfx-glow .5s ease 3; }
.slot-machine.fx-miss { animation: mfx-miss .38s ease; }
@keyframes mfx-glow { 0%,100% { box-shadow: 0 8px 22px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 4px rgba(201,150,47,.18); }
  50% { box-shadow: 0 8px 22px rgba(0,0,0,.4), inset 0 0 0 4px #ffcf6b, 0 0 30px rgba(255,200,80,.7); } }
@keyframes mfx-shake { 0%,100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-5px) rotate(-1deg); } 40% { transform: translateX(5px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes mfx-miss { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-3px); } 60% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .slot-fx .fx-amount, .slot-fx .fx-spark, .slot-machine.fx-win, .slot-machine.fx-jackpot, .slot-machine.fx-miss { animation: none; } }
.slot-window { position: relative; display: flex; gap: 7px; }
.slot-reel { width: 78px; height: 84px; overflow: hidden; border-radius: 7px; position: relative;
  background: linear-gradient(180deg, #fbfbf7, #e8e6dc);
  box-shadow: inset 0 9px 11px -6px rgba(0,0,0,.5), inset 0 -9px 11px -6px rgba(0,0,0,.5); }
.reel-strip { will-change: transform; }
.reel-cell { width: 78px; height: 84px; display: flex; align-items: center; justify-content: center; }
.ssym { width: 50px; height: 50px; display: block; }
.slot-reel.locked { animation: slot-pop .3s ease; }
@keyframes slot-pop { 0% { box-shadow: inset 0 0 0 3px #ffcf6b; } 100% { box-shadow: none; } }
.slot-payline { position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, #ff5a44 18%, #ff5a44 82%, transparent); opacity: .85; pointer-events: none; z-index: 2; box-shadow: 0 0 6px rgba(255,90,68,.6); }
/* 红色停止键（无字） */
.slot-stops { display: flex; gap: 14px; margin-top: 14px; justify-content: center; }
.slot-stop { width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 38% 32%, #7a828c, #454c55); box-shadow: 0 4px 0 #23282e, inset 0 2px 3px rgba(255,255,255,.25);
  transition: transform .05s, box-shadow .05s, background .15s; }
.slot-stops.live .slot-stop:not(:disabled) { background: radial-gradient(circle at 38% 32%, #ff8873, #d6291a);
  box-shadow: 0 4px 0 #8c1c10, inset 0 2px 3px rgba(255,255,255,.4), 0 0 14px rgba(255,60,40,.6); animation: stop-glow 1s ease-in-out infinite; }
@keyframes stop-glow { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.2); } }
.slot-stop:not(:disabled):active { transform: translateY(4px); box-shadow: 0 0 0 #8c1c10, inset 0 2px 3px rgba(255,255,255,.4); }
.slot-stop:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) { .slot-stops.live .slot-stop:not(:disabled) { animation: none; } }
/* 支付方式选择器：凉币 / 券 二选一，选中高亮 + 亮框；数值随倍率跳动 */
.slot-pay { display: flex; justify-content: center; gap: 8px; margin-top: 12px; position: relative; z-index: 4; }
.pay-opt { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  background: rgba(0,0,0,.34); border: 1.5px solid rgba(255,220,150,.28); color: #ffe4a3; font-weight: 700; font-size: 13px; line-height: 1;
  transition: background .16s, border-color .16s, box-shadow .16s, opacity .16s, transform .1s; }
.pay-opt:hover { border-color: rgba(255,220,150,.6); }
.pay-opt.on { background: linear-gradient(180deg, rgba(255,206,107,.3), rgba(255,160,60,.15)); border-color: #ffcf6b;
  box-shadow: 0 0 0 1px #ffcf6b, 0 0 12px rgba(255,190,70,.55), inset 0 0 8px rgba(255,200,90,.22); color: #fff4d2; }
.pay-opt:active { transform: scale(.95); }
.pay-opt.pay-off { display: none; }
.pay-opt.pay-dim { opacity: .38; cursor: not-allowed; }
.pay-opt.pay-dim:hover { border-color: rgba(255,220,150,.28); }
.pay-k { display: inline-flex; align-items: center; }
.pay-tk { width: 22px; height: 22px; }
.pay-tk svg { width: 100%; height: 100%; display: block; }
.pay-opt:not(.on) .pay-tk { filter: grayscale(.4); opacity: .85; }
.pay-v { font-family: var(--mono); font-size: 13px; min-width: 12px; text-align: center; display: inline-block; }
.pay-v.tick { animation: pay-tick .3s ease; }
@keyframes pay-tick { 0% { transform: translateY(-5px) scale(1.28); opacity: .35; } 60% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: none; } }
.sc-coin { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%;
  background: #f8cb3c; color: #6b4a12; font-size: 10px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .pay-v.tick { animation: none; } }
/* 真拉杆 */
.slot-lever { position: absolute; right: -16px; top: 50%; transform: translateY(-50%); width: 24px; height: 96px; cursor: grab; touch-action: none; z-index: 4; }
.slot-lever:active { cursor: grabbing; }
.lever-mount { position: absolute; left: 6px; bottom: 0; width: 12px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, #c9962f, #8a6420); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.lever-arm { position: absolute; left: 9px; bottom: 14px; width: 6px; height: 62px; border-radius: 3px;
  background: linear-gradient(180deg, #d8dde2, #9aa2ab); transform-origin: bottom center; transition: transform .18s cubic-bezier(.3,1.5,.5,1); }
.lever-ball { position: absolute; top: -13px; left: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a75, #d63f2c); box-shadow: inset 0 -3px 4px rgba(0,0,0,.3), 0 3px 6px rgba(0,0,0,.35); }
.slot-lever.pulled .lever-arm { transform: translateY(46px); }
@media (max-width: 520px) { .slot-lever { right: -8px; } }
/* 结果 */
.slot-result { margin: 16px 0 4px; font-size: 13.5px; font-weight: 600; color: #e8c9a0; min-height: 20px; }
.slot-result.win { color: #7fe6a0; }
.slot-result.push { color: #fff; }
.slot-result.jackpot { color: #ffd873; font-size: 16px; }
.slot-card.flash-jackpot { animation: slot-flash 2.6s ease; }
@keyframes slot-flash { 0%,100% { box-shadow: 0 10px 30px rgba(20,6,12,.35); } 15%,55% { box-shadow: 0 0 0 3px #ffd873, 0 0 34px rgba(255,180,60,.6); } }
/* 赔付表（浮层内）：纯符号 + 倍率，两列紧凑 */
.spt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 0; }
.spt-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 2px 0; color: var(--ink); }
.spt-ico { display: inline-flex; gap: 1px; }
.spt-cell { width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; }
.spt-cell .ssym { width: 19px; height: 19px; }
.ssym-any { width: 11px; height: 11px; border-radius: 4px; border: 1.5px dashed var(--line); display: inline-block; }
.spt-mul { font-family: var(--mono); font-weight: 700; color: var(--accent-ink); margin-left: auto; }
/* 最近大奖 */
.slot-wins { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; }
.sw-label { font-size: 11px; color: #b98a6a; }
.sw-item { font-size: 12px; color: #f0e0c8; background: rgba(0,0,0,.22); border: 1px solid rgba(201,150,47,.35); border-radius: 999px; padding: 2px 10px; }
.sw-item b { color: #ffd873; font-family: var(--mono); }

/* ============ 分页控件 ============ */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 18px 0 4px; }
.pg-btn, .pg-num { min-width: 32px; height: 32px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--ink); background: var(--surface); }
.pg-btn:hover, .pg-num:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.pg-num.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.pg-btn.off { color: var(--ink-3); opacity: .45; pointer-events: none; }
.pg-gap { color: var(--ink-3); padding: 0 2px; }
.pg-total { font-size: 12px; color: var(--ink-3); margin-left: 8px; }

/* ============ 个人页：四板块 tab + 逐行列表 ============ */
.prof-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0 12px; border-bottom: 1px solid var(--line); }
.ptab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; font-size: 14px; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ptab:hover { color: var(--ink); text-decoration: none; }
.ptab.on { color: var(--accent-ink); border-bottom-color: var(--accent); font-weight: 600; }
.ptab-n { font-size: 11px; font-family: var(--mono); color: var(--ink-3); background: var(--surface-2); border-radius: 999px; padding: 0 6px; }
.ptab.on .ptab-n { color: var(--accent-ink); background: var(--accent-soft); }
.prof-list { overflow: hidden; }
.row-line { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.row-line:last-child { border-bottom: none; }
a.row-line:hover { background: var(--surface-2); text-decoration: none; }
.row-line.no-hover { cursor: default; }
.rl-main { flex: 1; min-width: 0; }
.rl-snip { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.rl-go { color: var(--ink-3); font-size: 18px; flex-shrink: 0; }
.rl-gift { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rl-amt { font-family: var(--mono); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.rl-amt.gold { color: var(--gold); }
.rl-amt.pos { color: var(--accent-ink); }
.rl-amt.neg { color: #c0563f; }
.pnl-src { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; flex-shrink: 0; }
.pnl-src.sac { color: var(--accent-ink); background: var(--accent-soft); }
.pnl-src.slot { color: #b06a1e; background: #f6ecd8; }
:root[data-theme="dark"] .pnl-src.slot { background: #3a2e1a; }
.pnl-summary { margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.pnl-summary b { font-size: 18px; font-family: var(--mono); }
.pnl-summary.pos b { color: var(--accent-ink); }
.pnl-summary.neg b { color: #c0563f; }
.pnl-hint { float: right; color: var(--ink-3); font-size: 12px; }

/* 老虎机背景：更多装饰（骰子/扑克/皇冠/星光/更多筹码金币） */
.deco-dice { position: absolute; width: 26px; height: 26px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.deco-card { position: absolute; width: 24px; height: 31px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.42)); }
.deco-crown { position: absolute; width: 30px; height: 22px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.deco-star { position: absolute; width: 14px; height: 14px; }
.deco-dice svg, .deco-card svg, .deco-crown svg, .deco-star svg { width: 100%; height: 100%; display: block; }
.deco-star svg { filter: drop-shadow(0 0 4px #ffcf6b); }
.dc7 { left: 200px; bottom: 96px; width: 22px; height: 22px; animation: coin-bob 3.1s ease-in-out infinite .3s; }
.dc8 { right: 200px; top: 100px; animation: coin-spin 4.6s linear infinite; }
.db5 { left: 148px; top: 40px; animation: bill-drift 4.8s ease-in-out infinite .4s; }
.chip6 { left: 40px; top: 62px; animation: chip-bob 3.3s ease-in-out infinite .2s; }
.chip7 { right: 40px; bottom: 42px; animation: chip-spin 5.5s linear infinite; }
.dice1 { left: 196px; top: 60px; animation: dice-tumble 4s ease-in-out infinite; }
.dice2 { right: 196px; bottom: 56px; animation: dice-tumble 3.4s ease-in-out infinite .6s; }
.card1 { left: 170px; top: 126px; animation: bill-sway 4.4s ease-in-out infinite; }
.card2 { right: 170px; top: 116px; animation: bill-sway 3.8s ease-in-out infinite .5s; }
.crown1 { right: 116px; top: 42px; animation: coin-bob 3.8s ease-in-out infinite; }
.star1 { left: 108px; top: 36px; animation: twinkle 2.2s ease-in-out infinite; }
.star2 { right: 108px; top: 90px; animation: twinkle 1.8s ease-in-out infinite .5s; }
.star3 { left: 210px; bottom: 40px; animation: twinkle 2.6s ease-in-out infinite .9s; }
.star4 { right: 210px; bottom: 96px; animation: twinkle 2s ease-in-out infinite 1.3s; }
@keyframes dice-tumble { 0%,100% { transform: translateY(0) rotate(-10deg); } 50% { transform: translateY(-8px) rotate(12deg); } }
@keyframes twinkle { 0%,100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
@media (max-width: 640px) { .dc7, .dc8, .db5, .dice1, .dice2, .card1, .card2, .crown1, .star3, .star4 { display: none; } }
@media (prefers-reduced-motion: reduce) { .deco-dice, .deco-card, .deco-crown, .deco-star { animation: none; } }

/* 老虎机背景装饰性能优化：给「持续动」的装饰去掉逐帧重绘的 drop-shadow（filter+transform
   动画无法 GPU 合成，会每帧在主线程重绘阴影，31 个元素一起动就卡）；改为纯 transform 合成层。
   面板收起时直接暂停所有装饰动画，不玩时零开销。 */
.slot-deco .deco-coin, .slot-deco .deco-bill, .slot-deco .deco-chip, .slot-deco .deco-bunny,
.slot-deco .deco-dice, .slot-deco .deco-card, .slot-deco .deco-crown {
  filter: none; will-change: transform;
}
.slot-card.collapsed .slot-deco *,
.slot-card.collapsed .neon-sign,
.slot-card.collapsed .neon-777 { animation-play-state: paused; }

/* ============ AJAX 轻提示 toast ============ */
.lz-toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); z-index: 900;
  background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 500; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0,0,0,.28); opacity: 0; transition: opacity .28s, transform .28s; pointer-events: none; max-width: 86vw; }
.lz-toast.show { opacity: 1; transform: translate(-50%, 0); }
.lz-toast.ok { background: var(--accent); color: #fff; }

/* @提及链接 */
.mention { color: var(--accent-ink); font-weight: 600; background: var(--accent-soft); padding: 0 4px; border-radius: 5px; }
.mention:hover { text-decoration: none; background: var(--accent); color: #fff; }

/* 代金券 UI */
.sacv-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.sacv-btn { padding: 7px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 13px; color: var(--ink); }
.sacv-btn:hover { border-color: var(--accent); }
.sacv-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.sacv-btn { display: inline-flex; align-items: center; gap: 7px; }
.sacv-own { font-size: 11px; font-family: var(--mono); opacity: .7; background: rgba(0,0,0,.06); border-radius: 999px; padding: 1px 7px; }
.sacv-btn.on .sacv-own { background: rgba(255,255,255,.25); opacity: .95; }
.sacv-qty { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.sacv-qty .qty-step { height: 32px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); display: flex; align-items: center; }
.sacv-total { font-size: 13px; font-weight: 700; color: var(--accent-ink); font-family: var(--mono); }

/* ============ 主页三栏 + 每日任务榜 ============ */
.cols3 { display: grid; grid-template-columns: 258px 1fr 300px; gap: 24px; align-items: start; }
@media (max-width: 1080px) { .cols3 { grid-template-columns: 240px 1fr; } .cols3 .side { grid-column: 1 / -1; } }
@media (max-width: 760px) { .cols3 { grid-template-columns: 1fr; } }
.task-board { padding: 14px 14px 10px; }
.tb-refresh { float: right; font-size: 10px; color: var(--ink-3); font-weight: 400; }
.task-row { display: flex; gap: 9px; padding: 11px 0; border-top: 1px solid var(--line); }
.task-row:first-of-type { border-top: none; }
.task-row.claimed { opacity: .5; }
.task-grade { flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.g-C { background: #8a97a5; } .g-B { background: #4a8f52; } .g-A { background: #c98f13; } .g-S { background: #c0392b; }
.task-main { flex: 1; min-width: 0; }
.task-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.task-desc { font-size: 11.5px; color: var(--ink-3); margin: 2px 0 6px; line-height: 1.4; }
.task-bar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.task-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.task-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; font-size: 11px; }
.task-prog { color: var(--ink-3); font-family: var(--mono); }
.task-reward { color: var(--gold); font-family: var(--mono); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.cc-mini { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; border-radius: 50%; background: #f8cb3c; color: #6b4a12; font-size: 8px; font-weight: 700; }
.task-act { flex-shrink: 0; display: flex; align-items: center; }
.task-got { font-size: 11px; color: var(--ink-3); }
.task-todo { font-size: 11px; color: var(--ink-3); }
.tb-hint { font-size: 10.5px; color: var(--ink-3); line-height: 1.5; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }

/* 老虎机投注倍率滚轮（左侧） */
.slot-mult { position: absolute; left: -16px; top: 50%; transform: translateY(-50%); width: 48px; height: 126px; z-index: 4; }
.sm-track { height: 126px; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15)); border-radius: 10px; }
.sm-track::-webkit-scrollbar { display: none; }
.sm-item { height: 42px; scroll-snap-align: center; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #e8c9a0; opacity: .35; cursor: pointer; transition: opacity .15s, color .15s, font-size .15s; }
.sm-item.on { opacity: 1; color: #ffd873; font-size: 18px; text-shadow: 0 0 8px rgba(255,180,60,.6); }
.sm-pad { height: 42px; }
.sm-frame { position: absolute; left: 0; right: 0; top: 42px; height: 42px; border: 1px solid #c9962f; border-radius: 8px; pointer-events: none; box-shadow: 0 0 8px rgba(201,150,47,.4); }
.slot-card[data-free="1"] .slot-mult { display: none; }
.slot-card[data-free="1"] #payTicketOpt { display: none; }

/* 冰冻手雷（TU 专属）：冰霜蓝 + 雪花飘飘 */
.tb-frost { width: 15px; height: 15px; display: block; }
.title-frost { background: linear-gradient(180deg, #8fc4dc, #4f8aa6); border-color: #3f7288; color: #f2fafd;
  text-shadow: 0 1px 1px rgba(20,50,66,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 3px rgba(79,138,166,.5); }
.title-frost .fn-snow { transform-box: fill-box; transform-origin: center; animation: fn-fall 2.6s linear infinite; }
.title-frost .fn-s2 { animation-delay: 1.3s; }
@keyframes fn-fall { 0% { transform: translate(0,-2px) rotate(0); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(-3px,11px) rotate(140deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .title-frost .fn-snow { animation: none; } }

/* 请勿模仿（老虎机 777 头衔）：暗红机身金边 + 拉杆拉动 */
.tb-slot { width: 15px; height: 15px; display: block; }
.title-slot { background: linear-gradient(180deg, #8a1f2c, #5a0f18); border-color: #c9962f; color: #ffe9c2;
  text-shadow: 0 1px 1px rgba(0,0,0,.5); box-shadow: inset 0 1px 0 rgba(255,215,120,.35), 0 1px 3px rgba(90,15,24,.55); }
.title-slot .sl-lever { transform-box: fill-box; transform-origin: bottom center; animation: sl-pull 2.6s ease-in-out infinite; }
@keyframes sl-pull { 0%,58%,100% { transform: translateY(0); } 70% { transform: translateY(5px); } 82% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .title-slot .sl-lever { animation: none; } }

/* 炉石大王（QQ糖专属）：金框 + 蓝石呼吸亮灯 */
.tb-hearth { width: 15px; height: 15px; display: block; }
.title-hearth { background: linear-gradient(180deg, #c99a3a, #8a5a1e); border-color: #6e4718; color: #fff6e2;
  text-shadow: 0 1px 1px rgba(0,0,0,.4); box-shadow: inset 0 1px 0 rgba(255,235,170,.4), 0 1px 3px rgba(110,71,24,.5); }
.title-hearth .hs-glow { transform-box: fill-box; transform-origin: center; animation: hs-breathe 2.2s ease-in-out infinite; }
@keyframes hs-breathe { 0%,100% { fill: #2f8fc2; } 50% { fill: #6cccf5; } }
@media (prefers-reduced-motion: reduce) { .title-hearth .hs-glow { animation: none; } }

/* 称号藏宝图入口 + 弹窗 */
.codex-open { width: 100%; margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); }
.codex-open:hover { border-color: var(--accent); }
.cx-ico { color: var(--gold); flex-shrink: 0; }
.cx-txt { flex: 1; display: flex; flex-direction: column; }
.cx-txt b { font-size: 13.5px; } .cx-txt small { font-size: 11px; color: var(--ink-3); }
.cx-arrow { color: var(--ink-3); font-size: 18px; }
.codex-modal { position: fixed; inset: 0; z-index: 200; background: rgba(20,20,16,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.codex-modal[hidden] { display: none !important; }  /* [hidden] 被 display:flex 覆盖的修正 */
.codex-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); width: 560px; max-width: 100%; max-height: 82vh; display: flex; flex-direction: column; }
.codex-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px 8px; }
.codex-head b { font-size: 17px; }
.codex-close { border: none; background: none; font-size: 24px; line-height: 1; color: var(--ink-3); cursor: pointer; }
.codex-sub { font-size: 12px; color: var(--ink-3); padding: 0 18px 12px; border-bottom: 1px solid var(--line); }
.codex-list { overflow-y: auto; padding: 6px 18px 16px; }
.codex-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.codex-row:last-child { border-bottom: none; }
.codex-badge { flex-shrink: 0; padding-top: 2px; }
.codex-info { flex: 1; min-width: 0; }
.codex-how { font-size: 12.5px; color: var(--ink); }
.codex-owners { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.codex-none { color: var(--gold); }

/* ============ 管理后台 · 重做排版 ============ */
.admin-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.admin-top h1 { font-size: 22px; color: var(--ink); }
.admin-role { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.admin-flash { margin-bottom: 16px; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.acard { padding: 16px 18px; }
.acard-h { font-size: 15px; font-weight: 700; color: var(--ink); padding-left: 10px; border-left: 3px solid var(--accent); margin-bottom: 10px; }
.acard-sub { font-size: 12px; color: var(--ink-3); margin: -2px 0 12px; line-height: 1.5; }
.acard-sub b { color: var(--ink); }
/* 统一表单 */
.af { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.af.col { flex-direction: column; align-items: stretch; }
.af input[type=text], .af input[type=number], .af input[type=date], .af select { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-family: var(--sans); font-size: 13.5px; color: var(--ink); }
.af.col > input, .af.col > .af { width: 100%; }
.af-field { display: flex; flex-direction: column; gap: 4px; }
.af-field > span { font-size: 11px; color: var(--ink-3); }
.af-field input { width: 100%; }
.a-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.a-line:last-of-type { border-bottom: none; }
.a-line b { color: var(--ink); } .a-line span { color: var(--ink-3); font-size: 12px; }
.a-line a { color: var(--accent-ink); }
.a-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.a-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); }
.a-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.a-chip .rr { font-size: 10px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 0 6px; }
.admin-textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); padding: 10px 12px; font-family: var(--sans); font-size: 14px; color: var(--ink); resize: vertical; }
/* 称号管理 */
.tm-grant { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px; margin-bottom: 14px; border-radius: 10px; background: var(--surface-2); }
.tm-list { display: flex; flex-direction: column; gap: 10px; }
.tm-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; }
.tm-badge { flex-shrink: 0; width: 96px; }
.tm-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-items: end; }
.tm-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tm-f > span { font-size: 11px; color: var(--ink-3); }
.tm-f input { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 13px; color: var(--ink); font-family: var(--sans); }
.tm-owners { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-3); }
.tm-none { color: var(--gold); }
@media (max-width: 640px) { .tm-row { flex-wrap: wrap; } .tm-badge { width: auto; } .tm-fields { grid-template-columns: 1fr; } }

/* ============ 今日大明星（主页藏宝图下方） ============ */
.star-board { padding: 14px 14px 12px; margin-top: 12px; }
.star-cat { padding: 9px 0; border-top: 1px solid var(--line); }
.star-cat:first-of-type { border-top: none; }
.star-h { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.star-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.s-gold .star-dot { background: #f0b429; } .s-heat .star-dot { background: #e6533c; }
.s-charity .star-dot { background: #4a8f52; } .s-evil .star-dot { background: #8a5cc0; }
.star-name { font-size: 13px; font-weight: 700; color: var(--ink); flex: 1; }
.star-reward { font-size: 11px; font-family: var(--mono); font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 3px; }
.star-empty { font-size: 12px; color: var(--ink-3); padding: 3px 0 3px 14px; }
.star-card { display: flex; align-items: center; gap: 10px; padding: 7px 9px; margin: 4px 0 0; border-radius: 10px; background: var(--surface-2); }
a.star-card:hover { background: var(--accent-soft); text-decoration: none; }
.star-ava { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.star-ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.star-info { flex: 1; min-width: 0; }
.star-title { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.star-sub { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.star-op { font-size: 11.5px; color: var(--ink-3); }
.star-metric { font-size: 11.5px; color: var(--accent-ink); font-weight: 600; margin-top: 2px; }
.s-charity .star-metric { color: #c0563f; } .s-evil .star-metric { color: var(--accent-ink); }
.s-gold .star-metric { color: var(--gold); }
