/* 嘟嘟快跑 · 车站：单一 UI 系统，无历史覆盖层 */
:root{
  --night:#10211e;--night-2:#17312c;--paper:#f3e8cf;--paper-dim:#d8cca9;
  --gold:#f2b552;--gold-bright:#ffd680;--orange:#e68a3f;--leaf:#93ae7e;
  --line:rgba(235,218,174,.22);--line-strong:rgba(242,181,82,.52);--ink:#203c34;
  --font:"HarmonyOS Sans SC","PingFang SC","MiSans","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{width:100%;height:100%;overflow:hidden;background:var(--night);font-family:var(--font);-webkit-user-select:none;user-select:none;touch-action:none;overscroll-behavior:none}
#app{position:fixed;inset:0;width:100%;height:100dvh;overflow:hidden;background:var(--night)}
canvas#game{position:absolute;inset:0;width:100%;height:100%;display:block;filter:saturate(1.08) contrast(1.02)}
#app::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(125% 92% at 50% 45%,transparent 42%,rgba(5,13,11,.38) 100%)}
.hidden{display:none!important} button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.stationArt{stroke:none}
#loading{position:absolute;inset:0;z-index:70;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;background:#fbf3df;color:#7b876e;font-size:13px;font-weight:750;letter-spacing:2px}
#loading .sp{width:36px;height:36px;border:2px solid rgba(242,181,82,.18);border-top-color:var(--gold);border-radius:50%;animation:spin .9s linear infinite}
#loading #loadNum{color:var(--gold)} .loadBar{width:180px;height:3px;border-radius:3px;background:rgba(242,181,82,.14);overflow:hidden}
.loadBar i{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--orange),var(--gold-bright));transition:width .25s}
@keyframes spin{to{transform:rotate(360deg)}}
/* 主菜单 */
#menu{position:absolute;inset:0;z-index:55;display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  padding:clamp(18px,3.2vh,34px) clamp(22px,4.5vw,68px) clamp(16px,2.6vh,28px);color:#304c42;
  background:radial-gradient(72% 62% at 66% 38%,rgba(255,215,142,.52),transparent 76%),radial-gradient(38% 42% at 8% 88%,rgba(222,151,90,.16),transparent 76%),linear-gradient(135deg,#fffaf0 0%,#f8edd7 52%,#f0dfbf 100%);
  overflow:hidden;isolation:isolate;animation:menuIn .6s cubic-bezier(.2,.8,.2,1) both}
