:root {
  --bg: #eef2f7; --card: #fff; --ink: #1d2533; --muted: #5d6779; --line: #d9dfe8;
  --brand: #1f6fd1; --brand-ink: #fff; --warn-bg: #fdecec; --warn: #a12a2a; --ok-bg: #e6f4ec; --ok: #1f6d43;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12161d; --card: #1b212b; --ink: #e5e9f0; --muted: #9aa4b4; --line: #2b3340;
    --brand: #6aa6ff; --brand-ink: #0d1420; --warn-bg: #3a1d1d; --warn: #ffb3b3; --ok-bg: #173226; --ok: #9fe0bb; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.6; }
a { color: var(--brand); }
.top { background: var(--brand); color: var(--brand-ink); padding: 10px max(16px, env(safe-area-inset-left)); display: flex; justify-content: space-between; align-items: center; }
.skin-pc .top { display: block; }
.top .wide { display: flex; justify-content: space-between; align-items: center; }
.top a { color: var(--brand-ink); text-decoration: none; }
.top nav a { margin-left: 12px; }
.logo { font-weight: 700; font-size: 17px; }
.main { padding: 16px max(16px, env(safe-area-inset-left)); display: grid; gap: 12px; }
.main > * { min-width: 0; }
.wide { max-width: 960px; margin: 0 auto; width: 100%; }
.card { background: var(--card); border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.card h1 { font-size: 20px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.alert { background: var(--warn-bg); color: var(--warn); padding: 10px 12px; border-radius: 8px; margin: 0; }
.notice { background: var(--ok-bg); color: var(--ok); padding: 10px 12px; border-radius: 8px; margin: 0 0 8px; }
.form { display: grid; gap: 6px; max-width: 420px; }
.form label, .form .label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.form input:not([type=radio]) { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); min-height: 44px; }
.radios { display: flex; gap: 20px; }
.radios label { color: var(--ink); display: inline-flex; gap: 6px; align-items: center; min-height: 44px; margin: 0; }
.btn { display: inline-block; font: inherit; font-weight: 600; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 8px; padding: 10px 18px; min-height: 44px; cursor: pointer; text-decoration: none; margin-top: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 16px; }
.inline { display: inline; }
.link { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; min-height: 24px; }
.foot .inline { margin-left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.skin-pc .top .wide { padding: 0 16px; }
.card h2 { font-size: 17px; margin: 0 0 8px; }
.card h1 small { font-size: 14px; font-weight: 400; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); margin-top: 0; }
.btn.danger { background: var(--warn); color: var(--card); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.row input { font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); min-height: 44px; flex: 1 1 180px; min-width: 0; }
.row .btn { margin-top: 0; }
.scroll { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.table td.mono { white-space: normal; word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; min-width: 220px; }
.table th { color: var(--muted); font-weight: 500; }
.table td a { display: inline-block; min-height: 24px; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--ink); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 12px; }
.checks label, .check { color: var(--ink) !important; display: inline-flex; gap: 6px; align-items: center; min-height: 36px; margin: 0 !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--warn); color: var(--card); font-size: 12px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.grid-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.grid-links a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.stats { display: flex; gap: 24px; margin: 8px 0 12px; }
.stats div { display: grid; }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd { margin: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sig-big { color: var(--muted); margin: 0 0 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions .btn, .row-actions .btn { margin-top: 0; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.small { font-size: 13px; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.more { margin-top: 12px; }
.more summary { cursor: pointer; color: var(--muted); min-height: 32px; }
.more form { display: block; margin: 6px 0; }
.link.danger { color: var(--warn); }
.ulist { list-style: none; margin: 0; padding: 0; }
.ulist li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ulist li:last-child { border-bottom: 0; }
.ulist .who { font-weight: 600; min-height: 24px; display: inline-flex; align-items: center; }
.ulist .sig { flex: 1 1 120px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: inline-flex; gap: 6px; margin-left: auto; }
.entries { list-style: none; margin: 12px 0 0; padding: 0; }
.entries li { padding: 10px 0; border-top: 1px solid var(--line); }
.entries .body { white-space: pre-wrap; word-break: break-word; margin: 2px 0; }
.form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); resize: vertical; }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; flex: none; padding: 8px 14px; min-height: 40px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.current { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }
.chat { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.chat li { display: grid; justify-items: start; max-width: 85%; }
.chat li.mine { justify-self: end; justify-items: end; }
.chat .bubble { background: var(--bg); border-radius: 12px; padding: 8px 12px; white-space: pre-wrap; word-break: break-word; }
.chat li.mine .bubble { background: var(--brand); color: var(--brand-ink); }
.radios.col { flex-direction: column; gap: 0; }
/* forum */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.chips a.current { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.blist, .tlist, .floors { list-style: none; margin: 0; padding: 0; }
.blist li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.blist .bn { font-weight: 600; min-height: 24px; }
.blist .desc { flex-basis: 100%; }
.tlist li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.tlist .tt { font-weight: 600; text-decoration: none; color: var(--ink); word-break: break-word; min-height: 24px; }
.tlist .meta a { color: inherit; }
.tag.top { background: var(--brand); color: var(--brand-ink); margin-right: 4px; }
.tlist .tag, .post h1 .tag { margin-right: 4px; vertical-align: 2px; }
.crumbs { margin: 0 0 4px; color: var(--muted); }
.pager { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 12px; }
.pager a { min-height: 36px; display: inline-flex; align-items: center; }
.wide-form { max-width: 720px; }
.post h1 { font-size: 20px; word-break: break-word; }
.post-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-top: 8px; }
.post-actions a, .post-actions .link { min-height: 32px; display: inline-flex; align-items: center; }
.floors li { padding: 12px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.quote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--line); background: var(--bg); border-radius: 0 6px 6px 0; }
.ubb { word-break: break-word; overflow-wrap: anywhere; line-height: 1.75; }
.ubb.deleted { opacity: .6; }
input.tiny { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); width: 9em; min-height: 32px; }
.mod summary { color: var(--brand); }
.ubb-table td { white-space: normal; }
.ubb-table code { white-space: pre-wrap; word-break: break-all; }
.palette { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.palette li { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.palette .sw { width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--line); flex: none; }
textarea.out { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); margin-top: 6px; }
/* UBB rendering */
.u-al-left { text-align: left; } .u-al-center { text-align: center; } .u-al-right { text-align: right; }
.u-bg { padding: 2px 6px; border-radius: 4px; }
.u-box { border: 2px solid; padding: 6px 10px; border-radius: 4px; }
.u-line { border-bottom: 2px solid; padding-bottom: 2px; }
.u-ring { border: 2px solid; border-radius: 999px; padding: 0 8px; }
.u-hidden { border: 1px dashed var(--line); color: var(--muted); padding: 8px; border-radius: 6px; text-align: center; }
.u-reveal { border: 1px dashed var(--ok); padding: 8px; border-radius: 6px; }
.u-at { font-weight: 600; }
.u-sqm { font-weight: 700; background-image: linear-gradient(90deg, #e53935, #fb8c00, #fdd835, #43a047, #1e88e5, #8e24aa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.u-sqm1 { background-image: linear-gradient(90deg, #ff4081, #7c4dff); }
.u-sqm2 { background-image: linear-gradient(90deg, #00b0ff, #00e676); }
.u-sqm3 { background-image: linear-gradient(90deg, #ff6d00, #ffd600); }
.u-sqm4 { background-image: linear-gradient(90deg, #d50000, #aa00ff, #2962ff); }
.u-sqm5 { background-image: linear-gradient(90deg, #1de9b6, #2979ff, #f50057); }
.u-xsign { font-weight: 700; letter-spacing: .05em; text-shadow: 0 0 6px var(--brand); }
.u-mq { display: block; overflow: hidden; white-space: nowrap; }
.u-mq > span { display: inline-block; }
.u-mq-left > span { animation: u-left 8s linear infinite; padding-left: 100%; }
.u-mq-right > span { animation: u-right 8s linear infinite; }
.u-mq-up, .u-mq-down { height: 1.8em; }
.u-mq-up > span { animation: u-up 4s linear infinite; }
.u-mq-down > span { animation: u-down 4s linear infinite; }
@keyframes u-left { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes u-right { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes u-up { from { transform: translateY(1.8em); } to { transform: translateY(-1.8em); } }
@keyframes u-down { from { transform: translateY(-1.8em); } to { transform: translateY(1.8em); } }
@media (prefers-reduced-motion: reduce) { .u-mq > span { animation: none; padding-left: 0; } }
.board-edit { border-bottom: 1px solid var(--line); padding: 10px 0; }
.board-edit summary { cursor: pointer; min-height: 32px; }
.board-edit h3 { margin: 12px 0 4px; }
.select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); min-height: 44px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.grid3 > div { display: grid; gap: 6px; }
.grid3 input { min-width: 0; }
/* feed & tasks */
.flist { list-style: none; margin: 0; padding: 0; }
.fpost { padding: 12px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.fpost:last-child { border-bottom: 0; }
.fhead { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.fbody { margin: 4px 0; }
.fbody a { color: var(--ink); }
.link.liked { color: var(--warn); font-weight: 600; }
.tasks { list-style: none; margin: 8px 0 0; padding: 0; }
.tasks li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tasks li:last-child { border-bottom: 0; }
.tasks .tinfo { flex: 1; min-width: 0; display: grid; gap: 4px; }
.tasks .reward { color: var(--ok); font-weight: 700; font-variant-numeric: tabular-nums; }
.tasks .tact { flex: none; }
.tasks li.claimed { opacity: .65; }
.tasks li.ready .tinfo b { color: var(--brand); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; max-width: 260px; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.tasks li.claimed .bar span, .tasks li.ready .bar span { background: var(--ok); }
/* game hall */
.hello-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.hello h1 { margin: 0; }
.num { font-variant-numeric: tabular-nums; color: var(--ink); }
.taskpill { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: baseline; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 44px; }
.taskpill .tp-label { font-size: 13px; color: var(--muted); }
.taskpill .tp-num { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; grid-row: span 2; align-self: center; order: -1; }
.taskpill .tp-sub { font-size: 12px; color: var(--muted); }
.taskpill.ready { border-color: var(--ok); background: var(--ok-bg); }
.taskpill.ready .tp-sub { color: var(--ok); font-weight: 600; }
.intro h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: .02em; }
.intro .lead { margin: 0 0 12px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta .btn { margin-top: 0; }
.glyph { --s: 48px; width: var(--s); height: var(--s); border-radius: 12px; background: var(--c, var(--brand)); color: #fff; display: inline-grid; place-items: center; font-size: calc(var(--s) * .5); font-weight: 700; flex: none; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.glyph.sm { --s: 32px; border-radius: 8px; }
.glyph.lg { --s: 72px; border-radius: 18px; }
.ggrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gtile { position: relative; }
.gtile > a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 10px; row-gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); height: 100%; min-height: 96px; }
.gtile > a:hover { border-color: var(--c); }
.gtile .glyph { grid-row: span 3; }
.gtile .gname { font-weight: 700; padding-right: 26px; }
.gtile .gline { font-size: 12px; color: var(--muted); line-height: 1.4; }
.gtile .gmeta { font-size: 12px; color: var(--ok); font-weight: 600; }
.gtile.soon .glyph { filter: saturate(.35); opacity: .8; }
.gtile.soon .gmeta { color: var(--muted); font-weight: 400; }
.pin { position: absolute; top: 4px; right: 4px; }
.pin button { background: none; border: 0; font-size: 18px; line-height: 1; color: var(--c, var(--brand)); cursor: pointer; min-width: 36px; min-height: 36px; }
.gtile .pin button { color: #F9A825; }
.gstrip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gstrip a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); min-height: 40px; }
.fplay { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fplay li { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; min-height: 32px; }
.gchip { padding: 1px 10px; border-radius: 999px; background: var(--c); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.cols > * { min-width: 0; }
.card h2 a { color: inherit; text-decoration: none; }
.gdetail { display: flex; gap: 16px; align-items: center; }
.gdetail h1 { margin: 0; }
.gdetail p { margin: 4px 0 0; }
.gtile .gname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
  .ggrid { gap: 8px; }
  .gtile > a { padding: 10px; column-gap: 8px; }
  .gtile .glyph { --s: 40px; border-radius: 10px; }
  .gtile .gname { padding-right: 18px; }
}
/* farm */
.farmhead h1 { margin: 0; }
.fh-row { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: baseline; }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; margin-top: 10px; }
.meters > div { display: grid; gap: 4px; }
.meters .bar { max-width: none; }
.bar.gc span { background: var(--ok); }
.bar.thin { height: 4px; margin: 4px 0 2px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.sec-head h2 { margin: 0; }
.plots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.plot { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 4px; align-content: start; background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, #8D6E63 12%, transparent)); min-height: 140px; }
.plot.ripe { border-color: var(--ok); background: var(--ok-bg); }
.plot.empty { border-style: dashed; background: none; }
.pl-top { display: flex; gap: 6px; align-items: center; min-height: 20px; }
.pl-body { display: flex; gap: 8px; align-items: center; }
.bug { font-size: 12px; padding: 0 6px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
.crop-glyph { --s: 36px; width: var(--s); height: var(--s); border-radius: 50%; background: #43A047; color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: calc(var(--s) * .5); flex: none; }
.crop-glyph.sm { --s: 28px; }
.crop-glyph.none { background: var(--line); color: var(--muted); }
.plot .btn { margin-top: 2px; width: 100%; }
.clears { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.seeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.seed { display: flex; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-height: 52px; }
.seed:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.seed.locked { opacity: .55; cursor: not-allowed; }
.seed input { margin: 0; }
.star { color: #F9A825; }
.orders, .barn { list-style: none; margin: 0; padding: 0; }
.orders li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.orders li:last-child, .barn li:last-child { border-bottom: 0; }
.orders .o-info { flex: 1 1 160px; min-width: 0; }
.orders .o-act { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.orders li.done { opacity: .6; }
.barn li { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sellf { margin: 0 0 0 auto; }
.sellf input.tiny { width: 4.5em; flex: 0 0 4.5em; }
.barn .sellf { flex-wrap: nowrap; margin-bottom: 0; }
.ripe-tag { color: var(--ok); }
/* car */
.cars { list-style: none; margin: 0; padding: 0; }
.cars li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cars li:last-child { border-bottom: 0; }
.cars .c-info { flex: 1 1 160px; min-width: 0; }
.lot { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lot li { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 6px; align-content: start; min-height: 110px; }
.lot li.taken { border-style: solid; }
.lot li .btn { margin-top: 0; width: 100%; }
/* garden */
.bar.rep span { background: #8E24AA; }
.crossf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crossf .select { flex: 1 1 120px; min-width: 0; }
.crossf .btn { margin-top: 0; }
.tag.r0 { background: var(--line); color: var(--ink); }
.tag.r1 { background: color-mix(in srgb, #1565C0 16%, var(--card)); color: color-mix(in srgb, #1565C0 75%, var(--ink)); }
.tag.r2 { background: color-mix(in srgb, #8E24AA 16%, var(--card)); color: color-mix(in srgb, #8E24AA 75%, var(--ink)); }
.tag.r3 { background: color-mix(in srgb, #E65100 16%, var(--card)); color: color-mix(in srgb, #E65100 75%, var(--ink)); }
.tag.r4 { background: color-mix(in srgb, #C77700 16%, var(--card)); color: color-mix(in srgb, #C77700 75%, var(--ink)); font-weight: 700; }
.atlas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.atlas li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.atlas li > div { min-width: 0; }
.atlas li.dark { opacity: .7; }
/* arena */
.schools { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.school-card { display: grid; justify-items: center; gap: 6px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.school-card .btn { margin-top: 4px; }
.bar.hp span { background: var(--warn); }
.opps { list-style: none; margin: 0; padding: 0; }
.opps li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.opps li:last-child { border-bottom: 0; }
.opps .o-info { flex: 1 1 160px; min-width: 0; }
.fight-result { font-size: 22px; font-weight: 700; margin: 4px 0; }
.fight-result.win { color: var(--ok); }
.fight-result.lose { color: var(--warn); }
.fightlog td:nth-child(n+4) { font-variant-numeric: tabular-nums; text-align: right; }
/* pet */
.pet-hero { display: flex; gap: 14px; align-items: center; }
.pet-hero h1 { margin: 0; }
.pet-hero p { margin: 4px 0 0; }
.bar.mood span { background: #D81B60; }
.pet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pet-actions .btn { margin-top: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.skills { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.skills li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; opacity: .65; }
.skills li.learned { opacity: 1; border-color: var(--ok); background: var(--ok-bg); }
/* wheel & checkin */
.wheel { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wheel li { display: grid; justify-items: center; gap: 2px; padding: 12px 4px; border-radius: 10px; background: var(--bg); border: 2px solid transparent; }
.wheel li b { font-size: 20px; font-variant-numeric: tabular-nums; }
.wheel li.hit { border-color: var(--ok); background: var(--ok-bg); }
.streak { font-size: 16px; margin: 4px 0 10px; }
.milestones { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.milestones li { display: grid; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; }
.milestones li.done { border-color: var(--ok); background: var(--ok-bg); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { text-align: center; font-size: 12px; color: var(--muted); }
.cal-d { min-height: 52px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: grid; align-content: space-between; justify-items: center; font-size: 13px; }
.cal-d .num { font-variant-numeric: tabular-nums; color: var(--muted); }
.cal-d.signed { background: var(--ok-bg); border-color: var(--ok); }
.cal-d.signed .mark { color: var(--ok); font-weight: 700; }
.cal-d.makeup .mark { color: var(--muted); }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-d.future { opacity: .45; }
.cal-d .link { font-size: 12px; }
/* ztyx */
.rules { margin: 6px 0; }
.lineup { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.lane { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 0; display: grid; gap: 6px; }
.lane legend { font-weight: 700; padding: 0 4px; }
.opts { display: flex; flex-wrap: wrap; gap: 4px; }
.opt { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; min-height: 36px; cursor: pointer; color: var(--ink) !important; margin: 0 !important; font-size: 14px !important; }
.opt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--card)); }
.opt input { margin: 0; }
.lane-win { font-weight: 700; color: var(--ok); }

/* 全服跑马灯：功能机时代的 <marquee> 改成 CSS 滚动，系统要求减少动态时改为静态换行 */
.marquee { display: flex; align-items: center; gap: 8px; padding: 6px max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--warn) 12%, var(--card)); border-bottom: 1px solid var(--line); font-size: 13px; }
.mq-tag { flex: none; padding: 0 6px; border-radius: 4px; background: var(--warn); color: var(--card); font-size: 12px; line-height: 18px; }
.mq-view { flex: 1; min-width: 0; overflow: hidden; }
.mq-track { margin: 0; white-space: nowrap; display: inline-flex; animation: mq 30s linear infinite; }
.mq-run { padding-right: 4em; }
.mq-view:hover .mq-track, .mq-view:focus-within .mq-track { animation-play-state: paused; }
.mq-item + .mq-item::before { content: "　◆　"; color: var(--muted); }
.mq-item b { margin-right: 2px; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; white-space: normal; } .mq-copy { display: none; } }
.notices li.unread .nbody { font-weight: 600; }
.notices li.unread::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: var(--warn); margin-right: 6px; vertical-align: middle; }
.skin-pc .marquee { padding-inline: 0; }
.mq-wide { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0 16px; }

/* 排行榜 */
.rk-tabs { display: grid; gap: 8px; }
.rk-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rk-gname { flex: none; width: 3em; color: var(--muted); font-size: 12px; }
.rk-group a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 14px; min-height: 24px; }
.rk-group a.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.rk-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rk-head h2 { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg a { padding: 4px 12px; text-decoration: none; color: var(--ink); font-size: 14px; }
.seg a.on { background: var(--brand); color: var(--brand-ink); }
.rk-list { list-style: none; margin: 8px 0 0; padding: 0; }
.rk-list li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto 2.6em; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.rk-list li:last-child { border-bottom: 0; }
.rk-no { text-align: center; color: var(--muted); font-weight: 600; }
.rk-top .rk-no { display: inline-block; width: 1.8em; height: 1.8em; line-height: 1.8em; border-radius: 50%; color: #fff; justify-self: center; }
.rk-1 .rk-no { background: #9A7400; }
.rk-2 .rk-no { background: #66707E; }
.rk-3 .rk-no { background: #94532B; }
.rk-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-val { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.rk-me { background: color-mix(in srgb, var(--brand) 10%, transparent); border-radius: 6px; }
.rk-mine { margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 10%, var(--card)); }

/* 世界频道与红包 */
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-bar { margin: 0 0 4px; }
.chan { list-style: none; margin: 0; padding: 0; }
.cl { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; line-height: 1.6; }
.cl-time, .cl-mod { white-space: nowrap; }
.cl:last-child { border-bottom: 0; }
.cl-me .who { font-weight: 700; }
.cl-time { margin-left: 4px; }
.cl-mod { margin-left: 6px; }
.hb-card { display: flex; align-items: center; gap: 10px; margin-top: 4px; max-width: 280px; padding: 8px 12px; border-radius: 10px; background: var(--hb); color: var(--hb-ink); text-decoration: none; }
.hb-card.hb-done { background: color-mix(in srgb, var(--hb) 55%, var(--card)); }
.hb-icon { flex: none; padding: 2px 6px; border: 1px solid currentColor; border-radius: 4px; font-size: 12px; }
.hb-text { display: flex; flex-direction: column; min-width: 0; }
.hb-detail { text-align: center; background: var(--hb); color: var(--hb-ink); }
.hb-detail a, .hb-detail .muted { color: var(--hb-ink); opacity: .9; }
.hb-note { margin: 8px 0 16px; text-wrap: balance; }
.hb-got { font-size: 18px; } .hb-got b { font-size: 40px; display: block; color: var(--hb-gold); }
.hb-open { width: 84px; height: 84px; border-radius: 50%; font-size: 30px; background: var(--hb-gold); color: var(--hb); border: 0; }
.hb-best { background: var(--hb); color: var(--hb-ink); }
:root { --hb: #C8382E; --hb-ink: #FFF5E8; --hb-gold: #F3C14B; }
@media (prefers-color-scheme: dark) { :root { --hb: #9E2B23; --hb-ink: #FFF1DE; --hb-gold: #F3C14B; } }
.rk-head .links { align-items: center; }
.rk-head h1 { margin: 0; }

/* 论坛投票与附件 */
.files { display: grid; gap: 8px; margin: 12px 0; }
.fimg { margin: 0; min-width: 0; max-width: 100%; }
.fimg img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.fimg figcaption { margin-top: 2px; }
.fatt { margin: 0; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.poll { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.poll-head { margin: 0 0 8px; }
.poll-res { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.poll-res li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
.pr-label { min-width: 0; overflow-wrap: anywhere; }
.pr-bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; order: 3; }
.pr-bar span { display: block; height: 100%; background: var(--brand); }
.poll-res li.mine .pr-bar span { background: var(--ok); }
.pr-num { color: var(--muted); font-size: 13px; }
.poll-form { display: grid; gap: 6px; justify-items: start; }

/* 商城与装扮 */
.nb { display: inline-block; margin-left: 3px; padding: 0 4px; border-radius: 4px; font-size: 11px; line-height: 16px; font-weight: 700; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.nb-v { background: #B7791F; color: #fff; }
.nb-l { background: #2B6CB0; color: #fff; }
.nb-id { background: transparent; color: #C53030; border: 1px solid currentColor; }
.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.shop-head h1 { margin: 0; }
.dia { margin: 0; display: grid; text-align: right; }
.dia b { font-size: 28px; color: var(--brand); }
.shop-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.shop-tiles a { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); min-height: 72px; }
.shop-tiles a:hover { border-color: var(--brand); }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plist li > div { display: grid; gap: 2px; min-width: 0; flex: 1 1 180px; }
.plist .buy { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plist .buy input:not([type=checkbox]) { max-width: 10em; }
.noble-card { margin: 10px 0; padding: 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, #B7791F 45%, var(--line)); display: grid; gap: 6px; }
.noble-card.lz { border-color: color-mix(in srgb, #2B6CB0 45%, var(--line)); }
.noble-card p { margin: 0; }
.noble-card .pr-bar { display: block; height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.noble-card .pr-bar span { display: block; height: 100%; background: #B7791F; }
.noble-card.lz .pr-bar span { background: #2B6CB0; }
.table-wrap { overflow-x: auto; }
table.lv { border-collapse: collapse; width: 100%; font-size: 14px; }
table.lv th, table.lv td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.vlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.vlist li.muted { grid-column: 1 / -1; }
.vlist li { display: grid; gap: 6px; justify-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.vrules { margin: 8px 0; padding-left: 18px; line-height: 1.9; }
.vnum { font-size: 22px; font-weight: 700; color: #C53030; letter-spacing: .05em; }
.palette-pick { display: flex; flex-wrap: wrap; gap: 4px; border: 0; padding: 0; margin: 0; }
.palette-pick legend { margin-bottom: 6px; }
.palette-pick label { position: relative; }
.palette-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.palette-pick span { display: block; width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--line); }
.palette-pick input:checked + span { outline: 3px solid var(--ink); outline-offset: 1px; }
.palette-pick input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 1px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; }
.num.pos { color: var(--ok); } .num.neg { color: var(--warn); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }

/* 家族 */
.emblem { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 16%, var(--card)); color: var(--brand); font-weight: 700; }
.emblem.big { width: 56px; height: 56px; font-size: 28px; border-radius: 12px; }
.glist { list-style: none; margin: 0; padding: 0; }
.glist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.glist .rk-no { width: 2em; }
.gname { display: grid; gap: 2px; min-width: 0; text-decoration: none; color: var(--ink); }
.gh-top { display: flex; gap: 12px; align-items: center; }
.gh-top h1 { margin: 0; }
.gbar { display: block; height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; margin: 10px 0 4px; }
.gbar span { display: block; height: 100%; background: var(--brand); }
.gnotice { padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 10%, var(--card)); }
.gactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.top .logo { white-space: nowrap; flex: none; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; min-width: 0; }
.top nav a { margin-left: 0; white-space: nowrap; }
.skin-h5 .top { gap: 10px; }

/* 守护树 */
:root { --t-leaf: #3F9D4F; --t-trunk: #7A5230; --t-fruit: #E0A82E; --t-flower: #F2A7C3; --t-ground: #D7CFC0; }
@media (prefers-color-scheme: dark) { :root { --t-leaf: #4FB463; --t-trunk: #A07048; --t-fruit: #F3C14B; --t-flower: #F5B8D0; --t-ground: #3A3630; } }
.tree-art { width: 120px; height: 120px; flex: none; }
.t-leaf { fill: var(--t-leaf); }
.t-trunk { stroke: var(--t-trunk); stroke-linecap: round; fill: none; }
.t-fruit { fill: var(--t-fruit); stroke: color-mix(in srgb, var(--t-fruit) 60%, #000); stroke-width: 1; }
.t-flower { fill: var(--t-flower); }
.t-ground { fill: var(--t-ground); }
.tree-wrap { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tree-info { flex: 1 1 180px; min-width: 0; }
.tree-stage { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.tree-mini { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tree-mini .tree-art { width: 56px; height: 56px; }
.tree-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.tree-link > span { display: grid; gap: 2px; }
.btn.hb-like { background: var(--t-fruit); color: #3a2a00; }
.chance { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.chance.hi { color: var(--ok); font-weight: 600; }
.chance.lo { color: var(--warn); }

/* 江湖 */
.jh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.jh-top h1 { margin: 0; }
.jh-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.jh-nav a { white-space: nowrap; }
.jh-bars { display: grid; gap: 2px; margin: 8px 0; }
.jh-bars p { margin: 4px 0 0; }
.hpbar { display: block; height: 10px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.hpbar span { display: block; height: 100%; }
.hpbar.me span { background: var(--ok); }
.hpbar.mon span { background: var(--warn); }
.jh-boxes { display: flex; gap: 12px; justify-content: center; margin: 12px 0; }
.jh-box { width: 72px; height: 72px; font-size: 24px; border-radius: 12px; background: #9A6A1E; color: #FFF1D6; border: 0; }
.jh-log { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 2px; }
.jh-log li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 14px; }
.jh-log li:nth-child(even) { background: var(--bg); }
.jh-log .jh-crit span:first-child, .jh-log .jh-skill span:first-child { color: var(--warn); font-weight: 600; }
.jh-log .num { white-space: nowrap; }
.jh-shophead { border-bottom: 0; padding-top: 12px; }
.jh-float { padding: 12px; border-radius: 8px; background: var(--bg); }
.jh-float.f4 { color: var(--warn); font-weight: 600; }
.jh-num { width: 6.5em; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); min-height: 36px; }
.zh-ev { margin: 4px 0; padding-left: 8px; border-left: 3px solid var(--line); }
.zh-ev.storm, .zh-ev.pirates { border-color: var(--warn); }
.zh-ev.flotsam { border-color: var(--ok); }
.zh-far summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; color: var(--muted); }
.zh-farport { display: inline-block; margin: 2px 10px 2px 0; }

/* faces (表情) */
img.em { vertical-align: -4px; max-width: 100%; max-height: 80px; height: auto; }
.faces { margin: 4px 0; flex-basis: 100%; }
.faces summary { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--brand); font-size: 14px; }
.face-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; max-height: 220px; overflow-y: auto; padding: 4px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.face { display: grid; place-items: center; min-height: 40px; padding: 4px; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.face:hover, .face:focus-visible { background: var(--line); }
.face img { width: 26px; height: 26px; object-fit: contain; }
.face-table { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px 10px; }
.face-table li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; }
.face-table img { width: 32px; height: 32px; object-fit: contain; }
.face-table code { font-size: 13px; }
.chat-form { flex-wrap: wrap; }
.online { margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: 12px; line-height: 18px; font-weight: normal; vertical-align: 2px; background: var(--ok-bg); color: var(--ok); }
.codes { width: 100%; font-family: ui-monospace, monospace; font-size: 14px; }
.review { border-bottom: 1px solid var(--line); padding: 8px 0; } .review .preview { max-height: 240px; overflow: auto; border: 1px dashed var(--line); padding: 6px; margin: 6px 0; }
.xiu-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.xiu-grid li { display: grid; justify-items: center; gap: 2px; text-align: center; padding: 6px 4px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.xiu-grid img, .xiu-worn img { image-rendering: pixelated; }
.xiu-worn { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.xiu-worn img { border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* farm: original pixel art on tilled soil (web/static/farm, tools/farmart/gen.py) */
.fland { position: relative; display: inline-block; width: 72px; height: 72px; flex: none; border-radius: 6px; background: url(/static/farm/soil/0.svg) 0 0 / 24px 24px; image-rendering: pixelated; }
.fland.soil1 { background-image: url(/static/farm/soil/1.svg); box-shadow: inset 0 0 0 2px #3f9b3a; }
.fland.ripe { box-shadow: inset 0 0 0 2px #f6d02c; }
.fland .fcrop { position: absolute; inset: 6px; width: 60px; height: 60px; image-rendering: pixelated; }
.fland .fbadges { position: absolute; top: 0; right: 0; display: flex; gap: 1px; }
.fland .fbadges img { width: 20px; height: 20px; image-rendering: pixelated; background: rgba(255, 255, 255, .8); border-radius: 50%; }
.crop-pic { width: 28px; height: 28px; image-rendering: pixelated; flex: none; }
.guide-box ol { margin: 6px 0; padding-left: 20px; }
.guide-box li.done { color: var(--muted); text-decoration: line-through; }
.dex { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.dex li { display: grid; justify-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; text-align: center; }
.dex .dex-pic { width: 48px; height: 48px; image-rendering: pixelated; }
.dex li.unlit .dex-pic { filter: grayscale(1) brightness(.3); opacity: .5; }
.dqs { display: flex; gap: 2px; }
.dq { font-size: 11px; padding: 0 4px; border-radius: 4px; border: 1px solid var(--line); }
.dq.off { color: var(--muted); opacity: .5; }
.dq.dq0 { background: #eef3ea; }
.dq.dq1 { background: #e3ecf7; color: #1f5fa8; border-color: #9cbde6; }
.dq.dq2 { background: #fff2c2; color: #8a6200; border-color: #e6c35a; font-weight: 700; }
.crop-pic.sm { width: 20px; height: 20px; vertical-align: middle; }
.pen { position: relative; display: inline-block; width: 64px; height: 64px; border-radius: 6px; background: #e9dcc0; flex: none; }
.pen .pen-pic { position: absolute; inset: 4px; width: 56px; height: 56px; image-rendering: pixelated; }
.pen .pen-pic.young { inset: 16px; width: 32px; height: 32px; }
.pen .pen-bug { position: absolute; top: 0; right: 0; width: 24px; height: 24px; image-rendering: pixelated; }
.jobs { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.jobs li { border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: grid; gap: 2px; justify-items: start; }
.jobs li.done { border-color: var(--ok); background: var(--ok-bg); }
.jobs li.free { border-style: dashed; }
.recipes, .animals { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.recipes li, .animals li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; border-top: 1px dashed var(--line); padding-top: 6px; }
.machine.locked { opacity: .6; }
.farm-nav a { white-space: nowrap; }
.decor-row { display: flex; flex-wrap: wrap; gap: 2px; align-items: flex-end; min-height: 8px; }
.decor-row img { width: 40px; height: 40px; image-rendering: pixelated; }
.decor-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.decor-list li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; display: grid; justify-items: center; gap: 3px; text-align: center; }
.decor-list li.worn { border-color: var(--ok); background: var(--ok-bg); }
.decor-list li.locked img { filter: grayscale(1); opacity: .5; }
.decor-list img { width: 48px; height: 48px; image-rendering: pixelated; }
.rank-list li.me { background: var(--ok-bg); }
.ratbox img, .scorebox img { vertical-align: middle; }
.dex.mini { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.dex.mini li { padding: 4px 2px; gap: 0; border-radius: 6px; }
.dex.mini .dex-pic { width: 36px; height: 36px; }
.pet-big { width: 96px; height: 96px; image-rendering: pixelated; flex: none; }
.pet-mid { width: 48px; height: 48px; image-rendering: pixelated; flex: none; vertical-align: middle; }
.statrow { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .9em; }
.battle-log { margin: 6px 0 0; padding-left: 1.4em; font-size: .85em; color: var(--muted); }
.car-pic { width: 60px; height: 36px; image-rendering: pixelated; flex: none; }
.car-big { width: 100px; height: 60px; image-rendering: pixelated; }
img.pix { image-rendering: pixelated; vertical-align: middle; }
.jh-bosshead { display: flex; gap: 12px; align-items: center; }
.jh-bosshead > div { flex: 1; min-width: 0; }
.jh-bosshead h2 { margin: 0 0 4px; }
.jh-stars { color: var(--warn); letter-spacing: 2px; white-space: nowrap; }
.jh-sockets form.buy { display: flex; gap: 4px; flex-wrap: wrap; }
.cal-d img.stamp { display: block; margin: 2px auto 0; }
.cal-d img.stamp.mk { opacity: .6; }
.badge-grid { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.badge-grid li { text-align: center; display: grid; justify-items: center; gap: 2px; }
.badge-grid li.empty img { filter: grayscale(1); opacity: .35; }
.wheel li img.pix { display: block; margin: 0 auto; }
.wheel li b.small { font-size: 12px; text-align: center; line-height: 1.3; }
.db-room { display: flex; gap: 12px; align-items: flex-start; }
.db-room > div { flex: 1; min-width: 0; }
.db-room h2 { margin: 0 0 4px; }
.db-exits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hpbar.mp > span { background: #5aa9f0; }
.db-grid { display: grid; gap: 4px; margin-top: 8px; }
.db-grid .db-cell { font-size: 12px; text-align: center; padding: 6px 2px; border-radius: 6px; background: var(--bg); color: var(--muted); overflow-wrap: anywhere; }
.db-grid .db-cell.seen { color: var(--ink); }
.db-grid .db-cell.here { background: var(--ok-bg); color: var(--ink); font-weight: 600; outline: 2px solid var(--ok); }
.db-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 8px 0; }
.db-bars p { margin: 0 0 2px; }
.db-bars .pr-bar { display: block; }
.album-grid { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.album-grid li { display: grid; gap: 2px; justify-items: start; min-width: 0; }
.album-grid a { display: grid; gap: 4px; width: 100%; color: inherit; }
.album-grid img, .album-grid .album-empty { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--bg); display: grid; place-items: center; color: var(--muted); }
.album-grid.photos img { height: auto; }

/* 成就勋章：一个字在铜/银/金的圆里 */
.medal { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 3px; border-radius: 50%; border: 2px solid;
  font-size: 10px; line-height: 1; font-weight: 700; color: #fff; vertical-align: -4px; box-sizing: border-box; }
.medal.t1 { background: #B87333; border-color: #7A4A1E; }
.medal.t2 { background: #9AA0A6; border-color: #5F6368; }
.medal.t3 { background: #D4A017; border-color: #8C6A00; }
.medal.big { width: 44px; height: 44px; margin: 0; font-size: 20px; border-width: 3px; vertical-align: middle; }
.medal.off { background: #E5E7EB; border-color: #C7CBD1; color: #9CA3AF; }
.achs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.achs li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.achs .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.achs .bar i { display: block; height: 100%; background: var(--brand); }
.wall { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; text-align: center; font-size: 12px; }
.wall li { display: grid; justify-items: center; gap: 4px; }
.record { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }

/* 赛季：称号标记、聊天气泡、手册 */
.nb-title { background: #FFF4D6; color: #8C5A00; border: 1px solid #E0B44A; font-weight: 600; }
.cl.bubble { padding: 6px 10px; margin: 4px 0; border-radius: 12px; border: 2px solid var(--bub); background: color-mix(in srgb, var(--bub) 12%, transparent); }
.cl.bubble.stuohuang { --bub: #B35C1E; }
.cl.bubble.syuanhang { --bub: #1C6FB8; }
.cl.bubble.sxiaying { --bub: #2F7D4A; }
.cl.bubble.sxinghe { --bub: #6B3FB5; }
.sbar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; margin: 6px 0; }
.sbar i { display: block; height: 100%; background: var(--brand); }
.sshop { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sshop li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sshop .pic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: var(--line); font-weight: 700; }

/* 头像与头像框 */
.av { display: inline-block; vertical-align: middle; line-height: 0; border-radius: 6px; overflow: hidden; background: var(--line); }
.av img { display: block; object-fit: cover; image-rendering: pixelated; }
.av-s { border-radius: 4px; margin-right: 4px; vertical-align: -5px; }
.av-l { border-radius: 10px; }
.af-bronze { box-shadow: 0 0 0 2px #B87333; }
.af-silver { box-shadow: 0 0 0 2px #9AA0A6, 0 0 0 4px #E5E7EB; }
.af-gold { box-shadow: 0 0 0 2px #D4A017, 0 0 0 4px #FFF1B8; }
.af-s-tuohuang { box-shadow: 0 0 0 3px #B35C1E; }
.af-s-yuanhang { box-shadow: 0 0 0 3px #1C6FB8; }
.af-s-xiaying { box-shadow: 0 0 0 3px #2F7D4A; }
.af-s-xinghe { box-shadow: 0 0 0 3px #6B3FB5; }
.av-l.af-bronze, .av-l.af-silver, .av-l.af-gold, .av-l[class*="af-s-"] { margin: 4px; }
.av-pick { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.av-btn { padding: 2px; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; line-height: 0; }
.av-btn.on { border-color: var(--brand); }
.av-btn img { image-rendering: pixelated; }
.av-head { margin: 0 0 8px; }
.giftpick { border: 0; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.giftpick legend { padding: 0; margin-bottom: 6px; }
.giftpick label { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 6px; text-align: center; min-width: 0; cursor: pointer; }
.giftpick label:has(input:checked) { border-color: var(--brand); background: var(--ok-bg); }
.giftpick input { margin: 0; }
.rk-mvc { text-align: right; }
.rk-mv { font-size: 12px; font-weight: 600; white-space: nowrap; margin-left: 4px; }
.rk-up { color: #c0392b; }
.rk-down { color: #1e8449; }
.rk-new { color: var(--brand); }
.ubb-img { display: inline-block; max-width: 100%; vertical-align: top; }
.ubb-img img { display: block; max-width: 100%; height: auto; border-radius: 6px; margin: 4px 0; }
.rpics { margin-top: 6px; }
.rpics .fimg img { max-height: 320px; width: auto; }
.jlist { list-style: none; margin: 0; padding: 0; }
.jlist > li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.jlist > li:last-child { border-bottom: 0; }
.jbody { display: grid; gap: 2px; min-width: 0; flex: 1; }
.jact { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.jicon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #6D4C41; color: #fff; font-weight: 700; }
.mini-hub { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.mini-hub a { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.mini-hub a > span:last-child { display: grid; gap: 2px; min-width: 0; }
.mini-vars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mini-vars li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.mini-best { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
