/* 传分网站 · 每个游戏一套主题：SDVX = 深色 + 荧光绿 + 切角（机台感）；音击 = 樱花粉 + 圆角卡片。 */
:root {
  --nov: #7a5ad8; --adv: #c9a10f; --exh: #d43c4a; --mxm: #8a8a98; --sp: #c23d9b;
  --bas: #2f9a55; --gadv: #d48a14; --exp: #c8344f; --mas: #8a46c4; --lun: #d8d8e4;
  --l-puc: #f2c230; --l-uc: #f06fc0; --l-mxv: #35c4e8; --l-exc: #f47a4d; --l-comp: #45c46c; --l-play: #9a9fa8;
  --l-abp: #f2c230; --l-ab: #f47a4d; --l-fc: #45c46c; --l-none: #9a9fa8; --l-bell: #e9b400;
  /* SDVX（默认） */
  --bg: #15181d; --card: #1b1f26; --card2: #20252d; --ink: #f2f5f7; --mute: #8c96a3; --line: #2c333d;
  --ok: #4fd39a; --ok-soft: #16302a; --bad: #ff7b7b; --bad-soft: #3a1c1f; --warn: #f0b84a; --warn-soft: #3a2c10;
  --accent: #3bf0a0; --accent-ink: #06140e; --accent-soft: rgba(59, 240, 160, .12); --accent-2: #6fb6ff;
  --radius: 0px; --r-sm: 0px; --shadow: none;
  color-scheme: dark;
}
body[data-game="geki"] {
  --bg: #fff5f9; --card: #ffffff; --card2: #fff0f6; --ink: #2b2140; --mute: #7c6f86; --line: #f3c6d8;
  --ok: #1f9d63; --ok-soft: #e3f6ed; --bad: #d23c3c; --bad-soft: #fde9e9; --warn: #c27a00; --warn-soft: #fff3dc;
  --accent: #e5508f; --accent-ink: #ffffff; --accent-soft: #fde3ee; --accent-2: #f39abf; --lun: #3a3a46;
  --radius: 16px; --r-sm: 10px; --shadow: 0 1px 6px rgba(200, 60, 120, .10);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans JP", sans-serif;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
code { background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
a { color: var(--accent); }

/* ---------- 顶栏 ---------- */
.bar { position: sticky; top: 0; z-index: 6; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
       border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.bar-in { max-width: 820px; margin: 0 auto; padding: 8px 14px; display: flex; align-items: center; gap: 10px; }
.top { padding-bottom: 4px; }
.brand { font-weight: 650; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.games { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.games button { border: 0; background: transparent; padding: 5px 14px; border-radius: 999px; color: var(--mute); cursor: pointer;
                font-weight: 600; font-size: 14px; }
.games button.on { background: var(--accent); color: var(--accent-ink); }
.hero { padding-top: 0; padding-bottom: 2px; font-size: 13px; color: var(--mute); flex-wrap: wrap; gap: 2px 12px; min-height: 0; }
.hero:empty { display: none; }
.hero .big { font-size: 20px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hero .cls { font-weight: 650; font-size: 13px; }
.hero .who { color: var(--ink); font-weight: 600; }
.views { padding-top: 2px; padding-bottom: 0; gap: 4px; }
.views button { border: 0; background: transparent; padding: 8px 10px 9px; color: var(--mute); cursor: pointer; font-size: 14px;
                border-bottom: 2px solid transparent; border-radius: 0; }
.views button.on { color: var(--ink); font-weight: 650; border-bottom-color: var(--accent); }

.wrap { max-width: 820px; margin: 0 auto; padding: 10px 14px max(48px, env(safe-area-inset-bottom)); }
.notice { background: var(--accent-soft); border-radius: var(--radius); padding: 12px 14px; margin: 6px 0 10px; font-size: 14px; }

/* ---------- 按钮 ---------- */
.ghost { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.ghost.sm { padding: 5px 10px; font-size: 13px; border-radius: 9px; }
.ghost:hover { border-color: var(--accent); }
.wide { width: 100%; margin-top: 10px; }
.primary { border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 12px; padding: 11px 18px; font-weight: 650;
           cursor: pointer; }
.primary:disabled { opacity: .45; cursor: default; }
.danger { border: 1px solid var(--bad); color: var(--bad); background: transparent; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.link { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 4px 2px; font-size: 13px; justify-self: start; align-self: end; }
.x { border: 0; background: none; color: var(--mute); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* ---------- 搜索 / 筛选 ---------- */
.search { display: flex; gap: 8px; position: sticky; top: var(--bar-h, 120px); z-index: 4; background: var(--bg); padding: 6px 0; }
.search-box { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; }
.search-box input {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 36px 10px 14px;
  font-size: 16px; outline: none;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box .x { position: absolute; right: 4px; }
.ftog { white-space: nowrap; border-radius: 12px; }
.ftog.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 8px; margin: 4px 0 6px; background: var(--card);
           border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.filters label { display: flex; flex-direction: column; font-size: 12px; color: var(--mute); gap: 2px; min-width: 0; }
.filters select { border: 1px solid var(--line); background: var(--bg); border-radius: 9px; padding: 7px 6px; font-size: 14px; min-width: 0; }
.filters select.set { border-color: var(--accent); color: var(--accent); }
.hint { color: var(--mute); font-size: 13px; margin: 6px 2px; }
.countrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ctog { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; user-select: none;
        background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 6px; }
.ctog input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.ctog small { color: var(--mute); font-size: 11px; }
.ctog:has(input:checked) { border-color: var(--accent); color: var(--accent); }
.tipbar { display: flex; gap: 8px; align-items: center; justify-content: space-between; background: var(--accent-soft);
          border-radius: 12px; padding: 8px 8px 8px 12px; font-size: 13px; margin: 6px 0; }
.tip-act { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }

/* ---------- 曲绘 ---------- */
.jk { flex-shrink: 0; border-radius: 9px; background: linear-gradient(135deg, var(--accent-soft), var(--line)); overflow: hidden;
      position: relative; }
.jk img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s; }
.jk img.ok { opacity: 1; }
.jk.s64 { width: 64px; height: 64px; } .jk.s88 { width: 88px; height: 88px; border-radius: 12px; }
.jk.s40 { width: 40px; height: 40px; border-radius: 7px; } .jk.s34 { width: 34px; height: 34px; border-radius: 6px; }

/* ---------- 歌曲列表 ---------- */
.songs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.song { background: var(--card); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow);
        display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; align-items: start; }
.song .info { min-width: 0; }
.song .t { font-weight: 650; word-break: break-word; line-height: 1.35; }
.song .a { color: var(--mute); font-size: 12px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song .meta { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; font-size: 11px; }
.tag { background: var(--bg); color: var(--mute); border-radius: 6px; padding: 1px 6px; }
.tag.al { background: var(--accent-soft); color: var(--accent); }
.charts { display: flex; flex-wrap: wrap; gap: 5px; grid-column: 1 / -1; }
@media (min-width: 560px) { .charts { grid-column: 2; } .song > .jk { grid-row: span 2; } }
.pill {
  border: 0; border-radius: 9px; padding: 4px 8px 4px; min-width: 62px; text-align: left; cursor: pointer;
  color: #fff; display: flex; flex-direction: column; line-height: 1.2; position: relative;
}
.pill .d { font-size: 10.5px; opacity: .9; letter-spacing: .02em; }
.pill .lv { font-weight: 750; font-size: 15px; }
.pill .sc { font-size: 11px; font-variant-numeric: tabular-nums; opacity: .95; }
.pill.dim { opacity: .3; }
.pill.gone { outline: 2px dashed rgba(255,255,255,.6); outline-offset: -3px; }
.pill .lamp { position: absolute; right: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; }
.d-NOV { --dc: var(--nov); } .d-ADV { --dc: var(--adv); } .d-EXH { --dc: var(--exh); } .d-MXM { --dc: var(--mxm); }
.d-INF, .d-GRV, .d-HVN, .d-VVD, .d-XCD, .d-NBL, .d-ULT { --dc: var(--sp); }
.d-BAS { --dc: var(--bas); } .g .d-ADV { --dc: var(--gadv); } .d-EXP { --dc: var(--exp); } .d-MAS { --dc: var(--mas); }
.d-LUN { --dc: var(--lun); }
.badge, .difftabs button { background: var(--dc); }
.L-PUC { --lc: var(--l-puc); } .L-UC { --lc: var(--l-uc); } .L-MXV { --lc: var(--l-mxv); }
.L-EXC { --lc: var(--l-exc); } .L-COMP { --lc: var(--l-comp); } .L-PLAY { --lc: var(--l-play); }
.L-ABP { --lc: var(--l-abp); } .L-AB { --lc: var(--l-ab); } .L-FC { --lc: var(--l-fc); } .L-NONE { --lc: var(--l-none); }
.L-BELL { --lc: var(--l-bell); }
.lamp, .tile, .legend i { background: var(--lc); }

/* ---------- 录分面板 ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(10, 6, 20, .45); z-index: 20; touch-action: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 21; display: flex; justify-content: center; pointer-events: none; }
.sheet-in {
  width: 100%; max-width: 580px; overflow-y: auto; background: var(--card); pointer-events: auto;
  max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); max-height: calc(var(--vvh, 100dvh) - 56px);
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y;
  border-radius: 20px 20px 0 0; padding: 8px 16px max(18px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0,0,0,.2); animation: up .18s ease-out; transition: transform .16s ease-out;
}
/* 面板开着：后面的页面钉住（top 由脚本填当时滚到的位置），关掉再回到原处 */
html.sheet-open, html.sheet-open body { overflow: hidden; overscroll-behavior: none; }
html.sheet-open body { position: fixed; left: 0; right: 0; width: 100%; }
.sheet-top { position: sticky; top: -8px; z-index: 3; display: flex; align-items: center; justify-content: flex-end; min-height: 40px;
  margin: -8px -16px 4px; padding: 6px 10px 2px 16px; background: inherit; border-radius: inherit; }
.sheet-top .grab { position: absolute; left: 50%; top: 12px; margin: 0 0 0 -20px; }
.sheet-x { appearance: none; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; font-size: 14px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; line-height: 1.2; }
.sheet-x::after { content: " ✕"; }
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 2px auto 10px; }
.sheet-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.sheet-head > div:not(.jk) { min-width: 0; flex: 1; }
.sheet h3 { margin: 0; font-size: 18px; line-height: 1.3; word-break: break-word; }
.sheet .sub { color: var(--mute); font-size: 12.5px; margin-top: 2px; }
.difftabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.difftabs button { border: 0; border-radius: 9px; padding: 6px 10px; color: #fff; cursor: pointer; opacity: .4; font-weight: 600; font-size: 13px; }
.difftabs button.on { opacity: 1; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.field { margin: 10px 0; display: block; }
.field > span { display: block; font-size: 12px; color: var(--mute); margin-bottom: 4px; }
.score-in {
  width: 100%; font-size: 30px; font-weight: 750; letter-spacing: .03em; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--bg); outline: none;
}
.score-in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.small-in { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--bg); font-size: 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 7px 10px; cursor: pointer; font-size: 14px; }
.seg button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.preview { background: var(--bg); border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.preview b { font-size: 18px; }
.up { color: var(--ok); } .down { color: var(--bad); }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; }
.row.tight > * { flex: 0 0 auto; }
.mt { margin-top: 10px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mute); margin: 8px 0; }
.old { font-size: 13px; color: var(--mute); }
.aliases { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.aliases .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.err { color: var(--bad); font-size: 13px; min-height: 1em; }

/* ---------- 面板 / 我的成绩 ---------- */
.panel { background: var(--card); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; box-shadow: var(--shadow); }
.panel h2 { font-size: 15px; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.panel h2 small { color: var(--mute); font-weight: 400; font-size: 12px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.stat { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.stat div:first-child { font-size: 12px; color: var(--mute); }
.stat div + div { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 24px 40px 1fr auto; gap: 8px; align-items: center; padding: 6px 0;
           border-top: 1px solid var(--line); cursor: pointer; }
.rank li:first-child { border-top: 0; }
.rank li:hover .nm div:first-child { color: var(--accent); }
.rank .no { color: var(--mute); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.rank .nm { min-width: 0; }
.rank .nm div:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.rank .nm div + div { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.rank .v { font-weight: 750; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; border-radius: 6px; padding: 0 5px; color: #fff; font-size: 11px; margin-right: 4px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.tile { border-radius: 10px; padding: 6px 8px; font-size: 12px; color: #fff; cursor: pointer; min-height: 44px; border: 0; text-align: left; }
.tile.none { background: var(--bg); color: var(--mute); border: 1px dashed var(--line); }
.tile div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; color: var(--mute); margin: 6px 0 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 3px; vertical-align: -1px; }

/* ---------- 批量录分 ---------- */
.fmt { background: var(--bg); border-radius: 10px; padding: 8px 10px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
       white-space: pre-wrap; word-break: break-word; margin: 8px 0; }
.ways { display: grid; gap: 8px; grid-template-columns: 1fr; margin: 8px 0 10px; }
@media (min-width: 640px) { .ways { grid-template-columns: 1fr 1fr; } }
.way { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.way span { color: var(--mute); }
.way button, .way .filebtn { align-self: flex-start; }
.filebtn { display: inline-block; cursor: pointer; }
.btext { width: 100%; min-height: 180px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg);
         font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, "PingFang SC", monospace; resize: vertical; outline: none; }
.btext:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.brows { list-style: none; margin: 0; padding: 0; }
.brow { display: grid; grid-template-columns: 22px 34px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.brow:first-child { border-top: 0; }
.brow .nm { min-width: 0; }
.brow .nm .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .nm .s { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.brow .nm .e { font-size: 12px; color: var(--bad); }
.brow .nm .w { font-size: 12px; color: var(--warn); }
.brow select { max-width: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; background: var(--bg); font-size: 13px; }
.brow.bad { opacity: .75; }
.brow input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.stt { font-size: 12px; font-weight: 650; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.stt.new { background: var(--ok-soft); color: var(--ok); }
.stt.up { background: var(--ok-soft); color: var(--ok); }
.stt.same { background: var(--bg); color: var(--mute); }
.stt.low { background: var(--warn-soft); color: var(--warn); }
.stt.no { background: var(--bad-soft); color: var(--bad); }
.bfoot { position: sticky; bottom: 0; background: var(--card); padding: 10px 0 max(4px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
         display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bfoot .check { margin: 0; flex: 1; min-width: 180px; }

.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
         background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; max-width: 92vw;
         box-shadow: 0 6px 24px rgba(0,0,0,.2); }

@media (min-width: 640px) {
  .filters { grid-template-columns: repeat(6, 1fr); }
  .song { grid-template-columns: 76px 1fr; padding: 12px; }
  .song .jk.s64 { width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) { .sheet-in { animation: none; } .jk img { transition: none; } }

/* SDVX 机台样式分数：前 4 位大、后 4 位小，前导 0 变暗 */
.sdsc { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: .02em; white-space: nowrap; }
.sdsc .hi { font-size: 1.15em; }
.sdsc .lo { font-size: .8em; margin-left: .18em; }
.sdsc .z { opacity: .32; }
.pill .sdsc.sc { font-size: 11px; }
.sd-wrap { position: relative; }
.sd-mirror {
  position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: flex-end;
  padding: 0 16px; border-radius: 12px;
}
.sd-mirror .sdsc { font-size: 34px; font-weight: 800; }
.sd-mirror .sdsc .hi { font-size: 1em; }
.sd-mirror .sdsc .lo { font-size: .66em; }
.sd-mirror .sdsc.empty { opacity: .45; }
.sd-mirror .caret { width: 2px; height: 30px; margin-left: 4px; background: var(--accent); opacity: 0; }
.sd-wrap:focus-within .sd-mirror .caret { animation: sdblink 1s steps(1) infinite; }
@keyframes sdblink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.score-in.sd { color: transparent; caret-color: transparent; text-align: right; height: 60px; }
.score-in.sd::selection { background: transparent; }

/* 群链接确认码 */
.pend-bg { position: fixed; inset: 0; z-index: 40; background: rgba(10, 6, 20, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.pend { background: var(--card); color: var(--ink); border-radius: 18px; padding: 22px 20px; max-width: 360px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.pend-t { font-weight: 750; font-size: 17px; }
.pend-code { font-size: 52px; font-weight: 800; letter-spacing: .25em; margin: 12px 0 6px; padding-left: .25em; color: var(--accent); font-variant-numeric: tabular-nums; }
.pend-cmd { font-size: 14px; margin-bottom: 10px; }
.pend-cmd b { display: block; font-size: 18px; margin-top: 4px; user-select: all; }
.pend-note { font-size: 12px; color: var(--mute); line-height: 1.5; }
.pend-left { font-size: 13px; color: var(--mute); margin: 12px 0; }
.pend .ghost { border: 1px solid var(--line); background: transparent; color: var(--mute); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.rank .xs, .xs { color: var(--accent-2); font-size: .92em; margin-left: 2px; }

/* ====================================================================
   主题层（v2.3.8）：上面是结构，下面按游戏换皮。
   ==================================================================== */
button, input, select, textarea { border-radius: var(--r-sm); }
.ghost, .ghost.sm, .ftog, .danger, .link, .filters, .filters select, .search-box input, .small-in, .btext, .fmt, .way,
.preview, .stat, .tipbar, .notice, .brow select, .toast, .pend .ghost { border-radius: var(--r-sm); }
.tile { color: #14161a; font-weight: 600; }
.tile.none { font-weight: 400; }

/* ---- 顶栏里的成绩：大数字 + 看板娘 ---- */
.herobox { position: relative; overflow: hidden; padding-top: 2px; padding-bottom: 6px; padding-right: 128px; min-height: 0; align-items: flex-end; }
.herobox:has(.hero:empty) { display: none; }
.hero { padding: 0; margin: 0; max-width: none; display: flex; flex-direction: column; align-items: flex-start; gap: 0; flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero .hl { display: flex; align-items: baseline; gap: 10px; font-size: 12px; }
.hero .lab { letter-spacing: .18em; color: var(--accent); font-size: 11px; }
.hero .hn { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; }
.hero .big { font-size: 34px; line-height: 1.15; }
.hero-girl { position: absolute; right: 2px; top: 0; width: 124px; height: auto; pointer-events: none; user-select: none; }
@media (max-width: 359px) { .hero-girl { display: none; } .herobox { padding-right: 14px; } }

/* v2.4.0：成绩这一块放大，看板娘能看到半身；没传过成绩也是一样大。往下翻页面时收成一小条（body.compact），
   不然顶栏吸在上面要占掉手机三分之一的屏。 */
.herobox { min-height: 150px; padding-top: 6px; padding-bottom: 10px; padding-right: 204px; align-items: center;
  transition: min-height .26s var(--ease, ease), padding .26s var(--ease, ease); }
.hero { gap: 2px; }
.hero .who { font-size: 16px; }
.hero .hl { font-size: 13px; gap: 4px 10px; }
.hero .hn { font-size: 13px; gap: 4px 12px; }
.hero .big { font-size: 48px; line-height: 1.12; transition: font-size .26s var(--ease, ease); }
.hero .hn.none { flex-direction: column; align-items: flex-start; gap: 2px; }
.hero .hn.none .big { font-size: 30px; line-height: 1.3; color: var(--mute); font-weight: 600; }
.hero .hn.none .tip { font-size: 13px; }
.hero-girl { top: auto; bottom: 0; right: 6px; width: 196px; transition: width .26s var(--ease, ease); }
@media (min-width: 720px) {
  .herobox { min-height: 196px; padding-right: 280px; }
  .hero .big { font-size: 60px; }
  .hero-girl { width: 262px; right: 14px; }
}
@media (max-width: 359px) { .herobox { min-height: 110px; padding-right: 14px; } .hero .big { font-size: 40px; } }
body.compact .herobox { min-height: 0; padding-top: 2px; padding-bottom: 6px; padding-right: 100px; }
body.compact .hero .big { font-size: 24px; }
body.compact .hero .who { font-size: 13px; }
body.compact .hero .hl { font-size: 12px; }
body.compact .hero .hn.none .big { font-size: 15px; }
body.compact .hero .hn.none .tip { display: none; }
body.compact .hero-girl { width: 92px; right: 4px; }
@media (max-width: 359px) { body.compact .herobox { padding-right: 14px; } }
.hero-girl.tall { top: 4px; bottom: auto; }
body.compact .hero-girl.tall { top: 0; }
@media (prefers-reduced-motion: reduce) { .herobox, .hero .big, .hero-girl { transition: none; } }

/* ---- 灯按钮：每个灯自己的颜色 ---- */
.seg button.lp { border-color: var(--lc); color: var(--lc); font-weight: 650; transition: background .12s, color .12s, box-shadow .12s; }
.seg button.lp.on { background: var(--lc); border-color: var(--lc); color: #14161a; }
.seg button.lp:disabled { opacity: .5; }
.seg.lamps { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg.lamps button { padding: 10px 4px; }

/* ---- 难度块：小色块 + 等级；传过的那张亮起来 ---- */
.pill { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); min-width: 66px; padding: 5px 9px; }
.pill .d { color: var(--dc); opacity: 1; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.pill .d::before { content: ""; width: 6px; height: 6px; background: var(--dc); flex: none; }
.pill:has(.sc) { border-color: var(--accent); background: var(--accent-soft); }
.pill .sc { color: var(--mute); opacity: 1; }
.pill .lamp { border: 0; width: 8px; height: 8px; right: 6px; top: 7px; }
.pill.gone { outline-color: var(--line); }
.difftabs button { background: transparent; border: 1px solid var(--line); color: var(--mute); opacity: 1; }
.difftabs button::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--dc); margin-right: 5px; vertical-align: 1px; }
.difftabs button.on { background: var(--dc); border-color: var(--dc); color: #fff; box-shadow: none; }
.difftabs button.on::before { background: #fff; }

/* ====================== SDVX：深色、荧光绿、切角 ====================== */
body[data-game="sdvx"] .bar {
  backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--line);
  background:
    linear-gradient(115deg, transparent 62%, rgba(59, 240, 160, .30) 62.2%, transparent 62.6%),
    linear-gradient(65deg, transparent 82%, rgba(59, 240, 160, .18) 82.2%, transparent 82.6%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 24px), #101317;
}
body[data-game="sdvx"] .dot { border-radius: 0; transform: rotate(45deg); box-shadow: 0 0 10px var(--accent); }
body[data-game="sdvx"] .games { border-radius: 0; padding: 0; gap: 0; background: transparent; }
body[data-game="sdvx"] .games button { border-radius: 0; }
body[data-game="sdvx"] .games button.on { background: #1f9d6c; color: #06140e; font-weight: 750; }
body[data-game="sdvx"] .hero .big { font-weight: 800; letter-spacing: -.01em; text-shadow: 0 0 18px rgba(255, 255, 255, .22); }
body[data-game="sdvx"] .hero .cls { border: 1px solid currentColor; padding: 0 8px; transform: skewX(-10deg); font-size: 12px; }
body[data-game="sdvx"] .views button.on { color: var(--accent); }
/* v2.4.1：三个页签和音击一样均分一整行，别挤在左边 */
body[data-game="sdvx"] .views { gap: 0; }
body[data-game="sdvx"] .views button { flex: 1; text-align: center; padding-left: 6px; padding-right: 6px; }
body[data-game="sdvx"] .primary {
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); font-weight: 750; letter-spacing: .2em; padding: 14px 18px;
}
body[data-game="sdvx"] .jk { border-radius: 0; background: #262c35; clip-path: polygon(0 0, 82% 0, 100% 18%, 100% 100%, 0 100%); }
body[data-game="sdvx"] .songs { gap: 0; }
body[data-game="sdvx"] .song { background: transparent; box-shadow: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
body[data-game="sdvx"] .song .t { font-weight: 750; }
body[data-game="sdvx"] .tag { background: transparent; border: 1px solid var(--line); border-radius: 0; }
body[data-game="sdvx"] .tag.al { border-color: var(--accent); background: var(--accent-soft); }
body[data-game="sdvx"] .pill:has(.sc) .sc { color: var(--ink); }
body[data-game="sdvx"] .d-LUN.badge { color: #14161a; }
body[data-game="sdvx"] .sheet-in { border-radius: 0; background: #1a1d23; border-top: 2px solid var(--accent); box-shadow: 0 -12px 40px rgba(0, 0, 0, .55); }
body[data-game="sdvx"] .grab { border-radius: 0; height: 3px; }
body[data-game="sdvx"] .sheet h3 { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
body[data-game="sdvx"] .difftabs button.on { clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-left: 14px; padding-right: 14px; font-weight: 750; }
body[data-game="sdvx"] .sd-wrap { border-bottom: 2px solid var(--accent); box-shadow: 0 8px 14px -10px var(--accent); }
body[data-game="sdvx"] .score-in.sd { border: 0; background: transparent; height: 72px; box-shadow: none; }
body[data-game="sdvx"] .sd-mirror { justify-content: flex-start; padding: 0 2px; }
body[data-game="sdvx"] .sd-mirror .sdsc { font-size: 56px; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 0 22px rgba(255, 255, 255, .28); }
body[data-game="sdvx"] .sd-mirror .sdsc .lo { font-size: .6em; text-shadow: none; color: #c9d0d8; }
body[data-game="sdvx"] .preview { background: transparent; border: 1px solid var(--line); }
body[data-game="sdvx"] .preview b { color: var(--accent); }
body[data-game="sdvx"] .seg button { background: #1b1f26; }
body[data-game="sdvx"] .seg button.lp.on { box-shadow: 0 0 14px -2px var(--lc); }
body[data-game="sdvx"] .panel { border: 1px solid var(--line); }
body[data-game="sdvx"] .stat { border: 1px solid var(--line); background: transparent; }
body[data-game="sdvx"] .notice, body[data-game="sdvx"] .tipbar { border: 1px solid rgba(59, 240, 160, .35); }
body[data-game="sdvx"] .toast { background: var(--accent); color: var(--accent-ink); font-weight: 650; }
body[data-game="sdvx"] .ctog { border-radius: 0; }

/* ====================== 音击：樱花粉、圆角卡片 ====================== */
body[data-game="geki"] { background: linear-gradient(#ffe3ec 0, #fff0f5 220px, var(--bg) 420px) fixed, var(--bg); }
body[data-game="geki"] .bar { background: linear-gradient(#ffd9e6, #ffe6ee); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 6px 14px -12px rgba(200, 60, 120, .5); }
body[data-game="geki"] .games { border: 0; box-shadow: 0 1px 4px rgba(200, 60, 120, .15); }
body[data-game="geki"] .games button.on { background: #f7b6d0; color: var(--ink); }
body[data-game="geki"] .hero .big { font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif; font-weight: 400; }
body[data-game="geki"] .views { padding-bottom: 8px; }
body[data-game="geki"] .views button { border-bottom: 0; border-radius: 10px; flex: 1; padding: 8px 6px; }
body[data-game="geki"] .views button.on { background: #fff; color: var(--accent); box-shadow: 0 1px 5px rgba(200, 60, 120, .14); }
body[data-game="geki"] .search { background: transparent; }
body[data-game="geki"] .search-box input, body[data-game="geki"] .ftog { border-radius: 22px; }
body[data-game="geki"] .search-box input { padding-left: 18px; }
body[data-game="geki"] .primary { background: #2b2140; color: #fff; border-radius: 999px; padding: 14px 18px; letter-spacing: .2em; }
body[data-game="geki"] .jk { border-radius: 12px; background: linear-gradient(135deg, #fde3ee, #f7c9da); }
body[data-game="geki"] .tag { background: #fff0f6; border-radius: 999px; padding: 1px 8px; }
body[data-game="geki"] .sheet-in { border-radius: 26px 26px 0 0; box-shadow: 0 -8px 30px rgba(160, 40, 90, .22); }
body[data-game="geki"] .grab { background: #f3b8cf; }
body[data-game="geki"] .sheet h3 { font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif; font-weight: 500; font-size: 22px; letter-spacing: .02em; }
body[data-game="geki"] .score-in {
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif; font-weight: 400; font-size: 44px;
  border: 0; border-bottom: 4px double var(--accent); border-radius: 0; background: transparent; padding: 2px 0 6px; box-shadow: none;
}
body[data-game="geki"] .score-in::placeholder { color: #e6c3d2; font-size: 26px; }
body[data-game="geki"] .seg button { border-radius: 999px; padding: 8px 16px; background: #fff; }
body[data-game="geki"] .seg.stars button { border-radius: 12px; padding: 8px 10px; min-width: 44px; }
body[data-game="geki"] .seg button.lp.on { color: #2b2140; }
body[data-game="geki"] .seg.lamps { display: flex; }
body[data-game="geki"] .preview { background: #fff0f6; border-radius: 14px; }
body[data-game="geki"] .ctog { background: #fff; }
body[data-game="geki"] .seg button.on:not(.lp) { background: var(--accent); border-color: var(--accent); color: #fff; }
body[data-game="sdvx"] .seg button.on:not(.lp) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hero .hl { flex-wrap: wrap; }

/* ====================================================================
   入口页（v2.3.9）：和绑定网站的开场是一套——白底、藏青双线、看板娘站在千鸟格拱窗里；
   两扇门各用自己游戏的样子。
   ==================================================================== */
.gate { position: fixed; inset: 0; z-index: 26; overflow-y: auto; background: #fbfcfe; color: #1b2a4a; color-scheme: light; }
.gate-in { max-width: 440px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column;
           padding: max(28px, env(safe-area-inset-top)) 28px max(24px, env(safe-area-inset-bottom)); }
.gbar { font-size: 13px; letter-spacing: .08em; color: #56637d; }
.grule { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; transform-origin: left center; }
.grule i { display: block; height: 1.5px; background: #1b2a4a; }
.gstage { position: relative; flex: none; margin: 0 -28px; overflow: hidden; height: clamp(200px, calc(100vh - 470px), 380px); height: clamp(200px, calc(100svh - 470px), 380px);
          border-bottom: 1.5px solid #1b2a4a; }
.garch { position: absolute; right: 22px; bottom: 0; width: 228px; height: 88%; border-radius: 114px 114px 0 0; background-color: #e6effa;
  background-image:
    linear-gradient(-45deg, #e6effa 25%, transparent 25%, transparent 75%, rgba(143, 178, 217, .30) 75%),
    linear-gradient(-45deg, rgba(143, 178, 217, .30) 25%, transparent 25%, transparent 75%, #e6effa 75%),
    linear-gradient(45deg, rgba(143, 178, 217, .30) 17%, transparent 17%, transparent 25%, rgba(143, 178, 217, .30) 25%,
      rgba(143, 178, 217, .30) 36%, transparent 36%, transparent 64%, rgba(143, 178, 217, .30) 64%,
      rgba(143, 178, 217, .30) 75%, transparent 75%, transparent 83%, rgba(143, 178, 217, .30) 83%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px, 8px 8px; }
.ggirl { position: absolute; right: -58px; top: 16px; width: 360px; }
.ghello { position: absolute; left: 28px; top: 30px; margin: 0; font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif;
          font-weight: 300; font-size: 42px; line-height: 1.25; letter-spacing: .04em; text-shadow: 0 0 12px #fbfcfe, 0 0 12px #fbfcfe, 0 0 4px #fbfcfe; }
.gsub { position: absolute; left: 28px; top: 150px; width: 170px; white-space: pre-line; margin: 0; font-size: 14px; line-height: 1.7; color: #56637d; text-shadow: 0 0 8px #fbfcfe, 0 0 8px #fbfcfe; }
.gpick { margin: 20px 0 10px; font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif; font-size: 17px; letter-spacing: .2em; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.door { position: relative; min-height: 128px; padding: 16px 14px 14px; border: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
        overflow: hidden; transition: transform .16s cubic-bezier(.2, .7, .2, 1), box-shadow .16s, filter .16s; -webkit-tap-highlight-color: transparent; }
.door:disabled { cursor: wait; filter: saturate(.6) brightness(.96); }
.door:not(:disabled):hover { transform: translateY(-3px); }
.door:not(:disabled):active { transform: scale(.97); }
.door .dn { font-size: 26px; font-weight: 800; line-height: 1.15; }
.door .ds { font-size: 11px; letter-spacing: .12em; opacity: .8; }
.door .dv { margin-top: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.door.cur::after { content: "上次"; position: absolute; right: 10px; top: 10px; font-size: 11px; padding: 1px 7px; }
.door-sdvx { border-radius: 0; color: #f2f5f7; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  background:
    linear-gradient(115deg, transparent 58%, rgba(59, 240, 160, .45) 58.4%, transparent 59.2%),
    linear-gradient(65deg, transparent 78%, rgba(59, 240, 160, .25) 78.4%, transparent 79.2%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 20px), #101317; }
.door-sdvx .dn { letter-spacing: -.01em; text-shadow: 0 0 16px rgba(255, 255, 255, .3); }
.door-sdvx .ds, .door-sdvx .dv { color: #3bf0a0; }
.door-sdvx.cur::after { background: #3bf0a0; color: #06140e; font-weight: 700; right: 22px; }
.door-geki { border-radius: 20px; color: #2b2140; background: radial-gradient(120% 90% at 100% 0, #fff 0, transparent 55%), linear-gradient(160deg, #ffd3e2, #ffeaf1);
             box-shadow: 0 2px 10px rgba(200, 60, 120, .18); }
.door-geki .dn { font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif; font-weight: 500; letter-spacing: .08em; }
.door-geki .ds, .door-geki .dv { color: #c93d79; }
.door-geki.cur::after { background: #fff; color: #c93d79; border-radius: 999px; }
.gnote { margin: 14px 0 0; font-size: 13px; line-height: 1.7; color: #56637d; min-height: 22px; }
@media (max-height: 700px) { .ghello { font-size: 34px; top: 22px; } .gsub { top: 118px; } .door { min-height: 104px; } }
@media (min-width: 500px) { .gstage { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%); } }

/* ---- 动效：入口演一次；之后只在「人做了动作」时动 ---- */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }
.gate .grule { animation: g-draw .7s var(--ease) both; }
.gate .garch { animation: g-rise .7s var(--ease) .1s both; }
.gate .ggirl { animation: g-rise .8s var(--ease) .2s both; }
.gate .ghello, .gate .gsub { animation: g-fade .6s ease-out .25s both; }
.gate .gpick { animation: g-fade .5s ease-out .4s both; }
.gate .door-sdvx { animation: g-rise .5s var(--ease) .45s both; }
.gate .door-geki { animation: g-rise .5s var(--ease) .55s both; }
.gate.leave { animation: g-leave .36s ease-in both; pointer-events: none; }
body { transition: background-color .35s ease; }
body.entering .bar { animation: g-fade .45s ease-out both; }
.songs.fresh .song { animation: g-rise .42s var(--ease) both; }
.songs.fresh .song:nth-child(2) { animation-delay: .04s; } .songs.fresh .song:nth-child(3) { animation-delay: .08s; }
.songs.fresh .song:nth-child(4) { animation-delay: .12s; } .songs.fresh .song:nth-child(5) { animation-delay: .16s; }
.songs.fresh .song:nth-child(6) { animation-delay: .20s; } .songs.fresh .song:nth-child(n+7) { animation-delay: .24s; }
main > section:not([hidden]) { animation: g-fade .28s ease-out both; }
.hero .big { display: inline-block; animation: g-pop .4s var(--ease) both; }
.hero-girl { animation: g-rise .6s var(--ease) .1s both; }
.sheet-bg { animation: g-fade .2s ease-out both; }
.sheet-in { animation: g-up .3s var(--ease) both; }
.pill { transition: transform .12s, border-color .15s, background .15s; }
.pill:active { transform: scale(.95); }
.pill.just { animation: g-flash 1.3s ease-out both; }
.seg button { transition: transform .12s, background .12s, color .12s, box-shadow .12s, border-color .12s; }
.seg button:active:not(:disabled) { transform: scale(.94); }
.seg button.on { animation: g-pop .26s var(--ease) both; }
.primary, .ghost, .danger, .games button, .views button { transition: transform .12s, filter .15s, background .15s, color .15s, border-color .15s; }
.primary:active:not(:disabled), .ghost:active, .danger:active { transform: scale(.97); }
.primary:hover:not(:disabled) { filter: brightness(1.06); }
.toast { animation: g-toast .3s var(--ease) both; }
.filters:not([hidden]), .tipbar:not([hidden]), .notice:not([hidden]) { animation: g-rise .25s var(--ease) both; }
.pend { animation: g-pop .3s var(--ease) both; }
.brow, .rank li, .tile { animation: g-fade .3s ease-out both; }
@keyframes g-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes g-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes g-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes g-leave { to { opacity: 0; transform: translateY(-12px); } }
@keyframes g-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes g-pop { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes g-flash { 0% { box-shadow: 0 0 0 0 var(--accent); transform: scale(1.08); } 40% { box-shadow: 0 0 0 8px transparent; transform: scale(1); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes g-toast { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- 确认码弹窗：和入口页一套（白底、藏青、宋体），不跟游戏主题走（v2.3.10） ---- */
.pend-bg { background: rgba(27, 42, 74, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: g-fade .2s ease-out both; }
.pend { background: #fbfcfe; color: #1b2a4a; color-scheme: light; border: 1.5px solid #1b2a4a; border-radius: 6px; padding: 22px 22px 18px;
        box-shadow: 0 24px 60px -20px rgba(27, 42, 74, .6); clip-path: none; }
.pend-rule { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.pend-rule i { display: block; height: 1.5px; background: #1b2a4a; }
.pend-t { font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif; font-weight: 500; font-size: 18px; letter-spacing: .12em; }
.pend-code { font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif; font-weight: 300; font-size: 64px; line-height: 1.1;
             letter-spacing: .22em; padding-left: .22em; margin: 14px 0 10px; color: #1b2a4a; text-shadow: none; }
.pend-cmd { color: #56637d; }
.pend-cmd b { color: #1b2a4a; background: #e6effa; border-radius: 4px; padding: 8px 10px; margin-top: 8px; font-weight: 600; letter-spacing: .04em; }
.pend-note, .pend-left { color: #56637d; }
.pend-left { font-variant-numeric: tabular-nums; }
.pend .pend-go { display: block; width: 100%; min-height: 48px; border: 0; border-radius: 6px; background: #1b2a4a; color: #fff; font-size: 16px; font-weight: 500;
                 letter-spacing: .1em; cursor: pointer; margin-bottom: 8px; clip-path: none; transition: transform .12s, opacity .15s; }
.pend .pend-go:active { transform: scale(.97); }
.pend .ghost { width: 100%; min-height: 44px; border: 1px solid #b9c2d3; background: transparent; color: #56637d; border-radius: 6px; clip-path: none; }

/* 确认命令：整条是个按钮，点一下复制（v2.3.11） */
.pend .pend-copy { display: block; width: 100%; margin-top: 8px; padding: 10px 10px 8px; border: 1px solid #8fb2d9; border-radius: 4px; background: #e6effa; color: #1b2a4a;
                   cursor: pointer; clip-path: none; transition: transform .12s, background .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.pend .pend-copy b { display: block; background: transparent; padding: 0; margin: 0; font-size: 18px; font-weight: 600; letter-spacing: .04em; user-select: text; }
.pend-copy-tip { display: block; margin-top: 3px; font-size: 12px; color: #5f86b5; }
.pend .pend-copy:active { transform: scale(.97); }
.pend .pend-copy.done { background: #e7f4ef; border-color: #24705a; animation: g-pop .28s var(--ease) both; }
.pend .pend-copy.done .pend-copy-tip { color: #24705a; font-weight: 600; }

/* ---- 看板娘不同场合不同姿势（v2.3.12）：入口挥手、确认码「嘘」、传好了比耶、没找到在想 ---- */
.pend { position: relative; margin-top: 70px; }
.pend-girl { width: 168px; margin: -132px auto -6px; animation: g-rise .5s var(--ease) .1s both; }
.toast { display: flex; align-items: center; gap: 10px; text-align: left; }
.toast.yay { padding-left: 86px; min-height: 56px; overflow: visible; }
.toast-girl { position: absolute; left: 2px; bottom: 0; width: 84px; animation: g-pop .4s var(--ease) both; transform-origin: bottom center; }
.songs .empty { list-style: none; text-align: center; padding: 18px 12px 26px; background: transparent; box-shadow: none; border: 0; animation: g-rise .35s var(--ease) both; }
/* 没找到歌：鸭子坐那张。图是「头顶多留一截」的高画框（634×1720），人只占下面一块，用外边距把那一块挪进框里 */
.empty-girl { position: relative; width: 170px; margin: 0 auto 6px; overflow: hidden; pointer-events: none; }
.empty-girl::before { content: ""; display: block; padding-bottom: 132.65%; }
.empty-girl img { position: absolute; left: -3.91%; top: -115.13%; display: block; width: 107.82%; max-width: none; }
.empty-t { font-weight: 650; font-size: 16px; }
.empty-s { color: var(--mute); font-size: 13px; margin-top: 4px; }
.toast { width: max-content; max-width: min(92vw, 520px); }
.pend-note.keep { margin-top: 6px; color: #5f86b5; }

/* 看板娘图片取不到（公开版包里没有）时不留空位：/yume.css 的 .no-yume 把人都藏了，这里只管顶栏别给她留位置 */
body.no-hero-girl .herobox { min-height: 96px; padding-right: 14px; }
@media (min-width: 720px) { body.no-hero-girl .herobox { min-height: 120px; padding-right: 14px; } }
body.no-hero-girl.compact .herobox { min-height: 0; }

/* SDVX B50 名片 */
.prof h3 { font-size: 13px; margin: 0 0 6px; color: var(--mute); font-weight: 600; letter-spacing: .04em; }
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .prof-grid { grid-template-columns: 1fr; } }
.radar-wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.radar-box { width: 250px; max-width: 100%; flex: none; margin: 0 auto; }
.radar-svg { width: 100%; height: auto; display: block; overflow: visible; }
.radar-svg .rb { fill: #05070c; }
.radar-svg .rg line { stroke: rgba(226, 226, 232, .8); stroke-width: 1; }
.radar-svg .rf { fill-opacity: .95; stroke: #ff9654; stroke-width: 1.2; stroke-linejoin: round; }
.radar-svg .rl { font-size: 12.5px; font-weight: 800; letter-spacing: .02em; paint-order: stroke; stroke: #0c111c; stroke-width: 3px; stroke-linejoin: round; }
.radar-in { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; flex: 1; min-width: 240px; }
.radar-in label { display: grid; grid-template-columns: 6px 1fr 72px; gap: 7px; align-items: center; font-size: 12px; }
.radar-in label i { width: 6px; height: 18px; border-radius: 3px; }
.radar-in input { width: 100%; padding: 6px 8px; font-size: 15px; }
.nav-pic { aspect-ratio: 968 / 374; border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.nav-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.nav-pic.empty span { color: var(--mute); font-size: 13px; }
.prof .row.tight { flex-wrap: wrap; align-items: center; }
.prof .row.tight .small-in { flex: 1; min-width: 120px; }

/* ================= v3.0.0：和主页一套的看板娘、剪影、判定字 ================= */
.wrap { position: relative; z-index: 1; }
a.gbar { display: block; text-decoration: none; }
/* 顶栏的半身像：从头往下露，露多少看这一栏有多高 */
.hero-girl, .hero-girl.tall { top: 6px; bottom: auto; }
body.compact .hero-girl { top: 0; }
/* 背景只落现在这个游戏的音符；颜色跟这个游戏的主题走 */
body[data-game="sdvx"] .ysky .ynote { color: #3bf0a0; }
body[data-game="sdvx"] .ysky svg { opacity: calc(var(--o) * .55); }
body[data-game="geki"] .ysky .ynote { color: #ec5096; }
body[data-game="geki"] .ysky svg { opacity: calc(var(--o) * .8); }
/* 入口页：点了哪扇门，那个游戏的底色就从门上铺满整屏，铺满以后入口页撤掉、底色再淡出 */
.gate-fill { position: fixed; inset: 0; z-index: 27; pointer-events: none; clip-path: circle(0 at var(--x) var(--y)); animation: gate-fill .46s cubic-bezier(.7, 0, .2, 1) both; }
.gate-fill.sdvx { background: #101317; }
.gate-fill.geki { background: #ffd9e6; }
.gate-fill.out { clip-path: none; animation: gate-fill-out .5s ease-out both; }
@keyframes gate-fill { to { clip-path: circle(150vmax at var(--x) var(--y)); } }
@keyframes gate-fill-out { to { opacity: 0; } }
.door { transition: transform .15s, box-shadow .2s; }
/* 只读模式那条提示：右边一个行礼的半身像 */
.notice { position: relative; overflow: hidden; }
.notice-girl { float: right; width: 78px; margin: -6px -6px -14px 8px; }
.toast .roll { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .gate-fill { display: none; } }

/* 领航员框选（v3.1.2） */
.crop-bg { position: fixed; inset: 0; z-index: 45; background: rgba(10, 6, 20, .62); display: flex; align-items: center; justify-content: center;
  padding: 14px; overscroll-behavior: contain; }
.crop { background: var(--card); color: var(--ink); border-radius: 16px; padding: 16px; width: 100%; max-width: 680px; max-height: 100%; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.crop h3 { margin: 0 0 4px; font-size: 17px; }
.crop .old { margin-bottom: 10px; }
.crop-cv { display: block; margin: 0 auto; border-radius: 8px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.crop-cv:active { cursor: grabbing; }
.crop-z { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; font-size: 13px; color: var(--mute); }
.crop-zoom { flex: 1; accent-color: var(--accent); }
.crop .row.tight { flex-wrap: wrap; gap: 8px; }
body[data-game="sdvx"] .crop { background: #1a1d23; color: #e8f2ee; border: 1px solid var(--accent); border-radius: 4px; }
.face-row { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; }
.face-row .old { margin: 0; }
.nav-face { flex: none; width: 64px; height: 56px; clip-path: polygon(0 50%, 25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%); background: #10302b; }
.nav-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 没框过：照 B50 自动取的那块（领航员图上方居中、边长 = 高的 0.62）摆：64 / 0.62 ≈ 103 高，968 / 374 倍宽 */
.nav-face.auto img { width: 267px; height: 103px; max-width: none; object-fit: fill; margin: -10px 0 0 -101.5px; }
