/* anxuos.com /maimai/ —— L2「侧栏名片」，视觉照 docs/superpowers/specs/2026-09-28-maimai-c3-design.md §5（设计稿 design/maimai/，
   尺寸、颜色、字号照 design/maimai/gen/LayoutSide/desktop.tpl.html、phone.tpl.html、card.part.html、wall_*.part.html 的数值）。
   固定深色，不跟站点主题：近黑底、封面无边框、难度只是一条顶边色线、SSS+ 实心金标、白金渐变大数字（跟着当前分段走，--tier-grad 由 maimai.js 设）。
   断点：≥1100 左栏名片（352px，sticky）+ 右边墙；601–1099 名片在上（≥760 时名片里分两栏）、墙整宽；≤600 手机模板。
   墙的列数由 maimai.js 按墙的实际宽度挑（wallCols：7 → 5 列，手机 4 列），这里只管长相。 */
:root{
  --bg:#0c0c10;--ink:#f2f0ea;--hi:#ffffff;--dim:#d8d6e0;--dim2:#c4c2cf;--dim3:#bdbbc9;
  --line:rgba(255,255,255,.08);--line2:rgba(255,255,255,.12);--card:#111117;--card2:#14141b;
  --btn:rgba(255,255,255,.08);--btn-b:rgba(255,255,255,.16);
  --green:#9fe39a;--floor:#ffd27a;--gold:#f6e4b6;--gold-hi:#fffae8;--red:#ff8a80;
  --tier-grad:linear-gradient(100deg,#e2ce96,#fffae8,#d6e6f4,#f6e4b6,#ceb880);--tier-glow:rgba(226,206,150,.36);
  --scrim:linear-gradient(180deg,rgba(8,8,12,0) 0%,rgba(8,8,12,.62) 20%,rgba(8,8,12,.84) 50%,rgba(8,8,12,.92) 100%);
  --ts:0 1px 2px rgba(0,0,0,.85),0 0 14px rgba(0,0,0,.55);
  --num:'Barlow Condensed','Noto Sans JP',sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,'Noto Sans SC',monospace;
  --jp:'Noto Sans JP','Noto Sans SC','Hiragino Sans',sans-serif;
  --sc:'Noto Sans SC','Noto Sans JP','PingFang SC',system-ui,sans-serif;
  --gut:44px;--wide:1352px;--side:352px;
  color-scheme:dark;
}
html[lang="zh-Hant"]{--jp:'Noto Sans JP','Noto Sans TC','Hiragino Sans',sans-serif;--sc:'Noto Sans TC','Noto Sans JP','PingFang TC',system-ui,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,'Noto Sans TC',monospace}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--bg);scroll-padding-top:24px}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font-family:var(--sc);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.num{font-family:var(--num);font-variant-numeric:tabular-nums;letter-spacing:0}
.mono{font-family:var(--mono)}
.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.empty{margin:0;padding:18px 0;color:var(--dim2);font-size:13px}
/* 白金字：分段渐变填字（Rating 大数字、No.1、走势卡） */
.plat{background-image:var(--tier-grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.glow{filter:drop-shadow(0 0 30px var(--tier-glow)) drop-shadow(0 2px 0 rgba(0,0,0,.35))}
.tn{-webkit-background-clip:text;background-clip:text;color:transparent;background-image:linear-gradient(90deg,#ff5a78,#ffbe50,#78e678,#5abeff,#be78ff)}
.c-floor{color:var(--floor)!important}
.chev{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
[aria-expanded="true"]>.chev{transform:rotate(180deg)}

/* ---- 版面：顶栏和页脚整宽（细线通栏），其余内容最宽 1352，左右留白 --gut ---- */
.mm{position:relative;display:flex;flex-direction:column;min-height:100vh}
.mm>:not(.mbar):not(.foot){width:min(var(--wide),calc(100% - 2 * var(--gut)));margin-left:auto;margin-right:auto}

/* ---- 顶栏：只放功能 ---- */
.mbar{position:relative;z-index:20;height:68px;padding:0 max(var(--gut),calc((100% - var(--wide)) / 2));display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.1)}
.mb-home{width:38px;height:38px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid var(--btn-b);color:var(--ink);transition:background .2s}
.mb-home:hover{background:rgba(255,255,255,.16)}
.mb-home svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mb-back{display:none}
.mb-title{display:flex;align-items:baseline;gap:12px;min-width:0;margin-left:2px;white-space:nowrap}
.mb-title b{font-size:19px;font-weight:700;letter-spacing:.02em}
.mb-sub{font-size:12px;color:var(--dim2)}
.mb-sp{flex:1}
.mb-btn{height:38px;padding:0 14px;display:inline-flex;align-items:center;gap:8px;border-radius:8px;background:var(--btn);border:1px solid var(--btn-b);color:var(--ink);
  font:500 13px var(--sc);cursor:pointer;white-space:nowrap;transition:background .2s}
.mb-btn:hover{background:rgba(255,255,255,.16)}
/* 公开图还没生成：下载和复制置灰（maimai.js setShare）；立即更新不在此列：置灰了也能点，点了用 toast 说原因 */
.mb-btn:not(.mb-rf)[aria-disabled="true"],.mb-btn:disabled{opacity:.4;cursor:default;pointer-events:none}
.mb-btn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.mb-rf .rf-cd{display:inline-block;font:600 11.5px/1 var(--mono);font-variant-numeric:tabular-nums;padding:3px 6px;border-radius:5px;background:rgba(255,255,255,.1)}
.mb-rf.is-busy{box-shadow:inset 0 0 0 1px rgba(246,228,182,.55);cursor:progress}
.mb-rf.is-busy svg{stroke:var(--gold);animation:spin 1.1s linear infinite}
.mb-rf.is-cool,.mb-rf.is-off{color:rgba(242,240,234,.46)}
.mb-rf.is-cool:hover,.mb-rf.is-off:hover{background:rgba(255,255,255,.1)}
@keyframes spin{to{transform:rotate(360deg)}}
.mb-menu{position:relative;display:flex}
.mb-more{width:38px;padding:0;justify-content:center}
.mb-more[aria-expanded="true"]{background:rgba(255,255,255,.18)}
.mb-more svg{width:18px;height:18px;stroke-width:3}
.menu{position:absolute;right:0;top:calc(100% + 10px);z-index:50;display:flex;flex-direction:column;min-width:252px;padding:6px;border-radius:12px;
  background:#16161d;box-shadow:0 18px 48px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.1);color:var(--ink);animation:pop .18s cubic-bezier(.2,.7,.2,1)}
@keyframes pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.mi{display:flex;align-items:flex-start;gap:11px;width:100%;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:inherit;font:500 13.5px/1.35 var(--sc);text-align:left;cursor:pointer}
.mi:hover,.mi:focus-visible{background:rgba(255,255,255,.08)}
.mi:focus-visible{outline-offset:-2px}
.mi svg{width:17px;height:17px;margin-top:.5px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mi-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.mi small{font-size:11.5px;line-height:1.4;color:var(--floor)}
.mi.dim{color:rgba(242,240,234,.6)}
.mi[aria-disabled="true"],.mi:disabled{opacity:.4;pointer-events:none}
.mi-sm{display:none}
.mi-foot{display:flex;flex-direction:column;gap:2px;margin:4px 4px 2px;padding:8px 6px 4px;border-top:1px solid var(--line);font-size:11px;line-height:1.5;color:var(--dim3)}
.langs{height:38px;padding:3px;display:flex;gap:2px;border-radius:8px;background:var(--btn);border:1px solid var(--btn-b);flex:none}
.langs button{min-width:38px;padding:0 6px;border:0;border-radius:5px;background:transparent;color:var(--ink);font-size:13px;cursor:pointer}
.langs button[data-lang="en"]{font-family:var(--mono);font-size:12px}
.langs button:hover{background:rgba(255,255,255,.1)}
.langs button.on{background:var(--ink);color:var(--bg);font-weight:700}

/* ---- 横幅（固定深色） ---- */
.banner{margin-top:20px;display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:12px;background:rgba(14,14,20,.86);color:var(--ink);
  box-shadow:0 0 0 1px rgba(255,255,255,.1),0 12px 30px rgba(0,0,0,.35);border-left:4px solid #5abeff;font-size:14px}
.banner.lv-warn{border-left-color:var(--floor)}.banner.lv-err{border-left-color:#ff5f57}
.bn-ic{width:20px;height:20px;flex:none;fill:none;stroke:#5abeff;stroke-width:1.8;stroke-linecap:round}
.lv-warn .bn-ic{stroke:var(--floor)}.lv-err .bn-ic{stroke:#ff5f57}
.bn-t{flex:1;min-width:0}
.banner.lv-note{padding:9px 14px;font-size:13px;border-left-color:rgba(255,255,255,.35);background:rgba(14,14,20,.7)}
.lv-note .bn-ic{stroke:rgba(255,255,255,.6)}
.lv-note .bn-t{overflow-wrap:anywhere}
.bn-rb{font-family:var(--mono);font-size:12px;padding:3px 8px;border-radius:6px;background:rgba(255,255,255,.1);white-space:nowrap}
.bn-btn{flex:none;height:32px;padding:0 15px;border:0;border-radius:8px;background:var(--ink);color:var(--bg);font:600 13px var(--sc);cursor:pointer;white-space:nowrap}
.bn-btn:hover{background:#fff}

/* ================= 上半段：左栏（名片 + 推分捷径）| 右边两面墙 ================= */
.top{padding-top:32px;display:flex;align-items:flex-start;gap:36px}
/* top 由 maimai.js stickSide 按名片高度算（比视口高就先跟着滚，底边到了再贴住） */
.side{position:sticky;top:24px;width:var(--side);flex:none;display:flex;flex-direction:column;gap:16px}
.walls{flex:1;min-width:0;display:flex;flex-direction:column;gap:64px}

/* ---- 玩家名片 ---- */
.pcard{position:relative;border-radius:18px;overflow:hidden;background:var(--card);border:1px solid rgba(246,228,182,.16)}
.pc-art{position:absolute;left:0;right:0;top:0;height:720px;overflow:hidden;pointer-events:none}
/* 卡面：自己 B15 封面的 3 列拼贴，整层只有一个很轻的 blur；上下用渐变压暗，底边融进卡片底色 */
.pc-mosaic{position:absolute;left:-40px;right:-40px;top:-40px;height:700px;display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-auto-rows:1fr;
  filter:blur(2.5px) saturate(1.1) brightness(.56)}
.pc-mosaic img{display:block;width:100%;height:100%;object-fit:cover}
.pc-veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(17,17,23,.78) 0%,rgba(17,17,23,.3) 12%,rgba(17,17,23,.12) 28%,rgba(17,17,23,.35) 50%,rgba(17,17,23,.86) 74%,#111117 92%)}
.pc-in{position:relative;padding:30px 30px 28px;display:flex;flex-direction:column;gap:40px}
.pc-col{display:flex;flex-direction:column;gap:40px;min-width:0}
.pc-id{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0}
.pc-top{height:20px;display:flex;align-items:center;gap:10px;white-space:nowrap;text-shadow:var(--ts);max-width:100%;overflow:hidden}
.pc-top b{font-size:20px;font-weight:700;letter-spacing:.02em;color:#fff}
.pc-top .mono{font-size:11.5px;color:#e4e2ec;overflow:hidden;text-overflow:ellipsis}
.pc-sp{height:150px}
.trophy{max-width:100%;height:30px;padding:0 14px;display:inline-flex;align-items:center;border-radius:15px;border:1px solid rgba(246,228,182,.6);
  background:rgba(12,12,16,.62);color:var(--gold);font:700 13.5px var(--jp);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 名字原样照印（全角字、全角空格都保留）；太长先缩字号（maimai.js fitName）再截断 */
.pname{margin:0;max-width:100%;font:900 38px/46px var(--jp);color:#fff;white-space:pre;overflow:hidden;text-overflow:ellipsis;min-height:46px;text-shadow:0 2px 18px rgba(0,0,0,.5)}
.pname.none{font:500 15px/46px var(--sc);color:var(--dim2)}
.pl-meta{display:flex;align-items:center;gap:12px;height:22px;font-size:12px;color:var(--dim);text-shadow:var(--ts)}
.stars{display:inline-flex;align-items:center;gap:6px}.stars img{width:20px;height:auto}.stars b{color:var(--ink);font-weight:600}
.pl-sep{width:1px;height:12px;background:rgba(255,255,255,.3)}
/* Rating */
.pc-rt{display:flex;flex-direction:column;gap:14px}
.rt-k{display:flex;align-items:center;flex-wrap:wrap;gap:2px 12px;min-height:18px;font-size:12px;letter-spacing:.12em;color:var(--dim);text-shadow:var(--ts)}
/* 名片上的小字压在封面拼贴上：统一加贴身字影；渐变填字（分段名、RAINBOW）不加，background-clip:text 上的字影会盖住渐变 */
.rt-tier{font-weight:600;-webkit-background-clip:text;background-clip:text;color:transparent}
.rt-k .rt-tier,.rt-line .tn{text-shadow:none}
.rt-match{letter-spacing:.02em}.rt-match.ok{color:var(--green)}.rt-match.bad{color:var(--floor)}
.rt-num{display:block;align-self:flex-start;height:92px;margin-left:-3px;padding-right:.04em;font-size:116px;line-height:92px;font-weight:800;letter-spacing:-.01em}
.rt-num.none{background:none;color:rgba(255,255,255,.28);filter:none}
.rt-prog{display:flex;flex-direction:column;gap:9px}
.rt-bar{height:8px;display:flex;gap:3px}
.rt-bar i{display:block;height:8px;border-radius:4px}
#rt-bar-a{box-shadow:0 0 14px rgba(246,228,182,.5);transition:width .8s cubic-bezier(.2,.7,.2,1)}
#rt-bar-b{flex:1;opacity:.9}
.rt-line{display:flex;justify-content:space-between;gap:12px;font-size:11.5px;color:var(--dim);white-space:nowrap;text-shadow:var(--ts)}
.rt-line b{color:#fff;font-weight:600}
/* B15 / B35 合计 + 占比条 */
.pc-bb{display:flex;flex-direction:column;gap:14px}
.bb{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.bb div{display:flex;flex-direction:column;gap:4px;min-width:0}
.bb dt{font-size:11px;letter-spacing:.12em;color:var(--dim)}
.bb dd{margin:0;font-size:54px;line-height:48px;font-weight:700;color:#fff}
.bb-s{font-size:11px;color:var(--dim2);white-space:nowrap}
.bb-s b{font-weight:600}
.bb-ratio{height:6px;display:flex;gap:3px}
.bb-ratio i{display:block;height:6px;border-radius:3px;background:rgba(242,240,234,.34)}
.bb-ratio i:first-child{flex:none;background:var(--ink)}
.bb-ratio i:last-child{flex:1}
/* B50 构成 */
.comp{display:flex;flex-direction:column;gap:16px;min-width:0}
.comp-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.comp-h h2{margin:0;font-size:15px;font-weight:700;white-space:nowrap}
.comp-h>span{font-size:11px;color:var(--dim2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.comp-ranks{display:flex;flex-direction:column;gap:8px}
.rr{height:22px;display:flex;align-items:center;gap:12px}
.rr-l{width:44px;font-size:18px;font-weight:700}
.rr-bar{flex:1;height:6px;border-radius:3px;background:rgba(255,255,255,.08)}
.rr-bar i{display:block;height:6px;border-radius:3px}
.rr-n{width:26px;text-align:right;font-size:19px;font-weight:600}
.comp-fcfs{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;min-height:26px}
.cf-n{display:inline-flex;align-items:center;gap:6px;font-size:24px}.cf-n b{font-size:19px;font-weight:600}
.lvs{display:flex;flex-direction:column;gap:8px}
.lvs-h{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:var(--dim2)}
.lvs-d{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 8px}
.dc{white-space:nowrap}
.dc-master{color:#dcc4ff}.dc-expert{color:#ffb0ba}.dc-advanced{color:#ffd98a}.dc-basic{color:#b6ee9f}
.dc-remaster{height:16px;padding:0 6px;display:inline-flex;align-items:center;border-radius:3px;background:#fff;color:#6e28be;font-weight:600}
.lvs-bar{height:26px;display:flex;gap:2px;border-radius:5px;overflow:hidden}
.lv-seg{flex:none;min-width:3px;padding:0 7px;display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:15px;font-weight:700;overflow:hidden;white-space:nowrap}
.lv-seg .n{font-weight:500}
.lvs-key{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:4px 12px;font-size:11px;line-height:14px;color:var(--dim2)}
.lvs-key span{display:inline-flex;align-items:center;gap:5px}
.lvs-key i{width:8px;height:8px;border-radius:2px}
/* 单曲 Rating 分布 */
.hist{display:flex;flex-direction:column;gap:12px;min-width:0}
.hist-lg{display:flex;align-items:center;gap:10px}
.hist-lg span{display:inline-flex;align-items:center;gap:5px}
.hist-lg i,.hist-bars i{display:block;border-radius:2px}
.hist-lg i{width:8px;height:8px}
.k15{background:var(--ink)}.k35{background:#8d8a99}
.hist-bars{height:120px;display:flex;align-items:flex-end;gap:2px;border-bottom:1px solid rgba(255,255,255,.18)}
.hb{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:1px}
.hist-bars i{border-radius:2px 2px 0 0}
.hist-ax{position:relative;height:26px;margin-top:-6px;font-size:10px;color:var(--dim2)}
.hist-ax .tk{position:absolute;top:13px;transform:translateX(-50%)}
.hist-ax .fm{position:absolute;top:0;width:0;height:0;transform:translateX(-50%);border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:6px solid var(--floor)}
.hist-f{margin-top:-6px;font-size:11px;color:var(--dim2)}
.hist-f b{color:var(--floor);font-weight:600}

/* ---- 推分捷径 ---- */
.push{padding:22px 22px 18px;display:flex;flex-direction:column;gap:16px;border-radius:18px;
  background:radial-gradient(ellipse 320px 160px at 0% 0%,rgba(159,227,154,.1) 0%,rgba(159,227,154,0) 100%),var(--card);border:1px solid rgba(159,227,154,.3)}
.pu-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.pu-h h2{margin:0;font-size:18px;font-weight:900;white-space:nowrap}
.pu-h .mono{font-size:11px;color:var(--dim2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pu-tot{margin-top:-8px;display:flex;flex-direction:column;gap:8px}
.pu-sum{display:flex;align-items:flex-end;gap:12px;white-space:nowrap}
.pu-sum b{font-size:56px;line-height:48px;font-weight:800;color:var(--green)}
.pu-sum .pu-after{font-size:30px;line-height:28px;font-weight:700;color:#fff}
.pu-cross{font-size:11px;color:var(--dim2)}
.pu-cross .tn{font-weight:600;letter-spacing:.06em}
.pu-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
#pu-rest{margin-top:-12px}
.pu-row{width:100%;height:60px;margin:0;padding:0 8px 0 0;display:flex;align-items:center;gap:12px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left}
button.pu-row{cursor:pointer;transition:background .15s}
button.pu-row:hover{background:#1a1a22}
.pu-cv{position:relative;width:60px;height:60px;flex:none;border-radius:6px;overflow:hidden;background:#1a1a22}
.pu-cv .ph-ch{font-size:18px}
.pu-no{position:absolute;left:0;bottom:0;z-index:2;height:18px;padding:0 5px;display:flex;align-items:center;border-top-right-radius:5px;background:rgba(8,8,12,.86);font-size:13px;font-weight:700;color:#fff}
.pu-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.pu-t{font:700 13.5px/18px var(--jp);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pu-s{font-size:10.5px;line-height:14px;color:var(--dim2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pu-s b{color:#ffe08a;font-weight:600}
.pu-g{flex:none;font-size:30px;line-height:28px;font-weight:800;color:var(--green)}
.pu-more{height:44px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:8px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);
  color:#e4e2ec;font:400 13px var(--sc);cursor:pointer}
.pu-more:hover{background:rgba(255,255,255,.1)}
.pu-more .mono{font-size:11px;color:var(--dim2)}
.pu-more .chev{color:var(--dim2)}
.push .empty{padding:0}

/* ================= B15 / B35 墙 ================= */
.wall-sec{position:relative;display:flex;flex-direction:column;gap:14px;min-width:0}
/* 区标题行：巨字 B15 / B35 字脚压进 No.1 顶部（被压的角不放标记，maimai.js tagCorners 挪角），右边新曲 · 首数、门槛 · 平均，最右合计 */
.wh{position:relative;z-index:5;height:84px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;pointer-events:none}
.glyph{position:absolute;left:-8px;bottom:-40px;font-size:146px;line-height:116px;font-weight:800;letter-spacing:-.02em;color:#f7f3ea;white-space:nowrap;
  text-shadow:0 0 2px rgba(0,0,0,.6),0 10px 40px rgba(0,0,0,.7)}
.wh-m{margin-left:232px;min-width:0;display:flex;flex-direction:column;gap:6px;padding-bottom:2px}
.wh-t{display:flex;align-items:baseline;gap:12px;white-space:nowrap}
.wh-zh{font-size:28px;line-height:34px;font-weight:900}
.wh-n{font-size:12px;color:var(--dim)}
.wh-s{display:flex;align-items:center;gap:18px;height:22px;font-size:12px;color:var(--dim2);white-space:nowrap}
.wh-s b{font-size:21px;font-weight:700;color:#fff}
.wh-r{display:flex;align-items:baseline;gap:10px;white-space:nowrap}
.wh-k{font-size:11px;letter-spacing:.12em;color:var(--dim2)}
.wh-tot{font-size:44px;line-height:38px;font-weight:700;color:#fff}
/* 网格位置全由 maimai.js 的 wallLayout 写在行内样式里；容器查询（cqi / @container）让详情横带、门槛卡跟着墙宽换排法 */
.wall{position:relative;z-index:1;isolation:isolate;display:grid;grid-template-columns:repeat(var(--cols,7),minmax(0,1fr));gap:8px;container-type:inline-size}
.wall.w-ph{gap:6px}

/* ---- 格子（<button>）：封面无边框 + 顶边色线 + 短暗幕；下面是铭牌 ---- */
.tile{position:relative;display:flex;flex-direction:column;min-width:0;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tile:focus-visible{outline:none}
.art{position:relative;z-index:1;display:block;aspect-ratio:1/1;overflow:hidden;background:#1a1a22;box-shadow:0 0 30px 3px var(--glow,transparent);transition:box-shadow .18s}
.tile:hover .art{box-shadow:0 0 0 2px var(--gold),0 0 34px 6px var(--glow-hi,transparent)}
.tile:focus-visible .art{box-shadow:0 0 0 3px var(--gold),0 0 34px 6px var(--glow-hi,transparent)}
.cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;image-rendering:auto}
.ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;
  background:repeating-radial-gradient(circle at 50% 50%,transparent 0 9%,rgba(255,255,255,.1) 9% calc(9% + 1px)),linear-gradient(180deg,#2c2838,#15151c)}
.ph-ch{font:800 22px/1 var(--jp)}
.edge{position:absolute;left:0;right:0;top:0;height:3px;z-index:1}.edge.re{height:5px}
.scrim{position:absolute;left:0;right:0;bottom:0;height:46%;background:var(--scrim)}
/* No.1 用模糊放大的封面做底光（整页的 blur 层：两张底光 + 名片拼贴） */
.bleed{position:absolute;left:-10px;top:-10px;width:calc(100% + 20px);aspect-ratio:1/1;object-fit:cover;filter:blur(24px) saturate(1.8);opacity:.5;z-index:0;pointer-events:none;transition:opacity .2s}
.tile:hover .bleed{opacity:.7}
.no1 .art{box-shadow:none}
.retag{position:absolute;top:0;z-index:2;height:18px;padding:0 6px 0 8px;display:flex;align-items:center;background:#fff;color:#6e28be;font:900 9.5px/1 var(--sc);white-space:nowrap}
.retag.c-tr{right:0;border-bottom-left-radius:8px}.retag.c-tl{left:0;border-bottom-right-radius:8px;padding:0 8px 0 6px}
.retag .s{display:none}
/* 普通格按封面宽换排法：格子窄于 128px（5–7 列的中间宽度）时缺角写短的 Re:MAS，不和左上「12 门槛」小签撞在一起 */
.tile:not(.no1) .art{container:tile/inline-size}
@container tile (max-width:127px){.retag .l{display:none}.retag .s{display:inline}.retag{padding:0 4px 0 6px}.retag.c-tl{padding:0 6px 0 4px}}
.chips{position:absolute;top:8px;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.chips.c-tl{left:6px}.chips.c-tr{right:6px;align-items:flex-end}
.chips.below{top:26px}
.ch{height:17px;padding:0 5px;display:flex;align-items:center;gap:4px;border-radius:3px;background:rgba(8,8,12,.8);white-space:nowrap}
.ch-no{font-size:10px;font-weight:600;color:#e4e2ec}
.ch-no .flr{font:700 10px var(--sc);color:var(--floor)}
.ch-push{height:19px;gap:3px;background:rgba(8,8,12,.86);border:1px solid rgba(159,227,154,.6);font-size:13.5px;font-weight:700;color:var(--green)}
.ch-push small{font:700 10px var(--sc)}
.ch-floor{border:1px dashed rgba(255,210,122,.7);font:700 10.5px var(--sc);color:var(--floor)}
/* No.1 封面上的东西按封面宽（cqi）缩放：1440 宽时封面约 270px，正好是模板的 16 / 28 / 19px；格子变小时跟着缩，不会溢出 */
.no1 .art{container-type:inline-size}
.no1 .chips{top:5.9cqi}.no1 .chips.c-tr{right:5.2cqi}.no1 .chips.c-tl{left:5.2cqi}
.no1 .ch{height:10.4cqi;padding:0 3.3cqi;gap:2.2cqi;border-radius:4px}.no1 .ch-push{font-size:7cqi;border-color:rgba(159,227,154,.55)}
.no1 .ch-push small,.no1 .ch-floor{font-size:max(9px,4.6cqi)}
/* 暗幕上的数：单曲分 + 评级；达成率 + FC / FS */
.meta{position:absolute;left:0;right:0;bottom:0;padding:0 7px 6px;display:flex;flex-direction:column;gap:3px;text-shadow:var(--ts)}
.m-r1{display:flex;align-items:flex-end;justify-content:space-between;gap:4px}
.m-r2{display:flex;align-items:center;justify-content:space-between;gap:4px;height:15px}
.m-rt{font-size:33px;line-height:27px;font-weight:800;color:#fff}
.m-fc{display:flex;align-items:center;gap:2px;font-size:15px}
.m-ach{font-size:10px;line-height:13px;color:#ecebf2;white-space:nowrap}
.rk{height:17px;padding:0 4px;display:inline-flex;align-items:center;border-radius:3px;background:rgba(8,8,12,.55);font-size:15px;line-height:1;font-weight:700;text-shadow:none;white-space:nowrap}
.rk-max{background:#ffe08a;color:#17130a}
.no1 .scrim{height:40%}
.no1 .meta{padding:5.9cqi;gap:2.2cqi}
.no1 .m-rt{font-size:38.6cqi;line-height:.79}
.no1 .m-ic{display:flex;flex-direction:column;align-items:flex-end;gap:2.2cqi}
.no1 .m-fc{font-size:9.6cqi;gap:1.5cqi}
.no1 .rk{height:10.4cqi;padding:0 3cqi;border-radius:4px;font-size:9.3cqi}
.no1 .m-r2,.no1 .m-ach{height:auto;font-size:max(9.5px,4.8cqi);line-height:1.3}
.no1 .m-lv{color:#cfcdd9;white-space:nowrap}
/* 铭牌：普通格是曲名 + 等级 · 定数；No.1 是白金「No.1」+ 曲名 + 难度 · 等级 · 定数 · 类型 */
.np{position:relative;z-index:1;height:42px;padding-top:6px;display:flex;flex-direction:column;gap:2px;min-width:0;text-shadow:var(--ts)}
.np-t{display:block;font:700 12px/17px var(--jp);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np-m{font-size:10px;line-height:13px;color:var(--dim2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.no1 .np{flex:1;height:auto;min-height:0;padding-top:10px;flex-direction:row;align-items:flex-start;gap:12px}
.np-no{flex:none;font-size:34px;line-height:30px;font-weight:800;text-shadow:none;white-space:nowrap}
.np-r{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.no1 .np-t{font-size:16px;line-height:20px;color:#fff}
.no1 .np-m{display:flex;align-items:center;gap:6px;font-size:10.5px;line-height:14px;color:var(--dim)}
.np-re{flex:none;height:15px;padding:0 5px;display:inline-flex;align-items:center;border-radius:3px;background:#fff;color:#6e28be;font:900 10px var(--sc);text-shadow:none}
.np-s{height:13px;display:flex;align-items:center;justify-content:space-between;gap:2px}
/* 选中的格子：金边 */
.tile.sel .art{box-shadow:0 0 0 3px var(--gold),0 0 40px 8px var(--glow-hi,rgba(246,228,182,.3))}
.tile.sel .art::after{content:"";position:absolute;inset:0;z-index:3;box-shadow:inset 0 0 36px rgba(246,228,182,.3);pointer-events:none}
/* 门槛卡：最后一行剩下的空格（≥2 格），不够就单独一行；卡窄（≤300px）时换成手机的紧凑排法（容器查询） */
.floorcard{min-width:0;border-radius:6px;container-type:inline-size;
  background:radial-gradient(ellipse 260px 150px at 0% 100%,rgba(255,210,122,.1) 0%,rgba(255,210,122,0) 100%),#121218;border:1px dashed rgba(255,210,122,.55)}
.fl-in{height:100%;padding:16px 18px;display:flex;flex-direction:column;justify-content:space-between;gap:8px}
.fl-k{font-size:11px;line-height:14px;letter-spacing:.14em;color:var(--floor)}
.fl-v{display:flex;align-items:flex-end;gap:14px}
.fl-v b{flex:none;font-size:84px;line-height:68px;font-weight:800;color:#fff}
.fl-r{min-width:0;display:flex;flex-direction:column;gap:4px;padding-bottom:2px}
.fl-n{font-size:12px;line-height:16px;color:var(--floor)}
.fl-note{font-size:13px;line-height:18px;color:var(--dim)}
.fl-s{display:none}
@container (max-width:300px){
  .fl-in{padding:10px 12px;gap:4px}
  .fl-k{font-size:9.5px;line-height:12px;letter-spacing:.12em}
  .fl-en,.fl-r .fl-note{display:none}
  .fl-v{gap:8px}
  .fl-v b{font-size:52px;line-height:42px}
  .fl-n{max-width:5em;font-size:10px;line-height:13px;text-wrap:balance}
  html[lang="en"] .fl-n{max-width:none}
  .fl-s{display:block;font-size:11px;line-height:15px}
}
.floorcard.wide .fl-in{flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px 24px;padding:14px 20px}
.floorcard.wide .fl-v b{font-size:56px;line-height:46px}
.floorcard.wide .fl-r{flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:4px 16px}

/* ---- 墙内详情横带：插在选中那一行下面，整行宽，不盖任何格子 ---- */
.band{position:relative;z-index:2;min-height:208px;padding:20px 24px;display:flex;align-items:center;gap:28px;border-radius:12px;outline:none;
  background:radial-gradient(ellipse 420px 200px at 82% 0%,rgba(246,228,182,.12) 0%,rgba(246,228,182,0) 100%),#14141b;border:1px solid rgba(246,228,182,.4);
  box-shadow:0 24px 60px rgba(0,0,0,.5);animation:band-in .22s cubic-bezier(.2,.7,.2,1)}
.band:focus-visible{box-shadow:0 0 0 2px var(--gold),0 24px 60px rgba(0,0,0,.5)}
@keyframes band-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.band-arrow{position:absolute;left:40px;top:-9px;width:16px;height:16px;background:#1a1a20;border-left:1px solid rgba(246,228,182,.4);border-top:1px solid rgba(246,228,182,.4);transform:rotate(45deg)}
.band-x{position:absolute;right:10px;top:10px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:rgba(255,255,255,.06);color:var(--dim2);cursor:pointer}
.band-x:hover{background:rgba(255,255,255,.12);color:#fff}
.band-x svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.bd-cv{position:relative;width:168px;height:168px;flex:none;border-radius:6px;overflow:hidden;background:#1a1a22;box-shadow:0 0 0 1px rgba(255,255,255,.1),0 12px 40px rgba(0,0,0,.5)}
.bd-info{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:8px}
.bd-k{font-size:11px;letter-spacing:.1em;color:var(--dim2)}
.bd-sug{color:var(--green)}
.bd-t{margin:0;font:900 24px/30px var(--jp);color:#fff;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bd-m{font-size:12px;color:var(--dim)}
.bd-dx{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;color:var(--dim2)}
.bd-dx .ico{font-size:18px}
.bd-star{color:#ffd65a;letter-spacing:.08em}
.bd-lad{width:340px;flex:none;display:flex;flex-direction:column;gap:4px}
.lr{height:36px;padding:0 10px;display:flex;align-items:center;border-bottom:1px solid var(--line)}
.lr:last-child{border-bottom:0}
.lr.lh{height:18px;border:0;font-size:10px;letter-spacing:.1em;color:#b9b7c6}
.lr.lh>span{font:400 10px var(--mono);color:inherit}
.lr.goal{height:40px;border-radius:6px;background:rgba(159,227,154,.12);border:1px solid rgba(159,227,154,.4)}
.c1{width:70px;flex:none}.c2{flex:1;min-width:0}.c3,.c4{width:56px;flex:none;text-align:right}
.rkc{font-size:20px;font-weight:700}
.lr .c2{font-size:13px;color:#fff}
.lr .c3{font-size:22px;font-weight:700;color:#fff}
.lr .gain{font-size:22px;font-weight:800;color:var(--green)}
.lr.goal .gain{font-size:24px}
.lr .dim{font-size:12px;color:#b9b7c6}
.lr.got .c2,.lr.got .c3{color:var(--dim2)}
.cur-k{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--gold)}
.cur-k i{width:6px;height:6px;border-radius:50%;background:var(--gold)}
.bd-note{margin:6px 0 0;font-size:12px;color:var(--dim2)}
.bd-go{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:14px}
.go-top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.go-t{font-size:15px;line-height:22px}
.go-t .mono{font-weight:600;color:var(--green)}
.go-t .go-rk{font-weight:700}
.go-g{font-size:72px;line-height:60px;font-weight:800;color:var(--green)}
.go-pos{display:flex;flex-direction:column;gap:6px}
.go-bar{position:relative;height:8px;border-radius:4px;background:rgba(255,255,255,.1)}
.go-fill{display:block;height:8px;border-radius:4px;background:linear-gradient(90deg,#ceb880,#f6e4b6 45%,#fffae8 70%,#e2ce96)}
.go-mk{position:absolute;top:-5px;width:3px;height:18px;margin-left:-1px;border-radius:2px;background:#fff;box-shadow:0 0 10px rgba(255,250,232,.8)}
.go-lab{display:flex;justify-content:space-between;font-size:11px;color:var(--dim2)}
.go-lab .hi{color:#ffe08a}
.go-f{font-size:11px;color:var(--dim2)}
/* 墙窄一些（1440 宽时墙约 964px）：封面 + 曲名一行，阶梯 + 目标一行 */
@container (max-width:1099px){
  .band{flex-wrap:wrap;gap:16px 24px;padding:18px 20px}
  .bd-cv{width:120px;height:120px}
  .bd-info{flex-basis:calc(100% - 200px)}
  .bd-t{font-size:20px;line-height:26px}
  .bd-go{flex-basis:240px}
}
/* 更窄（手机、4 列）：封面 + 曲名，下面阶梯，再下面目标 */
@container (max-width:640px){
  .band{display:grid;grid-template-columns:84px minmax(0,1fr);grid-template-areas:"cv info" "lad lad" "go go";gap:12px;padding:14px;min-height:0;align-items:start}
  .band-arrow{width:14px;height:14px;top:-8px}
  .bd-cv{grid-area:cv;width:84px;height:84px;border-radius:5px}
  .bd-info{grid-area:info;gap:4px;padding-right:30px}
  .bd-k{font-size:10px;letter-spacing:.04em}
  .bd-t{font-size:16px;line-height:21px}
  .bd-m,.bd-dx{font-size:10px}
  .bd-dx .ico{font-size:14px}
  .bd-lad{grid-area:lad;width:auto;gap:3px}
  .lr{height:30px}.lr.goal{height:34px}.lr.lh{display:none}
  .c1{width:54px}.c3{width:44px}.c4{width:48px}
  .rkc{font-size:18px}.lr .c2{font-size:12px}.lr .c3{font-size:20px}.lr .gain,.lr.goal .gain{font-size:20px}
  .bd-go{grid-area:go;display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:center;gap:6px 12px}
  .go-top{grid-column:1}.go-g{display:none}.go-t{font-size:13px;line-height:18px}
  .go-pos{grid-column:2}.go-lab{display:none}.go-bar{height:6px}.go-fill{height:6px}.go-mk{top:-4px;height:14px}
  .go-f{grid-column:1/-1;font-size:10px}
}

/* ================= 下半段：左边走势（和名片同宽）| 右边最近游玩 ================= */
.low{padding-top:104px;display:flex;align-items:flex-start;gap:36px}
.blk{min-width:0;display:flex;flex-direction:column;gap:18px}
.trend{width:var(--side);flex:none}
.plays{flex:1}
.blk-h{min-height:48px;display:flex;align-items:flex-end;flex-wrap:wrap;gap:4px 14px}
.blk-h h2{margin:0;font-size:40px;line-height:48px;font-weight:900;white-space:nowrap}
.blk-h .sub{padding-bottom:8px;font-size:13px;color:var(--dim)}
.py-day{margin-left:auto;padding-bottom:8px;display:flex;align-items:baseline;gap:12px;white-space:nowrap}
.py-day b{font-size:24px;font-weight:700}
.py-day .mono{font-size:12px;color:var(--dim2)}

/* ---- 走势 ---- */
.tr-main{display:flex;flex-direction:column;gap:12px}
.tr-card{position:relative;min-width:0;padding:20px;border-radius:18px;overflow:hidden;background:radial-gradient(circle 260px at 92% 30%,rgba(246,228,182,.1) 0%,rgba(246,228,182,0) 100%),var(--card);border:1px solid var(--line)}
.tr-chart{position:relative;min-height:40px;border-radius:8px;outline-offset:4px}
.tr-svg{display:block;width:100%;height:auto;overflow:visible;touch-action:pan-y}
.tr-grid{stroke:rgba(255,255,255,.09);stroke-width:1;shape-rendering:crispEdges}
.tr-ax{fill:var(--dim3);font-family:var(--mono);font-size:11px;font-variant-numeric:tabular-nums}
.tr-ax-hi{fill:#fff}
.tr-line{fill:none;stroke:var(--gold);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.tr-ring{fill:none;stroke:var(--gold-hi);stroke-opacity:.35;stroke-width:1}.tr-ring2{stroke-opacity:.6;stroke-width:1.2}
.tr-dot{fill:var(--gold-hi)}
.tr-end{fill:var(--gold-hi);font:700 22px var(--num)}
.tr-cross{stroke:rgba(255,255,255,.35);stroke-width:1;shape-rendering:crispEdges}
.tr-hit{cursor:crosshair}
.tr-tip{position:absolute;z-index:2;display:flex;flex-direction:column;gap:2px;padding:8px 11px;border-radius:8px;background:#1b1b24;box-shadow:0 8px 24px rgba(0,0,0,.4),0 0 0 1px rgba(255,255,255,.1);pointer-events:none;white-space:nowrap}
.tt-d{font-size:10.5px;color:var(--dim2)}
.tt-v{display:flex;align-items:baseline;gap:8px}.tt-v b{font-size:22px;line-height:1.1;font-weight:700}
.tt-dl{font-size:11px;font-weight:600}.tt-dl.up{color:var(--green)}.tt-dl.down{color:var(--red)}
.tt-s{font-size:10.5px;color:var(--dim)}
.tbl{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.tbl summary{cursor:pointer;font-size:12px;color:var(--dim2);width:max-content}
.tbl-wrap{max-height:220px;overflow:auto;margin-top:8px}
.tbl table{width:100%;border-collapse:collapse;font-family:var(--mono);font-size:12px;font-variant-numeric:tabular-nums}
.tbl th{position:sticky;top:0;background:var(--card);text-align:left;font-weight:600;color:var(--dim2);padding:5px 8px;border-bottom:1px solid var(--line)}
.tbl td{padding:4px 8px;border-bottom:1px solid var(--line)}
.tbl th:not(:first-child),.tbl td.n{text-align:right}
.tr-now{padding:20px;display:flex;flex-direction:column;justify-content:space-between;gap:6px;border-radius:12px;
  background:radial-gradient(circle 200px at 50% 110%,rgba(246,228,182,.14) 0%,rgba(246,228,182,0) 100%),var(--card);border:1px solid rgba(246,228,182,.25)}
.tr-now .k{font-size:11px;letter-spacing:.1em;color:var(--dim2)}
.tr-now>b{font-size:80px;line-height:70px;font-weight:800;align-self:flex-start}
.tr-now .s{font-size:12px;color:var(--dim2)}
.tr-delta{font-size:12px;color:var(--dim2)}.tr-delta b{font-weight:600;color:#fff}.tr-delta.up b{color:var(--green)}.tr-delta.down b{color:var(--red)}
.tr-stats{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tr-stats div{padding:12px 14px;border-radius:10px;border:1px dashed rgba(255,255,255,.24);min-width:0}
.tr-stats dt{font-size:12px;color:var(--dim2)}
.tr-stats dd{margin:2px 0 0;font-size:28px;line-height:1.1;font-weight:800;color:#fff}
.tr-stats span{font-size:10.5px;color:var(--dim2)}

/* 数据积累中：只放真实的东西（当前 Rating、从哪天开始追踪、共几个点、B15 + B35） */
.tr-wait{padding:22px;display:flex;flex-direction:column;gap:20px;border-radius:18px;background:var(--card);border:1px dashed rgba(255,255,255,.24)}
.tw-l{display:flex;align-items:flex-start;gap:14px;min-width:0}
.tw-l svg{width:24px;height:24px;flex:none;margin-top:2px;fill:none;stroke:var(--dim);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tw-l h3{margin:0 0 6px;font-size:18px;line-height:26px;font-weight:700}
.tw-l p{margin:0;font-size:13px;line-height:21px;color:var(--dim)}
.tw-r{padding-top:20px;border-top:1px solid rgba(255,255,255,.1);display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.tw-r b{font-size:64px;line-height:54px;font-weight:800}
.tw-r>span{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:11px;color:var(--dim2);text-align:right}
.tw-n{color:var(--ink)}
#tr-wait-bb{white-space:nowrap}

/* ---- 最近游玩：一局一块，局内 4 格 ---- */
.day-h{display:flex;align-items:center;gap:12px;height:24px;margin:0 0 16px;font-weight:400}
.day-h b{font-size:22px;font-weight:700}
.day-h .mono{font-size:12px;color:var(--dim2)}
.rule{flex:1;height:1px;background:var(--line2)}
.credits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.credit{display:flex;flex-direction:column;gap:10px;min-width:0}
.cr-h{height:24px;display:flex;align-items:center;gap:12px;font-size:12px;color:var(--dim)}
.cr-h .rule{background:var(--line)}
.cr-h .n{font-size:11px;color:var(--dim2)}
.pc{height:24px;padding:0 9px;display:flex;align-items:center;border-radius:12px;background:var(--ink);color:var(--bg);font-size:16px;font-weight:700;white-space:nowrap}
.cr-l{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pt{display:flex;flex-direction:column;min-width:0}
.pt .art{border-radius:3px}
.pt-tm{position:absolute;left:6px;top:8px;z-index:2;height:18px;padding:0 5px;display:flex;align-items:center;gap:5px;border-radius:3px;background:rgba(8,8,12,.82);font-size:10.5px;color:var(--ink)}
.pt-tm b{font-size:13px;font-weight:700}
.pt .scrim{height:34%}
.pt-ov{position:absolute;left:0;right:0;bottom:0;padding:0 7px 7px;display:flex;align-items:flex-end;justify-content:space-between;gap:4px;text-shadow:var(--ts)}
.pt-a{font-size:11px;line-height:15px;color:#ecebf2;white-space:nowrap}
.pt-ov .rk{height:18px;padding:0 4px;font-size:15px}
.pt-main{height:26px;padding-top:6px;min-width:0;display:flex;flex-direction:column;gap:1px;text-shadow:var(--ts)}
.pt-t{display:block;font:700 11.5px/16px var(--jp);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pt-a2{display:none}
.day-more{display:none}
.py-others{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.py-o{height:44px;padding:0 18px;display:flex;align-items:center;gap:12px;border-radius:22px;background:#15151c;border:1px solid var(--line2);color:var(--ink);cursor:pointer}
.py-o:hover{background:#1c1c25}
.py-o b{font-size:18px;font-weight:700}
.py-o .mono{font-size:12px;color:var(--dim2)}
.py-o .chev{color:var(--dim2)}
#py-panels .day{margin-top:28px}

/* ================= 页脚（细线通栏） ================= */
.foot{margin-top:auto;padding:0 max(var(--gut),calc((100% - var(--wide)) / 2));min-height:76px;display:flex;align-items:center;border-top:1px solid var(--line);font-size:12px;color:var(--dim3)}
.low{margin-bottom:96px}

/* ================= 重新登录弹窗（深色，和整页一套） ================= */
.lg{padding:0;border:0;border-radius:14px;background:transparent;color:var(--ink);width:min(452px,calc(100vw - 24px));max-height:calc(100vh - 32px);overflow:visible}
.lg::backdrop{background:rgba(6,6,10,.62);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.lg[open]{animation:pop .28s cubic-bezier(.2,.7,.2,1)}
.lg-in{display:block;margin:0;background:var(--card2);border-radius:14px;overflow:auto;max-height:calc(100vh - 32px);box-shadow:0 30px 80px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.1)}
.lg-bar{position:sticky;top:0;z-index:1;height:44px;padding:0 8px 0 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--card2);border-bottom:1px solid var(--line);font-size:12px;color:var(--dim2)}
.lg-x{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:transparent;color:var(--dim2);cursor:pointer}
.lg-x:hover{background:rgba(255,255,255,.08);color:#fff}
.lg-x svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.lg-body{display:flex;flex-direction:column;gap:14px;padding:20px 22px}
.lg-title{margin:0;font:900 22px/1.3 var(--sc)}
.lg-lead{margin:-6px 0 2px;font-size:13px;line-height:1.65;color:var(--dim)}
.fld{display:flex;flex-direction:column;gap:6px}
.fld-k{font:600 11px/1 var(--mono);letter-spacing:.1em;color:var(--dim2)}
.fld input{width:100%;height:42px;padding:0 12px;border:1px solid rgba(255,255,255,.14);border-radius:9px;background:#0e0e14;color:var(--ink);font:500 16px var(--mono);transition:border-color .15s,box-shadow .15s}
.fld input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(246,228,182,.18)}
.fld input:disabled{opacity:.6}
.agree{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border-radius:9px;background:rgba(255,255,255,.05);font-size:13.5px;line-height:1.5;cursor:pointer}
.agree input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--gold);cursor:pointer}
.agree.need{box-shadow:inset 0 0 0 1.5px #ff5f57;background:rgba(255,95,87,.1)}
.agree a{color:var(--gold);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.lg-err{margin:0;padding:9px 12px;border-radius:8px;border-left:3px solid #ff5f57;background:rgba(255,95,87,.12);color:#ff9d94;font-size:13px;line-height:1.55}
.lg-act{display:flex;align-items:center;gap:10px;margin-top:2px}
.lg-meta{flex:1;min-width:0;margin:0;font-size:11px;line-height:1.45;color:var(--dim2)}
.lg-meta.warn{color:var(--floor)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border:0;border-radius:9px;font:600 14px var(--sc);cursor:pointer;white-space:nowrap;flex:none}
.btn.ghost{background:transparent;color:var(--dim);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.btn.ghost:hover{background:rgba(255,255,255,.06)}
.btn.pri{min-width:128px;background:var(--ink);color:var(--bg)}
.btn.pri:hover{background:#fff}
.btn.pri[aria-disabled="true"]{opacity:.42;cursor:not-allowed}
.btn.pri:disabled{opacity:.6;cursor:not-allowed}
.lg-in.busy .btn.pri{opacity:.85;cursor:progress}
.btn .spin{display:none;width:14px;height:14px;border-radius:50%;border:2px solid rgba(12,12,16,.25);border-top-color:var(--bg);animation:spin .8s linear infinite}
.lg-in.busy .btn .spin{display:inline-block}
.lg-note{margin:0;padding-top:12px;border-top:1px solid var(--line);font-size:12px;line-height:1.6;color:var(--dim2)}

/* ================= 提示条 ================= */
.toast{position:fixed;left:50%;bottom:max(22px,env(safe-area-inset-bottom));z-index:60;transform:translateX(-50%);display:flex;align-items:center;gap:12px;
  width:max-content;max-width:min(560px,calc(100vw - 24px));padding:10px 8px 10px 14px;border-radius:12px;border-left:4px solid #5abeff;
  background:rgba(20,20,27,.96);color:var(--ink);font-size:13.5px;line-height:1.5;box-shadow:0 18px 48px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.1);animation:toast-in .32s cubic-bezier(.2,.7,.2,1)}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,14px)}to{opacity:1;transform:translate(-50%,0)}}
.toast-ic{flex:none;width:8px;height:8px;border-radius:50%;background:#5abeff;box-shadow:0 0 0 4px rgba(90,190,255,.16)}
.toast.lv-ok{border-left-color:var(--green)}.lv-ok .toast-ic{background:var(--green);box-shadow:0 0 0 4px rgba(159,227,154,.16)}
.toast.lv-warn{border-left-color:var(--floor)}.lv-warn .toast-ic{background:var(--floor);box-shadow:0 0 0 4px rgba(255,210,122,.16)}
.toast.lv-err{border-left-color:#ff5f57}.lv-err .toast-ic{background:#ff5f57;box-shadow:0 0 0 4px rgba(255,95,87,.16)}
.toast-t{min-width:0;overflow-wrap:anywhere}
.toast-act{flex:none;height:30px;padding:0 13px;border:0;border-radius:8px;background:var(--ink);color:var(--bg);font:600 13px var(--sc);cursor:pointer;white-space:nowrap}
.toast-x{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:var(--dim3);cursor:pointer}
.toast-x:hover{background:rgba(255,255,255,.1);color:#fff}
.toast-x svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}

/* 官方图标：外层 font-size = 图标可见高度；图挂了换成文字小块 */
.ico{display:inline-block;height:1em;overflow:hidden;flex:none;vertical-align:middle;line-height:0}
.ico img{display:block;max-width:none}
.cf{border-radius:50%}
.ico.txt{height:auto;overflow:visible;line-height:1.35;font:800 .56em var(--mono);padding:0 .45em;border-radius:.35em;white-space:nowrap}
.cf-t{color:#fff;border-radius:99px}

/* ================= 手机的格子（maimai.js 在视口 ≤600 时给墙加 .w-ph；照 design/maimai/gen/LayoutSide/wall_phone.part.html）=================
   只改普通格（:not(.no1)）；No.1 封面上的东西本来就按封面宽（cqi）缩放 */
.wall.w-ph .retag{height:14px;padding:0 4px 0 6px;font-size:8px}
.wall.w-ph .retag.c-tr{border-bottom-left-radius:6px}.wall.w-ph .retag.c-tl{border-bottom-right-radius:6px;padding:0 6px 0 4px}
.wall.w-ph .retag .l{display:none}.wall.w-ph .retag .s{display:inline}
.wall.w-ph .tile:not(.no1) .chips{top:6px;gap:3px}.wall.w-ph .tile:not(.no1) .chips.c-tl{left:4px}.wall.w-ph .tile:not(.no1) .chips.c-tr{right:4px}
.wall.w-ph .tile:not(.no1) .chips.below{top:22px}
.wall.w-ph .tile:not(.no1) .ch{height:14px;padding:0 4px;gap:3px}
.wall.w-ph .ch-no,.wall.w-ph .ch-no .flr,.wall.w-ph .tile:not(.no1) .ch-floor{font-size:9px}
.wall.w-ph .tile:not(.no1) .ch-push{height:15px;gap:2px;font-size:11.5px}.wall.w-ph .tile:not(.no1) .ch-push small{font-size:8.5px}
.wall.w-ph .scrim{height:40%}
.wall.w-ph .tile:not(.no1) .meta{padding:0 5px 5px}
.wall.w-ph .tile:not(.no1) .m-rt{font-size:25px;line-height:20px}
.wall.w-ph .tile:not(.no1) .rk{height:14px;padding:0 3px;border-radius:2px;font-size:12.5px}
.wall.w-ph .no1 .scrim{height:42%}
.wall.w-ph .no1 .m-rt{font-size:36cqi}
.wall.w-ph .tile:not(.no1) .np{height:34px;padding-top:5px;gap:1px}
.wall.w-ph .tile:not(.no1) .np-t{font-size:10.5px;line-height:14px}
.wall.w-ph .np-s .m-ach{font-size:9.5px;line-height:13px;color:var(--dim2)}
.wall.w-ph .np-s .m-fc{font-size:12px;gap:1px}
.wall.w-ph .no1 .np{padding-top:7px;gap:8px}
.wall.w-ph .np-no{font-size:24px;line-height:22px}
.wall.w-ph .no1 .np-t{font-size:13px;line-height:17px}
.wall.w-ph .no1 .np-m{gap:4px;font-size:9.5px;line-height:13px}
.wall.w-ph .np-re{height:13px;padding:0 4px;font-size:8.5px}

/* ================= 响应式 ================= */
/* ≤1099：名片放到最上面（不再 sticky），墙整宽；下半段上下叠；顶栏按钮只留图标 */
@media(max-width:1099px){
  :root{--gut:32px}
  /* 只留图标：文字标签做成读屏可见（display:none 会让下载 / 复制按钮没有可读的名字） */
  .mb-btn{position:relative;padding:0 11px}
  .mb-btn span:not(.rf-cd){position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .mb-rf.is-cool{gap:5px}
  .top{flex-direction:column;align-items:stretch;gap:64px}
  .side{position:static;width:auto}
  .low{flex-direction:column;align-items:stretch;gap:64px;padding-top:88px}
  .trend{width:auto}
}
/* 760–1099：名片里分两栏（身份 + Rating + 合计 | 构成 + 分布），推分捷径两列 */
@media(min-width:760px) and (max-width:1099px){
  .pc-in{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 48px;align-items:start}
  .pc-sp{height:64px}
  /* 右栏（构成 + 分布）压在拼贴上：横向再压暗一层，字才读得清 */
  .pc-veil{background:linear-gradient(90deg,rgba(17,17,23,0) 38%,rgba(17,17,23,.74) 52%),linear-gradient(180deg,rgba(17,17,23,.78) 0%,rgba(17,17,23,.3) 12%,rgba(17,17,23,.12) 28%,rgba(17,17,23,.35) 50%,rgba(17,17,23,.86) 74%,#111117 92%)}
  .pu-l{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 24px}
  #pu-rest{margin-top:-12px}
  .tr-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
  .tr-card{grid-row:span 2}
  .tr-wait{flex-direction:row;align-items:center;gap:32px}
  .tr-wait .tw-r{flex:none;flex-direction:column;align-items:flex-end;padding:0 0 0 28px;border-top:0;border-left:1px solid rgba(255,255,255,.1)}
}
/* ≤759：最近游玩一局占整行 */
@media(max-width:759px){
  .credits{grid-template-columns:minmax(0,1fr);gap:18px}
}
/* 601–759：墙只有 537–695px 宽，一行放不下「新曲 · 首数 / 门槛 · 平均」和合计：换成手机那种两行（合计在右上，「合计」二字在右下），巨字照旧 */
@media(min-width:601px) and (max-width:759px){
  .wh{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:3px 12px;padding-left:232px}
  .wh-m,.wh-r{display:contents}
  .wh-t{grid-row:1;grid-column:1;min-width:0}
  .wh-tot{grid-row:1;grid-column:2;justify-self:end}
  .wh-s{grid-row:2;grid-column:1;min-width:0}
  .wh-k{grid-row:2;grid-column:2;justify-self:end;align-self:center}
}
/* ≤600：手机模板 */
@media(max-width:600px){
  :root{--gut:16px}
  body{font-size:15px}
  .mbar{height:60px;gap:4px}
  .mb-home{width:auto;height:44px;margin-left:-6px;border:0;border-radius:10px}
  .mb-home:hover{background:none}
  .mb-hi{display:none}.mb-back{display:block}
  .mb-home .mb-back{width:22px;height:22px}
  .mb-title{margin-left:0}
  .mb-title b{font-size:18px}
  .mb-sub{display:none}
  /* 手机：顶栏只留立即更新、「更多」和语言；下载、复制挪进菜单 */
  #mm-dl,#mm-copy{display:none}
  .mi-sm{display:flex}
  .mb-btn,.mb-more{width:44px;height:44px;padding:0;justify-content:center;border-radius:10px}
  .mb-btn svg{width:18px;height:18px}
  .mb-rf.is-cool{flex-direction:column;gap:1px}
  .mb-rf.is-cool svg{width:14px;height:14px}
  .mb-rf .rf-cd{padding:0;background:none;font-size:9.5px;line-height:1.1}
  .langs{height:46px;padding:0;gap:0;border-radius:10px}.langs button{min-width:40px;height:44px;padding:0 4px;border-radius:9px}
  .menu{position:fixed;left:10px;right:10px;top:64px;min-width:0}
  .banner{flex-wrap:wrap;margin-top:12px}.bn-t{flex:1 1 calc(100% - 40px)}.bn-btn{margin-left:32px}
  .top{padding-top:16px;gap:56px}
  .side{gap:12px}
  .pc-in,.pc-col{gap:36px}
  .pc-sp{height:84px}
  .hist{display:none!important}   /* 手机上不放分布图，墙早一屏出现 */
  .push{padding:20px 18px 16px}
  .walls{gap:48px}
  /* 区标题：巨字压进 No.1 顶部，右边两行（新曲 · 首数 | 合计；门槛 · 平均 | 合计二字） */
  .wall-sec{gap:10px}
  .wh{height:56px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:3px 8px;padding-left:140px}
  .wh-m,.wh-r{display:contents}
  .glyph{left:-4px;bottom:-26px;font-size:94px;line-height:76px;text-shadow:0 0 2px rgba(0,0,0,.6),0 8px 28px rgba(0,0,0,.7)}
  .wh-t{grid-row:1;grid-column:1;gap:6px;min-width:0}
  .wh-zh{font-size:20px;line-height:26px}
  .wh-n{font-size:10.5px}
  .wh-tot{grid-row:1;grid-column:2;justify-self:end;font-size:34px;line-height:28px}
  .wh-s{grid-row:2;grid-column:1;gap:10px;height:18px;font-size:10.5px}
  .wh-s b{font-size:16px}
  .wh-k{grid-row:2;grid-column:2;justify-self:end;align-self:center;font-size:10.5px;letter-spacing:.1em}
  .low{padding-top:72px;gap:56px}
  .blk{gap:14px}
  .blk-h{min-height:40px;gap:4px 12px}
  .blk-h h2{font-size:30px;line-height:38px}
  .blk-h .sub{padding-bottom:6px;font-size:12px}
  .py-day{flex-basis:100%;margin-left:0;padding:6px 0 0;gap:10px}
  .py-day b{font-size:22px}.py-day .mono{font-size:11px}
  .tr-wait{padding:18px;gap:16px}
  .tw-r{padding-top:16px}
  .tw-r b{font-size:56px;line-height:48px}
  /* 最近游玩：照手机模板，局内 4 格小封面；一天先只放两局 */
  .credit{gap:8px}
  .cr-h{height:22px;gap:10px;font-size:11px}.cr-h .n{font-size:10.5px}
  .pc{height:22px;padding:0 8px;border-radius:11px;font-size:15px}
  .cr-l{gap:6px}
  .pt-tm{left:4px;top:6px;height:15px;padding:0 4px}.pt-tm b{font-size:12px}.pt-tm .tm{display:none}
  .pt .scrim{height:30%}
  .pt-ov{padding:0 4px 4px;justify-content:flex-end}.pt-a{display:none}
  .pt-ov .rk{height:15px;padding:0 3px;border-radius:2px;font-size:13px}
  .pt-main{height:34px;padding-top:5px}
  .pt-t{font-size:10.5px;line-height:14px}
  .pt-a2{display:block;font-size:9.5px;line-height:13px;color:var(--dim2)}
  .day:not(.all) .credit:nth-child(n+3){display:none}
  .day-more{display:flex;width:100%;height:44px;margin-top:14px;align-items:center;justify-content:center;gap:8px;border-radius:10px;background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.12);color:#e4e2ec;font:400 13px var(--sc);cursor:pointer}
  .day-h{margin-bottom:12px}.day-h b{font-size:20px}
  .py-others{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}
  .py-o{justify-content:space-between;gap:8px;padding:0 14px}.py-o b{font-size:17px;white-space:nowrap}.py-o .mono{min-width:0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .py-o .chev{display:none}   /* 手机模板的日期按钮不带箭头；展开与否读屏靠 aria-expanded */
  .low{margin-bottom:56px}
  .foot{min-height:0;padding:24px 16px 32px;font-size:11px;line-height:18px}
  .lg-body{padding:18px 16px 16px;gap:12px}
  .lg-act{flex-wrap:wrap}.lg-meta{flex:1 1 100%;order:3}.lg-act .btn{flex:1}
  .toast{left:12px;right:12px;width:auto;max-width:none;transform:none;bottom:max(14px,env(safe-area-inset-bottom));animation-name:toast-up}
}
@keyframes toast-up{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001s!important;animation-delay:0s!important;transition-duration:.001s!important}}
