/* 设计系统 + 多页共用的外壳（变量、重置、按钮、滑块、卡片、纪录面板、结算页） */
:root{
    --bg:#080b12;
    --line:rgba(120,160,220,.16);
    --text:#e8eef7;
    --dim:#8a97ad;
    --accent:#37e0c0;
    --accent2:#7ad1ff;
    --warm:#ffc46b;
    --bad:#ff5a6e;
    --side:320px;
  }
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
    background:var(--bg);color:var(--text);
    font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
    overflow:hidden;-webkit-tap-highlight-color:transparent;
  }
.hidden{display:none !important}
.gcState.off{color:#6b7994;border-color:rgba(120,160,220,.16);background:none}
.dataBtn.ghost{color:#6b7994;background:none;border-color:rgba(120,160,220,.14)}
.dataBtn.ghost:hover{color:var(--bad);background:rgba(255,90,110,.1);border-color:rgba(255,90,110,.4)}
.dataBtn.off{opacity:.4;cursor:default;pointer-events:none}
/* 矮屏（笔记本 1280×720 / 小窗）下把卡片压紧，保证 2×2 一屏装完不滚动 */
  @media (max-height:840px){
.hubTop .brand{font-size:28px}
}
@media (max-height:700px){
.hubTop .brandSub{display:none}
}
/* 窄屏改单列：卡片不再均分屏高，配图得自己给个高度，
     否则 flex 把自由空间全分走、art 归零 —— 卡片变成“只有文字没有图”。 */
  @media (max-width:760px){
.hubTop .brand{font-size:26px}
}
.brand.schulteBrand{background:linear-gradient(100deg,#bfe9ff,#7ad1ff 46%,#37e0c0);-webkit-background-clip:text;background-clip:text;color:transparent}
.tag.schulteTag{color:var(--accent2);border-color:rgba(122,209,255,.35);background:rgba(122,209,255,.07)}
.scCell.pop{animation:bigPop .22s ease}
@keyframes scBad{
    0%{transform:translateX(0);border-color:rgba(255,90,110,.9);background:rgba(255,90,110,.18)}
    30%{transform:translateX(-4px)}60%{transform:translateX(4px)}100%{transform:translateX(0)}
  }
#schulteBlurred.blurred #schulteBoardWrap{filter:blur(6px) brightness(.55);transition:filter .4s ease}
#sBigText.pop{animation:bigPop .6s cubic-bezier(.2,.9,.2,1)}
.scGrid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%}
/* ---------- 菜单 ---------- */
  /* 用 flex 居中而不是 grid+place-items：grid 的行高由内容决定，
     卡片里的 max-height:100% 会变成「对着自己」的无解循环（实测完全无效）；
     flex 容器的 height 来自 inset:0，百分百就是一个确定值。 */
  #menu,#beatMenu{
    position:fixed;inset:0;display:flex;align-items:center;justify-content:center;
    padding:24px;overflow:auto;
    background:
      radial-gradient(1100px 680px at 15% -10%,rgba(55,224,192,.14),transparent 60%),
      radial-gradient(900px 620px at 105% 115%,rgba(255,196,107,.10),transparent 60%),
      #080b12;
  }
.card{
    width:min(880px,100%);
    background:linear-gradient(180deg,rgba(21,29,43,.94),rgba(11,16,25,.94));
    border:1px solid var(--line);border-radius:22px;padding:30px 32px 32px;
    box-shadow:0 40px 90px -40px #000, inset 0 1px 0 rgba(255,255,255,.04);
  }
.brandRow{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.brand{
    font-size:34px;font-weight:800;letter-spacing:.14em;line-height:1;
    background:linear-gradient(100deg,#8affe6,#37e0c0 45%,#7ad1ff);
    -webkit-background-clip:text;background-clip:text;color:transparent;
  }
.brandSub{font-size:13px;color:var(--dim);letter-spacing:.06em;margin-top:9px}
.tag{
    font-size:11px;letter-spacing:.16em;color:var(--accent);
    border:1px solid rgba(55,224,192,.35);border-radius:999px;padding:5px 12px;
    background:rgba(55,224,192,.07);white-space:nowrap
  }
.brand.beatBrand{background:linear-gradient(100deg,#d6ffb8,#5ce07a 46%,#37e0c0);-webkit-background-clip:text;background-clip:text;color:transparent}
.tag.beatTag{color:#5ce07a;border-color:rgba(92,224,122,.35);background:rgba(92,224,122,.07)}
.cardNav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.backBtn{
    font:inherit;font-size:12px;color:#9fb0c8;background:rgba(255,255,255,.04);
    border:1px solid rgba(120,160,220,.22);border-radius:10px;padding:7px 13px;cursor:pointer;
    white-space:nowrap;transition:.15s;
  }
.backBtn:hover{color:#fff;background:rgba(255,255,255,.08);border-color:rgba(55,224,192,.45)}
.cardNavTag{font-size:11px;letter-spacing:.18em;color:#5f6d84;white-space:nowrap}
/* 颜色选择：整行铺满（左边标签、右边取色器+色块），不要在半行里挤
     否则右半列会空着，看着像“少了一个设置” */
  .row.wide{grid-column:1 / -1}
.row.wide .rowHead{margin-bottom:8px}
input[type=color]{
    -webkit-appearance:none;appearance:none;width:56px;height:36px;padding:0;flex:none;
    border:1px solid rgba(120,160,220,.3);border-radius:11px;background:#0b1119;cursor:pointer;
  }
input[type=color]::-webkit-color-swatch-wrapper{padding:4px}
input[type=color]::-webkit-color-swatch{border:0;border-radius:7px}
input[type=color]::-moz-color-swatch{border:0;border-radius:7px}
.sw.on{box-shadow:inset 0 0 0 2px rgba(255,255,255,.24),0 0 14px -2px var(--c)}
/* PULSE 设置卡片：卡片高度封顶，中段（参数+高级）自己滚。
     不这样做的话，高级设置一展开卡片就 991px，1440×900 上「开始」会直接
     掉到折线以下，而且由于外层是 place-items:center，连滚动提示都没有。 */
  /* max-height 用 100% 而不是 calc(100vh - 32px)：卡片是 grid item，
     100% 自动对着「减完 padding 的格子」，不用跟着 16/24px 两档 padding 同步改。 */
  #beatMenu .card{
    display:flex;flex-direction:column;max-height:100%;
  }
#beatMenu .card > *{flex:none}
/* 必须覆盖 #beatMenu .card > *{flex:none}
：包裹层要能被压缩，
     否则它按内容撑开，「挤压成滚动区」这条就完全不会发生。 */
  #beatMenu .card > .midScrollWrap{
    position:relative;display:flex;flex-direction:column;
    flex:0 1 auto;min-height:0;
  }
.adv.open .advCaret{transform:rotate(90deg);color:var(--accent)}
.adv.open .advBody{display:block}
.advBody .settingsGrid{margin-bottom:0}
.seg{display:flex;border:1px solid rgba(120,160,220,.24);border-radius:10px;overflow:hidden}
.seg button{
    font:inherit;font-size:12px;color:#8a97ad;background:rgba(255,255,255,.02);
    border:0;padding:6px 15px;cursor:pointer;transition:.14s;line-height:1.25;
  }
.seg button + button{border-left:1px solid rgba(120,160,220,.24)}
.seg button:hover{background:rgba(255,255,255,.07);color:#dfe9f5}
.seg button.on{
    color:#04211c;font-weight:700;background:linear-gradient(135deg,#7dffe2,#37e0c0 60%,#28c9ad);
  }
.seg.beatStyle button.on{color:#04240f;background:linear-gradient(135deg,#d6ffb8,#5ce07a 60%,#3ac95f)}
/* 行头里的小号分段控件（方块大小：自适应 / 固定） */
  .seg.segTiny{margin-left:auto}
.seg.segTiny button{padding:3px 10px;font-size:10.5px;letter-spacing:.02em}
/* 自适应模式下尺寸滑块只做展示，视觉上也要看得出来不可调 */
  input[type=range]:disabled{cursor:default;opacity:.42}
input[type=range]:disabled::-webkit-slider-runnable-track{
    background:rgba(255,255,255,.06);
  }
#settings,.settingsGrid{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin-bottom:20px}
.row{min-width:0}
.rowHead{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px}
.lbl{font-size:13.5px;color:#c3cfe2}
.val{font-size:13px;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}
input[type=range]{
    -webkit-appearance:none;appearance:none;width:100%;height:22px;background:transparent;cursor:pointer;display:block;
  }
input[type=range]::-webkit-slider-runnable-track{
    height:5px;border-radius:99px;
    background:linear-gradient(90deg,rgba(55,224,192,.85),rgba(122,209,255,.75)) center/100% 100% no-repeat,
      rgba(255,255,255,.08);
  }
input[type=range]::-webkit-slider-thumb{
    -webkit-appearance:none;width:16px;height:16px;border-radius:50%;margin-top:-5.5px;
    background:#0b1119;border:2px solid var(--accent);box-shadow:0 0 12px rgba(55,224,192,.6);
  }
input[type=range]::-moz-range-track{height:5px;border-radius:99px;background:rgba(255,255,255,.1)}
input[type=range]::-moz-range-progress{height:5px;border-radius:99px;background:var(--accent)}
input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#0b1119;border:2px solid var(--accent)}
.toggles{display:flex;gap:22px;flex-wrap:wrap;margin:2px 0 24px;padding-top:16px;border-top:1px dashed rgba(120,160,220,.14)}
.check{display:flex;align-items:center;gap:9px;font-size:13.5px;color:#c3cfe2;cursor:pointer;user-select:none}
.check input{
    appearance:none;-webkit-appearance:none;width:18px;height:18px;border-radius:6px;margin:0;
    border:1.5px solid rgba(120,160,220,.4);background:#0b1119;cursor:pointer;position:relative;transition:.15s;
  }
.check input:checked{background:rgba(55,224,192,.18);border-color:var(--accent);box-shadow:0 0 14px -2px rgba(55,224,192,.6)}
.check input:checked::after{
    content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;
    border:2px solid var(--accent);border-top:0;border-left:0;transform:rotate(42deg);
  }
/* ---------- 历史记录（按设置分组） ---------- */
  .records{
    padding:14px 16px;margin-bottom:20px;border-radius:14px;
    border:1px dashed rgba(120,160,220,.18);background:rgba(255,255,255,.02);
    display:flex;flex-direction:column;gap:12px;
  }
.recHead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.recTitleWrap{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;min-width:0}
.recTitleWrap b{font-size:11px;letter-spacing:.2em;color:#8a97ad;font-weight:600;white-space:nowrap}
.recKey{font-size:11px;color:#65748c;font-variant-numeric:tabular-nums}
.recBtns{display:flex;gap:16px;align-items:center;flex:none}
.recReset{
    font:inherit;font-size:11px;color:#5f6d84;background:none;border:0;padding:0;cursor:pointer;
    white-space:nowrap;line-height:1.3;border-bottom:1px dotted rgba(120,160,220,.35);transition:.15s;
  }
.recReset:hover{color:var(--accent);border-bottom-color:rgba(55,224,192,.6)}
.recReset.danger:hover{color:var(--bad);border-bottom-color:rgba(255,90,110,.6)}
.recReset.off{color:#3a4354;border-bottom-color:transparent;cursor:default;pointer-events:none}
.recGrid{display:flex;flex-wrap:wrap}
.recItem{flex:1;min-width:140px;padding:0 14px;border-left:1px solid rgba(120,160,220,.14)}
.recItem:first-child{padding-left:0;border-left:0}
.recItem span{display:block;font-size:11px;letter-spacing:.1em;color:#6b7994;margin-bottom:6px;white-space:nowrap}
.recItem b{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums;color:#dfe9f5;line-height:1.1}
.recItem b small{font-size:11px;font-weight:600;color:#7b8aa1;margin-left:3px;letter-spacing:.05em}
.recItem i{display:block;font-style:normal;font-size:10.5px;color:#5f6d84;margin-top:4px;line-height:1.4}
.recItem.gold b{color:var(--warm)}
.recItem.blank b{color:#3f4a5c;font-weight:700}
.recList.open{display:flex}
.actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.hintText{font-size:12.5px;color:var(--dim);line-height:1.7}
.btn{
    font:inherit;font-size:16px;font-weight:700;letter-spacing:.02em;
    border-radius:14px;padding:15px 40px;cursor:pointer;border:1px solid transparent;transition:.16s;
  }
.btn.primary{
    color:#04211c;background:linear-gradient(135deg,#7dffe2,#37e0c0 55%,#28c9ad);
    box-shadow:0 16px 40px -18px rgba(55,224,192,.9);
  }
.btn.primary:hover{transform:translateY(-1px);box-shadow:0 20px 46px -16px rgba(55,224,192,1)}
.btn.primary:active{transform:translateY(0) scale(.99)}
.btn.ghost{color:#c3cfe2;background:rgba(255,255,255,.04);border-color:var(--line)}
.btn.ghost:hover{background:rgba(255,255,255,.08);color:#fff}
/* ---------- 游戏 ---------- */
  #game,#beatGame{position:fixed;inset:0}
.hudLabel{font-size:11px;letter-spacing:.2em;color:var(--dim);margin-right:8px}
.hudTime{display:flex;align-items:baseline;min-width:132px}
.hudQuit{
    font:inherit;font-size:12px;color:#9fb0c8;background:rgba(255,255,255,.04);
    border:1px solid rgba(120,160,220,.22);border-radius:10px;padding:7px 13px;cursor:pointer;
    white-space:nowrap;transition:.15s;margin-left:2px;
  }
.hudQuit:hover{color:#fff;background:rgba(255,90,110,.14);border-color:rgba(255,90,110,.5)}
.hudQuit kbd{font:inherit;font-size:10px;opacity:.65;margin-left:5px}
#playArea.blurred #field{filter:blur(6px) brightness(.55)}
#bigOverlay,#bBigOverlay{position:absolute;inset:0;right:var(--side);display:grid;place-items:center;pointer-events:none;z-index:6}
#bigText,#bBigText{
    font-size:clamp(84px,20vw,210px);font-weight:900;letter-spacing:.02em;line-height:1;
    color:#eafffb;text-shadow:0 0 60px rgba(55,224,192,.6),0 0 140px rgba(55,224,192,.28);
  }
#bigText.pop,#bBigText.pop{animation:bigPop .6s cubic-bezier(.2,.9,.2,1)}
@keyframes bigPop{0%{transform:scale(1.9);opacity:0}28%{opacity:1}100%{transform:scale(1);opacity:1}}
#sidebar.expanded{width:100vw;box-shadow:none;background:linear-gradient(180deg,#0c121d,#080c14)}
#sidebar.expanded #liveStats{opacity:0}
#beatSide.expanded{width:100vw;box-shadow:none;background:linear-gradient(180deg,#0c121d,#080c14)}
#beatSide.expanded #bLiveStats{opacity:0}
.sideBrand{font-size:12px;letter-spacing:.3em;color:var(--dim)}
.comboBox{
    border:1px solid var(--line);border-radius:18px;padding:14px 16px 16px;
    background:linear-gradient(180deg,rgba(55,224,192,.07),rgba(55,224,192,.01));
    transition:border-color .2s,box-shadow .2s;
  }
.comboBox.hot{border-color:rgba(55,224,192,.55);box-shadow:0 0 40px -14px rgba(55,224,192,.85)}
.comboLabel{font-size:11px;letter-spacing:.24em;color:var(--dim)}
.comboNum{
    font-size:58px;font-weight:800;line-height:1;margin-top:2px;
    font-variant-numeric:tabular-nums;color:#cfe9e4;text-shadow:0 0 30px rgba(55,224,192,.35);
  }
.comboBox.hot .comboNum{color:var(--accent);text-shadow:0 0 34px rgba(55,224,192,.75)}
.comboNum.pop{animation:pop .3s ease}
@keyframes pop{0%{transform:scale(1.35)}100%{transform:scale(1)}}
.statList{display:flex;flex-direction:column}
.statRow{
    display:flex;align-items:baseline;justify-content:space-between;gap:10px;
    padding:10px 2px;font-size:13.5px;color:var(--dim);
    border-bottom:1px dashed rgba(120,160,220,.10);
  }
.statRow:last-child{border-bottom:0}
.statRow b{font-size:18px;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums}
.sideHint{margin-top:auto;font-size:11.5px;line-height:1.8;color:#5f6d84}
/* ---------- 结算 ---------- */
  #resultPanel,#bResultPanel{
    position:absolute;inset:0;padding:28px 32px;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;
    opacity:0;pointer-events:none;transition:opacity .3s ease .16s;
    overflow-y:auto;overscroll-behavior:contain;
  }
/* 矮屏时让内容从顶部开始排、可以滚，不要把数据栏压成几行 */
  #resultPanel > *,#bResultPanel > *{flex:none}
#sidebar.expanded #resultPanel,#beatSide.expanded #bResultPanel{opacity:1;pointer-events:auto}
.resTop{text-align:center}
.resKicker{font-size:12px;letter-spacing:.5em;color:var(--dim);margin-bottom:14px}
.resScoreRow{display:flex;align-items:baseline;justify-content:center;gap:8px}
#rScore,#bRScore{
    font-size:clamp(56px,9vw,104px);font-weight:900;line-height:1;font-variant-numeric:tabular-nums;
    background:linear-gradient(100deg,#8affe6,#37e0c0 50%,#7ad1ff);
    -webkit-background-clip:text;background-clip:text;color:transparent;
    filter:drop-shadow(0 10px 40px rgba(55,224,192,.35));
  }
.resScoreRow em{font-style:normal;font-size:16px;color:var(--dim);letter-spacing:.2em}
.resMeta{margin-top:14px;font-size:12.5px;color:#6b7994;letter-spacing:.04em}
.resBody{display:flex;flex-direction:column;align-items:center;gap:20px}
.resVisual{display:flex;align-items:center;gap:clamp(20px,3vw,44px);flex-wrap:wrap;justify-content:center}
/* 热区图 / 偏差图 */
  .chartWrap{display:flex;flex-direction:column;align-items:center;gap:8px;flex:none}
.chartCap{font-size:10.5px;letter-spacing:.16em;color:#5f6d84;white-space:nowrap}
.ring{
    position:relative;width:186px;height:186px;border-radius:50%;flex:none;display:grid;place-items:center;
    box-shadow:0 0 60px -18px rgba(55,224,192,.6);
    transition:background .4s;
  }
.ring::before{content:"";position:absolute;inset:14px;border-radius:50%;background:linear-gradient(180deg,#101a28,#0a0f18)}
.ring > div{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:3px}
.ring b{font-size:36px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.ring span{font-size:10.5px;letter-spacing:.24em;color:var(--dim)}
.resGrid{display:grid;grid-template-columns:repeat(4,minmax(104px,1fr));gap:12px}
/* 次要数据：小一号、逐行列出 */
  .resMore{
    width:min(440px,90vw);display:flex;flex-direction:column;
    padding:12px 16px;border-radius:14px;border:1px solid rgba(120,160,220,.12);
    background:rgba(255,255,255,.02);
  }
@media (max-height:780px){
#resultPanel,#bResultPanel{justify-content:flex-start;gap:16px;padding:20px 24px}
#rScore,#bRScore{font-size:clamp(44px,7vw,72px)}
.ring{width:150px;height:150px}
.ring b{font-size:29px}
.resCard{padding:10px 13px}
.resCard b{font-size:19px}
}
.resMoreHead{font-size:10.5px;letter-spacing:.22em;color:#5f6d84;margin-bottom:7px}
.resRow{
    display:flex;align-items:baseline;justify-content:space-between;gap:12px;
    font-size:12px;color:#7b8aa1;padding:4.5px 0;
    border-bottom:1px dashed rgba(120,160,220,.08);
  }
.resRow:last-child{border-bottom:0}
.resRow b{font-size:12.5px;font-weight:600;color:#c3cfe2;font-variant-numeric:tabular-nums;white-space:nowrap}
.resRow em{font-style:normal;font-size:10px;color:#4d5870;margin-left:4px}
.recBadge{
    display:none;margin-top:12px;font-size:11.5px;letter-spacing:.18em;color:#04211c;font-weight:800;
    background:linear-gradient(135deg,#ffe9a8,#ffc46b);padding:5px 14px;border-radius:999px;
    box-shadow:0 10px 30px -14px rgba(255,196,107,.9);
  }
.recBadge.on{display:inline-block;animation:badgeIn .45s cubic-bezier(.2,.9,.2,1)}
@keyframes badgeIn{0%{transform:scale(.6);opacity:0}100%{transform:scale(1);opacity:1}}
.resCard{
    border:1px solid var(--line);border-radius:14px;padding:14px 16px;min-width:106px;
    background:rgba(255,255,255,.025);
  }
.resCard span{display:block;font-size:11.5px;letter-spacing:.12em;color:var(--dim);margin-bottom:7px}
.resCard b{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums}
.resCard.perfect b{color:var(--warm)}
.resCard.good b{color:var(--accent2)}
.resCard.miss b{color:var(--bad)}
.resActions{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.hudBeatCombo{display:flex;align-items:baseline;gap:8px;min-width:88px;justify-content:flex-end}
.hudBeatCombo b{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--warm)}
.hudReadout{display:flex;align-items:baseline;gap:5px;font-variant-numeric:tabular-nums;color:#9fb0c8;font-size:13px;white-space:nowrap}
.hudReadout em{font-style:normal;font-size:10px;color:#5f6d84}
.hudReadout .sep{color:#3a4354;margin:0 3px}
#beatPlayArea.blurred #lane{filter:blur(6px) brightness(.55)}
/* PULSE 结算页比 AIM 多一块「详细数据」，1440×900 就要 917px、1280×720 要 815px。
     矮屏不压的话「再来一次」在半屏以下，得滚才能按到。这里把环形图/分布图/行距
     各收一档，5 行就省回来了。 */
  @media (max-height:820px){
#bResultPanel .ring{width:124px;height:124px}
#bResultPanel .ring b{font-size:24px}
#bResultPanel .resVisual{gap:clamp(16px,2.2vw,30px)}
#bResultPanel .resRow{padding:2.5px 0;font-size:11.5px}
#bResultPanel .resRow b{font-size:12px}
#bResultPanel .resMore{padding:9px 14px}
#bResultPanel .resMoreHead{margin-bottom:4px}
#bResultPanel .resGrid{gap:9px}
#bResultPanel .resActions{gap:10px}
#bResultPanel .actions .btn,#bResultPanel .resActions .btn{padding:11px 28px;font-size:14px}
#bResultPanel .recBadge{margin-top:8px}
#bResultPanel .resKicker{margin-bottom:9px}
#bResultPanel .resMeta{margin-top:9px}
}
/* 矮屏（笔记本 1280×720 常见）：菜单卡片收紧一档。
     实测卡片高：PULSE 751px / AIM 806px，而 720 屏只剩 672px 可用，
     不改就是“开始按钮在折线以下”，不滚到底看不到。 */
  /* 矮屏（笔记本 1280×720 常见）：菜单卡片收紧一档。
     实测卡片高：PULSE 818px / AIM 806px，而 720 屏只剩 672px 可用，
     不改就是“开始按钮在折线以下”，不滚到底看不到。
     PULSE 现在多了高级设置与颜色整行，比 AIM 还高 12px，
     所以这里连容器 padding 也一起收。 */
  @media (max-height:820px){
#menu,#beatMenu,#schulteMenu{padding:16px}
#menu .card,#beatMenu .card,#schulteMenu .card{padding:20px 24px 22px;border-radius:18px}
.cardNav{margin-bottom:12px}
.brandRow{margin-bottom:12px}
.brand{font-size:27px}
.brandSub{font-size:12px;margin-top:7px}
#settings,.settingsGrid{gap:8px 24px;margin-bottom:11px}
.rowHead{margin-bottom:5px}
.toggles{margin:0 0 11px;padding-top:9px}
.records{padding:9px 14px;margin-bottom:11px;gap:6px}
.recItem b{font-size:18px}
.actions .btn{padding:12px 34px;font-size:15px}
.hintText{font-size:12px;line-height:1.55}
}
/* 更矮（1280×640 这类）：再收一档。必须写在 max-height:820 之后 —— 同权重时后写的赢 */
  @media (max-height:700px) and (min-width:761px){
#menu .card,#beatMenu .card,#schulteMenu .card{padding:14px 20px 16px}
.cardNav{margin-bottom:9px}
.backBtn{padding:5px 10px;font-size:11px}
.brandRow{margin-bottom:8px}
.brand{font-size:22px}
.brandSub{font-size:11px;margin-top:5px}
#settings,.settingsGrid{gap:7px 24px;margin-bottom:9px}
.rowHead{margin-bottom:3px}
.lbl{font-size:12.5px}
.val{font-size:12px}
.records{padding:7px 12px;margin-bottom:9px;gap:6px}
.recItem b{font-size:16px}
.recItem i{display:none}
.toggles{margin:0 0 9px;padding-top:8px;gap:16px}
.actions .btn{padding:10px 30px;font-size:14px}
.hintText{font-size:11px;line-height:1.45}
}
@media (max-width:820px){
:root{--side:250px}
#settings,.settingsGrid{grid-template-columns:1fr}
.card{padding:24px 20px 26px;border-radius:18px}
.brand{font-size:27px}
#liveStats,#bLiveStats{padding:18px 14px;gap:12px}
.comboNum{font-size:44px}
.statRow{padding:8px 0;font-size:12.5px}
.statRow b{font-size:16px}
.resGrid{grid-template-columns:repeat(2,minmax(96px,1fr))}
.resMore{width:min(360px,92vw);padding:10px 13px}
.resRow{font-size:11.5px;padding:4px 0}
.resRow b{font-size:12px}
.recGrid{flex-direction:column;gap:10px}
.recItem{min-width:100%;border-left:0;padding:0;display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.recItem span{margin-bottom:0}
.recItem i{display:none}
#resultPanel,#bResultPanel{padding:24px 18px;gap:18px}
}