#menu.hide{display:none!important} @keyframes menuIn{from{opacity:0}to{opacity:1}}
#menu::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(20% - 1px),rgba(121,99,61,.035) calc(20% - 1px),rgba(121,99,61,.035) 20%)}
.menuGrain{position:absolute;inset:0;z-index:-1;opacity:.16;pointer-events:none;background-image:radial-gradient(rgba(111,87,49,.22) .55px,transparent .7px);background-size:5px 5px;mask-image:linear-gradient(140deg,#000,transparent 78%)}
.menuRing{position:absolute;z-index:-1;border:1px solid rgba(130,105,63,.10);border-radius:50%;pointer-events:none}
.menuRingA{width:min(78vw,880px);aspect-ratio:1;left:50%;top:47%;transform:translate(-50%,-50%);border-color:rgba(130,105,63,.08);box-shadow:0 0 0 54px rgba(130,105,63,.012),inset 0 0 0 54px rgba(130,105,63,.012)}
.menuRingB{width:min(54vw,620px);aspect-ratio:1;left:50%;top:47%;transform:translate(-50%,-50%) rotate(17deg);border-style:dashed;border-color:rgba(187,125,62,.11)}
.menuTop{position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px}
.brand{display:flex;align-items:center;gap:12px}
.brandSeal{position:relative;width:34px;height:34px;border:1px solid rgba(183,113,52,.48);border-radius:50%;display:grid;place-items:center;flex:none}
.brandSeal::before{content:"";width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 32% 28%,#ffe2a0,#e99542 60%,#b75f2e)}
.brandSeal i{position:absolute;right:3px;top:3px;width:8px;height:5px;border-radius:80% 0 80% 0;background:var(--leaf);transform:rotate(-25deg)}
.brandWords{display:flex;flex-direction:column;gap:2px}.brandWords b{font-size:12px;letter-spacing:.32em;font-weight:850;color:#35594b}
.brandWords small{font-size:8px;letter-spacing:.24em;color:rgba(94,108,84,.66);font-weight:700}
.topActions{display:flex;align-items:center;gap:10px}
.wallet{height:40px;display:flex;align-items:center;gap:8px;padding:0 14px;border:1px solid rgba(129,104,62,.22);border-radius:99px;background:rgba(255,253,245,.76);backdrop-filter:blur(8px);box-shadow:0 4px 14px rgba(112,87,47,.08)}
.wallet b{font-size:15px;color:#9a5c2d;font-variant-numeric:tabular-nums;font-weight:850}.wallet em{font-style:normal;font-size:9px;letter-spacing:.12em;color:rgba(100,107,82,.65)}
.fruit{position:relative;width:17px;height:17px;border-radius:50%;background:radial-gradient(circle at 32% 28%,#ffe2a0,#ed9a43 60%,#bc642e);flex:none}
.fruit i{position:absolute;right:0;top:-3px;width:7px;height:4px;border-radius:80% 0;background:#82a76e;transform:rotate(-25deg)}
.roundBtn{width:40px;height:40px;display:grid;place-items:center;border:1px solid rgba(129,104,62,.22);border-radius:50%;background:rgba(255,253,245,.76);color:#62745f;transition:.2s}
.roundBtn svg{width:18px;height:18px}.roundBtn:hover{color:#b66c32;border-color:rgba(183,113,52,.46);transform:rotate(25deg)}
.menuGrid{position:relative;display:grid;grid-template-columns:minmax(270px,.95fr) minmax(390px,1.4fr) minmax(150px,.5fr);align-items:center;gap:clamp(12px,2.5vw,38px);min-height:0}
.menuCopy{align-self:center;max-width:430px;position:relative;z-index:2}
.edition{display:flex;align-items:center;gap:10px;font-size:9px;font-weight:800;letter-spacing:.32em;color:#b16b34;margin-bottom:clamp(14px,3vh,28px)}
.edition span{font-size:11px;letter-spacing:0;padding:4px 7px;border:1px solid rgba(183,113,52,.45);border-radius:2px}.edition i{width:38px;height:1px;background:#c27a3b;opacity:.65}
.title{display:flex;flex-direction:column;font-size:clamp(58px,7.8vw,116px);line-height:.93;letter-spacing:-.09em;font-weight:950;color:#2f5749;text-shadow:0 2px 0 rgba(255,252,238,.9),0 12px 30px rgba(112,87,47,.12)}
.title span{white-space:nowrap}.title span:last-child{color:#d17c3c;margin-left:.12em}.title em{font-style:normal;color:#2f5749;font-size:.55em;margin-left:.02em}
.lede{margin-top:clamp(18px,3.4vh,36px);font-size:clamp(13px,1.35vw,18px);line-height:1.85;letter-spacing:.13em;color:#6f806e;font-weight:600}
.copyRule{width:72px;height:2px;margin:clamp(18px,3vh,32px) 0 14px;background:linear-gradient(90deg,var(--gold),transparent)}
.tinyNote{font-size:10px;letter-spacing:.19em;color:rgba(100,112,87,.70);font-weight:700}
.stage{position:relative;height:100%;min-height:290px;display:grid;place-items:center;isolation:isolate;touch-action:none}
.stageHalo{position:absolute;width:min(110%,720px);aspect-ratio:1;border-radius:50%;left:50%;top:49%;transform:translate(-50%,-50%);z-index:-2;background:radial-gradient(circle at 61% 24%,rgba(255,202,112,.34),rgba(215,164,95,.13) 44%,transparent 76%);filter:blur(3px)}
.orbit{position:absolute;left:50%;top:49%;width:min(84%,470px);aspect-ratio:1;border:1px solid rgba(171,116,59,.13);border-radius:50%;transform:translate(-50%,-50%) rotateX(64deg);z-index:-1}
.orbitA::after{content:"";position:absolute;left:9%;top:9%;width:7px;height:7px;border-radius:50%;background:#e8a24f;box-shadow:0 0 14px rgba(232,162,79,.7)}
.orbitB{width:min(64%,360px);border-style:dashed;border-color:rgba(171,116,59,.11);animation:orbitTurn 30s linear infinite}
@keyframes orbitTurn{to{transform:translate(-50%,-50%) rotateX(64deg) rotateZ(360deg)}}
.stationArt{width:min(108%,780px);height:auto;max-height:min(56vh,520px);display:block;filter:drop-shadow(0 24px 22px rgba(91,68,38,.18)) saturate(1.04)}
.characterStage{position:absolute;left:44%;top:47%;width:clamp(128px,18vw,205px);aspect-ratio:4/5;transform:translate(-50%,-24%);z-index:3;touch-action:none}
.characterStage::before{content:"";position:absolute;left:27%;right:25%;top:83%;height:12%;background:radial-gradient(ellipse,rgba(89,60,35,.34),rgba(112,74,42,.16) 40%,transparent 73%);transform:rotate(8deg);pointer-events:none}
.characterStill,.characterStage canvas#game{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.characterStage canvas#game{filter:none;opacity:0}
.portraitReady canvas#game{opacity:1}
.portraitReady .characterStill{visibility:hidden}
.portraitReady{cursor:grab}
.portraitDragging{cursor:grabbing}
.characterStage:focus-visible{outline:2px solid #ae7438;outline-offset:3px;border-radius:42%}
.portraitHint{position:absolute;top:92%;left:50%;transform:translateX(-50%);padding:3px 8px;border-radius:12px;background:#fff5df;color:#70502e;font-size:10px;font-weight:750;white-space:nowrap;pointer-events:none;visibility:hidden}
.portraitReady .portraitHint{visibility:visible}
.stageCaption{position:absolute;left:50%;bottom:0;transform:translateX(-50%);display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:9px;letter-spacing:.22em;color:rgba(100,112,87,.72);font-weight:750}
.stageCaption b{color:#b16b34;font-weight:800}.stageCaption i{width:24px;height:1px;background:rgba(183,113,52,.4)}
.menuRail{display:flex;flex-direction:column;border-top:1px solid rgba(129,104,62,.20);border-bottom:1px solid rgba(129,104,62,.20)}
.railBtn{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:54px;padding:0 4px;border:0;border-bottom:1px solid rgba(129,104,62,.12);background:transparent;color:#567061;transition:.2s;text-align:left}
.railBtn:last-child{border-bottom:0}.railBtn svg{width:18px;height:18px;flex:none;color:#bb7337;opacity:.9}
.railNum{font-size:9px;letter-spacing:.12em;color:rgba(115,100,71,.48);font-variant-numeric:tabular-nums;width:20px}
.railLabel{font-size:12px;letter-spacing:.14em;font-weight:750;flex:1}.railArrow{font-size:14px;color:#bb7337;opacity:0;transform:translate(-5px,5px);transition:.2s}
.railBtn:hover,.railBtn:active{color:#9a572b;padding-left:8px;background:rgba(214,151,76,.09)}.railBtn:hover .railArrow,.railBtn:active .railArrow{opacity:1;transform:none}
#btnAch.hasDot::after{content:"";position:absolute;top:10px;right:2px;width:7px;height:7px;border-radius:50%;background:#e57648;box-shadow:0 0 9px #e57648}
.menuBottom{position:relative;display:grid;grid-template-columns:minmax(250px,1fr) minmax(260px,410px) minmax(250px,1fr);align-items:end;gap:clamp(14px,3vw,40px);padding-top:clamp(12px,2vh,22px);border-top:1px solid var(--line)}
.menuBottom>.playBtn{grid-column:2;grid-row:1}
.records{display:flex;align-items:flex-end;gap:clamp(14px,2.5vw,34px)}.records>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.records small{font-size:8px;letter-spacing:.16em;color:rgba(100,112,87,.62);white-space:nowrap;font-weight:750}
.records b{font-size:clamp(20px,2vw,27px);line-height:1;color:#35594b;font-variant-numeric:tabular-nums;font-weight:850;letter-spacing:-.02em}
.records b em{font-style:normal;font-size:10px;color:#b16b34;margin-left:4px}.tierCard{padding-left:14px;border-left:1px solid rgba(129,104,62,.18)}
.tierCard b{font-size:15px;color:#a85f2e}.tierCard i{font-style:normal;font-size:9px;color:rgba(100,112,87,.68)}
.playBtn{position:relative;height:clamp(54px,7.2vh,68px);display:flex;align-items:center;justify-content:center;gap:12px;overflow:hidden;
  border:1px solid #e3a14f;border-radius:3px;background:linear-gradient(108deg,#c87635,#efb45c 55%,#c47a39);color:#24190d;font-size:clamp(16px,1.7vw,20px);font-weight:900;letter-spacing:.22em;text-indent:.22em;
  box-shadow:0 8px 0 #8e4c25,0 18px 36px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,241,205,.75);transition:.16s}
.playBtn::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.25),transparent 55%);pointer-events:none}
.playBtn svg{width:20px;height:20px;stroke-width:2.2;opacity:.65}.playGlyph{font-size:11px;letter-spacing:0;opacity:.72}
.playLine{position:absolute;left:0;right:0;bottom:0;height:2px;background:rgba(255,247,220,.7);transform:scaleX(0);transform-origin:left}
.playBtn:hover{filter:brightness(1.07)}.playBtn:hover .playLine{animation:lineSweep 1.2s ease-out}@keyframes lineSweep{to{transform:scaleX(1)}}
.playBtn:active{transform:translateY(4px);box-shadow:0 4px 0 #8e4c25,0 8px 16px rgba(0,0,0,.25)}
.footerNote{display:flex;align-items:center;justify-content:flex-end;gap:14px;font-size:9px;letter-spacing:.14em;color:rgba(100,112,87,.58);font-weight:750;white-space:nowrap;padding-bottom:8px}
.footerNote button{display:flex;align-items:center;gap:5px;border:0;background:none;color:#657a68;font-size:10px;letter-spacing:.1em;padding:0}
.footerNote button svg{width:13px;height:13px}.footerNote button:hover{color:#b16b34}
/* 通用弹窗 */
.ov{position:absolute;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(6,18,16,.70);backdrop-filter:blur(9px) saturate(1.08);animation:fadein .22s ease-out}
.ov.hide{display:none}@keyframes fadein{from{opacity:0}to{opacity:1}}
.pn{position:relative;width:min(92%,380px);max-height:min(88vh,780px);padding:26px 24px 22px;border:1px solid rgba(242,181,82,.28);border-radius:5px;background:linear-gradient(160deg,#f7f0dc,#eadfc3);color:var(--ink);text-align:center;box-shadow:0 26px 70px rgba(0,0,0,.45),inset 0 1px 0 #fff;animation:panelIn .28s cubic-bezier(.2,.8,.2,1.08) both}
@keyframes panelIn{from{opacity:0;transform:translateY(15px) scale(.97)}to{opacity:1;transform:none}}
.pn::before{content:"";position:absolute;left:12px;right:12px;top:7px;height:1px;background:rgba(32,60,52,.12)}
.pn.small{max-width:300px}.setCard,.howCard,.shopCard,.rankCard{width:min(92%,420px);display:flex;flex-direction:column;text-align:center}
.howCard{width:min(92%,390px);text-align:left}.shopCard{width:min(94%,440px)}.rankCard{width:min(92%,400px)}
.panelKicker{font-size:9px;letter-spacing:.28em;font-weight:850;color:#a36b37;margin-bottom:7px}
.panelTitle{font-size:25px;letter-spacing:.12em;font-weight:900;color:#1d4037;margin-bottom:18px;line-height:1.2}
.panelTitle::after{content:"";display:block;width:38px;height:2px;margin:9px auto 0;background:var(--orange)}
.btn{display:block;width:100%;min-height:46px;border:1px solid #b97436;border-radius:3px;background:linear-gradient(180deg,#f1b65f,#dd9142);color:#33200e;font-size:15px;font-weight:850;letter-spacing:.14em;box-shadow:0 4px 0 #a45e2c,0 9px 18px rgba(113,67,29,.16);transition:.12s}
.oBtns .btn{width:auto!important;flex:1 1 0!important;min-width:0!important}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 #a45e2c}.btnGhost,.btn.ghost{background:#e5ebdb;color:#315b4b;border:1px solid #c7d3bf;box-shadow:0 4px 0 rgba(87,112,87,.18)}
.btnGhost:active,.btn.ghost:active{box-shadow:0 1px 0 rgba(87,112,87,.18)}.btnGap{height:9px}.oBtns{display:flex;gap:10px;flex:none}.oBtns .btn{flex:1 1 0;min-width:0;min-height:44px;font-size:14px}
.scrollArea{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-right:3px;margin-bottom:10px}
.scrollArea::-webkit-scrollbar,.howBody::-webkit-scrollbar{width:4px}.scrollArea::-webkit-scrollbar-thumb,.howBody::-webkit-scrollbar-thumb{background:#b9c8b2;border-radius:99px}.pn .btn:last-child{flex:none}
.ico{position:relative;display:inline-block;width:17px;height:17px;border-radius:50%;background:radial-gradient(circle at 34% 30%,#ffe2a0,#eb9942 58%,#bd642d);flex:none}
.ico::before{content:"";position:absolute;right:0;top:-3px;width:7px;height:4px;border-radius:80% 0;background:#79a264;transform:rotate(-25deg)}
/* 货币类图标不再铺橙色：图标自己就是芽芽币/露晶，垫底色只会糊成一片 */
.ico.money{background:linear-gradient(180deg,#FFF8E6,#F2DFB8);border-color:#D8B264}
.coin{background:none!important;border:0!important;box-shadow:none!important;border-radius:0;display:inline-flex;align-items:center;justify-content:center}
.coin svg{width:100%;height:100%;display:block}
.howBody{flex:1;min-height:0;overflow-y:auto;padding-right:4px;text-align:left}
.howSec{margin:14px 0 6px;font-size:10px;font-weight:900;letter-spacing:.18em;color:#a36b37;border-left:2px solid var(--orange);padding-left:8px}.howSec:first-child{margin-top:0}
.howBody p{margin:0 0 7px;font-size:12px;line-height:1.75;color:#566c5c}.howBody b{color:#1d4037;font-weight:900}.howBody p:last-child{margin-bottom:12px}.howCard .btn{min-height:44px;font-size:14px;flex:none}
.setRow3{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.mini,.setBtn,.shopBuy,.achClaim{display:flex;align-items:center;justify-content:center;border:1px solid #cbd6c4;border-radius:4px;background:#e8eddf;color:#345d4d;font-size:11px;font-weight:800;letter-spacing:.05em;min-height:34px;box-shadow:0 2px 0 rgba(87,112,87,.14)}
.mini.setBtn{width:100%}.mini.off,.setBtn.off{opacity:.55}
.shopCoinsRow{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:12px}.shopCoinsRow b{font-size:19px;color:#1d4037;font-variant-numeric:tabular-nums}.shopCoinsRow span{font-size:10px;letter-spacing:.1em;color:#778b78}
.shopTabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px;flex:none}.shopTabs button{height:38px;border:1px solid #cbd6c4;border-radius:4px;background:#e8eddf;color:#567061;font-size:12px;font-weight:800;letter-spacing:.1em}
.shopTabs button.on{background:linear-gradient(180deg,#edb365,#df9344);border-color:#b97436;color:#33200e}
.shopMsg{min-height:16px;margin:2px 0 7px;font-size:11px;color:#b4543c;opacity:0;text-align:center;flex:none}.shopMsg.on{animation:shopMsg .1s forwards,shopFade 1.8s .1s forwards}
@keyframes shopMsg{to{opacity:1}}@keyframes shopFade{0%,80%{opacity:1}100%{opacity:0}}
.shopRow,.dailyRow,.rankBadge,.rankHero,.rankRow,.histRow,.achTier,.stats>div,.hdGrid>div,.setRow,.stat{background:rgba(255,253,242,.78);border:1px solid rgba(83,110,86,.17);border-radius:4px}
.shopRow{display:flex;align-items:center;gap:9px;padding:7px 9px;margin-bottom:6px}.shopRow .sdot{width:12px;height:12px;border-radius:50%;flex:none}
.sinfo{flex:1;min-width:0;text-align:left;line-height:1.25}.sinfo b{display:block;font-size:13px;color:#1d4037;font-weight:900}.sinfo i{display:block;font-style:normal;font-size:10px;color:#748777;margin-top:2px;line-height:1.35}
.shopBuy{width:86px;flex:none;padding:0 4px}.shopRow.maxed{opacity:.55}.smax{font-size:11px;font-weight:800;color:#a36b37;flex:none}.shopGrid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.shopGrid .shopRow{flex-direction:column;align-items:stretch;margin-bottom:0;padding:9px}.shopGrid .shopBuy{width:100%}.shopGrid .shopRow.equipped{border-color:#d79243;background:#fff4dc}
.shopSec{font-size:10px;font-weight:900;letter-spacing:.16em;color:#a36b37;text-align:left;margin:2px 0 6px}.qRow{display:flex;align-items:center;gap:10px;margin-bottom:5px;text-align:left}
.qRow>span{font-size:11px;font-weight:800;color:#3d5b4e;flex:none}.qRow input[type=range],.volCtl input[type=range]{flex:1;height:4px;-webkit-appearance:none;appearance:none;border-radius:99px;background:#cfdacb;outline:none;cursor:pointer}
.qRow input[type=range]::-webkit-slider-thumb,.volCtl input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:15px;height:15px;border-radius:50%;background:linear-gradient(#ffd98d,#dd9142);box-shadow:0 2px 5px rgba(60,50,25,.25)}
.qRow b{width:22px;text-align:right;font-size:12px;color:#8a5b2f}.qHint,.setHint,.setHint2,.reviveSub,.obreak{font-size:10px;line-height:1.55;color:#778b78;text-align:left;margin-bottom:12px}.setHint{text-align:center}
.setRow2{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px}.volCtl{display:grid;grid-template-columns:1fr auto;grid-template-areas:"lab pct" "sld sld";gap:5px;align-items:center;background:rgba(255,253,242,.65);border:1px solid rgba(83,110,86,.13);border-radius:4px;padding:8px}
.volCtl>span{grid-area:lab;font-size:10px;font-weight:800;color:#3d5b4e}.volCtl b{grid-area:pct;font-size:11px;color:#8a5b2f;font-variant-numeric:tabular-nums}.volCtl input[type=range]{grid-area:sld;width:100%}.volRow.off{opacity:.62}
.rankBadge{display:flex;align-items:center;gap:8px;padding:8px 10px;margin-bottom:10px}.rankBadge i{width:11px;height:11px;border-radius:50%;box-shadow:0 0 8px currentColor}.rankBadge b{font-size:13px;color:#1d4037}.rankBadge span{margin-left:auto;font-size:10px;color:#778b78}
.rankHero{display:flex;align-items:center;gap:10px;padding:10px;margin-bottom:9px}.rankMedal{width:44px;height:48px;border-radius:50%;display:grid;place-items:center;border:1.5px solid var(--rc);background:rgba(255,255,255,.55);flex:none}
.rankMedal svg{width:22px;height:22px;color:var(--rc)}.rankInfo{flex:1;min-width:0;text-align:left}.rankInfo b{display:block;font-size:16px;color:var(--rc);letter-spacing:.08em}.rankInfo i{display:block;font-style:normal;font-size:9px;letter-spacing:.16em;color:#849484}.rankInfo em{display:block;font-style:normal;font-size:10px;color:#6e826f;margin-top:3px}
.rankBar{height:5px;border-radius:99px;background:#dde4d7;overflow:hidden}.rankBar span{display:block;height:100%;background:linear-gradient(90deg,var(--rc),#f2c57c);transition:width .3s}
.rankCoin{display:flex;flex-direction:column;align-items:center;padding-left:9px;border-left:1px solid rgba(83,110,86,.15)}.rankCoin b{font-size:15px;color:#aa6b35}.rankCoin span{font-size:8px;color:#8a9786}
.rankBuy{height:42px;margin-bottom:10px;flex:none}.rankRow,.histRow{display:flex;align-items:center;gap:8px;padding:7px 9px;margin-bottom:5px}
.rankRow.cur{border-color:#d79243;background:#fff4dc}.rankRow.done{opacity:.58}.rankDot{width:10px;height:10px;border-radius:50%}.rankRow b,.histMain b{font-size:12px;color:#1d4037}.rankRow i,.histMain span{font-style:normal;font-size:9px;color:#8a9786}.rankNeed{margin-left:auto;font-size:10px;color:#778b78}
.histRow{cursor:pointer}.histRow:active{background:#fff8e8}.histMain{flex:1;text-align:left}.histMain b{font-size:15px}.histMain span{display:block}.histSide{text-align:right}.histSide i{display:block;font-style:normal;font-size:10px;color:#6e826f}.histSide span{font-size:9px;color:#aa6b35}.histEmpty{padding:24px 0;text-align:center;font-size:12px;color:#8a9786}
.hdTop{text-align:center;margin-bottom:12px}.hdTop b{display:block;font-size:40px;color:#1d4037;line-height:1}.hdTop span{font-size:9px;letter-spacing:.16em;color:#8a9786}.hdTop i{display:block;font-style:normal;font-size:10px;color:#8a9786;margin-top:4px}
.hdGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.hdGrid>div{padding:9px;text-align:center}.hdGrid b{display:block;font-size:16px;color:#1d4037}.hdGrid i{display:block;font-style:normal;font-size:9px;color:#8a9786;margin-top:2px}
.dailyRow{display:flex;align-items:center;gap:9px;padding:8px 9px;margin-bottom:6px}.dailyRow .dinfo{flex:0 0 84px;display:flex;flex-direction:column;gap:2px}.dailyRow .dinfo b{font-size:11px;color:#7c512d}.dailyRow .dinfo i{font-style:normal;font-size:9px;color:#8a9786}
.dailyRow .dbar{flex:1;height:5px;background:#dde4d7;border-radius:4px;overflow:hidden}.dailyRow .dbar i{display:block;height:100%;background:linear-gradient(90deg,#edb365,#d88538)}.dailyRow .dclaim{font-size:10px;color:#7c512d;font-weight:800}.dailyRow .dlock{font-size:9px;color:#8a9786;white-space:nowrap}
.taskCycle{margin:0 0 12px;text-align:left}.taskCycleTitle{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 6px;padding:0 2px}.taskCycleTitle b{font-size:12px;font-weight:900;color:#7c512d;letter-spacing:.08em}.taskCycleTitle span{font-size:9px;color:#8a9786;white-space:nowrap}.taskRow{background:rgba(255,250,235,.92)}
.achGroup{margin-bottom:9px;text-align:left}.achName{font-size:12px;font-weight:900;color:#7c512d;letter-spacing:.08em;margin-bottom:5px}.achGrid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.achTier{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 5px;text-align:center}
.achTier.canClaim{border-color:#d79243;background:#fff4dc}.achTier.claimed{opacity:.5}.achRank{display:flex;align-items:center;gap:4px;font-size:9px;font-weight:800;color:#a36b37}.achRank svg{width:11px;height:11px}.achTier b{font-size:12px;color:#1d4037}.achTier i{font-style:normal;font-size:9px;color:#8a9786}.achDone{font-size:10px;color:#8a9786}.achLock{font-size:9px;color:#8a9786}.achClaim{width:100%;margin-top:2px}
.otitle,.over-title,.final-sub{font-size:12px;letter-spacing:.18em;color:#8a9786}.oscore,.final-score{font-size:clamp(52px,13vw,70px);line-height:1;color:#1d4037;font-variant-numeric:tabular-nums;font-weight:900;letter-spacing:-.04em;margin:4px 0}
.osub{font-size:10px;letter-spacing:.22em;color:#8a9786;margin-bottom:12px}.obreak{text-align:center;margin:-4px 0 10px}.orank{margin:-6px 0 12px;font-size:12px;font-weight:800;color:#a36b37}
.badge{display:inline-block;margin-bottom:11px;padding:5px 13px;border-radius:99px;background:linear-gradient(#ffd98d,#e3a14f);color:#3c250e;font-size:11px;font-weight:900;letter-spacing:.08em;animation:bp 1s ease-in-out infinite alternate}.badge.hide{display:none}@keyframes bp{to{transform:scale(1.06)}}
.stats{display:flex;gap:8px;margin:0 0 15px}.stats>div{flex:1;padding:9px 4px;text-align:center}.stats span{display:block;font-size:17px;color:#1d4037;font-weight:900}.stats i{display:block;font-style:normal;font-size:9px;color:#8a9786;margin-top:2px}
.reviveTxt{text-align:center!important;margin:10px 0 4px;font-size:14px;color:#4d6759}.reviveTxt b{color:#a36b37;font-size:20px}.reviveSub{text-align:center!important}
.reviveCause{text-align:center!important;margin:7px 0 0;font-size:14px;font-weight:850;letter-spacing:.02em;color:#c9502f}.best-row{color:#8a9786}.best-row b{color:#a36b37}
.tips{margin-top:15px;padding-top:14px;border-top:1px solid rgba(83,110,86,.16);display:flex;flex-direction:column;gap:8px;font-size:12px;color:#6e826f}.tip{display:flex;align-items:center;justify-content:center;gap:7px}.tip.muted{color:#8a9786}
.key{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;border:1px solid #c7d3bf;border-radius:4px;background:#e8eddf;color:#3d5b4e;font-size:11px}
.sound-hint{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);padding:8px 16px;border-radius:99px;background:rgba(10,28,24,.75);color:#eee4c9;font-size:11px;pointer-events:none;opacity:0;z-index:20}.sound-hint.show{opacity:1}
/* 局内 HUD 与反馈 */
#hud3d{position:absolute;inset:0;pointer-events:none;z-index:30;padding:calc(env(safe-area-inset-top,0px) + 14px) 16px 16px}#hud3d.hide{display:none}
.row3d{display:flex;justify-content:space-between;align-items:flex-start}.hudLeft{display:flex;flex-direction:column;align-items:flex-start}
.big{font-size:clamp(30px,8vw,46px);font-weight:900;line-height:1;color:#fff8e5;text-shadow:0 3px 0 rgba(0,0,0,.3),0 0 20px rgba(242,181,82,.25);font-variant-numeric:tabular-nums}
.small{font-size:13px;font-weight:700;color:rgba(255,248,229,.82);margin-top:5px}.pill{display:flex;align-items:center;gap:7px;height:34px;padding:0 13px 0 10px;border-radius:99px;background:rgba(10,28,24,.62);border:1px solid rgba(242,181,82,.48);color:#ffe4a8;font-weight:800;font-size:15px;backdrop-filter:blur(7px)}
#btnPause{position:absolute;right:16px;top:calc(env(safe-area-inset-top,0px) + 60px);width:40px;height:40px;border-radius:50%;border:1px solid rgba(242,181,82,.38);background:rgba(10,28,24,.62);color:#ffedc9;font-size:15px;line-height:1;pointer-events:auto;z-index:35;backdrop-filter:blur(7px)}
#btnPause:active{transform:scale(.94)}.hudClock{position:absolute;right:16px;top:calc(env(safe-area-inset-top,0px) + 110px);font-size:11px;letter-spacing:.16em;color:rgba(255,236,200,.72);text-shadow:0 2px 6px rgba(0,0,0,.6)}
.comboTag{position:absolute;left:0;top:0;white-space:nowrap;font-size:13px;font-weight:900;letter-spacing:.05em;color:#b8e0ff;text-shadow:0 2px 8px rgba(0,0,0,.65),0 0 14px rgba(110,170,255,.45);transform:translate(0,-50%)}.comboTag.hide{display:none}
.pop3d{position:absolute;z-index:30;transform:translate(-50%,-50%);font:900 22px/1 var(--font);color:#ffe9b8;text-shadow:0 2px 0 rgba(0,0,0,.45),0 0 14px rgba(255,190,90,.85);pointer-events:none;animation:pop3d .9s ease-out forwards}
@keyframes pop3d{0%{opacity:0;transform:translate(-50%,-50%) scale(.6)}22%{opacity:1;transform:translate(-50%,-72%) scale(1.12)}100%{opacity:0;transform:translate(-50%,-165%) scale(.95)}}
.flash3d{position:absolute;inset:0;background:#fff;pointer-events:none;animation:flash3d .32s ease-out forwards;z-index:40}@keyframes flash3d{from{opacity:.78}to{opacity:0}}
#speed{position:absolute;inset:-12%;pointer-events:none;z-index:34;opacity:0;transition:opacity .18s;background:repeating-conic-gradient(from 0deg at 50% 34%,transparent 0deg 8.2deg,rgba(255,255,255,.85) 8.2deg 8.9deg);-webkit-mask-image:radial-gradient(circle at 50% 34%,transparent 42%,#000 78%);mask-image:radial-gradient(circle at 50% 34%,transparent 42%,#000 78%);transform-origin:50% 34%}
#speed.on{opacity:.38;animation:spdZoom .55s linear infinite}@keyframes spdZoom{to{transform:scale(1.22)}}
#stuntFx{position:absolute;z-index:33;pointer-events:none;opacity:0;transform:translate(-50%,-50%);white-space:nowrap;font:800 11px/1.2 var(--font);letter-spacing:.12em;color:rgba(255,238,190,.85);text-shadow:0 1px 5px rgba(0,0,0,.65)}#stuntFx.on{animation:stuntUp .85s ease-out forwards}
@keyframes stuntUp{0%{opacity:0;transform:translate(-50%,-30%) scale(.92)}18%{opacity:.8;transform:translate(-50%,-60%) scale(1)}70%{opacity:.65;transform:translate(-50%,-110%) scale(1)}100%{opacity:0;transform:translate(-50%,-150%) scale(.96)}}
#zoneToast{position:absolute;left:50%;top:24%;z-index:33;pointer-events:none;opacity:0;white-space:nowrap;transform:translate(-50%,-50%) scale(.86);padding:10px 22px;border:1px solid rgba(242,181,82,.48);border-radius:3px;background:rgba(15,35,31,.9);color:#ffe6ad;font-size:15px;font-weight:900;letter-spacing:.2em;box-shadow:0 12px 30px rgba(0,0,0,.38)}#zoneToast.on{animation:zt 2.6s ease-out forwards}
@keyframes zt{0%{opacity:0;transform:translate(-50%,-50%) scale(.8)}12%,76%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-64%) scale(.98)}}
/* 响应式 */
@media(max-width:900px){#menu{padding-left:24px;padding-right:24px}.menuGrid{grid-template-columns:minmax(220px,.85fr) minmax(340px,1.35fr);gap:10px}.stationArt{width:min(116%,760px);max-height:min(52vh,480px)}.menuRail{position:relative;right:auto;top:auto;transform:none;width:100%;grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-self:end;margin:14px 0 4px;padding:0;border:0;background:none;backdrop-filter:none;opacity:1}.railBtn{position:relative;justify-content:center;flex-direction:column;gap:7px;min-height:74px;padding:9px 4px;border:1px solid rgba(152,111,60,.18);border-radius:15px;color:#3f6353;font-weight:800;background:linear-gradient(180deg,rgba(255,253,246,.94),rgba(249,235,209,.90));box-shadow:0 5px 0 rgba(164,122,68,.12),0 9px 18px rgba(117,87,48,.08),inset 0 1px 0 #fff;overflow:hidden}.railBtn:last-child{border-right:1px solid rgba(152,111,60,.18)}.railBtn svg{width:23px;height:23px;color:#b66b32;opacity:1;stroke-width:1.9}.railLabel{font-size:11px;letter-spacing:.06em;color:#365d4d;flex:none}.railNum,.railArrow{display:none}.railBtn:hover,.railBtn:active{color:#9a572b;padding-left:4px;background:linear-gradient(180deg,#fffaf0,#f5dfba);transform:translateY(-2px)}.title{font-size:clamp(48px,8vw,76px)}.menuBottom{grid-template-columns:1fr minmax(250px,370px);gap:14px}.menuBottom>.playBtn{grid-column:2;grid-row:1}.footerNote{display:flex;gap:14px}.footerNote span:nth-child(2){display:none}}
@media(max-width:620px){#menu{grid-template-rows:auto minmax(0,1fr) auto;padding:calc(env(safe-area-inset-top,0px) + 14px) 18px calc(env(safe-area-inset-bottom,0px) + 12px)}.brandWords small{display:none}.brandSeal{width:30px;height:30px}.brandWords b{font-size:10px}.wallet{height:35px;padding:0 10px}.wallet em{display:none}.roundBtn{width:35px;height:35px}.menuGrid{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:0}.menuCopy{position:absolute;top:0;left:0;z-index:3;max-width:none}.edition{margin-bottom:6px;font-size:8px}.edition span{padding:2px 5px}.edition i{width:20px}.title{flex-direction:row;gap:.02em;font-size:clamp(43px,12vw,64px);letter-spacing:-.085em;line-height:1}.lede{display:none}.copyRule,.tinyNote{display:none}.stage{height:100%;min-height:0;padding-top:50px}.stationArt{width:min(116%,440px);max-height:min(45vh,410px)}.characterStage{width:clamp(126px,34vw,154px);top:52%}.stageCaption{bottom:2px}.menuRail{position:relative;top:auto;right:auto;transform:none;width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;border:0;order:3;margin:10px 0 4px}.railBtn{min-height:66px;gap:5px;padding:8px 2px;border-radius:12px}.railBtn svg{width:20px;height:20px}.railLabel{font-size:9px;letter-spacing:0}.railArrow{display:none}.menuBottom{display:block;padding-top:8px}.menuBottom>.playBtn{grid-column:auto}.records{gap:16px;margin-bottom:8px}.records small{font-size:7px}.records b{font-size:18px}.tierCard{padding-left:10px}.tierCard b{font-size:12px}.tierCard i{font-size:8px}.playBtn{height:50px;width:100%;font-size:16px;margin-bottom:8px}.footerNote{display:flex;justify-content:space-between;padding:0;font-size:8px}.footerNote span:first-of-type{display:none}.pn{padding:22px 18px 18px;max-height:88dvh}.panelTitle{font-size:22px;margin-bottom:14px}}
@media(max-height:740px) and (min-width:621px){.title{font-size:clamp(48px,6.5vw,86px)}.lede{margin-top:14px}.edition{margin-bottom:10px}.copyRule{margin:12px 0 9px}.stationArt{max-height:48vh}.menuRail .railBtn{min-height:44px}.playBtn{height:52px}.records b{font-size:20px}.menuBottom{padding-top:10px}}
@media(max-height:700px) and (max-width:620px){.stage{padding-top:36px}.stationArt{max-height:38vh}.characterStage{height:115px;width:90px;top:53%}.stageCaption{display:none}.menuRail .railBtn{min-height:38px}.playBtn{height:46px}.records{margin-bottom:7px}}
@media (orientation:landscape) and (max-height:460px){.pn{padding:16px 20px;max-width:360px}.panelTitle{font-size:18px;margin-bottom:8px}.panelKicker{margin-bottom:3px}.tips{display:none}.btn{min-height:38px}#menu{grid-template-rows:auto minmax(0,1fr) auto;padding:8px 26px}.menuGrid{grid-template-columns:minmax(220px,.7fr) minmax(300px,1fr)}.menuCopy{transform:translateY(-10px)}.title{font-size:42px}.lede,.copyRule,.tinyNote,.stageCaption{display:none}.stage{transform:translateY(-16px)}.stationArt{max-height:33vh}.characterStage{transform:translate(-50%,-31%) scale(.88)}.menuRail{display:flex;position:absolute;right:24px;top:50%;transform:translateY(-50%);width:118px;flex-direction:column;gap:1px;margin:0;padding:0;border:0;background:none;order:0}.menuRail .railBtn{min-height:30px;padding:3px 7px;gap:6px;justify-content:flex-start;flex-direction:row;border:0;border-radius:7px;box-shadow:none;background:rgba(255,250,238,.48)}.menuRail .railBtn svg{width:15px;height:15px}.menuRail .railLabel{font-size:9px}.menuRail .railNum,.menuRail .railArrow{display:none}.records{display:none}.footerNote{display:flex;justify-content:space-between;padding:0;font-size:8px}.footerNote span:nth-child(2){display:none}.playBtn{height:42px}.menuBottom{display:block;padding-top:0}}

.powerIcon{width:28px;height:28px;flex:none;display:grid;place-items:center;border-radius:50%;border:1px solid color-mix(in srgb,var(--pc) 42%,transparent);background:rgba(255,252,240,.12);color:var(--pc);box-shadow:none}
.powerIcon svg{width:20px;height:20px;display:block;stroke:currentColor}
.shopGrid .powerIcon{width:30px;height:30px;background:color-mix(in srgb,var(--pc) 12%,#fffdf5);border-color:color-mix(in srgb,var(--pc) 35%,#e8d7b5)}
#pw{transform-origin:50% 50%;gap:3px;opacity:1;filter:drop-shadow(0 2px 3px rgba(0,0,0,.7));max-width:none}
#pw .pwi{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;direction:ltr}.powerChip{min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:1px;align-items:center}
.powerChip b{font-size:0;min-width:0;padding:0;line-height:0}
.powerChip .chipIcon{display:block}
#pw .pwi{background:none;border:0;box-shadow:none;padding:0;min-height:0}.powerChip svg{width:18px;height:18px;display:block;stroke:var(--c);filter:drop-shadow(0 1px 2px rgba(0,0,0,.8))}
.powerChip span{padding:0;min-width:18px;text-align:center;font-size:10px;font-weight:900;color:#fff9df;font-variant-numeric:tabular-nums;text-shadow:0 2px 3px rgba(0,0,0,.8),0 0 8px rgba(0,0,0,.65)}
.powerChip i{display:none}#pw .pwi::after{content:none}
.pwi.ld{background:none;border:0;box-shadow:none;color:#fff9df;text-shadow:0 2px 4px rgba(0,0,0,.75)}
.headPop{position:absolute;z-index:44;pointer-events:none;transform:translate(-50%,-50%);white-space:nowrap;animation:headPop 1.05s cubic-bezier(.18,.85,.25,1) forwards;font-family:var(--font)}
.headPop span{display:block;padding:0;background:none;border:0;border-radius:0;color:#fff7d0;font-size:16px;font-weight:900;letter-spacing:.1em;box-shadow:none;text-shadow:0 2px 0 rgba(78,39,8,.8),0 3px 10px rgba(0,0,0,.7),0 0 18px rgba(255,195,82,.9)}
.headPop.achievement span{color:#dffadf;text-shadow:0 2px 0 rgba(18,70,41,.8),0 3px 10px rgba(0,0,0,.7),0 0 18px rgba(135,230,150,.8)}
.headPop.record span{font-size:19px;color:#fff1aa;animation:recordPulse .34s ease-in-out infinite alternate}
@keyframes headPop{0%{opacity:0;transform:translate(-50%,-25%) scale(.65)}18%{opacity:1;transform:translate(-50%,-60%) scale(1.12)}32%{transform:translate(-50%,-55%) scale(1)}78%{opacity:1}100%{opacity:0;transform:translate(-50%,-115%) scale(.94)}}
@keyframes recordPulse{to{transform:scale(1.06)}}
#stuntFx{font-size:13px;letter-spacing:.12em;color:#ffe7a0;background:none;border:0;text-shadow:0 2px 0 #6b3614,0 0 12px rgba(255,189,65,.9),0 0 24px rgba(255,120,40,.55)}
#stuntFx.on.mega{animation:stuntMega .9s cubic-bezier(.16,.84,.25,1) forwards}
#stuntFx.on.smash{color:#fff0bd;font-size:16px;font-weight:900;background:none;border:0;text-shadow:0 3px 0 #8b3214,0 0 18px #ff8a32,0 0 34px rgba(255,80,20,.8);animation:stuntSmash .8s cubic-bezier(.12,.9,.2,1) forwards}
@keyframes stuntMega{0%{opacity:0;transform:translate(-50%,-25%) scale(.5) rotate(-5deg)}20%{opacity:1;transform:translate(-50%,-70%) scale(1.35) rotate(2deg)}42%{transform:translate(-50%,-85%) scale(1) rotate(0)}100%{opacity:0;transform:translate(-50%,-155%) scale(.9)}}
@keyframes stuntSmash{0%{opacity:0;transform:translate(-50%,-25%) scale(.35)}16%{opacity:1;transform:translate(-50%,-62%) scale(1.65) rotate(-4deg)}34%{transform:translate(-50%,-75%) scale(1.05) rotate(2deg)}100%{opacity:0;transform:translate(-50%,-160%) scale(.85)}}

#pw{left:0!important;top:0!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;width:auto!important;height:auto!important;margin:0!important;opacity:1!important}
#pw.hide{display:none!important}
#pw .pwi{display:flex!important;flex-direction:column!important;position:static!important;left:auto!important;top:auto!important;transform:none!important;white-space:nowrap}
#pw .powerChip b{padding:0!important}

#pw{position:fixed!important;left:0!important;top:0!important;right:auto!important;bottom:auto!important;width:max-content!important;height:auto!important;transform-origin:50% 50%!important;overflow:visible!important;will-change:transform}

#btnTasks.hasDot::after{content:"";position:absolute;top:10px;right:2px;width:7px;height:7px;border-radius:50%;background:#e57648;box-shadow:0 0 9px #e57648}
@media(max-width:900px){#btnTasks.hasDot::after{top:8px;right:calc(50% - 17px)}}

/* ===== 大厅式菜单布局（r149）：角色当主角，主按钮居中，入口降级 ===== */
.menuCopy{display:none!important}
.menuGrid{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:minmax(0,1fr) auto auto!important;
  justify-items:center;align-content:center;gap:0;
}
.stage{grid-column:1/-1;width:100%;max-width:680px;height:100%;min-height:0}
.stationArt{width:min(104%,640px)!important;max-height:min(56vh,500px)!important}
.characterStage{left:50%!important;top:50%!important;width:clamp(190px,26vw,286px)!important;transform:translate(-50%,-46%)!important}
.stageCaption{bottom:-2px}

.menuRail{
  grid-column:1/-1;
  display:flex!important;flex-direction:row!important;
  justify-content:center;align-items:center;
  gap:clamp(10px,1.8vw,18px);
  border:0!important;margin:10px 0 4px;padding:0;width:auto!important;
  position:relative!important;top:auto!important;right:auto!important;transform:none!important;
  background:none!important;backdrop-filter:none!important;
}
.railBtn{
  width:clamp(52px,6.6vh,62px);height:clamp(52px,6.6vh,62px);
  min-height:0!important;padding:0!important;
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;border-radius:50%!important;
  border:1px solid rgba(152,111,60,.18)!important;
  background:linear-gradient(180deg,rgba(255,253,246,.96),rgba(249,235,209,.92))!important;
  box-shadow:0 4px 0 rgba(164,122,68,.10),0 8px 16px rgba(117,87,48,.07),inset 0 1px 0 #fff!important;
  transition:transform .18s ease,box-shadow .18s ease;
}
.railBtn svg{width:20px!important;height:20px!important;color:#b66b32;opacity:1}
.railLabel{font-size:9px!important;letter-spacing:0!important;color:#3f6353!important;font-weight:800}
.railNum,.railArrow{display:none!important}
.railBtn:hover,.railBtn:active{transform:translateY(-2px)!important;padding:0!important;background:linear-gradient(180deg,#fffaf0,#f5dfba)!important}

.menuGrid>.playBtn{
  grid-column:1/-1;width:min(100%,430px);margin:4px auto 6px;
  height:clamp(54px,6.8vh,66px);border-radius:999px!important;
  font-size:clamp(16px,1.5vw,19px);
}
.menuBottom{
  display:flex!important;align-items:center;justify-content:space-between;
  gap:16px;padding-top:clamp(8px,1.4vh,14px)!important;
}
.records{gap:clamp(14px,2.4vw,30px)!important}

@media(max-width:900px){
  .stationArt{width:min(108%,560px)!important;max-height:min(50vh,440px)!important}
  .characterStage{width:clamp(170px,32vw,240px)!important}
  .menuGrid>.playBtn{width:min(100%,400px)}
}
@media(max-width:620px){
  .stage{padding-top:0!important;min-height:34vh}
  .stationArt{width:min(112%,430px)!important;max-height:min(40vh,340px)!important}
  .characterStage{width:clamp(150px,44vw,204px)!important;top:52%!important;transform:translate(-50%,-48%)!important}
  .stageCaption{display:none}
  .menuRail{gap:8px;margin:8px 0 2px}
  .railBtn{width:clamp(44px,13vw,54px);height:clamp(44px,13vw,54px)}
  .railBtn svg{width:17px!important;height:17px!important}
  .railLabel{font-size:8px!important}
  .menuGrid>.playBtn{width:100%!important;height:clamp(48px,7.2vh,56px);margin:2px 0 8px}
  .menuBottom{display:flex!important;align-items:center;justify-content:space-between;padding-top:6px!important}
  .records{margin-bottom:0!important;gap:14px!important}
}
@media(max-height:700px) and (max-width:620px){
  .stage{min-height:30vh}
  .stationArt{max-height:min(34vh,280px)!important}
  .characterStage{width:clamp(126px,38vw,168px)!important}
  .railBtn{width:clamp(40px,11.5vw,48px);height:clamp(40px,11.5vw,48px)}
}
@media (orientation:landscape) and (max-height:460px){
  .menuCopy{display:block!important}
  .menuGrid{display:grid!important;grid-template-columns:minmax(200px,.7fr) minmax(300px,1fr)!important}
  .stage{grid-column:2;max-width:none}
  .menuRail{grid-column:1/-1;flex-direction:row!important;margin:2px 0 0}
  .railBtn{width:38px!important;height:38px!important}
  .railLabel{font-size:8px!important}
  .menuGrid>.playBtn{grid-column:1/-1;width:min(100%,340px);height:42px}
  .stationArt{max-height:33vh!important}
}
/* 顺序修正：角色 → 主按钮 → 入口，caption 让位 */
.stageCaption{display:none!important}
.menuGrid{grid-template-rows:minmax(0,1fr) auto auto!important}
.menuGrid>.playBtn{margin:2px auto 12px!important}
.menuRail{margin:0 0 6px!important}
/* 间距收敛：舞台按视口比例定高，按钮与入口之间留出呼吸 */
.menuGrid{align-content:center!important;row-gap:0}
.stage{height:min(50vh,460px)!important;min-height:220px!important}
.menuGrid>.playBtn{margin:6px auto 20px!important}
.menuRail{margin:0 0 10px!important}

@media(max-width:620px){
  .stage{height:min(46vh,380px)!important;min-height:200px!important}
  .menuGrid>.playBtn{margin:2px 0 16px!important}
  .menuRail{margin:0 0 10px!important}
}
@media(max-height:700px) and (max-width:620px){
  .stage{height:min(41vh,300px)!important}
  .menuGrid>.playBtn{margin:0 0 12px!important}
  .menuRail{margin:0 0 8px!important}
}
/* 行高改为内容自适应，否则 1fr 那一行会撑出空白 */
.menuGrid{grid-template-rows:auto auto auto!important;align-content:center!important;justify-content:center!important}
@media(max-width:620px){
  .stage{height:min(50vh,430px)!important}
  .characterStage{width:clamp(180px,50vw,224px)!important}
  .stationArt{max-height:min(42vh,360px)!important}
}
@media(max-width:620px){
  .stage{height:min(45vh,390px)!important}
  .menuGrid>.playBtn{margin:0 0 14px!important}
}
/* 入口按钮：圆形只包图标，文字落在圆下方，不要再溢出 */
.railBtn{
  width:auto!important;height:auto!important;min-height:0!important;
  padding:0!important;border:0!important;background:none!important;box-shadow:none!important;
  display:flex!important;flex-direction:column!important;align-items:center;justify-content:flex-start;
  gap:5px;overflow:visible!important;border-radius:0!important;
}
.railBtn svg{
  width:clamp(42px,5.4vh,52px)!important;height:clamp(42px,5.4vh,52px)!important;
  padding:11px;box-sizing:border-box;border-radius:50%;
  background:linear-gradient(180deg,rgba(255,253,246,.97),rgba(249,235,209,.93));
  border:1px solid rgba(152,111,60,.18);
  box-shadow:0 4px 0 rgba(164,122,68,.10),0 8px 16px rgba(117,87,48,.07),inset 0 1px 0 #fff;
  transition:transform .18s ease,box-shadow .18s ease;
}
.railBtn .railLabel{
  font-size:10px!important;line-height:1!important;letter-spacing:.02em!important;
  color:#3f6353!important;font-weight:800!important;
  text-shadow:0 1px 0 rgba(255,253,246,.9);
}
.railBtn:hover,.railBtn:active{transform:none!important;padding:0!important;background:none!important}
.railBtn:hover svg,.railBtn:active svg{transform:translateY(-2px);box-shadow:0 6px 0 rgba(164,122,68,.12),0 10px 18px rgba(117,87,48,.10),inset 0 1px 0 #fff}
.menuRail{gap:clamp(12px,1.6vw,20px)!important;align-items:flex-start!important}

@media(max-width:620px){
  .railBtn svg{width:clamp(44px,13vw,52px)!important;height:clamp(44px,13vw,52px)!important;padding:11px}
  .railBtn .railLabel{font-size:9.5px!important}
  .menuRail{gap:10px!important}
}
.railBtn .railLabel{text-shadow:none!important;color:#4a6a58!important}

/* ===== B 卡通街机视觉语言（r157）：粗描边 + 纯色块 + 实体按键 ===== */
#menu{
  --ink:#3A2A18;
  --ink-soft:#6B5335;
  --pop:#E8722C;
  --pop-deep:#B44E14;
  --paper:#FFFDF5;
  color:var(--ink)!important;
}
#menu .brandWords b{color:var(--ink)!important;font-weight:900!important;letter-spacing:.08em}
#menu .brandWords small{color:var(--ink-soft)!important}

.wallet,.roundBtn{
  border:2px solid var(--ink)!important;
  background:var(--paper)!important;
  box-shadow:0 3px 0 var(--ink)!important;
  color:var(--ink)!important;
  border-radius:14px!important;
}
.wallet b{color:var(--pop-deep)!important;font-weight:900!important}
.wallet em{color:var(--ink-soft)!important}

.menuGrid>.playBtn{
  background:var(--pop)!important;
  border:2.5px solid var(--ink)!important;
  border-radius:18px!important;
  box-shadow:0 6px 0 var(--ink)!important;
  color:#fff!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
  text-indent:.06em!important;
  text-shadow:0 2px 0 rgba(58,42,24,.35);
  transition:transform .1s ease,box-shadow .1s ease;
}
.menuGrid>.playBtn::before{display:none!important}
.menuGrid>.playBtn svg{opacity:.9!important;stroke-width:2.6!important}
.menuGrid>.playBtn:active{transform:translateY(5px)!important;box-shadow:0 1px 0 var(--ink)!important}
.menuGrid>.playBtn .playLine{display:none!important}

.railBtn svg{
  border:2px solid var(--ink)!important;
  box-shadow:0 3px 0 var(--ink)!important;
  background:var(--paper)!important;
  padding:10px!important;
}
.railBtn .railLabel{color:var(--ink)!important;font-weight:900!important}
.railBtn:active svg{transform:translateY(3px);box-shadow:0 0 0 var(--ink)!important}

.records small{color:var(--ink-soft)!important;font-weight:800!important;letter-spacing:.04em!important}
.records b{color:var(--ink)!important;font-weight:900!important}
.records b em{color:var(--pop-deep)!important}
.tierCard{border-left-color:rgba(58,42,24,.25)!important}
.footerNote,.footerNote button{color:var(--ink-soft)!important;font-weight:800!important}
/* 数据区加重 + 入口图标放大 + 按钮补内高光 */
.records b{font-size:clamp(26px,2.7vw,34px)!important;line-height:1!important}
.records small{font-size:9px!important;letter-spacing:.02em!important}
.records b em{font-size:11px!important;margin-left:3px!important}
.tierCard b{font-size:clamp(18px,1.8vw,22px)!important}
.tierCard i{font-size:9px!important;font-weight:800!important;color:var(--pop-deep)!important}
.railBtn svg{padding:8px!important}
.menuGrid>.playBtn{box-shadow:0 6px 0 var(--ink),inset 0 2px 0 rgba(255,255,255,.30)!important}
.menuGrid>.playBtn:active{box-shadow:0 1px 0 var(--ink),inset 0 2px 0 rgba(255,255,255,.18)!important}

@media(max-width:620px){
  .records b{font-size:24px!important}
  .tierCard b{font-size:16px!important}
  .railBtn svg{padding:7px!important}
}
@media(max-width:620px){
  .footerNote{gap:0!important;justify-content:flex-end!important}
  .footerNote span{display:none!important}
  .footerNote button{font-size:10px!important;gap:4px!important}
  .menuBottom{gap:10px!important}
  .records{gap:12px!important}
}

/* ===== 游戏内 HUD 换成卡通街机语言（r160）===== */
#hud3d{
  --ink:#3A2A18;
  --pop:#E8722C;
  --paper:#FFFDF5;
}
/* 分数：白字 + 墨色八向描边 + 底部厚影，跑动中最容易读 */
#hud3d .big{
  color:var(--paper);
  text-shadow:
    -2px 0 0 var(--ink), 2px 0 0 var(--ink), 0 -2px 0 var(--ink), 0 2px 0 var(--ink),
    -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink),
    0 6px 0 var(--ink);
  -webkit-font-smoothing:antialiased;
}
#hud3d .small{
  color:var(--paper);
  font-weight:900;
  text-shadow:-1px 0 0 var(--ink),1px 0 0 var(--ink),0 -1px 0 var(--ink),0 1px 0 var(--ink),0 3px 0 var(--ink);
}
#hud3d .pill{
  background:var(--paper);
  border:2px solid var(--ink);
  box-shadow:0 3px 0 var(--ink);
  color:var(--ink);
  font-weight:900;
  border-radius:14px;
  height:36px;
  backdrop-filter:none;
}
#hud3d #btnPause{
  background:var(--paper);
  border:2px solid var(--ink);
  box-shadow:0 3px 0 var(--ink);
  color:var(--ink);
  backdrop-filter:none;
}
#hud3d #btnPause:active{transform:translateY(3px);box-shadow:0 0 0 var(--ink)}
#hud3d .hudClock{
  color:var(--paper);
  font-weight:900;
  text-shadow:-1px 0 0 var(--ink),1px 0 0 var(--ink),0 -1px 0 var(--ink),0 1px 0 var(--ink),0 2px 0 var(--ink);
}
#hud3d .comboTag{
  background:var(--pop);
  color:var(--paper);
  border:2px solid var(--ink);
  border-radius:12px;
  padding:4px 10px;
  box-shadow:0 3px 0 var(--ink);
  text-shadow:0 2px 0 rgba(58,42,24,.35);
}
#hud3d .pop3d{
  color:var(--paper);
  text-shadow:
    -2px 0 0 var(--ink),2px 0 0 var(--ink),0 -2px 0 var(--ink),0 2px 0 var(--ink),
    0 5px 0 var(--ink);
}
#zoneToast{
  border:2px solid var(--ink,#3A2A18);
  border-radius:14px;
  background:#FFFDF5;
  color:#3A2A18;
  box-shadow:0 4px 0 #3A2A18;
  text-shadow:none;
}

/* 可领取按钮：跟主按钮同一套实体橙，不再是灰色次级样式 */
.mini.achClaim,.achClaim{
  background:#E8722C!important;
  border:2px solid #3A2A18!important;
  color:#FFFDF5!important;
  box-shadow:0 3px 0 #3A2A18!important;
  font-weight:900!important;
  font-size:12px!important;
  letter-spacing:.10em!important;
  text-shadow:0 2px 0 rgba(58,42,24,.32);
  transition:transform .1s ease,box-shadow .1s ease;
  animation:claimGlow 2.4s ease-in-out infinite;
}
.achClaim:active,.mini.achClaim:active{
  transform:translateY(3px)!important;
  box-shadow:0 0 0 #3A2A18!important;
  animation:none;
}
@keyframes claimGlow{
  0%,100%{box-shadow:0 3px 0 #3A2A18,0 0 0 0 rgba(232,114,44,.0)}
  50%{box-shadow:0 3px 0 #3A2A18,0 0 0 5px rgba(232,114,44,.18)}
}
@media(prefers-reduced-motion:reduce){.achClaim{animation:none}}
.achDone{color:#9aa89a!important;font-weight:800!important}
.achLock{color:#9aa89a!important}

/* 购买按钮：可买用实体橙，买不起才降级；已拥有沿用灰绿 */
.mini.shopBuy,.mini.shopBuyPassive{
  background:#E8722C!important;
  border:2px solid #3A2A18!important;
  color:#FFFDF5!important;
  box-shadow:0 3px 0 #3A2A18!important;
  font-weight:900!important;
  font-size:12px!important;
  letter-spacing:.06em!important;
  text-shadow:0 2px 0 rgba(58,42,24,.32);
  transition:transform .1s ease,box-shadow .1s ease;
}
.mini.shopBuy:active,.mini.shopBuyPassive:active{
  transform:translateY(3px)!important;
  box-shadow:0 0 0 #3A2A18!important;
}
.mini.shopBuy[data-poor="1"],.mini.shopBuyPassive[data-poor="1"]{
  background:#DDD6C6!important;
  border-color:#B6AB92!important;
  color:#8C8368!important;
  box-shadow:0 3px 0 #B6AB92!important;
  text-shadow:none;
  cursor:not-allowed;
}
.mini.shopBuyOwned{
  background:#E4E7DC!important;
  border-color:#C2CBB8!important;
  color:#7C8C74!important;
  box-shadow:0 2px 0 rgba(87,112,87,.12)!important;
  font-weight:800!important;
  text-shadow:none;
}
/* shopBuyOwned 其实是「未拥有时的购买按钮」，也是主动作，跟另两个购买类统一 */
.mini.shopBuyOwned{
  background:#E8722C!important;
  border:2px solid #3A2A18!important;
  color:#FFFDF5!important;
  box-shadow:0 3px 0 #3A2A18!important;
  font-weight:900!important;
  font-size:12px!important;
  letter-spacing:.06em!important;
  text-shadow:0 2px 0 rgba(58,42,24,.32);
  transition:transform .1s ease,box-shadow .1s ease;
}
.mini.shopBuyOwned:active{
  transform:translateY(3px)!important;
  box-shadow:0 0 0 #3A2A18!important;
}
.mini.shopBuyOwned[data-poor="1"]{
  background:#DDD6C6!important;
  border-color:#B6AB92!important;
  color:#8C8368!important;
  box-shadow:0 3px 0 #B6AB92!important;
  text-shadow:none;
  cursor:not-allowed;
}
/* 装备/卸下是次级操作，保持安静的灰绿 */
.mini.shopEquip{
  background:#E4E7DC!important;
  border:1px solid #C2CBB8!important;
  color:#4F6A58!important;
  box-shadow:0 2px 0 rgba(87,112,87,.14)!important;
  font-weight:800!important;
  text-shadow:none;
}
/* 角色下移，让脚踩在菱形地台上（原来浮在半空） */
.characterStage{transform:translate(-50%,-34%)!important}
.characterStage{transform:translate(-50%,-16%)!important}
/* 用 top 对齐地台中心，再用 translate 把「脚」而不是「元素中心」放到那个点上 */
.characterStage{top:67%!important;transform:translate(-50%,-91%)!important}
@media(max-width:620px){.characterStage{top:67%!important;transform:translate(-50%,-91%)!important}}

/* ===== 面板统一到街机语言（r168）===== */
.pn{
  background:#FFFDF5!important;
  border:3px solid #3A2A18!important;
  border-radius:20px!important;
  box-shadow:0 8px 0 rgba(58,42,24,.9),0 20px 40px rgba(58,42,24,.18)!important;
}
.panelKicker{color:#A08A66!important}
.panelTitle{color:#3A2A18!important;font-weight:900!important}

.btn{
  background:#E8722C!important;
  border:2px solid #3A2A18!important;
  border-radius:14px!important;
  color:#FFFDF5!important;
  box-shadow:0 4px 0 #3A2A18!important;
  font-weight:900!important;
  letter-spacing:.10em!important;
  text-shadow:0 2px 0 rgba(58,42,24,.32);
  transition:transform .1s ease,box-shadow .1s ease;
}
.btn:active{transform:translateY(4px)!important;box-shadow:0 0 0 #3A2A18!important}

.btnGhost,.btn.ghost{
  background:#E7EBDF!important;
  border:2px solid #9FAE96!important;
  color:#3F5C4C!important;
  box-shadow:0 4px 0 #9FAE96!important;
  text-shadow:none;
}
.btnGhost:active,.btn.ghost:active{transform:translateY(4px)!important;box-shadow:0 0 0 #9FAE96!important}

.mini,.setBtn{
  background:#E7EBDF!important;
  border:2px solid #B9C4AF!important;
  color:#3F5C4C!important;
  box-shadow:0 2px 0 rgba(120,140,115,.35)!important;
  border-radius:10px!important;
  font-weight:800!important;
}
.mini:active,.setBtn:active{transform:translateY(2px)!important;box-shadow:0 0 0 rgba(120,140,115,.35)!important}
.mini.off,.setBtn.off{opacity:.45!important}

.qRow input[type=range],.volCtl input[type=range]{
  background:#DED7C6!important;
  height:6px!important;
  border-radius:99px!important;
}
.qRow input[type=range]::-webkit-slider-thumb,.volCtl input[type=range]::-webkit-slider-thumb{
  width:18px!important;height:18px!important;
  border-radius:50%!important;
  background:#E8722C!important;
  border:2px solid #3A2A18!important;
  box-shadow:0 2px 0 rgba(58,42,24,.25)!important;
}
.qRow b,.volCtl b{color:#B44E14!important;font-weight:900!important}
.qRow>span,.volCtl span{color:#3F5C4C!important}
.qHint,.setHint,.setHint2{color:#8A8168!important}
.shopTabs button{color:#3F5C4C!important}
.shopTabs button.on{background:#E8722C!important;color:#FFFDF5!important;border-color:#3A2A18!important}
.panelTitle::after{
  width:46px!important;height:5px!important;
  border-radius:3px!important;
  background:#E8722C!important;
  border:2px solid #3A2A18!important;
  margin-top:10px!important;
}

/* 主按钮锁尺寸：按下只用阴影表达，不用 transform，
   避免点击瞬间因布局重算或合成层重建出现拉伸/压扁 */
.menuGrid>.playBtn{
  width:min(100%,430px)!important;
  height:clamp(54px,6.8vh,66px)!important;
  min-height:54px!important;max-height:66px!important;
  flex:0 0 auto!important;
  box-sizing:border-box!important;
  border-radius:18px!important;
  will-change:box-shadow;
}
.menuGrid>.playBtn:active{
  transform:none!important;
  box-shadow:0 2px 0 var(--ink),inset 0 3px 0 rgba(58,42,24,.22)!important;
}
@media(max-width:620px){
  .menuGrid>.playBtn{width:100%!important;height:clamp(48px,7.2vh,56px)!important;min-height:48px!important;max-height:56px!important}
}

/* ===== r179：提示改彩蛋 + 入口下移 + 角色比例按舞台高统一 ===== */

/* 「拖动旋转」当彩蛋：拖动照旧可用，只是不再提示 */
.portraitReady .portraitHint{visibility:hidden!important}

/* 五个入口整体下移，和主按钮之间拉开呼吸 */
.menuGrid>.playBtn{margin:2px auto 20px!important}
.menuRail{margin:0 0 4px!important}

/* 角色尺寸跟「舞台高度」挂钩，而不是跟屏宽挂钩。
   原来宽屏用 clamp(190px,26vw,286px)、竖屏用 clamp(126px,34vw,154px)，
   同一个舞台高，两个屏幕算出来的比例差一大截 —— 这就是竖屏看着小一圈的原因。
   舞台高 = min(50vh,460px)（竖屏 min(45vh,390px)），角色宽取它的 0.58 倍。 */
.characterStage{width:calc(min(50vh,460px) * 0.58)!important}
@media(max-width:620px){
  .characterStage{width:calc(min(45vh,390px) * 0.58)!important}
  .menuGrid>.playBtn{margin:2px 0 16px!important}
  .menuRail{margin:0 0 2px!important}
}
@media(max-height:700px) and (max-width:620px){
  .characterStage{width:calc(min(41vh,300px) * 0.58)!important}
}

/* ===== r185：按钮按下不再位移/缩放，只让表面「陷一下」 =====
   之前所有按钮在 :active 时都是 translateY(2~4px) + 阴影归零，
   点击瞬间按钮整体平移、投影同时消失，视感像「弹了一下又恢复」。
   现在位置和尺寸全程不变，只用内阴影表达按下。 */
.btn,.btnGhost,.btn.ghost,.mini,.setBtn,.achClaim,.mini.achClaim,
.mini.shopBuy,.mini.shopBuyPassive,.mini.shopBuyOwned,.menuGrid>.playBtn,#btnPause{
  transition:box-shadow .09s ease,background-color .12s ease,color .12s ease!important;
}
.btn:active,.btnGhost:active,.btn.ghost:active,.mini:active,.setBtn:active,
.achClaim:active,.mini.achClaim:active,
.mini.shopBuy:active,.mini.shopBuyPassive:active,.mini.shopBuyOwned:active,
.menuGrid>.playBtn:active,#btnPause:active{
  transform:none!important;
}
.btn:active{
  box-shadow:inset 0 3px 0 rgba(58,42,24,.22),0 1px 0 #3A2A18!important;
}
.btnGhost:active,.btn.ghost:active{
  box-shadow:inset 0 3px 0 rgba(63,92,76,.18),0 1px 0 #9FAE96!important;
}
.mini:active,.setBtn:active{
  box-shadow:inset 0 2px 0 rgba(58,42,24,.16),0 1px 0 rgba(120,140,115,.35)!important;
}
.menuGrid>.playBtn:active{
  box-shadow:0 1px 0 var(--ink),inset 0 4px 0 rgba(58,42,24,.26)!important;
}
#btnPause:active,#hud3d #btnPause:active{
  transform:none!important;
  background:#F2E6CD!important;
}
.achClaim:active,.mini.achClaim:active,.mini.shopBuy:active,
.mini.shopBuyPassive:active,.mini.shopBuyOwned:active{
  box-shadow:inset 0 3px 0 rgba(58,42,24,.24),0 1px 0 #3A2A18!important;
}

/* ═══════════════════════════════════════════════════════════════
   主菜单 v2 —— 汤姆猫式布局
   场景铺满 · 左上/右上三角图标 · 中上最高分 · 底部厚塑方块 + GO
   旧的杂志排版（menuTop / menuCopy / menuRail / menuBottom）DOM 已移除，
   这里只作用在新的 mm* 结构上。
   ═══════════════════════════════════════════════════════════════ */
#menu{display:block;overflow:hidden}
#menu > .mmStage{position:absolute;inset:0;z-index:1;display:grid;place-items:center}
#menu > .mmStage .stage{width:100%;height:100%}
#menu .characterStage{
  left:50%!important;top:58%!important;
  width:clamp(150px,21vmin,275px)!important;
  transform:translate(-50%,-44%)!important;
}
#menu .stageCaption{display:none}

/* ── 角落圆钮 ── */
.mmCorner{position:absolute;z-index:6;display:flex;gap:clamp(10px,1.4vmin,16px)}
.mmTL{left:clamp(12px,2vw,22px);top:clamp(12px,2vh,22px)}
.mmTR{right:clamp(12px,2vw,22px);top:clamp(12px,2vh,22px)}
.mmIco{
  width:clamp(46px,6.6vmin,68px);height:clamp(46px,6.6vmin,68px);
  border-radius:50%;display:grid;place-items:center;cursor:pointer;position:relative;padding:0;
  background:linear-gradient(180deg,#FFC552,#EE8A1C);
  border:3px solid #B85E0C;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.62),inset 0 -4px 0 rgba(0,0,0,.16),
             0 5px 0 #B85E0C,0 8px 12px rgba(0,0,0,.22);
  transition:transform .08s ease,filter .12s ease;
}
.mmIco svg{width:54%;height:54%;fill:none;stroke:#4A2E10;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.mmIco::after{content:"";position:absolute;left:14%;right:14%;top:5%;height:36%;
  border-radius:50% 50% 46% 46%;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.58),rgba(255,255,255,0))}
.mmIco:hover{filter:brightness(1.05)}
.mmIco:active{transform:translateY(3px);
  box-shadow:inset 0 3px 0 rgba(255,255,255,.5),inset 0 -2px 0 rgba(0,0,0,.18),0 2px 0 #B85E0C}
.mmIcoGreen{background:linear-gradient(180deg,#9BD955,#4E9E1E);border-color:#2F6B10;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.6),inset 0 -4px 0 rgba(0,0,0,.16),
             0 5px 0 #2F6B10,0 8px 12px rgba(0,0,0,.22)}
.mmIcoGreen:active{box-shadow:inset 0 3px 0 rgba(255,255,255,.5),0 2px 0 #2F6B10}
.mmIcoAlt{background:linear-gradient(180deg,#FBF5E4,#DCD2BC);border-color:#9A8763;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.85),inset 0 -4px 0 rgba(0,0,0,.10),
             0 5px 0 #9A8763,0 8px 12px rgba(0,0,0,.18)}
.mmIcoAlt:active{box-shadow:inset 0 3px 0 rgba(255,255,255,.8),0 2px 0 #9A8763}
.mmIcoAlt svg{stroke:#5C4A2C}

/* ── 顶部胶囊 ── */
.mmHud{position:absolute;top:clamp(12px,2vh,22px);left:50%;transform:translateX(-50%);
  z-index:6;display:flex;gap:clamp(6px,1vmin,10px);align-items:center}
.mmPill{
  display:flex;align-items:center;gap:7px;height:clamp(34px,4.6vmin,44px);
  padding:0 clamp(12px,1.8vmin,18px) 0 clamp(10px,1.6vmin,14px);
  border-radius:999px;white-space:nowrap;
  background:linear-gradient(180deg,#4A78C4,#2C4F8E);border:2.5px solid #1E3A6B;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.32),0 4px 0 #1E3A6B,0 6px 10px rgba(0,0,0,.2);
  color:#fff;font-size:clamp(15px,2.1vmin,20px);font-weight:900;
  font-variant-numeric:tabular-nums;letter-spacing:.5px;
}
.mmPill b{line-height:1}
.mmPill em{font-style:normal;font-size:clamp(9px,1.2vmin,11px);font-weight:800;
  letter-spacing:1.5px;opacity:.7}
.mmTrophy{width:clamp(14px,1.9vmin,18px);height:clamp(14px,1.9vmin,18px);
  fill:none;stroke:#FFD84A;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
/* 芽芽币余额胶囊已从主菜单移除（需求），样式一并清掉，别留着死代码 */

/* ── 底部：厚塑方块 + GO ── */
.mmDock{position:absolute;left:0;right:0;bottom:clamp(10px,2.2vh,26px);z-index:6;
  display:flex;align-items:flex-end;justify-content:center;
  gap:clamp(8px,1.4vw,16px);padding:0 14px}
.mmTile{
  width:clamp(56px,9vmin,96px);height:clamp(56px,9vmin,96px);
  border-radius:clamp(13px,2.4vmin,24px);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:clamp(1px,.5vmin,4px);cursor:pointer;padding:0;position:relative;
  background:linear-gradient(180deg,#FFC552,#EE8A1C);border:3px solid #B85E0C;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.6),inset 0 -4px 0 rgba(0,0,0,.16),
             0 5px 0 #B85E0C,0 8px 12px rgba(0,0,0,.25);
  color:#4A2E10;transition:transform .08s ease,filter .12s ease;
}
.mmTile svg{width:46%;height:46%;fill:none;stroke:#4A2E10;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.mmTile span{font-size:clamp(9px,1.4vmin,12px);font-weight:900;letter-spacing:1px;opacity:.82}
.mmTile:hover{filter:brightness(1.04)}
.mmTile:active{transform:translateY(3px);
  box-shadow:inset 0 3px 0 rgba(255,255,255,.5),0 2px 0 #B85E0C}
.mmTileBlue{background:linear-gradient(180deg,#8FC0F0,#4A87CE);border-color:#26477F;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.6),inset 0 -4px 0 rgba(0,0,0,.16),
             0 5px 0 #26477F,0 8px 12px rgba(0,0,0,.25);color:#16305A}
.mmTileBlue svg{stroke:#16305A}
.mmTileBlue:active{box-shadow:inset 0 3px 0 rgba(255,255,255,.5),0 2px 0 #26477F}
.mmTileGreen{background:linear-gradient(180deg,#9BD955,#4E9E1E);border-color:#2F6B10;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.6),inset 0 -4px 0 rgba(0,0,0,.16),
             0 5px 0 #2F6B10,0 8px 12px rgba(0,0,0,.25);color:#1E4A0A}
.mmTileGreen svg{stroke:#1E4A0A}
.mmTileGreen:active{box-shadow:inset 0 3px 0 rgba(255,255,255,.5),0 2px 0 #2F6B10}

.mmGo{
  height:clamp(56px,9vmin,96px);min-width:clamp(112px,16vmin,186px);
  border-radius:clamp(15px,2.6vmin,26px);
  display:flex;align-items:center;justify-content:center;gap:clamp(4px,1vmin,9px);
  padding:0 clamp(16px,3vmin,34px);cursor:pointer;position:relative;
  border:3px solid #A6320B;
  background:linear-gradient(180deg,#FFB03F,#E5561B);
  box-shadow:inset 0 3px 0 rgba(255,255,255,.55),inset 0 -4px 0 rgba(0,0,0,.18),
             0 6px 0 #A6320B,0 10px 14px rgba(0,0,0,.28);
  color:#fff;transition:transform .08s ease,filter .12s ease;
}
.mmGo::after{content:"";position:absolute;left:8%;right:8%;top:4%;height:34%;
  border-radius:16px 16px 45% 45%;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,0))}
.mmGo b{font-size:clamp(24px,4.4vmin,40px);font-weight:900;letter-spacing:3px;
  line-height:1;text-shadow:0 3px 0 rgba(120,40,0,.42)}
.mmGo svg{width:clamp(16px,2.3vmin,26px);height:clamp(16px,2.3vmin,26px);
  fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 2px 0 rgba(120,40,0,.4))}
.mmGo:hover{filter:brightness(1.05)}
.mmGo:active{transform:translateY(4px);
  box-shadow:inset 0 3px 0 rgba(255,255,255,.5),0 2px 0 #A6320B}

/* JS 还在更新的数据节点：不占视觉，但保留在文档里 */
.mmHidden{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;overflow:hidden}

/* 手机竖屏：图标下移一点、角色抬一点，别被 dock 压住 */
@media (max-width:520px){
  #menu .characterStage{top:52%!important;transform:translate(-50%,-46%)!important}
  .mmTL,.mmTR{top:max(12px,env(safe-area-inset-top,0px))}
  .mmDock{gap:7px;bottom:max(10px,env(safe-area-inset-bottom,0px))}
  .mmPill em{display:none}
}

/* 场景放大一档：diorama 原尺寸只有 780，大屏上四周空太多 */
#menu .stationArt{width:min(122%,960px);max-height:min(72vh,700px)}
@media (max-width:900px){
  #menu .stationArt{width:min(128%,780px);max-height:min(62vh,600px)}
}
@media (max-width:520px){
  /* 手机：四个圆钮一行，胶囊单独一行，避免六件挤在一排 */
  .mmHud{top:calc(max(12px,env(safe-area-inset-top,0px)) + 56px)}
  #menu .stationArt{width:min(136%,600px);max-height:min(56vh,520px)}
}

/* 角色再往下站一点，靠近底部 dock；dock 后面垫一条暖色地面，空跑区域不至于发飘 */
#menu .characterStage{top:62%!important}
.mmDock::before{content:"";position:absolute;left:-6%;right:-6%;bottom:-26px;height:170px;
  background:radial-gradient(ellipse at 50% 100%,rgba(120,78,38,.20),rgba(140,96,52,.07) 45%,transparent 72%);
  pointer-events:none;z-index:-1}
.mmDock{isolation:isolate}
@media (max-width:520px){
  #menu .characterStage{top:56%!important}
  .mmDock::before{height:120px;bottom:-16px}
}

/* 覆盖 r149 那版写死的舞台尺寸（那两条带 !important，不加同级权重赢不了） */
#menu > .mmStage .stage{max-width:none!important}
#menu .stationArt{width:min(122%,960px)!important;max-height:min(72vh,700px)!important}
@media (max-width:900px){
  #menu .stationArt{width:min(128%,780px)!important;max-height:min(62vh,600px)!important}
}
@media (max-width:520px){
  #menu .stationArt{width:min(138%,620px)!important;max-height:min(58vh,540px)!important}
}

/* 角色再大一号、往地台中心挪一点：diorama 的中心和地台中心差 2% 左右 */
#menu .characterStage{left:48%!important;width:clamp(170px,25vmin,320px)!important;top:62%!important}
@media (max-width:520px){
  #menu .characterStage{left:49%!important;width:clamp(160px,40vmin,230px)!important;top:56%!important}
}

/* ── 菜单底图：直接用游戏里的街景截图（汤姆猫也是这么干的）── */
.mmSceneBg{position:absolute;inset:0;z-index:0;
  background:url(../assets/scenes/menu_home.jpg) center 46%/cover no-repeat;
  image-rendering:auto}
/* 上下压一点暗角，图标和 dock 才压得住画面 */
.mmSceneBg::after{content:"";position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(24,14,4,.28) 0%,rgba(24,14,4,0) 26%),
    linear-gradient(0deg,rgba(24,14,4,.34) 0%,rgba(24,14,4,0) 30%)}
#menu .stage{z-index:1}
/* 嘟嘟站在路中间，像准备起跑 */
#menu .characterStage{left:50%!important;top:68%!important;
  width:clamp(140px,20vmin,255px)!important;transform:translate(-50%,-42%)!important}
@media (max-width:520px){
  #menu .characterStage{left:50%!important;top:64%!important;
    width:clamp(140px,38vmin,210px)!important;transform:translate(-50%,-44%)!important}
  .mmSceneBg{background-position:center 50%}
}

/* 顶部数值放大：汤姆猫那个 "7999 🏆" 是主视觉之一，太小就没了存在感 */
.mmPill{height:clamp(40px,5.4vmin,52px);padding:0 clamp(14px,2vmin,22px) 0 clamp(12px,1.8vmin,18px)}
.mmPill b{font-size:clamp(19px,2.7vmin,26px)}
.mmPill em{font-size:clamp(9px,1.1vmin,11px);opacity:.62}
/* 底部四块 + GO：手机上再收一点间隙 */
@media (max-width:520px){
  .mmDock{gap:6px;padding:0 10px}
  .mmTile{width:clamp(52px,13vw,64px);height:clamp(52px,13vw,64px)}
  .mmGo{min-width:96px;padding:0 14px}
}

/* 最后放大一档：汤姆猫的方块几乎占到四分之一屏高，我们的太小 */
.mmTile{width:clamp(62px,10.2vmin,110px);height:clamp(62px,10.2vmin,110px);
  border-radius:clamp(14px,2.7vmin,28px)}
.mmGo{height:clamp(62px,10.2vmin,110px);min-width:clamp(126px,18vmin,210px);
  border-radius:clamp(16px,2.9vmin,30px)}
.mmGo b{font-size:clamp(26px,4.8vmin,44px)}
#menu .characterStage{width:clamp(160px,23vmin,290px)!important}
@media (max-width:520px){
  .mmTile{width:clamp(56px,13.5vw,66px);height:clamp(56px,13.5vw,66px)}
  .mmGo{height:clamp(56px,13.5vw,66px);min-width:clamp(96px,27vw,120px)}
  .mmGo b{font-size:clamp(22px,7vw,30px)}
}

/* 手机：角色收小一档，底图往上挪，让路面占到画面下半 */
@media (max-width:520px){
  #menu .characterStage{width:clamp(120px,34vmin,168px)!important;top:60%!important}
  .mmSceneBg{background-position:center 62%}
}

/* ═══ 汤姆猫式入口补全：角标 / 右侧地图钮 / 五个新面板 ═══ */
.mmBadge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;
  border-radius:11px;background:linear-gradient(180deg,#FF5D5D,#D32121);border:2px solid #fff;
  color:#fff;font-size:11px;font-weight:900;line-height:16px;text-align:center;
  box-shadow:0 2px 4px rgba(0,0,0,.3);pointer-events:none}
.mmBadge.hide{display:none}

/* 右侧地图切换钮：和底部方块同一套厚塑，但做成圆形小一号 */
.mmNav{position:absolute;right:clamp(14px,2.2vw,26px);bottom:clamp(120px,18vh,170px);z-index:6;
  width:clamp(48px,6.4vmin,64px);height:clamp(48px,6.4vmin,64px);border-radius:50%;
  display:grid;place-items:center;cursor:pointer;padding:0;
  background:linear-gradient(180deg,#FFC552,#EE8A1C);border:3px solid #B85E0C;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.6),inset 0 -4px 0 rgba(0,0,0,.16),
             0 5px 0 #B85E0C,0 8px 12px rgba(0,0,0,.24)}
.mmNav svg{width:52%;height:52%;fill:none;stroke:#4A2E10;stroke-width:3;
  stroke-linecap:round;stroke-linejoin:round}
.mmNav:active{transform:translateY(3px);box-shadow:inset 0 3px 0 rgba(255,255,255,.5),0 2px 0 #B85E0C}

/* 胶囊变成 button 之后要清掉浏览器默认样式 */
.mmPill{border-style:solid;font-family:inherit;cursor:pointer}
.mmPill:active{transform:translateY(2px)}

/* 面板通用小字 */
.panelHint{margin:10px 0 4px;font-size:12.5px;line-height:1.6;color:#8b7a63;letter-spacing:.02em}

/* 每日签到 */
.dailyGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:6px 0 2px}
.dayCell{position:relative;border-radius:12px;padding:10px 6px 8px;text-align:center;
  background:linear-gradient(180deg,#fffdf5,#f6ecd8);border:2px solid #e2d2b4;
  box-shadow:0 3px 0 rgba(180,150,110,.28)}
.dayCell small{display:block;font-size:10px;font-weight:800;letter-spacing:.08em;color:#a08a68}
.dayCell b{display:block;margin-top:3px;font-size:17px;font-weight:900;color:#5a4630}
.dayCell i{display:block;margin-top:2px;font-size:10px;font-style:normal;color:#b08a52}
.dayCell.got{background:linear-gradient(180deg,#eef6e6,#dcecd2);border-color:#b6d3a4}
.dayCell.today{background:linear-gradient(180deg,#FFE0A8,#FFB54D);border-color:#C87B1E;
  box-shadow:0 4px 0 #C87B1E,0 8px 14px rgba(200,123,30,.28)}
.dayCell.today b,.dayCell.today small,.dayCell.today i{color:#5A3208}
.dayCell.seventh{grid-column:span 4}

/* 地图卡片 */
.mapList{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:6px 0 2px}
.mapCard{position:relative;border-radius:14px;overflow:hidden;border:3px solid #b9a686;
  box-shadow:0 5px 0 rgba(150,120,80,.28);aspect-ratio:4/3;cursor:pointer;
  background-size:cover;background-position:center}
.mapCard span{position:absolute;left:0;right:0;bottom:0;padding:6px 8px;font-size:12px;font-weight:900;
  color:#fff;letter-spacing:.06em;background:linear-gradient(0deg,rgba(20,12,4,.72),transparent)}
.mapCard.lock::after{content:"";position:absolute;inset:0;background:rgba(30,20,10,.55)}
.mapCard.lock span::after{content:" · 未开放";font-weight:700;opacity:.85}
.mapCard.on{border-color:#E8722C;box-shadow:0 5px 0 #B44E14,0 10px 18px rgba(180,78,20,.3)}

/* 衣柜 */
.closetRow{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:6px 0 2px}
.closetItem{aspect-ratio:1;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(180deg,#fffdf5,#f1e6d2);border:2px dashed #d8c7a6;color:#c0ae8e}
.closetItem svg{width:44%;height:44%;fill:none;stroke:currentColor;stroke-width:2}

/* 建造 */
.buildGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:6px 0 2px}
.buildCell{aspect-ratio:1.35;border-radius:14px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:4px;font-size:11px;font-weight:800;color:#a08a68;
  background:linear-gradient(180deg,#fffdf5,#f1e6d2);border:2px dashed #d8c7a6}
.buildCell b{font-size:18px;color:#c8b696}

/* 银行 */
.vaultRow{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:6px 0 2px}
.vaultRow div{border-radius:12px;padding:12px 10px;text-align:center;
  background:linear-gradient(180deg,#fffdf5,#f6ecd8);border:2px solid #e2d2b4}
.vaultRow small{display:block;font-size:10px;font-weight:800;letter-spacing:.08em;color:#a08a68}
.vaultRow b{display:block;margin-top:4px;font-size:18px;font-weight:900;color:#5a4630}

@media (max-width:520px){
  .mmTL{gap:8px}
  .mmIco{width:44px;height:44px}
  .mmNav{right:12px;bottom:108px;width:46px;height:46px}
  .dailyGrid{grid-template-columns:repeat(3,1fr)}
  .dayCell.seventh{grid-column:span 3}
  .mapList{grid-template-columns:1fr}
  .mapCard{aspect-ratio:16/9}
  .closetRow{grid-template-columns:repeat(3,1fr)}
}

/* 菜单底图默认用用户给的那张（house + 院子 + 马路），地图页可以再切 */
.mmSceneBg{background-image:url(../assets/scenes/menu_bg.jpg);background-position:center 58%}

/* 角标：任务/成就沿用旧的 hasDot 机制，但旧样式是给 railBtn 写的，
   在圆形图标上位置不对 —— 这里统一成右上角圆点 */
#menu .mmIco.hasDot::after{display:none}
.mmIco.hasDot::before{content:"";position:absolute;top:-3px;right:-3px;
  width:17px;height:17px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#FF7A6A,#E23C22 70%);
  border:2.5px solid #FFFDF5;box-shadow:0 2px 5px rgba(0,0,0,.32);z-index:2}

/* 地图卡片文字别换行；未开放的压一层暗 */
.mapCard span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11.5px}

/* 银行按钮在芽芽币不够时变灰（仍可点，点了给提示） */
#btnVaultSave.dis{background:linear-gradient(180deg,#E4DBCB,#CDC1AC);border-color:#9C8E76;
  color:#8A7C66;box-shadow:inset 0 2px 0 rgba(255,255,255,.6),0 4px 0 #9C8E76}

/* 芽芽币胶囊下线后，最高分胶囊单独在第一行中间；手机上别再隐藏「最高分」三个字，
   否则只剩一个奖杯和一个 0，看不出是什么 */
@media (max-width:520px){
  .mmPill em{display:inline;font-size:9.5px}
  .mmHud{top:calc(max(12px,env(safe-area-inset-top,0px)) + 54px)}
}

/* ── 参考图那两个图标 ──
   最高分胶囊改成「数字 + 芽芽币徽章」：参考图里数字右边是一枚金色圆章、
   章里一个奖杯，比一个细线奖杯贴在左边更像游戏分数。
   右上角换成圆形框里的人像，和参考图一致。 */
.mmCoin{
  width:clamp(22px,3.1vmin,30px);height:clamp(22px,3.1vmin,30px);
  border-radius:50%;display:grid;place-items:center;flex:0 0 auto;
  background:radial-gradient(circle at 34% 26%,#FFD97F,#F2912C 60%,#C86C13);
  border:2px solid #A25A0D;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.55),0 2px 0 rgba(120,60,0,.28),
             0 0 0 1.5px rgba(255,255,255,.22);
}
.mmCoin svg{width:62%;height:62%;fill:none;stroke:#FFF7E6;stroke-width:2.6;
  stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 1px 0 rgba(140,70,0,.45))}
.mmPill{gap:8px}

/* 角标里的「!」：参考图右上角那颗红章就是一个感叹号 */
.mmIco.hasDot::before{
  content:"!";font:900 11px/1 -apple-system,"Segoe UI",system-ui,sans-serif;
  color:#fff;display:grid;place-items:center;
  width:18px;height:18px;border-radius:50%;
  background:radial-gradient(circle at 34% 28%,#FF7C6A,#DB2A15 72%);
  border:2.5px solid #FFFDF5;box-shadow:0 2px 5px rgba(0,0,0,.32);z-index:2;
}

/* ═══════════════════════════════════════════════════════════════
   游戏中 HUD v2 —— 对照参考图：深蓝厚塑胶囊 + 金色货币 + 橙色暂停
   左边芽芽币、中间分数、右边暂停；距离和时钟降级成一行小字放中间下面。
   ═══════════════════════════════════════════════════════════════ */
#hud3d .hudBar{
  position:absolute;left:0;right:0;
  top:calc(env(safe-area-inset-top,0px) + 10px);
  display:flex;align-items:flex-start;justify-content:space-between;
  padding:0 clamp(12px,2.4vw,22px);z-index:34;pointer-events:none;
}
/* 数值不再压深蓝厚塑胶囊上（用户要求「去掉那个蓝底」）：
   芽芽币数 / 分数直接浮在画面上，白字 + 一圈暖黑影，任何天空下都读得清。
   结构不变，只是把背景/描边/立体投影全去掉。 */
#hud3d .hudPill{
  display:flex;align-items:center;gap:9px;
  height:clamp(38px,5.6vmin,46px);padding:0 clamp(2px,.7vmin,6px);
  background:none;border:0;box-shadow:none;
  color:#fff;font-weight:900;font-variant-numeric:tabular-nums;
  letter-spacing:.5px;line-height:1;pointer-events:auto;
  text-shadow:0 2px 0 rgba(46,26,6,.55),0 0 14px rgba(0,0,0,.42);
}
#hud3d .hudPillCoin{font-size:clamp(16px,2.3vmin,21px)}

/* 货币图标：直接用 #i-coin / #i-gem 这两个 symbol，和赛道上的 3D 拾取物同一套造型。
   芽芽币＝暖金圆币＋两片嫩芽，露晶＝湖蓝水滴＋切面，冷暖和轮廓都不一样，
   手机小尺寸下也能一眼分开。 */
#hud3d .hudIc{
  width:clamp(22px,3.0vmin,27px);height:clamp(22px,3.0vmin,27px);
  display:block;flex:0 0 auto;
  filter:drop-shadow(0 2px 0 rgba(40,22,4,.45)) drop-shadow(0 0 7px rgba(0,0,0,.3));
}
/* 左上角两枚货币并排：芽芽币常见、露晶稀有，露晶那格字号略小、稍暗一档 */
#hud3d .hudPills{display:flex;align-items:center;gap:clamp(7px,1.4vmin,13px)}
#hud3d .hudPillGem{font-size:clamp(13px,1.9vmin,17px);opacity:.94}

/* 暂停：橙色圆钮 + 两根白条 */
#hud3d #btnPause{
  position:static;width:clamp(42px,5.8vmin,50px);height:clamp(42px,5.8vmin,50px);
  border-radius:50%;padding:0;display:flex;align-items:center;justify-content:center;gap:5px;
  border:2.5px solid #A9430C;
  background:linear-gradient(180deg,#FFB03F,#E5561B);
  box-shadow:inset 0 2.5px 0 rgba(255,255,255,.5),inset 0 -3px 0 rgba(0,0,0,.16),
             0 4px 0 #A9430C,0 7px 12px rgba(0,0,0,.26);
  color:transparent;font-size:0;pointer-events:auto;
}
#hud3d #btnPause i{
  display:block;width:5px;height:17px;border-radius:2.5px;background:#fff;
  box-shadow:0 1px 0 rgba(150,50,0,.35);
}
#hud3d #btnPause:active{transform:translateY(3px);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 1px 0 #A9430C}

/* 距离 / 时钟：一行小字，挂在分数胶囊下面 */
/* 距离 · 时钟：一条细标，距离比时间重一档，中间一颗橙色小点当分隔。
   和分数用同一套阴影，去掉任何底板 —— 天空再亮也读得清。 */
#hud3d .hudMeta{
  position:absolute;left:50%;transform:translateX(-50%);
  top:calc(env(safe-area-inset-top,0px) + 8px + clamp(46px,6.6vmin,56px));
  display:flex;align-items:baseline;gap:4px;z-index:33;pointer-events:none;
  font-size:clamp(10px,1.4vmin,12px);font-weight:850;letter-spacing:.1em;
  color:rgba(255,255,255,.8);
  text-shadow:0 2px 0 rgba(46,26,6,.5),0 0 10px rgba(0,0,0,.35);
}
#hud3d .hudMeta b{
  font-size:clamp(13px,1.9vmin,15px);color:#fff;
  font-variant-numeric:tabular-nums;letter-spacing:.04em;
}
#hud3d .hudMeta i{font-style:normal;opacity:.62;font-size:.9em}
#hud3d .hudMeta em{
  width:4px;height:4px;border-radius:50%;background:#FFB14A;
  opacity:.95;margin:0 7px;transform:translateY(-2px);
  box-shadow:0 0 6px rgba(255,177,74,.6);
}
#hud3d .hudClock{position:static;font-size:inherit;letter-spacing:inherit;color:inherit}

@media (max-width:520px){
  #hud3d .hudPillCoin{height:36px;padding:0 12px;font-size:15px}
  #hud3d #btnPause{width:40px;height:40px}
  #hud3d #btnPause i{width:4.5px;height:15px}
  #hud3d .hudMeta{font-size:10px;letter-spacing:.1em}
}

/* 衣柜卡片文字 / 选中态（r255：换装真功能） */
.closetItem{position:relative;overflow:hidden}
.closetItem b{font-size:13px;font-weight:900;color:#fff8e8;line-height:1.1}
.closetItem i{color:#fff8e8}
.closetItem.on{border:2px solid #E8722C;box-shadow:0 0 0 2px rgba(232,114,44,.25),0 4px 10px rgba(180,78,20,.25)}
.closetItem.on::after{content:'✓';position:absolute;top:4px;right:6px;font-size:12px;font-weight:900;color:#fff8e8;text-shadow:0 1px 2px rgba(0,0,0,.4)}

/* 建造：等级圆点 */
.buildCell b{font-size:14px;color:#5a4630}
.bdots{display:flex;gap:3px}
.bdots .bd{width:7px;height:7px;border-radius:50%;background:#e0d3b8;box-shadow:inset 0 0 0 1px #cbb897}
.bdots .bd.on{background:#E8722C;box-shadow:inset 0 0 0 1px #b44e14}
.buildCell.maxed{border-style:solid;border-color:#e2b06a}

/* 银行存单卡 */
.vaultCard{margin-top:10px;padding:12px;border-radius:12px;text-align:center;
  background:linear-gradient(180deg,#fffdf5,#f6ecd8);border:2px solid #e2d2b4}
.vaultCard small{display:block;font-size:10px;font-weight:800;letter-spacing:.08em;color:#a08a68}
.vaultCard b{display:block;margin:4px 0 2px;font-size:20px;font-weight:900;color:#5a4630}
.vaultCard .btn{width:100%}

/* ═══════════════════════════════════════════════════════════════
   弹窗卡片 v2 —— 照汤姆猫的厚塑语言：奶油卡片 + 左右两栏 + 底部奖励条
   结算页（#overOv）和暂停页（#pauseOv）共用这套 .ov* ，只有内容不同。
   ═══════════════════════════════════════════════════════════════ */
.hide,.ov .hide{display:none!important}
.ovCard{
  position:relative;width:min(560px,92vw);padding:20px 24px 18px;
  border-radius:22px;border:3px solid #3A2A18;
  background:linear-gradient(180deg,#FFFDF5 0%,#F8EFDC 62%,#F1E3C8 100%);
  box-shadow:inset 0 3px 0 rgba(255,255,255,.85),0 8px 0 rgba(58,42,24,.22),
             0 22px 44px rgba(0,0,0,.45);
  text-align:center;
}
.ovKicker{
  font-size:11px;font-weight:850;letter-spacing:.3em;color:#a36b37;
  margin-bottom:10px;text-transform:uppercase;
}
.ovTitle{
  font-size:clamp(22px,3.4vw,30px);font-weight:900;letter-spacing:.06em;
  color:#3A2A18;margin:-2px 0 12px;
}
.ovPop{
  display:flex;align-items:stretch;gap:0;
  padding:12px 6px 13px;border-radius:16px;
  background:linear-gradient(180deg,#FFFFFF,#FFF8E8);
  border:3px solid #E8D9BE;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.9);
}
.ovCol{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}
.ovDiv{width:3px;border-radius:2px;background:#EFE3CB;margin:2px 4px}
.ovLab{font-style:normal;font-size:10px;font-weight:850;letter-spacing:.2em;color:#9A8A6E}
.ovNum{
  font-size:clamp(34px,7.4vw,46px);line-height:1.02;font-weight:900;
  color:#3A2A18;letter-spacing:-.02em;font-variant-numeric:tabular-nums;
}
.ovNum.gold{color:#E8722C}
.ovNum.sm{font-size:clamp(24px,4.6vw,32px)}

/* —— 结算页专用 —— */
#overOv .ovRec{
  margin-top:2px;padding:2px 10px;border-radius:999px;
  font-size:10px;font-weight:900;letter-spacing:.06em;color:#fff;
  background:linear-gradient(180deg,#FFC552,#EE8A1C);
  border:2px solid #A6320B;box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}
#overOv .ovStrip{display:flex;gap:9px;margin-top:11px}
#overOv .ovRew{
  flex:1;display:flex;align-items:center;justify-content:center;gap:7px;
  padding:8px 10px;border-radius:13px;
  background:#FFFDF5;border:2.5px solid #3A2A18;
  font-size:12px;font-weight:850;color:#6B563A;
  box-shadow:0 3px 0 rgba(58,42,24,.18);
}
#overOv .ovRew b{font-size:14px;color:#3A2A18;font-variant-numeric:tabular-nums}
#overOv .ovIc{
  width:17px;height:17px;border-radius:6px;flex:0 0 auto;
  background:linear-gradient(180deg,#9BD955,#4E9E1E);border:2px solid #2F6B10;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}
#overOv .ovIc.gold{background:linear-gradient(180deg,#FFE58A,#E5A31A);border-color:#A97608}
/* 本局捡到的露晶：只在本局有收获时出现，芽芽币栏下面一行小字 */
#overOv .ovGem{display:inline-flex;align-items:center;gap:4px;margin-top:3px;
  font-size:12px;font-weight:850;color:#2F8FB8;letter-spacing:.02em}
#overOv .ovGem svg{width:15px;height:15px;display:block}
#overOv .ovBreak{font-size:10px;letter-spacing:.1em;color:#a08a66;margin-top:8px;min-height:12px}

/* —— 暂停页专用 —— */
#pauseOv .paCard{width:min(430px,90vw)}
#pauseOv .paStats{margin-bottom:14px}
#pauseOv .btn{min-height:46px;font-size:15px;width:100%}
#pauseOv .btnGap{height:9px}
#pauseOv .paRow{display:flex;gap:9px;margin-top:9px}
#pauseOv .paRow .btn{flex:1 1 0;min-width:0}

.oBtns{margin-top:12px}
.oBtns .btn{min-height:46px;font-size:15px}

/* 复活按钮的两行文案（花 120 芽芽币复活 / 本局第 1 次 · 再死一次 300） */
.btnSub{display:block;font-size:10px;font-weight:700;opacity:.86;margin-top:1px;letter-spacing:.02em}

#pauseOv .paTask{
  margin:0 0 12px;padding:10px 12px;border-radius:14px;text-align:left;
  background:#FFFDF5;border:2.5px solid #3A2A18;box-shadow:0 3px 0 rgba(58,42,24,.18);
}
#pauseOv .paTaskTop{
  display:flex;align-items:baseline;justify-content:space-between;gap:8px;
  font-size:10px;font-weight:850;letter-spacing:.18em;color:#6B563A;
}
#pauseOv .paTaskTop b{font-size:12px;letter-spacing:0;color:#3A2A18;font-variant-numeric:tabular-nums}
#pauseOv .paBar{height:9px;margin:7px 0 6px;border-radius:99px;background:#EFE3CB;overflow:hidden}
#pauseOv .paBar i{
  display:block;height:100%;width:0;border-radius:99px;
  background:linear-gradient(180deg,#FFC552,#EE8A1C);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);transition:width .25s ease-out;
}
#pauseOv .paTaskRew{font-size:10px;font-weight:800;color:#a08a66;letter-spacing:.04em}
#pauseOv .paTaskRew b{color:#E8722C}

/* ═══════════════════════════════════════════════════════════════
   局内按钮 = 菜单按钮（同一套厚塑语言）
   菜单里是 #mmPort .btn：线性渐变 + 顶部内高光 + 4~5px 硬投影 + 深棕描边；
   局内一直是「扁平 #E8722C + 2px 细描边」，两套摆在同一个游戏里，
   点开暂停／结算就像进了另一个产品。这里把菜单那套照搬过来。
   ═══════════════════════════════════════════════════════════════ */
.ov .btn{
  background:linear-gradient(180deg,#FF9A46 0%,#EE6A25 52%,#E5561B 100%)!important;
  color:#fff!important;
  border:2.5px solid #A6320B!important;
  border-radius:12px!important;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 5px 0 #A6320B,0 7px 10px rgba(0,0,0,.2)!important;
  letter-spacing:.10em!important;font-weight:900!important;text-shadow:none!important;
}
.ov .btn:active{
  transform:translateY(4px)!important;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.4),0 1px 0 #A6320B!important;
}
/* 幽灵钮 / 次按钮：菜单里是浅绿塑胶，局内以前是 #e5ebdb 平板 */
.ov .btnGhost,.ov .btn.ghost,.ov .btn.g{
  background:linear-gradient(180deg,#F2F6E8,#D8E3CB)!important;
  color:#345D4D!important;border-color:#48664F!important;
  box-shadow:inset 0 2px 0 #fff,0 4px 0 #48664F,0 6px 8px rgba(0,0,0,.16)!important;
}
.ov .btnGhost:active,.ov .btn.ghost:active,.ov .btn.g:active{
  box-shadow:inset 0 2px 0 #fff,0 1px 0 #48664F!important;
}

/* 小按钮（设置行 / 商店购买 / 成就领取 / 页签）：同一套皮，压缩一档 */
.ov .mini,.ov .setBtn,.ov .shopBuy,.ov .achClaim{
  background:linear-gradient(180deg,#F2F6E8,#D8E3CB)!important;
  border:2px solid #48664F!important;border-radius:10px!important;
  color:#345D4D!important;font-weight:900!important;letter-spacing:.04em!important;
  box-shadow:inset 0 1px 0 #fff,0 3px 0 #48664F!important;
}
.ov .mini:active,.ov .setBtn:active,.ov .shopBuy:active,.ov .achClaim:active{
  transform:translateY(2px)!important;
  box-shadow:inset 0 1px 0 #fff,0 1px 0 #48664F!important;
}
.ov .mini.on,.ov .setBtn.on{
  background:linear-gradient(180deg,#FF9A46,#E5561B)!important;
  border-color:#A6320B!important;color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 3px 0 #A6320B!important;
}
.ov .shopBuy.canBuy{
  background:linear-gradient(180deg,#FF9A46,#E5561B)!important;
  border-color:#A6320B!important;color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 3px 0 #A6320B!important;
}
.ov .shopTabs button{
  background:linear-gradient(180deg,#F2F6E8,#D8E3CB)!important;
  border:2px solid #48664F!important;border-radius:10px!important;
  color:#3E6B52!important;font-weight:900!important;
  box-shadow:inset 0 1px 0 #fff,0 3px 0 #48664F!important;
}
.ov .shopTabs button.on{
  background:linear-gradient(180deg,#FF9A46,#E5561B)!important;
  border-color:#A6320B!important;color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 3px 0 #A6320B!important;
}

/* 复活主按钮是两行文案（「花 120 芽芽币复活」+ 小字），
   套上厚塑皮之后行高和高度都得单独给，不然文字会顶到描边上 */
#reviveOv .oBtns .btn{
  min-height:56px;font-size:15px;letter-spacing:.04em;line-height:1.22;
  padding:7px 10px;white-space:normal;
}
#reviveOv .btnSub{font-size:10px;line-height:1.25;margin-top:2px;letter-spacing:0;opacity:.9}
/* 竖屏窄卡片里「花 120 芽芽币复活」放不下：主按钮给更宽的比例，字号收一档 */
#reviveOv .oBtns{display:flex;gap:9px}
#reviveOv .oBtns .btn{font-size:14px;letter-spacing:0;flex:1 1 0;white-space:nowrap}
#reviveOv .oBtns #btnReviveYes{flex:1.62 1 0}
#reviveOv .btnSub{white-space:nowrap;font-size:9.5px;letter-spacing:0}

/* 动作型小按钮（购买 / 领取）按菜单 .btn.s 的规矩做成橙色；
   设置里的开关类（.setBtn/.mini）保持浅绿 —— 它们更接近「状态」而不是「按钮」 */
.ov .shopBuy,.ov .achClaim,.ov .taskClaim{
  background:linear-gradient(180deg,#FF9A46,#E5561B)!important;
  border-color:#A6320B!important;color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 3px 0 #A6320B!important;
}
.ov .shopBuy:active,.ov .achClaim:active,.ov .taskClaim:active{
  transform:translateY(2px)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 0 #A6320B!important;
}

/* ── 转盘抽奖 ────────────────────────────────────────────────
   每跑完 150 米送一次机会；盘面 8 等分，指针在正上方。 */
.wheelBtn { background: linear-gradient(180deg, #FFD35A, #E89B12) !important; color: #5A3A00 !important; border-color: #7A4E00 !important; box-shadow: 0 4px 0 #7A4E00 !important; }
#wheelOv .wheelCard { max-width: 420px; }
.wheelWrap { position: relative; width: 270px; height: 270px; margin: 20px auto 2px; }
.wheelDisc {
  width: 100%; height: 100%; border-radius: 50%; border: 5px solid #2A2118;
  box-shadow: 0 7px 0 rgba(0, 0, 0, .18), inset 0 0 0 7px #FFF3DC;
  background: conic-gradient(from -22.5deg, #FFC552 0deg 45deg, #FFE3AE 45deg 90deg, #FF9F5A 90deg 135deg, #FFD35A 135deg 180deg,
    #FFC552 180deg 225deg, #FFE3AE 225deg 270deg, #FF9F5A 270deg 315deg, #FFD35A 315deg 360deg);
  position: relative; will-change: transform; transform: rotate(0deg);
}
.wheelDisc b {
  position: absolute; left: 50%; top: 50%; width: 78px; margin-left: -39px; margin-top: -11px;
  text-align: center; font-size: 15px; font-weight: 900; color: #5A3A00; line-height: 22px; letter-spacing: 0;
}
.wheelDisc b .whGem { width: 15px; height: 15px; vertical-align: -2px; margin-right: 1px; }
.wheelPin {
  position: absolute; left: 50%; top: -12px; margin-left: -11px; width: 22px; height: 30px;
  background: #E8523A; clip-path: polygon(50% 100%, 0 0, 100% 0); z-index: 3;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}
.wheelGo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; z-index: 2;
  background: linear-gradient(180deg, #FFF8EA, #F2DCB2); border: 4px solid #2A2118;
  font-weight: 900; font-size: 21px; color: #8A4B12; cursor: pointer;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .18);
}
.wheelGo:active { transform: translate(-50%, -48%); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.wheelTip { text-align: center; font-size: 13px; font-weight: 800; color: #7A5A34; margin: 4px 0 2px; }

@media (max-width: 430px) {
  .wheelWrap { width: 210px; height: 210px; }
  .wheelDisc b { font-size: 13px; width: 66px; margin-left: -33px; margin-top: -10px; }
  .wheelGo { width: 62px; height: 62px; font-size: 18px; }
}

/* 局内只留分数：距离和时钟都收起来，只在结算页显示（用户要求） */
#hud3d .hudMeta { display: none !important; }
/* 破纪录的局内提示：一行淡出小字，不抢眼 */
.headPop.recordQuiet span { font-size:13px; font-weight:800; color:#ffe9a8; letter-spacing:.06em;
  opacity:.85; text-shadow:0 1px 3px rgba(0,0,0,.6); }

/* 转盘弹层要从菜单里打开，层级必须压在 #mmPort 之上 */
#wheelOv { z-index: 200; }

/* 商店空壳 */
.shopEmpty { display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; padding:42px 16px; text-align:center; }
.shopEmpty .shopEmptyIco { font-size:44px; line-height:1; opacity:.75; }
.shopEmpty b { font-size:17px; font-weight:900; color:#4A3A28; letter-spacing:.04em; }
.shopEmpty i { font-size:12.5px; font-style:normal; color:#8A7A64; }

/* ── 主菜单 3D 立绘：挂在移植菜单的主街插画上 ─────────────────
   容器原本在旧 #menu 里（整棵隐藏），搬过来以后要重设尺寸和位置：
   角色站在石板路上，底边大约在画面 62%，可拖动旋转。 */
#mmPort .scene #luluPortraitSurface {
  position: absolute; left: 60%; bottom: 25%;
  transform: translateX(-50%);
  /* 尺寸按「场景高度的百分比」给，不要用 px / vw：
     移植菜单的 #stage 是 720 设计宽再整体 scale 到视口（手机 0.54），
     写死 px 会被那层缩放一起缩掉（132px 实际只剩 72px）。
     高度定死 + aspect-ratio:1，宽度自动推导，任何缩放下比例都对。 */
  height: 33% !important;
  width: auto !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  display: block; z-index: 2; pointer-events: none;
}
#mmPort .scene #luluPortraitSurface .characterStage {
  /* 原样式在别处用了 !important 定位（left:50%/top:50%/width:clamp(...)），
     不跟着加 !important 会盖不住，角色在桌面尺寸下会变得很大 */
  position: absolute !important; inset: 0 !important;
  left: 0 !important; top: 0 !important;
  width: 100% !important; height: 100% !important;
  transform: none !important; margin: 0 !important;
  pointer-events: auto;
}
#mmPort .scene #luluPortraitSurface .characterStill { display: none; }
#mmPort .scene #luluPortraitSurface .stageCaption { display: none; }
#mmPort .scene .dim,
#mmPort .scene .tint,
#mmPort .scene .sceneimg { pointer-events: none; }

/* 立绘的横向位置要跟着画面比例走：插画是 background-size:cover，
   竖屏时小路偏右（62%），横屏 / 桌面时小路在中间偏左（47%）。 */
@media (min-aspect-ratio: 4/3) {
  #mmPort .scene #luluPortraitSurface { left: 47% !important; bottom: 20% !important; }
}
@media (max-aspect-ratio: 4/5) {
  #mmPort .scene #luluPortraitSurface { left: 60% !important; bottom: 25% !important; }
}

/* ═══════════ 美术 v3 · 汤姆猫/地铁跑酷风（r513） ═══════════
   高饱和 + 厚描边 + 糖果立体按钮；局内 HUD 改成三段式厚塑料牌。 */
canvas#game{filter:saturate(1.22) contrast(1.06) brightness(1.03)}
#app::after{background:radial-gradient(130% 95% at 50% 45%,transparent 55%,rgba(10,20,40,.22) 100%)}
#hud3d .hudPill{
  font-family:"Arial Rounded MT Bold","HarmonyOS Sans SC","Microsoft YaHei",sans-serif;
  -webkit-text-stroke:1.4px #2a1a08;paint-order:stroke fill;
  text-shadow:0 3px 0 #2a1a08;
}
#hud3d .hudPillCoin,#hud3d .hudPillGem{
  background:linear-gradient(180deg,rgba(40,60,110,.78),rgba(22,34,70,.78));
  border:2.5px solid #0f1a36;border-radius:999px;padding:0 14px 0 6px;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.28),0 3px 0 #0f1a36,0 6px 10px rgba(0,0,0,.25);
}
#hud3d #btnPause{border-width:3px;box-shadow:inset 0 3px 0 rgba(255,255,255,.55),inset 0 -4px 0 rgba(0,0,0,.16),0 4px 0 #A9430C,0 8px 12px rgba(0,0,0,.28)}
.ovCard{border-radius:26px!important;border:4px solid #26477F!important;
  background:linear-gradient(180deg,#FFFDF5,#F2EAD2)!important;
  box-shadow:inset 0 4px 0 #fff,0 6px 0 #26477F,0 14px 28px rgba(0,0,0,.35)!important}
.ovCard button{border-radius:18px;font-weight:900;letter-spacing:.06em;
  border:3px solid #A6320B;background:linear-gradient(180deg,#FFB03F,#E5561B);color:#fff;
  -webkit-text-stroke:1px #7a2406;paint-order:stroke fill;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.55),0 4px 0 #A6320B,0 8px 12px rgba(0,0,0,.25)}
.ovCard button:active{transform:translateY(3px);box-shadow:inset 0 2px 0 rgba(255,255,255,.4),0 1px 0 #A6320B}
/* 菜单立绘与局内同一套色彩后期 */
.characterStage canvas#game,#mmPort canvas#game{filter:saturate(1.22) contrast(1.06) brightness(1.03)!important}

/* ===== r526 弹窗统一：和菜单同一套暖色（去掉深蓝底/蓝边/蓝按钮） ===== */
.ov{background:radial-gradient(ellipse at 50% 40%,rgba(120,64,20,.45),rgba(40,20,6,.72))!important;backdrop-filter:blur(8px)!important}
.ovCard,.pn{border-radius:26px!important;border:4px solid #A6320B!important;
  background:linear-gradient(180deg,#FFF8E6 0%,#FBE9C6 100%)!important;color:#3A2A18!important;
  box-shadow:inset 0 4px 0 #fff,0 6px 0 #A6320B,0 16px 30px rgba(0,0,0,.35)!important}
.ovCard .btn,.ovCard button,.pn .btn,.pn button.btn{border-radius:18px!important;font-weight:900!important;letter-spacing:.06em;
  border:3px solid #A6320B!important;background:linear-gradient(180deg,#FFB03F,#E5561B)!important;color:#fff!important;
  -webkit-text-stroke:1px #7a2406;paint-order:stroke fill;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.55),0 4px 0 #A6320B,0 8px 12px rgba(0,0,0,.22)!important}
.ovCard .btnGhost,.pn .btnGhost{border-color:#2F7A12!important;background:linear-gradient(180deg,#8FD94A,#4E9E1E)!important;
  -webkit-text-stroke:1px #24600c;box-shadow:inset 0 3px 0 rgba(255,255,255,.5),0 4px 0 #2F7A12,0 8px 12px rgba(0,0,0,.22)!important}
.pn .mini.setBtn{border-radius:16px!important;border:3px solid #2F7A12!important;color:#fff!important;font-weight:900!important;
  background:linear-gradient(180deg,#8FD94A,#4E9E1E)!important;-webkit-text-stroke:.8px #24600c;paint-order:stroke fill;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.5),0 4px 0 #2F7A12!important}
.pn .mini.setBtn.off,.pn .mini.setBtn[aria-pressed="false"]{border-color:#8A7A66!important;background:linear-gradient(180deg,#E6DCCB,#C6B69E)!important;color:#6A5A46!important;-webkit-text-stroke:0}
.pn .volCtl{border:3px solid #EBCF9E!important;border-radius:16px!important;background:#FFFDF5!important}
.pn input[type=range]{accent-color:#E5561B}
.panelKicker,.ovKicker{color:#C2601A!important}
.panelTitle{color:#3A2A18!important}
