:root {
  color-scheme: light;
  --paper:#f8f5f0; --card:#fffdfa; --ink:#27232d; --muted:#68616c;
  --border:#e6ddd9; --accent:#6c4267; --soft:#f0e6ef; --gold:#8b622a;
}
:root[data-theme=dark] {
  color-scheme:dark;
  --paper:#181820; --card:#23212c; --ink:#f4edf4; --muted:#bbb0bd;
  --border:#403744; --accent:#dfb8d9; --soft:#362a3b; --gold:#efc381;
}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; background:var(--paper); color:var(--ink); font:14px/1.6 "PingFang SC","Microsoft YaHei",system-ui,sans-serif; }
a { color:inherit; text-decoration:none; }
button,input { font:inherit; color:inherit; }
button,a { touch-action:manipulation; }
button { cursor:pointer; }
button:disabled { opacity:.45; cursor:default; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
h1,h2,h3,p { margin:0; }
.shell { width:min(1000px,calc(100% - 64px)); margin-inline:auto; }
.skip { position:fixed; left:10px; top:-100px; z-index:2; background:var(--card); padding:10px; }
.skip:focus { top:10px; }
.header { display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:62px; border-bottom:1px solid var(--border); }
.brand { font-size:17px; font-weight:750; white-space:nowrap; }
.header nav { display:flex; align-items:center; gap:16px; color:var(--muted); font-size:12px; white-space:nowrap; }
.header nav a { padding-block:10px; }
.theme-switch,.pagination button { background:var(--card); border:1px solid var(--border); border-radius:7px; padding:7px 11px; min-height:38px; }
.intro { padding:24px 0 14px; }
.preview-note { color:var(--muted); border:1px solid var(--border); border-radius:5px; padding:0 5px; font-size:10px; }
.title-row { display:flex; gap:8px 13px; align-items:center; flex-wrap:wrap; }
h1 { font:650 clamp(26px,4vw,39px)/1.3 "Songti SC","Noto Serif CJK SC",SimSun,serif; margin:4px 0 10px; }
.summary-line { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.phase { font-size:11px; color:var(--accent); background:var(--soft); padding:3px 8px; border-radius:6px; white-space:nowrap; }
.summary { color:var(--muted); font-size:12px; }
.notice { display:flex; justify-content:space-between; align-items:center; gap:9px 16px; padding:3px 0; border-bottom:1px solid var(--border); color:var(--muted); font-size:12px; }
.text-action { min-height:37px; color:var(--accent); background:transparent; border:0; padding:4px 0; font-size:12px; }
.text-action:hover,.header a:hover,.foot a:hover { text-decoration:underline; text-underline-offset:3px; }
.notice button { white-space:nowrap; }
.board { border:1px solid var(--border); background:var(--card); border-radius:15px; overflow:hidden; }
.board.with-champion { display:grid; grid-template-columns:36% 1fr; }
.featured { display:grid; position:relative; align-items:end; isolation:isolate; color:#fff8ef; min-height:240px; background:#35243d; }
.feature-text { position:relative; padding:16px 18px 12px; min-width:0; }
.feature-rank { color:#f4d195; font-size:12px; font-weight:750; }
.feature-text h2 { font-size:clamp(20px,3vw,28px); line-height:1.3; margin-top:4px; overflow-wrap:anywhere; }
.feature-meta { color:#e8d6e5; font-size:12px; margin-top:4px; }
.feature-reward { display:flex; align-items:baseline; gap:6px 9px; flex-wrap:wrap; margin-top:4px; border:0; background:transparent; padding:4px 0; min-height:44px; color:inherit; }
.feature-reward strong { color:#ffe0a8; font-size:27px; font-weight:750; line-height:1.2; font-variant-numeric:tabular-nums; }
.feature-reward span { color:#f2e3ee; font-size:11px; }
.feature-art { position:absolute; inset:0; z-index:-1; display:grid; place-items:center; color:#ffe0a8; background:#4b3552; font-size:54px; }
.feature-art img { position:absolute; width:100%; height:100%; object-fit:cover; inset:0; }
.feature-art::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,#23182af7 0%,#23182ad9 38%,#23182a20 90%); }
.results { margin-top:14px; scroll-margin-top:12px; }
.list-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:5px; }
.list-heading h2 { font-size:20px; }
.search { display:flex; align-items:center; gap:7px; width:min(250px,48%); min-height:41px; padding:0 10px; border:1px solid var(--border); border-radius:8px; background:var(--card); }
.search input { border:0; background:transparent; min-width:0; width:100%; min-height:40px; font-size:12px; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.result-list { height:100%; }
.with-champion .result-list { display:grid; grid-auto-rows:minmax(60px,1fr); }
.result-row { display:grid; grid-template-columns:26px minmax(0,1fr) 91px; align-items:center; gap:12px; min-height:60px; padding:6px 14px; }
.result-row + .result-row { border-top:1px solid var(--border); }
.row-rank { font-size:15px; font-weight:700; font-variant-numeric:tabular-nums; color:var(--muted); }
.result-row.is-top .row-rank { color:var(--gold); }
.work { display:flex; gap:8px; align-items:center; min-width:0; }
.cover { display:grid; place-items:center; flex:none; width:32px; height:36px; background:var(--soft); color:var(--accent); overflow:hidden; border-radius:5px; }
.cover img { width:100%; height:100%; object-fit:cover; }
.work h3 { font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.work p,.amount small { font-size:11px; color:var(--muted); }
.work p { overflow-wrap:anywhere; }
.amount { background:transparent; border:0; text-align:right; min-height:44px; padding:0; color:var(--accent); }
.amount b { font-size:15px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.amount small { display:block; }
.amount:hover small { color:var(--accent); }
.list-footer { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; padding-top:9px; }
.show-all { background:var(--card); border:1px solid var(--border); color:var(--accent); min-height:44px; border-radius:8px; padding:5px 18px; }
.pagination { display:flex; align-items:center; gap:10px; color:var(--muted); }
.foot { margin:13px 0 18px; text-align:center; font-size:11px; color:var(--muted); }
.empty { padding:19px 12px; color:var(--muted); text-align:center; }
dialog { color:var(--ink); background:var(--card); border:1px solid var(--border); border-radius:14px; width:min(490px,calc(100vw - 24px)); max-height:90dvh; padding:14px 19px 18px; }
dialog::backdrop { background:#18111db3; }
.dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid var(--border); margin-bottom:10px; }
.dialog-heading h2 { font-size:18px; }
.close-button { background:transparent; border:0; width:44px; height:44px; font-size:24px; color:var(--muted); }
.dialog-summary { background:var(--soft); border-radius:8px; padding:8px 12px; margin:9px 0; }
.dialog-summary strong { color:var(--accent); font-size:23px; }
.dialog-copy { color:var(--muted); margin:7px 0; font-size:13px; }
.gift-row { display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-bottom:1px solid var(--border); font-size:13px; }
.gift-row span { overflow-wrap:anywhere; }
.gift-row b { white-space:nowrap; }
.template { width:100%; min-height:96px; background:var(--paper); color:var(--ink); border:1px solid var(--border); padding:8px; font:inherit; }
@media (max-width:600px) {
  .shell { width:calc(100% - 28px); }
  .header { min-height:53px; }
  .header nav { gap:8px; }
  .intro { padding:15px 0 10px; }
  .notice { padding:3px 0; }
  .notice p,.notice button { font-size:11px; }
  .board.with-champion { grid-template-columns:1fr; }
  .with-champion .result-list { grid-auto-rows:auto; }
  .featured { min-height:130px; }
  .feature-art img { object-position:66% 40%; }
  .feature-art::after { background:linear-gradient(90deg,#23182afa 0%,#23182ac9 42%,#23182a15 100%); }
  .feature-text { padding:10px 12px; }
  .feature-text h2 { font-size:19px; }
  .feature-meta { font-size:11px; }
  .feature-reward strong { font-size:23px; }
  .list-heading h2 { font-size:16px; }
  .list-heading { gap:7px; }
  .search { width:54%; }
  .result-row { grid-template-columns:19px minmax(0,1fr) 61px; gap:6px; padding:4px 9px; min-height:54px; }
  .row-rank,.work h3,.amount b { font-size:13px; }
  .work { gap:6px; }
  .cover { width:25px; height:30px; }
  .work p,.amount small { font-size:10px; }
}
@media (max-width:350px) {
  .result-row .cover { display:none; }
  .header nav { gap:6px; }
  .theme-switch { padding-inline:6px; }
}
