:root { --glass: linear-gradient(160deg, rgba(255,255,255,.17), rgba(255,255,255,.05)); --edge: rgba(255,255,255,.28); --ink: #f6f4fb; --dim: rgba(240,236,250,.66); --hot: #ff7a48; --hot2: #e2572b; --ok: #6fe3a0; }
* { box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
html,body { height:100%; }
/* 韩语按词断行,不然「태양계」会被拆成两行 */
html[lang="ko"] body { word-break:keep-all; }
/* 脚本跑完、画布画出第一帧前先露这层天空(和首页第一张长城背景同色),不黑屏 */
body { font-family:-apple-system,"SF Pro Display","PingFang SC","Apple SD Gothic Neo","Microsoft YaHei","Malgun Gothic",sans-serif; background:#1b1838 linear-gradient(180deg,#1a2350 0%,#5a4a8a 35%,#e9867a 62%,#ffc08a 80%,#ffe6b8 100%) fixed; color:var(--ink); overflow:hidden; overscroll-behavior:none; touch-action:none; }
canvas#view { position:fixed; inset:0; width:100%; height:100%; display:block; }

/* 面板:半透明,后面的景还看得见 */
.panel { position:fixed; inset:0; display:none; place-items:center; padding:18px; z-index:40; overflow:auto;
  background:radial-gradient(120% 100% at 50% 110%, rgba(20,14,44,.06), rgba(14,10,32,.36) 80%); }
.panel.on { display:grid; animation:panelIn .28s ease-out; }
@keyframes panelIn { from { opacity:0; } to { opacity:1; } }
.card { width:min(480px,94vw); background:var(--glass); background-color:rgba(28,22,58,.26); -webkit-backdrop-filter:blur(14px) saturate(140%); backdrop-filter:blur(14px) saturate(140%);
  border:1px solid rgba(255,255,255,.16); border-radius:24px; padding:22px 22px; margin:auto;
  box-shadow:0 18px 48px rgba(10,6,30,.26), inset 0 1px 0 rgba(255,255,255,.28); animation:cardIn .32s cubic-bezier(.2,.9,.3,1.2); }
@keyframes cardIn { from { transform:translateY(10px) scale(.97); opacity:0; } to { transform:none; opacity:1; } }
.card h1 { font-size:38px; font-weight:900; letter-spacing:3px; text-align:center; line-height:1.1;
  background:linear-gradient(180deg,#fff 30%,#ffd2b0); -webkit-background-clip:text; background-clip:text; color:transparent; filter:drop-shadow(0 3px 10px rgba(255,140,90,.35)); }
.card h1 small { display:block; font-size:12px; font-weight:700; letter-spacing:6px; margin-top:6px; color:rgba(255,226,206,.8); -webkit-text-fill-color:rgba(255,226,206,.8); }
.card h2 { font-size:21px; font-weight:800; letter-spacing:1px; margin-bottom:16px; }
.card .sub { color:var(--dim); font-size:14px; text-align:center; margin:12px 0 20px; line-height:1.7; }
.menu { display:grid; gap:10px; }
.btn { border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.07); color:var(--ink); border-radius:14px; padding:12px 16px; font:inherit; font-size:15px; font-weight:750; cursor:pointer; text-align:left;
  display:flex; justify-content:space-between; align-items:center; gap:10px; transition:transform .12s, background .2s, border-color .2s; box-shadow:inset 0 1px 0 rgba(255,255,255,.18); }
@media (hover:hover) { .btn:hover { background:rgba(255,255,255,.17); border-color:rgba(255,255,255,.4); } }
.btn:active { transform:scale(.975); }
.btn .ds { font-size:12px; color:var(--dim); font-weight:600; }
.btn.primary { background:linear-gradient(180deg,#ff9564,var(--hot2)); border-color:rgba(255,190,160,.5); color:#fff; box-shadow:0 6px 16px rgba(226,87,43,.3), inset 0 1px 0 rgba(255,255,255,.45); }
@media (hover:hover) { .btn.primary:hover { background:linear-gradient(180deg,#ffa478,#ec6233); } }
.btn.primary .ds { color:#ffe6da; }
.btn.small { padding:10px 14px; font-size:14px; justify-content:center; }
.row { display:flex; gap:10px; margin-top:16px; }
.row .btn { flex:1; justify-content:center; }
.lvgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(146px,1fr)); gap:10px; }
.lv { position:relative; isolation:isolate; overflow:hidden; border:1px solid rgba(255,255,255,.2); border-radius:16px; padding:12px 12px 10px; cursor:pointer; color:var(--ink); text-align:left; font:inherit;
  background:linear-gradient(170deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); transition:transform .12s, border-color .2s; }
.lv::before { content:""; position:absolute; inset:0; background:var(--lvsky, none); opacity:.55; z-index:-1; }
@media (hover:hover) { .lv:hover { border-color:rgba(255,200,170,.7); } }
.lv:active { transform:scale(.97); }
.lv .no { font-size:11px; color:#ffb48f; font-weight:800; letter-spacing:1px; }
.lv .nm { font-size:16px; font-weight:900; margin:2px 0 4px; }
.lv .tk { font-size:12px; color:var(--dim); line-height:1.5; min-height:36px; }
.lv .lc { font-size:11px; color:rgba(255,255,255,.55); margin-top:4px; }
.lv .bt { font-size:12px; color:var(--ok); margin-top:4px; font-weight:700; font-variant-numeric:tabular-nums; }
/* 选关:走马灯。一关一张卡(画那一关的远景),中间那张放大,两边缩小变淡;
   横着滑、滚轮、← → 都能换,吸附到正中;点两边的卡先挪到中间,点中间的卡开始 */
#pLevels { display:none; grid-template-rows:auto 1fr auto; grid-template-columns:minmax(0, 1fr); place-items:stretch; padding:0; overflow:hidden;
  background:linear-gradient(180deg, rgba(14,10,32,.5), rgba(14,10,32,.12) 30%, rgba(14,10,32,.12) 70%, rgba(14,10,32,.5)); }
#pLevels.on { display:grid; }
.lvTop { display:flex; align-items:center; gap:12px; padding:calc(12px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.lvBack, .lvArrow { flex:none; width:42px; height:42px; border-radius:21px; border:1px solid rgba(255,255,255,.18); background:rgba(22,16,48,.38); color:var(--ink); display:grid; place-items:center; cursor:pointer;
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); transition:background .2s, transform .12s, opacity .2s; }
@media (hover:hover) { .lvBack:hover, .lvArrow:hover { background:rgba(40,30,80,.5); } }
.lvBack:active, .lvArrow:active { transform:scale(.92); }
.lvArrow:disabled { opacity:.3; cursor:default; }
/* 分组多(9 个):名字和进度上下排、不换行;放得下就居中,放不下左右滑(首尾 margin:auto 代替 justify-content:center,溢出时不会切掉开头) */
.lvTabs { flex:1; min-width:0; display:flex; gap:2px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image:linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.lvTabs::-webkit-scrollbar { display:none; }
.lvTabs > :first-child { margin-left:auto; } .lvTabs > :last-child { margin-right:auto; }
.lvTabs button { flex:none; white-space:nowrap; border:0; background:none; color:var(--dim); font:inherit; font-size:14px; font-weight:800; line-height:1.25; padding:6px 12px; border-radius:16px; cursor:pointer; transition:background .25s, color .25s; }
.lvTabs button small { display:block; font-size:11px; font-weight:700; opacity:.8; font-variant-numeric:tabular-nums; }
.lvTabs button.on { background:rgba(255,255,255,.14); color:#fff; }
#lvCount { flex:none; min-width:42px; text-align:right; font-size:13px; font-weight:800; color:var(--dim); font-variant-numeric:tabular-nums; }
.lvTrack { --cw:clamp(230px, 36vw, 420px); display:flex; align-items:center; gap:calc(var(--cw) * -0.06); overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none;
  padding:0 calc(50% - var(--cw) / 2); touch-action:pan-x; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; }
.lvTrack::-webkit-scrollbar { display:none; }
.lvTrack.drag { scroll-snap-type:none; cursor:grabbing; }
.lvc { flex:none; position:relative; width:var(--cw); aspect-ratio:16/10; max-height:calc(100dvh - 150px); scroll-snap-align:center; border:0; padding:0; border-radius:22px; overflow:hidden; cursor:pointer;
  color:#fff; font:inherit; text-align:left; background:#241c44; transform:scale(var(--k,.84)); will-change:transform;
  box-shadow:0 14px 34px rgba(8,4,24,.35); outline:1px solid rgba(255,255,255,.14); outline-offset:-1px; }
.lvc canvas { position:absolute; inset:0; z-index:0; width:100%; height:100%; display:block; }
.lvc::after { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(10,6,28,.28), rgba(10,6,28,0) 34%, rgba(10,6,28,0) 52%, rgba(10,6,28,.72)); }
.lvc > * { position:relative; z-index:2; }
.lvc::before { content:""; position:absolute; inset:0; z-index:1; background:rgba(14,10,32,.62); opacity:var(--o,1); pointer-events:none; }
.lvc .n { position:absolute; left:18px; top:12px; font-size:clamp(30px,4.4vw,46px); font-weight:900; line-height:1; letter-spacing:-1px; font-variant-numeric:tabular-nums; text-shadow:0 2px 12px rgba(0,0,0,.35); }
.lvc .tx { position:absolute; left:18px; right:18px; bottom:14px; }
.lvc .t { display:block; font-size:clamp(17px,2.2vw,22px); font-weight:900; text-shadow:0 2px 10px rgba(0,0,0,.4); }
.lvc .lvPol { position:absolute; right:8px; top:8px; z-index:2; font-style:normal; font-size:11px; font-weight:800; color:#1c3a16; background:#9df07e; padding:2px 7px; border-radius:9px; }
.lvc .tk { display:block; margin-top:3px; font-size:12.5px; font-weight:600; color:rgba(255,255,255,.78); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lvc .s { position:absolute; right:14px; top:14px; padding:4px 10px; border-radius:12px; font-size:12px; font-weight:800; font-variant-numeric:tabular-nums; background:rgba(10,6,28,.45); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.lvc.done .s { color:#8ff0b8; }
.lvc.next .s { background:linear-gradient(180deg,#ff9564,var(--hot2)); color:#fff; }
.lvc.cur { outline:2px solid rgba(255,255,255,.55); }
.lvFoot { display:flex; align-items:center; justify-content:center; gap:14px; padding:0 16px calc(12px + env(safe-area-inset-bottom)); }
.lvMode { flex:none; display:flex; padding:3px; border-radius:18px; background:rgba(16,12,36,.38); }
.lvMode button { white-space:nowrap; border:0; background:none; color:var(--dim); font:inherit; font-size:12.5px; font-weight:800; padding:6px 12px; border-radius:15px; cursor:pointer; }
.lvMode button.on { background:rgba(255,255,255,.16); color:#fff; }
#pLevels.hard .lvMode button.on { background:linear-gradient(180deg,#ff6b5a,#c4321e); }
#pLevels.hard .lvc .n::after { content:""; display:inline-block; width:8px; height:8px; margin-left:8px; vertical-align:middle; border-radius:50%; background:#ff5a4a; box-shadow:0 0 8px #ff5a4a; }
.lvc.lock canvas { filter:grayscale(.7) brightness(.55); }
.lvc .s.lk { background:rgba(10,6,28,.6); color:rgba(255,255,255,.75); }
.lvGo.dim { filter:grayscale(.8) brightness(.7); }
.lvGo { min-width:min(280px,46vw); justify-content:center; padding:11px 22px; font-size:16px; }
@media (max-height:430px) { .lvTop { padding-top:calc(8px + env(safe-area-inset-top)); } .lvFoot { padding-bottom:calc(8px + env(safe-area-inset-bottom)); } .lvGo { padding:9px 20px; } .lvc { max-height:calc(100dvh - 124px); } }
.keys { background:rgba(0,0,0,.18); border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:12px 14px; font-size:13px; color:var(--dim); line-height:1.95; margin:18px 0 0; }
/* 菜单底部的「关于」:收起时只占一行,文字是静态的,搜索引擎能读到 */
.about { margin:14px 0 0; font-size:12.5px; color:var(--dim); line-height:1.8; }
.about summary { cursor:pointer; font-weight:700; }
.about p { margin-top:8px; -webkit-user-select:text; user-select:text; }
.keys kbd { font:12px ui-monospace,Menlo,monospace; padding:1px 6px; border:1px solid rgba(255,255,255,.25); border-bottom-width:2px; border-radius:6px; background:rgba(255,255,255,.1); color:#fff; }
.opt { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.12); font-size:15px; font-weight:700; }
.opt:last-of-type { border-bottom:0; }
.opt .ds { display:block; font-size:12px; color:var(--dim); margin-top:2px; font-weight:500; }
.tg { width:48px; height:28px; border-radius:14px; background:rgba(255,255,255,.18); position:relative; cursor:pointer; flex:none; border:0; transition:background .2s; box-shadow:inset 0 1px 3px rgba(0,0,0,.25); }
.tg::after { content:""; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:#fff; transition:left .2s cubic-bezier(.3,1.4,.5,1); box-shadow:0 2px 5px rgba(0,0,0,.3); }
.tg.on { background:linear-gradient(180deg,#ff9564,var(--hot2)); }
.tg.on::after { left:23px; }
.stats { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:6px 0 4px; }
.stat { background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); border-radius:16px; padding:10px 14px; text-align:center; }
.stat .k { font-size:12px; color:var(--dim); }
.stat .v { font-size:26px; font-weight:900; font-variant-numeric:tabular-nums; }
.resStars { text-align:center; margin:-6px 0 10px; }
.stars { display:inline-flex; gap:3px; vertical-align:middle; }
.stars .st { width:14px; height:14px; background:rgba(255,255,255,.28); clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.stars .st.on { background:linear-gradient(180deg,#ffe58a,#f0a91a); }
.stars.big { gap:8px; } .stars.big .st { width:34px; height:34px; }
.stars.big .st.on { animation:starPop .4s cubic-bezier(.2,1.6,.4,1) backwards; filter:drop-shadow(0 2px 8px rgba(255,190,60,.55)); }
.stars.big .st:nth-child(2) { animation-delay:.15s; } .stars.big .st:nth-child(3) { animation-delay:.3s; }
@keyframes starPop { from { transform:scale(0) rotate(-30deg); } to { transform:none; } }
.starWhy { display:flex; justify-content:center; gap:14px; margin-top:6px; font-size:11.5px; font-weight:700; color:var(--dim); }
.starWhy .ok { color:#ffe08a; }
.dailyCard { width:min(640px,94vw); padding:0 0 16px; overflow:hidden; }
.dailyCard .row { padding:0 20px; margin-top:12px; }
.dyHead { position:relative; height:120px; }
.dyHead canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
.dyHead::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,6,28,0) 30%, rgba(10,6,28,.7)); }
.dyHeadTx { position:absolute; left:20px; right:20px; bottom:12px; z-index:1; }
.dyHeadTx h2 { margin:2px 0 4px; font-size:22px; font-weight:900; }
.dyMeta { font-size:12px; font-weight:700; color:rgba(255,240,225,.85); }
.dyBody { padding:12px 20px 0; display:grid; gap:10px; }
.dyMine { font-size:13px; color:var(--dim); line-height:1.6; } .dyMine b { color:#fff; }
#dyBoard { max-height:min(30vh,240px); }
#dyMine .lnk, #dyBoard .lnk { font:inherit; font-weight:800; color:#ffd7b8; background:none; border:0; cursor:pointer; text-decoration:underline; }
/* 地标卡:关卡里点地名 / 暂停页 / 选关 / 足迹册都打开同一张 */
.placeTag { margin:5px auto 0; display:inline-flex; align-items:center; gap:4px; padding:3px 10px 3px 7px; border-radius:99px; border:1px solid rgba(255,255,255,.22); background:rgba(20,12,44,.35); color:rgba(255,255,255,.9); font:700 11px/1.2 inherit; letter-spacing:.5px; pointer-events:auto; cursor:pointer; transition:opacity .8s; }
.placeTag svg, .placeRow svg, .plMeta svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; flex:none; }
.placeTag.dim { opacity:.55; }
.placeRow { display:flex; align-items:center; justify-content:center; gap:5px; margin:-4px auto 10px; padding:4px 12px; border:0; border-radius:99px; background:rgba(255,255,255,.08); color:rgba(255,240,225,.92); font:700 12.5px/1.3 inherit; cursor:pointer; }
/* 地标卡:左边照片(没有照片的地方画远景剪影),右边地名和三句介绍;竖屏才上下排 */
.placeCard { width:min(820px,94vw); padding:0; }
.plBody { display:grid; grid-template-columns:minmax(0,44%) minmax(0,1fr); min-height:min(300px,72vh); }
.plPic { position:relative; overflow:hidden; background:#16122c; border-radius:14px; }
.plPic canvas, .plPic img { position:absolute; inset:0; width:100%; height:100%; display:block; object-fit:cover; }
.plPic img { opacity:0; transition:opacity .35s; }
.plPic img.on { opacity:1; }
.plText { display:flex; flex-direction:column; min-width:0; padding:18px 22px 16px; }
.plText h2 { margin:4px 0 10px; font-size:22px; font-weight:900; line-height:1.25; }
.plText .plFacts { padding:0; flex:1; }
.plText .inBar { margin:14px 0 0; }
.plText .row { margin-top:14px; }
@media (max-aspect-ratio:1/1) { .plBody { grid-template-columns:1fr; } .plPic { height:150px; } }
.resPlace { margin:6px auto 4px; }
#pIntro { cursor:pointer; }
.inBar { height:3px; margin:14px 20px 0; border-radius:2px; background:rgba(255,255,255,.12); overflow:hidden; }
.inBar i { display:block; height:100%; background:var(--accent, #ffb46b); transform-origin:left center; }
#inGo { min-width:96px; }
.placeRow .new:not(:empty) { margin-left:4px; padding:1px 6px; border-radius:99px; background:#ffb46b; color:#2a1608; font-size:10.5px; font-weight:900; }
.menuPlace { position:fixed; left:calc(4px + env(safe-area-inset-left)); bottom:calc(2px + env(safe-area-inset-bottom)); width:150px; height:34px; border:0; background:none; z-index:2; cursor:pointer; }
.plsCard h2 { text-align:center; }
.lvPl { display:inline-flex; align-self:flex-start; margin:2px 0 1px; padding:1px 8px; border-radius:99px; background:rgba(255,255,255,.12); font-size:10.5px; font-weight:700; color:rgba(255,240,225,.92); }
.lvPl::before { content:""; width:5px; height:5px; border-radius:50%; background:#ffb46b; margin:auto 5px auto 0; }
.plMeta { display:flex; align-items:center; gap:4px; }
.plFacts { list-style:none; margin:0; padding:12px 20px 0; display:flex; flex-direction:column; gap:9px; }
.plFacts li { position:relative; padding-left:14px; font-size:14px; line-height:1.55; color:rgba(255,255,255,.92); }
.plFacts li::before { content:""; position:absolute; left:2px; top:.62em; width:5px; height:5px; border-radius:50%; background:var(--accent, #ffb46b); }
.plsCard { width:min(760px,96vw); }
.vgCard { width:min(900px,96vw); padding-bottom:12px; }
.vgCard h2 { text-align:center; margin-bottom:6px; }
.vgTabs { display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-bottom:8px; }
.vgTabs button { border:0; border-radius:99px; padding:5px 12px; background:rgba(255,255,255,.1); color:rgba(255,255,255,.85); font-weight:800; font-size:12.5px; cursor:pointer; }
.vgTabs button small { margin-left:5px; opacity:.65; font-weight:700; }
.vgTabs button.on { background:#ffd28a; color:#2a1608; }
.vgStage { position:relative; height:clamp(160px, calc(100vh - 210px), 560px); height:clamp(160px, calc(100dvh - 210px), 560px); border-radius:16px; overflow:hidden; background:#05060f; touch-action:none; }
.vgStage canvas { position:absolute; inset:0; width:100%; height:100%; display:block; cursor:grab; }
@media (max-height:480px) { .vgCard { padding-top:8px; } .vgCard h2 { font-size:15px; margin:0 0 4px; } .vgTabs { margin-bottom:6px; } .vgTabs button { padding:3px 10px; font-size:11.5px; } .vgStage { height:calc(100vh - 150px); height:calc(100dvh - 150px); } .vgCard .row { margin-top:6px; } }
.plsCount { font-size:12px; font-weight:700; color:rgba(255,240,225,.8); margin:-6px 0 10px; text-align:center; }
.plsGrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(118px,1fr)); gap:12px; max-height:58vh; overflow-y:auto; padding:4px; }
.plsGrid button { position:relative; aspect-ratio:5/4; border:0; padding:0; background:none; color:#fff; cursor:pointer; filter:drop-shadow(0 3px 6px rgba(0,0,0,.35)); transition:transform .15s; }
.plsGrid button:not(.no):hover { transform:rotate(-2deg) scale(1.04); }
.plsGrid canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
.plsGrid b { position:absolute; left:8px; right:6px; bottom:6px; z-index:1; font-size:11.5px; line-height:1.25; text-align:left; font-weight:800; }
.plsGrid button.no { filter:none; cursor:default; }
.plsGrid button.no b { color:rgba(255,255,255,.55); }
@media (max-height:500px) { .plBody { min-height:0; } .plText { padding:12px 16px 12px; } .plText h2 { font-size:18px; margin:2px 0 6px; } .plFacts { gap:6px; } .plFacts li { font-size:13px; line-height:1.45; } .plText .row { margin-top:10px; } .plsGrid { max-height:52vh; } }
@media (max-height:500px) { .dyHead { height:84px; } .dyHeadTx h2 { font-size:18px; } #dyBoard { max-height:22vh; } .dyBody { padding-top:8px; } }
.unlockNote { margin-top:6px; font-size:12px; font-weight:800; color:#ff9b8a; }
.coinIc { display:inline-block; width:13px; height:13px; vertical-align:-2px; margin-right:4px; border-radius:50%; background:rgba(255,255,255,.18); box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.35); }
.coinIc.on, .partChip .coinIc { background:radial-gradient(circle at 35% 30%, #fff3b0, #ffd23f 45%, #c99a12); box-shadow:inset 0 0 0 1.5px #e0a91a; }
.coinIc.new { animation:starPop .45s cubic-bezier(.2,1.6,.4,1) backwards .45s; }
.partRow { display:flex; justify-content:center; align-items:center; gap:4px; margin-top:6px; font-size:11.5px; font-weight:700; color:var(--dim); }
.partRow .coinIc { width:16px; height:16px; }
.partChip { display:flex; align-items:center; color:#ffe08a; }
.card.garage { width:min(640px,94vw); }
.card.garage h2 { display:flex; justify-content:space-between; align-items:center; }
.gWal { font-size:16px; font-weight:900; color:#ffe08a; font-variant-numeric:tabular-nums; display:flex; align-items:center; }
.gCars { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; }
.gCar { position:relative; display:flex; flex-direction:column; align-items:center; gap:1px; padding:4px 4px 6px; border-radius:14px; cursor:pointer;
  border:1.5px solid rgba(255,255,255,.14); background:rgba(0,0,0,.16); color:#fff; font:inherit; }
.gCar canvas { width:100%; aspect-ratio:2.4/1; display:block; }
.gCar b { font-size:13px; font-weight:800; }
.gCar small { font-size:11px; color:var(--dim); font-weight:700; display:flex; align-items:center; font-variant-numeric:tabular-nums; }
.gCar.on { border-color:#fff; box-shadow:0 0 0 2px rgba(255,255,255,.3); }
.gCar.lock canvas { filter:brightness(.45) saturate(.4); }
.gCar.buy small { color:#ffe08a; }
.gNote { font-size:12px; color:var(--dim); line-height:1.7; margin:12px 0 0; }
.lifeChip { display:flex; align-items:center; gap:6px; color:#ffd9d0; font-weight:800; font-size:12px; }
.lifeChip .hp { position:relative; width:56px; height:7px; border-radius:4px; background:rgba(0,0,0,.35); overflow:hidden; box-shadow:inset 0 1px 2px rgba(0,0,0,.4); }
.lifeChip .hp b { position:absolute; inset:0 auto 0 0; border-radius:4px; background:linear-gradient(180deg,#ffb4a0,#e0563c); transition:width .25s; }
.lifeChip .hp i { position:absolute; inset:0 auto 0 0; border-radius:4px; background:#fff3c4; transition:width .7s .25s; }
.lifeChip.hit { animation:hpHit .45s ease-out; }
@keyframes hpHit { 0% { transform:translateX(0); border-color:rgba(255,110,90,.95); } 25% { transform:translateX(-3px); } 50% { transform:translateX(3px); } 100% { transform:translateX(0); } }
.lifeChip.last { animation:lifeLast 1s ease-in-out infinite; }
@keyframes lifeLast { 50% { opacity:.45; } }
.paints { display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; max-width:60%; }
.paints .pt { position:relative; width:34px; height:22px; border-radius:7px; border:1.5px solid rgba(255,255,255,.25); cursor:pointer; padding:0;
  background:linear-gradient(180deg, transparent 58%, var(--s0) 58% 74%, transparent 74%), linear-gradient(180deg, var(--b0), var(--b1)); }
.paints .pt.on { border-color:#fff; box-shadow:0 0 0 2px rgba(255,255,255,.35); }
.paints .pt.lock { cursor:default; }
.paints .pt.lock::before { content:""; position:absolute; inset:0; border-radius:5px; background:rgba(20,16,40,.74); }
.paints .pt span { position:absolute; inset:0; z-index:1; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:800; color:#fff; }
.paints .pt span .coinIc { width:9px; height:9px; margin-right:1px; box-shadow:inset 0 0 0 1px #e0a91a; }
.lvc .lvParts { display:inline-flex; align-items:center; margin-left:10px; font-size:12px; font-weight:800; color:rgba(255,255,255,.8); }
/* ---- 过关:上面星星和用时,中间奖励卡,下面三个图标按钮 ---- */
#pResult .card { width:min(440px,92vw); position:relative; padding:20px 22px 18px; text-align:center;
  background:radial-gradient(110% 70% at 50% 0%, rgba(255,214,90,.16), rgba(255,214,90,0) 60%), var(--glass); }
#resTitle { margin:0 0 14px; font-size:20px; line-height:1.2; padding:0 30px; }
#resTitle small { display:block; font-size:11.5px; font-weight:800; letter-spacing:.08em; color:#ffe08a; text-transform:uppercase; margin-bottom:3px; }
#pResult .resStars { margin:2px 0 4px; }
#pResult .stars.big { justify-content:center; gap:10px; } #pResult .stars.big .st { width:42px; height:42px; }
#pResult .stars.big { align-items:flex-end; } #pResult .stars.big .st:nth-child(2) { width:50px; height:50px; margin-bottom:6px; }
#pResult .stats { display:block; margin:6px 0 0; }
.resTime { font-size:34px; font-weight:900; font-variant-numeric:tabular-nums; letter-spacing:-.01em; line-height:1.1; }
.resMini { display:flex; justify-content:center; gap:14px; margin-top:2px; font-size:12px; color:var(--dim); }
.resMini b { color:var(--ink); font-weight:800; }
#pResult .rec { margin-top:6px; font-size:12.5px; min-height:0; }
#pResult .rwd { margin:14px 0 0; text-align:left; }
#pResult .rwd { grid-template-columns:auto 1fr; row-gap:10px; } #pResult .rwdBar { grid-column:2; } #pResult .rwdBtn.on { grid-column:1 / -1; justify-content:center; }
#pResult .rpMsg { min-height:0; margin:6px 0 0; }
.resAct { display:flex; justify-content:center; align-items:center; gap:14px; margin-top:16px; }
.icoBtn { width:52px; height:52px; flex:none; display:grid; place-items:center; border-radius:50%; cursor:pointer; color:var(--ink);
  border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.09); box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px rgba(0,0,0,.18);
  transition:transform .12s, background .2s; }
.icoBtn svg, .resX svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.icoBtn svg .fill { fill:currentColor; stroke:none; }
.icoBtn:active, .resX:active { transform:scale(.92); }
@media (hover:hover) { .icoBtn:hover { background:rgba(255,255,255,.16); } }
.icoBtn.go { width:auto; min-width:104px; height:56px; border-radius:28px; padding:0 26px; color:#fff; border-color:rgba(255,190,160,.5);
  background:linear-gradient(180deg,#ff9564,var(--hot2)); box-shadow:0 8px 20px rgba(226,87,43,.38), inset 0 1px 0 rgba(255,255,255,.45); }
.icoBtn.go svg { width:26px; height:26px; }
@media (hover:hover) { .icoBtn.go:hover { background:linear-gradient(180deg,#ffa478,#ec6233); } }
.resX { position:absolute; top:12px; left:12px; width:34px; height:34px; display:grid; place-items:center; border-radius:50%; border:0; cursor:pointer;
  color:var(--dim); background:rgba(255,255,255,.07); z-index:2; }
.resX svg { width:18px; height:18px; }
/* 横屏手机:两栏 —— 左边星星和用时,右边奖励卡和按钮(一列太高,顶上横幅会压住卡片) */
@media (max-height:500px) and (min-width:600px) {
  #pResult .card { width:min(760px,94vw); padding:12px 20px 12px; }
  #resTitle { margin-bottom:8px; }
  #pResult .resCols { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:22px; align-items:center; }
  #pResult .stars.big .st { width:34px; height:34px; }
  .resTime { font-size:28px; }
  #pResult .resB .rwd { margin-top:0; grid-template-columns:auto 1fr; row-gap:10px; }
  #pResult .resB .rwdBar { grid-column:2; }
  #pResult .resB .rwdBtn.on { grid-column:1 / -1; justify-content:center; }
  .resAct { margin-top:14px; }
}
@media (max-height:500px) and (max-width:599px) { #pResult .card { padding:14px 16px; } .resTime { font-size:26px; } .resAct { margin-top:10px; } }
.hud .par { font-size:12px; font-weight:800; font-variant-numeric:tabular-nums; padding:4px 10px; border-radius:999px; color:#ffe08a; background:rgba(16,12,36,.38); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); transition:color .3s, opacity .3s; }
.hud .par.off { color:rgba(255,255,255,.45); text-decoration:line-through; }
.lvc .stars { margin-top:6px; } .lvc .stars .st { width:15px; height:15px; }
.rec { text-align:center; color:var(--ok); font-size:14px; font-weight:800; margin-top:10px; min-height:20px; }
.langBtn { position:fixed; top:calc(14px + env(safe-area-inset-top)); right:14px; z-index:60; background:rgba(28,22,58,.45); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); border:1px solid var(--edge); color:#fff; border-radius:999px; padding:7px 15px; font-size:13px; font-weight:700; cursor:pointer; }

/* 游戏里的顶栏:毛玻璃小胶囊 */
.hud { position:fixed; inset:0; pointer-events:none; z-index:20; display:none; }
.hud.on { display:block; }
.hud .tl { position:absolute; top:calc(10px + env(safe-area-inset-top)); left:calc(12px + env(safe-area-inset-left)); display:flex; flex-direction:column; gap:6px; }
.bat { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:800; padding:5px 10px 5px 8px; border-radius:999px; background:rgba(16,12,36,.38); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.2); font-variant-numeric:tabular-nums; }
.bat .bar { width:110px; height:9px; border-radius:5px; background:rgba(0,0,0,.35); overflow:hidden; box-shadow:inset 0 1px 2px rgba(0,0,0,.4); }
.bat .bar b { display:block; height:100%; width:100%; border-radius:5px; background:linear-gradient(180deg,#8ff0b8,#2fb46c); box-shadow:0 0 8px rgba(79,208,138,.6); transition:width .1s; }
.bat.mid .bar b { background:linear-gradient(180deg,#ffe58a,#e8b21c); box-shadow:0 0 8px rgba(255,210,63,.6); }
.bat.low .bar b { background:linear-gradient(180deg,#ff8a7c,#e0392a); box-shadow:0 0 8px rgba(255,90,74,.7); animation:blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity:.35; } }
/* 没电时按喷气:电量条抖一下变红框;手机上喷气键变灰 */
.bat.empty { animation:batShake .4s ease-out; border-color:rgba(255,110,90,.95); }
@keyframes batShake { 0%,100% { transform:translateX(0); } 20% { transform:translateX(-5px); } 40% { transform:translateX(5px); } 60% { transform:translateX(-3px); } 80% { transform:translateX(2px); } }
body.noGas #jetBtn, body.noGas #sideLR .pb, body.noGas #tdUD .pb, body.noGas #tdLR .pb { filter:grayscale(1); opacity:.5; }
.coin { display:inline-block; width:11px; height:11px; margin:0 5px -1px 0; border-radius:50%; background:radial-gradient(circle at 35% 30%, #fff3b0, #ffd23f 45%, #c99a12); box-shadow:inset 0 0 0 1.5px #e0a91a; }
.board .boardTabs { border:none; padding:0 0 4px; display:flex; gap:6px; justify-content:center; margin:6px 0 2px; }
.boardTabs button { font:inherit; font-size:12px; font-weight:800; color:#fff; padding:4px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.06); cursor:pointer; }
.boardTabs button.on { background:rgba(255,255,255,.22); border-color:rgba(255,255,255,.5); }
/* 无尽结算 */
.card.endCard { width:min(720px,94vw); padding:0 0 18px; overflow:hidden; }
.endCard .row { padding:0 20px; margin-top:12px; }
.endHead .resX { left:auto; right:12px; top:10px; z-index:3; background:rgba(14,10,30,.35); color:#fff; }
.endAct { margin:14px 0 4px; padding:0 20px; }
@media (max-height:400px) { .endHead { height:46px; } .endHeadTx { bottom:6px; } .endWhere { font-size:11px; } .endHeadTx h2 { font-size:17px; } .endHead .resX { top:6px; width:30px; height:30px; } .endMini { display:none; } .endBody { padding-top:8px; } .endCard .rwd { margin-top:8px; } .endAct { margin:10px 0 2px; } .endAct .icoBtn { width:46px; height:46px; } .endAct .icoBtn.go { height:48px; }
  /* 奖励卡和两个按钮并成一行 */
  .endCard { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:'h h' 'b b' 'r a' 'm m'; }
  .endHead { grid-area:h; } .endBody { grid-area:b; } #endRwd { grid-area:r; margin:8px 0 14px 20px; } .endAct { grid-area:a; margin:8px 0 14px; align-self:center; gap:10px; } .endCard .rpMsg { grid-area:m; } #endRp { display:none; } #endRwd .rwdBar { display:none; } #endRwd { grid-template-columns:auto auto; justify-content:space-between; } }
.endCard .rpMsg { padding:0 20px; }
.endHead { position:relative; height:84px; }
.endHead canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
.endHead::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(14,10,30,.05), rgba(28,22,58,.55)); }
.endHeadTx { position:absolute; left:22px; bottom:12px; z-index:1; }
.endWhere { font-size:12px; font-weight:700; letter-spacing:1px; color:rgba(255,240,225,.85); }
.endHeadTx h2 { margin:2px 0 0; font-size:24px; font-weight:900; letter-spacing:2px; text-shadow:0 2px 12px rgba(20,10,40,.6); }
.endBody { display:grid; grid-template-columns:1fr; gap:14px; padding:14px 20px 0; }
@media (min-width:600px) { .endBody { grid-template-columns:1.05fr 1fr; align-items:start; } }
.endBig { font-size:52px; font-weight:900; line-height:1; letter-spacing:-1px; font-variant-numeric:tabular-nums;
  background:linear-gradient(180deg,#fff,#ffd7b8); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.endBig small { font-size:20px; font-weight:800; -webkit-text-fill-color:rgba(255,225,205,.75); }
.endRec { align-self:center; font-size:12px; letter-spacing:1px; padding:4px 10px; border-radius:999px; -webkit-text-fill-color:#2a1600; background:linear-gradient(180deg,#ffe58a,#ffb52e); box-shadow:0 0 18px rgba(255,190,60,.55); animation:recPop .5s .6s both cubic-bezier(.2,1.6,.4,1); }
.endRec:empty { display:none; }
@keyframes recPop { from { transform:scale(0) rotate(-12deg); opacity:0; } to { transform:none; opacity:1; } }
.endCoins { margin-top:10px; font-size:26px; font-weight:900; font-variant-numeric:tabular-nums; display:flex; align-items:center; gap:2px; color:#ffe08a; }
.endCoins small { font-size:12px; color:var(--dim); font-weight:700; margin-left:10px; }
.coin.lg { width:22px; height:22px; margin:0 8px 0 0; box-shadow:inset 0 0 0 2.5px #e0a91a, 0 0 14px rgba(255,210,63,.45); }
.endMini { margin-top:12px; display:flex; flex-wrap:wrap; gap:6px; }
.endMini span { font-size:12px; font-weight:700; color:var(--dim); padding:4px 9px; border-radius:999px; background:rgba(0,0,0,.2); border:1px solid rgba(255,255,255,.1); }
.endMini span b { color:#fff; margin-left:4px; }
.endBoardWrap { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.09); border-radius:16px; padding:6px 12px 8px; }
.endBoardWrap .board { margin-top:0; }
.board .rank { font-style:normal; display:inline-grid; place-items:center; width:18px; height:18px; border-radius:50%; font-size:11px; font-weight:900; margin-right:8px; background:rgba(255,255,255,.12); color:#fff; }
.board .r1 { background:linear-gradient(180deg,#ffe58a,#e0a91a); color:#3a2600; }
.board .r2 { background:linear-gradient(180deg,#f1f4f8,#a9b2bf); color:#26303d; }
.board .r3 { background:linear-gradient(180deg,#f3c39a,#b9733f); color:#3a1d06; }
.board .empty { justify-content:center; border:none; padding:14px 0 6px; }
@media (max-height:430px) {
  .card.endCard { padding-bottom:12px; }
  .endHead { height:56px; } .endHeadTx { bottom:8px; } .endHeadTx h2 { font-size:19px; } .endBig { font-size:38px; } .endCoins { font-size:22px; margin-top:6px; }
  .endBody { padding-top:10px; gap:12px; } .endMini { margin-top:8px; } .endCard .row { margin-top:10px; }
  .endBoardWrap .board div { padding:4px 4px; } .endCard .btn.small { padding:9px 14px; }
}
/* 排行榜 */
.boardCard { width:min(560px,94vw); }
.gbTabs { display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-bottom:6px; }
.gbTabs .sep { width:10px; }
.gbTabs button { font:inherit; font-size:12px; font-weight:800; color:#fff; padding:4px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.06); cursor:pointer; }
.gbTabs button.on { background:rgba(255,255,255,.22); border-color:rgba(255,255,255,.5); }
.gbList { max-height:min(46vh,340px); overflow:auto; }
.endBoardWrap .gbList { max-height:none; overflow:visible; }
.gbList .gap { justify-content:center; border:none; padding:2px 0; color:var(--dim); }
.gbList .note { justify-content:center; border:none; padding:14px 6px; color:var(--dim); text-align:center; line-height:1.6; }
.gbFoot { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; font-size:12px; color:var(--dim); flex-wrap:wrap; }
.gbFoot b { color:#fff; }
.gbFoot a, .gbFoot button.lnk { font:inherit; font-size:12px; font-weight:800; color:#ffd7b8; background:none; border:none; cursor:pointer; padding:2px 0; text-decoration:none; }
.gbFoot a.go { color:#fff; padding:6px 12px; border-radius:999px; background:linear-gradient(180deg,#ff9564,var(--hot2)); }
.gbFoot input { font:inherit; font-size:13px; width:9em; padding:5px 9px; border-radius:10px; border:1px solid rgba(255,255,255,.3); background:rgba(0,0,0,.25); color:#fff; }
.gbFoot .err { color:#ffb4a0; width:100%; }
.chip { align-self:flex-start; font-size:12px; font-weight:800; padding:4px 11px; border-radius:999px; background:rgba(16,12,36,.38); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.22); }
.chip.mag { border-color:rgba(108,180,255,.7); color:#b8dbff; }
/* 手上的技能卡(cardbox.js):一张张小卡,左边一条卡色 */
.cardChip { display:flex; gap:5px; align-self:flex-start; }
.cardChip .cd { font-size:11px; font-weight:800; padding:3px 9px 3px 8px; border-radius:7px; background:rgba(16,12,36,.42); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.2); border-left:3px solid var(--c); color:#fff; font-variant-numeric:tabular-nums; animation:cdIn .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes cdIn { from { transform:scale(.4) rotate(-8deg); opacity:0; } to { transform:none; opacity:1; } }
.hud .tc { position:absolute; top:calc(10px + env(safe-area-inset-top)); left:50%; transform:translateX(-50%); text-align:center; text-shadow:0 1px 6px rgba(20,10,40,.7); max-width:46vw; }
.hud .tc .nm { font-size:15px; font-weight:900; letter-spacing:1px; }
.hud .tc .tk { font-size:12px; color:rgba(255,255,255,.85); font-weight:600; }
.hud .tr { position:absolute; top:calc(8px + env(safe-area-inset-top)); right:calc(12px + env(safe-area-inset-right)); display:flex; gap:8px; align-items:center; }
.hud .time { font-size:16px; font-weight:900; font-variant-numeric:tabular-nums; padding:5px 12px; border-radius:999px; background:rgba(16,12,36,.38); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.2); }
.pauseBtn { pointer-events:auto; width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.3); background:rgba(16,12,36,.38); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); color:#fff; font-size:13px; cursor:pointer; }
.toast { position:absolute; left:50%; top:22%; transform:translate(-50%,6px); background:rgba(20,14,44,.55); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border:1px solid rgba(255,255,255,.25); padding:10px 18px; border-radius:16px; font-size:14px; font-weight:700; opacity:0; transition:opacity .25s, transform .25s; white-space:nowrap; max-width:92vw; overflow:hidden; text-overflow:ellipsis; box-shadow:0 10px 30px rgba(10,6,30,.3); }
.toast.on { opacity:1; transform:translate(-50%,0); }
/* 正在放的曲子:换曲时底部淡入几秒;暂停页里常驻一行 */
.np { position:fixed; left:50%; bottom:calc(12px + env(safe-area-inset-bottom)); z-index:45; transform:translate(-50%,10px); opacity:0; pointer-events:none;
  display:flex; align-items:center; gap:10px; padding:7px 15px 7px 11px; max-width:min(440px,80vw); border-radius:13px; background:rgba(14,12,30,.5);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,.14); box-shadow:0 8px 24px rgba(8,6,24,.28);
  transition:opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.np.on { opacity:1; transform:translate(-50%,0); }
.npTx { min-width:0; line-height:1.25; }
.npTx b { display:block; font-size:12.5px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.npTx small { display:block; font-size:10.5px; font-weight:600; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.eq { flex:none; display:flex; align-items:flex-end; gap:2px; width:14px; height:12px; }
.eq i { flex:1; height:30%; border-radius:1px; background:linear-gradient(180deg,#fff0a8,#e0a020); animation:eqB 1s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-duration:.72s; animation-delay:-.3s; } .eq i:nth-child(3) { animation-duration:.9s; animation-delay:-.55s; } .eq i:nth-child(4) { animation-duration:.63s; animation-delay:-.15s; }
.eq.still i { animation-play-state:paused; }
@keyframes eqB { from { height:22%; } to { height:100%; } }
@media (prefers-reduced-motion: reduce) { .eq i { animation:none; height:60%; } .np { transition:opacity .4s; } }
.npRow { display:none; align-items:center; gap:10px; margin:0 0 12px; padding:8px 8px 8px 11px; border-radius:11px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); }
.npRow.on { display:flex; }
.npRow .npTx { flex:1; }
.npNext { flex:none; width:30px; height:30px; display:grid; place-items:center; border:0; border-radius:9px; background:rgba(255,255,255,.1); color:#fff; cursor:pointer; }
@media (hover:hover) { .npNext:hover { background:rgba(255,255,255,.18); } } .npNext svg { width:14px; height:14px; }
/* 手机:提示挪到底部正中,两块按键中间那条空地,不挡车前面 */
@media (pointer:coarse) { .toast { top:auto; bottom:calc(12px + env(safe-area-inset-bottom)); white-space:normal; text-align:center; font-size:13px; line-height:1.45; padding:8px 14px; max-width:calc(100vw - 488px * var(--ps,1) - 44px - env(safe-area-inset-left) - env(safe-area-inset-right)); min-width:200px; }
  /* 手机上提示和「正在播放」都在底部正中:提示在的时候,正在播放挪到顶上标题下面 */
  .toast.on + .np { bottom:auto; top:calc(58px + env(safe-area-inset-top)); } }

/* 手机点按钮:手指一落就压下去变亮,抬起后再留一小会儿,快点一下也看得见(见 tapFx) */
.tap { scale:.95; filter:brightness(1.25); transition:scale .05s, filter .05s !important; }
.lvc.tap { scale:.98; }
/* 手机横屏:左手 ◀▶(车贴在左右墙上时朝墙的那个变 ▲、另一个变 ▼),右手一个大「喷」+ 一个「吸」 */
.pad { position:fixed; bottom:calc(12px + env(safe-area-inset-bottom)); z-index:25; display:none; touch-action:none; }
.pad.on { display:block; }
/* 矮屏(横着的手机)按高度缩小,手指少挡一点画面;--ps 在 resize() 里算 */
.pad.left { left:calc(12px + env(safe-area-inset-left)); width:244px; height:236px; transform-origin:left bottom; transform:scale(var(--ps,1)); }
.pad.right { right:calc(14px + env(safe-area-inset-right)); width:200px; height:190px; transform-origin:right bottom; transform:scale(var(--ps,1)); }
.pb { position:absolute; pointer-events:none; width:66px; height:66px; border-radius:20px; border:1px solid rgba(255,255,255,.24); background:rgba(16,12,36,.2); color:rgba(255,255,255,.8); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); font-size:20px; font-weight:900; display:grid; place-items:center; transition:background .08s, transform .08s; box-shadow:inset 0 1px 0 rgba(255,255,255,.25); }
.pb.act { background:rgba(255,122,72,.6); border-color:rgba(255,200,170,.85); transform:scale(.95); }
#jetBtn { right:0; bottom:0; width:104px; height:104px; border-radius:52px; font-size:18px; background:radial-gradient(circle at 50% 35%, rgba(255,149,100,.55), rgba(226,87,43,.35)); border-color:rgba(255,200,170,.6); }
#jetBtn.act { background:radial-gradient(circle at 50% 35%, rgba(255,170,130,.85), rgba(226,87,43,.7)); }
#attachBtn { right:118px; bottom:8px; width:72px; height:72px; border-radius:36px; font-size:16px; }
/* 两个键用图标:喷 = 往上的箭头下面三道气;技能键 = 四角星 */
.pb .ic { display:block; width:46%; height:46%; }
#jetBtn .ic { width:50%; height:50%; }
.pad.right .zone { position:absolute; inset:0; }
@media (hover:hover) and (pointer:fine) { .pad { display:none !important; } }
/* 无尽:手上有导弹时右下角出发射键 */
.fireBtn { position:fixed; right:calc(18px + env(safe-area-inset-right)); bottom:calc(18px + env(safe-area-inset-bottom)); z-index:25; display:none; width:88px; height:88px; border-radius:44px; touch-action:none; cursor:pointer;
  border:1px solid rgba(255,180,165,.7); background:radial-gradient(circle at 50% 35%, rgba(255,120,100,.6), rgba(200,50,40,.4)); color:#fff; font:inherit; font-weight:900; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); box-shadow:inset 0 1px 0 rgba(255,255,255,.35); flex-direction:column; align-items:center; justify-content:center; gap:2px; transform-origin:right bottom; transform:scale(var(--ps,1)); }
.fireBtn.on { display:flex; } .fireBtn:active { transform:scale(calc(var(--ps,1) * .94)); }
.fireBtn b { font-size:17px; } .fireBtn span { font-size:12px; opacity:.85; }
@media (hover:hover) and (pointer:fine) { .fireBtn { width:76px; height:76px; } }
/* 竖屏没法玩:请横过来 */
#dbg { position:fixed; left:8px; bottom:8px; z-index:300; max-width:70vw; margin:0; padding:6px 8px; background:rgba(0,0,0,.72); color:#cfe; font:10px/1.45 ui-monospace,Menlo,monospace; white-space:pre-wrap; pointer-events:none; border-radius:6px; }
/* 回放 / 录视频 */
.rpRow { margin-top:12px; }
.rpRow .btn { flex:1; }
.rpMsg { text-align:center; color:var(--dim); font-size:13px; font-weight:700; min-height:18px; margin-top:8px; }
.endCard .rpMsg { margin-top:4px; min-height:0; }
.rpBar, .vdRec { position:fixed; left:50%; transform:translateX(-50%); bottom:calc(14px + env(safe-area-inset-bottom)); z-index:30; display:none; align-items:center; gap:6px;
  padding:6px 8px 6px 14px; border-radius:999px; background:rgba(28,22,58,.5); -webkit-backdrop-filter:blur(14px) saturate(150%); backdrop-filter:blur(14px) saturate(150%);
  border:1px solid var(--edge); box-shadow:0 12px 30px rgba(10,6,30,.35); color:#fff; font-size:13px; font-weight:800; white-space:nowrap; }
body.rp .rpBar { display:flex; }
body.vid .rpBar { display:none; }
body.vidgen .rpBar, body.vidgen #hud, body.vidgen #ehud { display:none !important; }
body.vid .vdRec { display:flex; }
body.rp .pad, body.rp .fireBtn { display:none !important; }
/* 俯视关:左手一个大 ◀、右手一个大 ▶,别的键收起来 */
/* 俯视关:左手 ▲▼ 管前后、右手 ◀▶ 管左右(整块按区都算,见 tdZone);十字键和喷气 / 吸附键收起来 */
body.td #attachBtn, body.td #jetBtn, body.td .sdb { display:none !important; }
/* 火箭关:吸附键换成起落架图标 */
#attachBtn .rkIc { display:none; } body.rk #attachBtn .ic { display:none; } body.rk #attachBtn .rkIc { display:block; } body.rk #modChip { display:none !important; }
/* 火箭关教练:要按的键一圈金光一闪一闪 */
.pb.coach { animation:coachPulse 1.1s ease-in-out infinite; }
@keyframes coachPulse { 0%,100% { box-shadow:inset 0 0 0 2px rgba(255,214,110,.85), 0 0 0 0 rgba(255,214,110,0); } 50% { box-shadow:inset 0 0 0 2.5px rgba(255,236,170,1), 0 0 22px 6px rgba(255,214,110,.7); } }
/* 火箭对接关:左手 ▲▼、右手 ◀▶(同俯视关),两个转动键挪到右手上面 */
.rkdIc { display:none; } .rkJetIc { display:none; } body.rk #jetBtn .ic { display:none; } body.rk #jetBtn .rkJetIc { display:block; } body.rkd #jetBtn .rkJetIc { display:none !important; }
body.rkd .tdb { display:flex; } body.rkd .sdb { display:none !important; }
body.rkd .pad.left, body.rkd .pad.right { width:min(40vw, 380px); height:min(78vh, 340px); padding:0; }
body.rkd #attachBtn, body.rkd #jetBtn { bottom:108px; width:72px; height:72px; border-radius:36px; }
body.rkd #attachBtn { right:96px; } body.rkd #jetBtn { right:8px; }
body.rkd #attachBtn .ic, body.rkd #jetBtn .ic { display:none !important; } body.rkd .rkdIc { display:block !important; }
/* 火箭关:落点在画面下半,提示挪到上面 */
body.rk .toast { top:31%; bottom:auto; } @media (pointer:coarse) { body.rk .toast { top:31%; bottom:auto; max-width:46vw; } }
/* 侧视关的左手:整块按区分左右两半(见 sideZone),两个键画在底部正中 */
.sdb { position:absolute; bottom:0; left:50%; transform:translateX(-50%); display:flex; gap:16px; }
.sdb .pb { position:static; display:grid; width:106px; height:106px; border-radius:30px; font-size:30px; }
.tdb { display:none; position:absolute; bottom:0; gap:12px; }
body.td .tdb { display:flex; }
body.td .pad.left, body.td .pad.right { width:min(40vw, 380px); height:min(78vh, 340px); padding:0; }
.tdb.v { left:0; flex-direction:column; } .tdb.h { right:0; }
.tdb .pb { position:static; display:grid; width:88px; height:88px; border-radius:26px; font-size:26px; }
.rpTag { display:flex; align-items:center; gap:7px; max-width:30vw; overflow:hidden; text-overflow:ellipsis; }
.rpTag i { width:8px; height:8px; border-radius:2px; background:#ffd2b0; box-shadow:0 0 8px rgba(255,190,150,.8); flex:none; }
.rpProg { width:min(160px,22vw); height:4px; border-radius:2px; background:rgba(255,255,255,.18); overflow:hidden; margin:0 4px; }
.rpProg b { display:block; height:100%; width:0; background:linear-gradient(90deg,#ffd2b0,#ff9564); }
.rpB { border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.1); color:#fff; border-radius:999px; min-width:38px; height:34px; padding:0 10px; font:inherit; font-size:13px; font-weight:800; cursor:pointer; }
.rpB.sp.on { background:#fff; color:#2a2150; }
.vdRec .dot { width:10px; height:10px; border-radius:50%; background:#ff5a4a; box-shadow:0 0 0 0 rgba(255,90,74,.6); animation:recDot 1.4s ease-out infinite; }
@keyframes recDot { 0% { box-shadow:0 0 0 0 rgba(255,90,74,.6); } 100% { box-shadow:0 0 0 10px rgba(255,90,74,0); } }
.vdFmts { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.vdFmt { flex-direction:column; align-items:center; text-align:center; gap:10px; padding:18px 12px; }
.vdFmt > span { display:flex; flex-direction:column; gap:4px; }
.vdIc { display:block; border:2.5px solid rgba(255,255,255,.85); border-radius:7px; background:linear-gradient(180deg,rgba(255,210,176,.25),rgba(255,149,100,.35)); }
.vdIc.v { width:30px; height:52px; } .vdIc.h { width:62px; height:36px; margin:8px 0; }
#vdGenBox canvas { display:block; max-width:100%; max-height:min(52vh,500px); margin:0 auto; border-radius:16px; background:#000; }
.vdBar { height:6px; border-radius:3px; background:rgba(255,255,255,.16); margin:14px auto 0; max-width:320px; overflow:hidden; }
.vdBar i { display:block; height:100%; width:0; background:var(--ok); transition:width .2s; }
#vdPrev { display:block; max-width:100%; max-height:min(56vh,520px); margin:0 auto; border-radius:16px; background:#000; }
#rotate { position:fixed; inset:0; z-index:200; display:none; place-items:center; text-align:center; background:linear-gradient(180deg,#1f2550,#6a4c8a 60%,#f0907a); color:#fff; font-size:16px; font-weight:700; padding:24px; }
#rotate .ph { width:44px; height:76px; border:3px solid #fff; border-radius:10px; margin:0 auto 18px; animation:rot 2.2s ease-in-out infinite; }
@keyframes rot { 0%,25% { transform:rotate(0); } 55%,100% { transform:rotate(-90deg); } }
@media (pointer:coarse) and (orientation:portrait) { #rotate { display:grid; } }
/* 横屏手机高度只有三百多,菜单卡片收紧 */
@media (max-height:500px) {
  .card { padding:16px 18px; border-radius:20px; }
  .card h1 { font-size:28px; } .card .sub { margin:6px 0 12px; }
  .btn { padding:10px 14px; font-size:15px; } .keys { display:none; }
  .lv { padding:9px 10px; } .lv .tk { min-height:0; }
}
/* 自制关卡 */
.lv .mkDel { position:absolute; right:8px; top:8px; font:inherit; font-size:11px; font-weight:800; color:var(--dim); background:rgba(0,0,0,.25); border:1px solid rgba(255,255,255,.15); border-radius:999px; padding:2px 8px; cursor:pointer; }
.lv .ok { color:var(--ok); } .lv .no2 { color:#ffcf7a; }
.lv.mkEmpty { cursor:default; text-align:center; color:var(--dim); font-size:13px; grid-column:1/-1; }
.pzList { max-height:min(52vh,420px); overflow:auto; margin:4px 0 2px; }
.lv .au { font-size:11px; color:rgba(255,255,255,.7); margin-top:2px; }
.lv .pz { font-size:11px; color:var(--dim); margin-top:4px; font-variant-numeric:tabular-nums; }
.lv .pub { color:#9fd0ff; }
.stats.four { grid-template-columns:repeat(4,1fr); }
.stats.four .v { font-size:20px; }
.liHead { font-size:12px; font-weight:800; color:var(--dim); margin-top:12px; letter-spacing:1px; }
#pLvInfo .board { margin-top:4px; max-height:min(30vh,220px); overflow:auto; }
.liActs { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.liActs button { font:inherit; font-size:12px; font-weight:800; color:#fff; padding:6px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.06); cursor:pointer; }
.liActs button.on { background:rgba(255,122,72,.5); border-color:rgba(255,200,170,.8); }
.liActs .msg { font-size:12px; color:var(--dim); align-self:center; }
#resBoard a, #pzFoot a { color:#ffd7b8; font-weight:800; }
@media (max-height:500px) { .stats.four .v { font-size:16px; } .stats.four .stat { padding:6px 8px; } .pzList { max-height:48vh; } }
.wsLede { font-size:13px; color:var(--dim); margin:-8px 0 10px; line-height:1.6; }
.wsBox { display:flex; gap:8px; align-items:stretch; }
.wsBox textarea { flex:1; font:inherit; font-size:14px; padding:8px 10px; border-radius:12px; border:1px solid rgba(255,255,255,.3); background:rgba(0,0,0,.25); color:#fff; resize:none; -webkit-user-select:text; user-select:text; }
.wsUnder { display:flex; justify-content:space-between; gap:8px; font-size:12px; color:var(--dim); margin:4px 2px 8px; min-height:16px; }
.wsUnder a, .wsNote a { color:#ffd7b8; font-weight:800; }
.wsList { max-height:min(40vh,320px); overflow:auto; }
.wish { display:flex; gap:10px; align-items:flex-start; padding:9px 2px; border-bottom:1px solid rgba(255,255,255,.1); }
.wsVote { flex:none; width:44px; font:inherit; color:#fff; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.06); border-radius:10px; padding:4px 0; cursor:pointer; display:flex; flex-direction:column; align-items:center; line-height:1.2; }
.wsVote span { font-size:10px; } .wsVote b { font-size:14px; font-variant-numeric:tabular-nums; }
.wsVote.on { background:rgba(255,122,72,.5); border-color:rgba(255,200,170,.8); }
.wsBody { flex:1; min-width:0; }
.wsText { font-size:14px; line-height:1.5; white-space:pre-wrap; word-break:break-word; -webkit-user-select:text; user-select:text; }
.wsMeta { font-size:11px; color:var(--dim); margin-top:3px; }
.wsSt { display:inline-block; font-size:11px; font-weight:800; padding:1px 8px; border-radius:999px; margin-left:4px; background:rgba(255,255,255,.12); color:#fff; }
.wsSt.st-planned { background:rgba(90,169,255,.35); } .wsSt.st-doing { background:rgba(255,210,63,.35); } .wsSt.st-done { background:rgba(79,208,138,.45); } .wsSt.st-no { background:rgba(255,255,255,.1); color:var(--dim); }
.wsReply { font-size:12px; color:#bfe9cf; margin-top:4px; line-height:1.5; }
.wsAct { display:flex; flex-direction:column; align-items:flex-end; }
.wsAct button { font:inherit; font-size:11px; font-weight:700; color:var(--dim); background:none; border:none; cursor:pointer; padding:2px 0; white-space:nowrap; }
.mrRow { display:flex; gap:10px; align-items:center; padding:10px 2px; border-bottom:1px solid rgba(255,255,255,.1); }
.mrRow .wsBody b { font-size:14px; }
.mrRow .tag { font-style:normal; font-size:11px; font-weight:800; color:#8ff0b8; margin-left:6px; }
.mrNums { display:flex; gap:12px; font-size:12px; color:var(--dim); margin-top:3px; font-variant-numeric:tabular-nums; }
.mrNums em { font-style:normal; color:#fff; font-weight:800; }
.mrNums .new { color:#8ff0b8; }
.wsNote { text-align:center; color:var(--dim); font-size:13px; padding:16px 6px; }
.btn .ds.news { color:#8ff0b8; }
/* 主菜单不套框:左边标题,右边一列按钮;按钮里说明换到标题下面 */
#pMain { background:linear-gradient(90deg, rgba(14,10,32,.42), rgba(14,10,32,0) 45%, rgba(14,10,32,0) 55%, rgba(14,10,32,.42)); }
#pMain .card { width:min(1040px,100%); background:none; border:0; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; padding:0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
  display:grid; grid-template-columns:1fr minmax(300px,380px); grid-template-areas:"t m" "k m" "a m"; column-gap:5vw; align-items:center; }
#pMain .card h1 { grid-area:t; text-align:left; align-self:end; font-size:clamp(34px,6vw,56px); }
#pMain .card h1 small { letter-spacing:7px; margin-top:8px; }
#pMain .card .sub { display:none; }
/* 右栏只三层:一个大「闯关」、两个模式、一排小图标(照过关弹窗的做法,说明字都拿掉) */
#pMain .menu { grid-area:m; gap:10px; }
#pMain .menu .btn { flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; padding:12px 18px; background:rgba(22,16,48,.34); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
@media (hover:hover) { #pMain .menu .btn:hover { background:rgba(40,30,80,.45); } }
#pMain .menu .btn.primary { background:linear-gradient(180deg,#ff9564,var(--hot2)); padding:18px 22px; font-size:22px; font-weight:850; border-radius:18px; }
#pMain .menu .btn.primary .ds { font-size:12.5px; }
#pMain .menu .btn .ds { font-size:11.5px; }
.mModes { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.mModes .btn { min-width:0; } .mModes .ds { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mDock { display:flex; justify-content:space-around; gap:4px; margin-top:6px; }
.dk { position:relative; flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; gap:5px; padding:4px 0; border:0; background:none; color:var(--ink); font:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.dk svg { width:46px; height:46px; padding:11px; box-sizing:border-box; border-radius:50%; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
  border:1px solid rgba(255,255,255,.16); background:rgba(22,16,48,.34); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); box-shadow:inset 0 1px 0 rgba(255,255,255,.16); transition:transform .12s, background .2s; }
.dk svg .fill { fill:currentColor; stroke:none; }
.dk b { font-size:11.5px; font-weight:700; color:rgba(255,255,255,.82); white-space:nowrap; text-shadow:0 1px 3px rgba(10,6,30,.7); }
.dk .ds { display:none; }
.dk:active svg { transform:scale(.92); }
@media (hover:hover) { .dk:hover svg { background:rgba(40,30,80,.5); } .dk:hover b { color:var(--ink); } }
.dk.news::after, #goMyRp.news::after { content:""; position:absolute; top:3px; left:calc(50% + 14px); width:9px; height:9px; border-radius:50%; background:#5fe39a; box-shadow:0 0 0 2px rgba(22,16,48,.6); }
#goMyRp { position:relative; } #goMyRp .ds { display:none; } #goMyRp.news::after { left:auto; right:8px; top:8px; }
.mGear { position:absolute; top:calc(14px + env(safe-area-inset-top)); right:110px; width:34px; height:34px; display:grid; place-items:center; border-radius:50%; cursor:pointer; color:#fff; padding:0;
  background:rgba(28,22,58,.45); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); border:1px solid var(--edge); }
.mGear svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.mGear:active { transform:scale(.92); }
#pMain .keys { grid-area:k; align-self:start; margin-top:18px; text-align:left; }
#pMain .about { grid-area:a; align-self:start; margin-top:10px; }
@media (max-height:500px) {
  #pMain .menu { gap:8px; margin-top:34px; }
  #pMain .menu .btn { padding:9px 16px; }
  #pMain .menu .btn.primary { padding:13px 20px; font-size:20px; }
  #pMain .menu .btn .ds { font-size:11px; }
  .mModes { gap:8px; } .mDock { margin-top:2px; }
  .dk { gap:3px; } .dk svg { width:40px; height:40px; padding:9px; } .dk b { font-size:11px; }
}
@media (max-width:640px) {
  #pMain .card { grid-template-columns:1fr; grid-template-areas:"t" "m" "k" "a"; row-gap:16px; }
  #pMain .card h1 { text-align:center; }
}
/* 暂停:一小列,不挡太多 */
#pPause .card { width:min(300px,90vw); padding:18px; }
/* 命用完:三颗空心 → 看完广告依次点亮 */
.outCard { width:min(340px,90vw); padding:22px 22px 18px; text-align:center; display:flex; flex-direction:column; align-items:stretch; gap:10px;
  background:radial-gradient(120% 90% at 50% 0%, rgba(255,90,110,.18), rgba(255,90,110,0) 60%), var(--glass); }
.outCard h2 { margin:0; text-align:center; }
.outDs { color:var(--dim); font-size:13px; margin-top:-4px; }
.outHp { width:180px; height:12px; margin:2px auto 4px; border-radius:6px; background:rgba(0,0,0,.35); overflow:hidden; box-shadow:inset 0 1px 3px rgba(0,0,0,.45); }
.outHp b { display:block; height:100%; width:0; border-radius:6px; background:linear-gradient(180deg,#ffb4a0,#e0563c); box-shadow:0 0 10px rgba(255,110,80,.6); transition:width 1s cubic-bezier(.2,.9,.3,1); }
.outCard .rwdBtn.on { display:flex; justify-content:center; padding:13px 16px; font-size:15.5px; margin-top:4px; }
.outCard #outRestart { justify-content:center; }
.panel { padding-top:calc(18px + var(--adb, 0px)); }
/* 奖励卡 */
.rwd { position:relative; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px; margin:12px 0 4px; padding:12px 14px;
  border-radius:16px; border:1px solid rgba(255,214,90,.32); overflow:hidden;
  background:radial-gradient(120% 160% at 0% 50%, rgba(255,205,60,.22), rgba(255,205,60,0) 60%), linear-gradient(180deg, rgba(40,28,10,.42), rgba(20,14,6,.32));
  box-shadow:inset 0 1px 0 rgba(255,236,170,.18), 0 8px 24px rgba(0,0,0,.18); }
.rwdL { display:flex; align-items:center; gap:10px; }
.rwdCoin { width:38px; height:38px; border-radius:50%; flex:none; position:relative;
  background:radial-gradient(circle at 34% 28%, #fff7c8, #ffd23f 42%, #d39b10 78%, #a8740a);
  box-shadow:inset 0 0 0 3px #e7ae1f, inset 0 -3px 0 3px rgba(150,96,0,.35), 0 0 18px rgba(255,200,60,.5); }
.rwdCoin::after { content:""; position:absolute; inset:9px; border-radius:50%; box-shadow:inset 0 0 0 2px rgba(160,105,0,.45); }
.rwdCoin.pop { animation:rwdPop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes rwdPop { 0% { transform:scale(1); } 40% { transform:scale(1.28); } 100% { transform:scale(1); } }
.rwdNum { display:flex; flex-direction:column; line-height:1.05; }
.rwdNum b { font-size:28px; font-weight:900; font-variant-numeric:tabular-nums; letter-spacing:-.01em;
  background:linear-gradient(180deg,#fff6c4,#ffd23f 55%,#f0a91c); -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 2px 6px rgba(255,190,40,.35)); }
.rwdNum span { font-size:11.5px; font-weight:700; color:rgba(255,232,170,.72); margin-top:3px; white-space:nowrap; }
.rwdBar { min-width:0; }
.rwdTrack { height:7px; border-radius:7px; background:rgba(255,255,255,.1); overflow:hidden; box-shadow:inset 0 1px 2px rgba(0,0,0,.3); }
.rwdTrack i { display:block; height:100%; width:0; border-radius:7px; background:linear-gradient(90deg,#f6b52a,#ffe07a); box-shadow:0 0 10px rgba(255,210,80,.6); transition:width .9s cubic-bezier(.2,.8,.2,1); }
.rwdBar span { display:block; font-size:11.5px; color:var(--dim); margin-top:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rwdBtn { display:none; position:relative; align-items:center; gap:8px; padding:11px 16px 11px 12px; border:0; border-radius:14px; cursor:pointer; overflow:hidden;
  font:inherit; font-size:15px; font-weight:850; color:#3b2400; white-space:nowrap;
  background:linear-gradient(180deg,#ffe58a,#ffc531 50%,#f2a215); box-shadow:0 6px 18px rgba(240,160,20,.38), inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(170,95,0,.35);
  animation:rwdIn .4s cubic-bezier(.2,1.4,.4,1) both; }
.rwdBtn.on { display:inline-flex; }
.rwdBtn b { font-weight:950; }
.rwdBtn::after { content:""; position:absolute; top:-20%; bottom:-20%; width:38%; left:-60%; transform:skewX(-20deg);
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.65),rgba(255,255,255,0)); animation:rwdShine 2.6s ease-in-out 1s infinite; }
.rwdBtn:active { transform:translateY(1px) scale(.98); }
.rwdBtn.busy { filter:saturate(.6) brightness(.92); pointer-events:none; }
.rwdBtn.busy .rwdPlay { animation:rwdSpin .9s linear infinite; background:none; box-shadow:inset 0 0 0 2.5px rgba(59,36,0,.25); border-top-color:#3b2400; }
.rwdPlay { width:24px; height:24px; border-radius:50%; flex:none; position:relative; background:#3b2400; border:2.5px solid transparent; box-sizing:border-box; }
.rwdPlay::after { content:""; position:absolute; left:8px; top:5px; border-left:8px solid #ffd23f; border-top:5px solid transparent; border-bottom:5px solid transparent; }
.rwdBtn.busy .rwdPlay::after { display:none; }
@keyframes rwdShine { 0%, 55% { left:-60%; } 100% { left:130%; } }
@keyframes rwdIn { from { opacity:0; transform:scale(.85); } }
@keyframes rwdSpin { to { transform:rotate(360deg); } }
.rwd.done { border-color:rgba(140,240,170,.35); }
.rwd.done .rwdNum span { color:#9ff0bd; }
.rwdFlyCoin { position:fixed; z-index:600; width:16px; height:16px; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle at 35% 30%, #fff3b0, #ffd23f 45%, #c99a12); box-shadow:inset 0 0 0 2px #e0a91a, 0 0 8px rgba(255,210,63,.7); }
@media (max-width:560px), (max-height:380px) { .rwd { gap:10px; padding:9px 11px; margin-top:8px; } .rwdCoin { width:30px; height:30px; } .rwdNum b { font-size:22px; } .rwdBtn { padding:9px 12px 9px 9px; font-size:13.5px; } }
@media (prefers-reduced-motion: reduce) { .rwdBtn::after { animation:none; display:none; } .rwdBtn { animation:none; } }
.btn.ad::before { content:""; width:16px; height:16px; margin-right:7px; flex:none; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='3' width='14' height='10' rx='2.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M6.5 5.6v4.8L10.6 8z'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='3' width='14' height='10' rx='2.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M6.5 5.6v4.8L10.6 8z'/%3E%3C/svg%3E") center/contain no-repeat; }
#gInv { margin-top:10px; width:100%; justify-content:center; }
#gRwd { margin-top:12px; }
#endRwd { margin:10px 20px 0; }
.invCard { width:min(440px,92vw); padding:18px 20px; }
.invCard h2 { margin-bottom:6px; }
.ivRule { color:var(--dim); font-size:13px; line-height:1.5; margin:0 0 12px; }
.ivMine { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ivCode { font-size:26px; font-weight:900; letter-spacing:.18em; color:#ffe08a; font-variant-numeric:tabular-nums; padding:4px 12px; border-radius:10px; background:rgba(255,224,138,.08); border:1px solid rgba(255,224,138,.25); }
.ivMine .btn { flex:none; }
.ivGot { font-size:13px; color:var(--dim); margin-top:8px; }
.ivTake { margin-top:14px; padding-top:12px; border-top:1px solid rgba(255,255,255,.1); font-size:13px; color:var(--dim); }
.ivTake .ivIn { display:flex; gap:8px; margin-top:8px; }
.ivTake input { flex:1; min-width:0; font:inherit; font-size:16px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; padding:9px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.16); background:rgba(0,0,0,.25); color:var(--ink); }
.ivTake b { color:var(--ink); }
.ivMsg { min-height:18px; font-size:13px; color:#ffb4a0; margin-top:8px; }
.ivMsg.ok { color:#8ff0b8; }
#pPause h2 { text-align:center; margin-bottom:12px; }
#pPause .menu { gap:7px; }
#pPause .menu .btn { justify-content:center; padding:10px 14px; font-size:14.5px; position:relative; }
#pPause .menu .btn .ds { position:absolute; right:14px; }
/* 矮屏(iPhone SE、细长安卓横过来只有 360 高):暂停和车库收紧,整块放得下,「退出」「返回」不出屏 */
@media (max-height:400px) {
  #pPause .card { padding:12px 16px; } #pPause h2 { font-size:18px; margin-bottom:8px; }
  #pPause .npRow { margin-bottom:8px; padding:5px 8px 5px 11px; } #pPause .menu { gap:5px; } #pPause .menu .btn { padding:7px 14px; }
  .card.garage { padding:12px 16px; width:min(600px,94vw); } .card.garage h2 { margin-bottom:8px; font-size:18px; }
  .gCars { gap:6px; } .gCar { padding:2px 4px 4px; } .gCar canvas { aspect-ratio:3.2/1; } .gCar b { font-size:12px; }
  .card.garage .gNote { display:none; } .card.garage .row { margin-top:10px; }
}
@media (max-height:500px) { .wsList { max-height:34vh; } .wsLede { display:none; } }
a.btn { text-decoration:none; }
.ugcFoot { font-size:11px; color:var(--dim); text-align:center; margin-top:8px; }
.ugcFoot a, .lgNote a, .ugcText a, .opt .ds a { color:#ffd7b8; font-weight:800; }
.ugcText { font-size:14px; line-height:1.8; color:var(--ink); }
.lgMsg { min-height:18px; font-size:13px; color:#ffb4a0; margin-top:8px; }
.lgNote { font-size:12px; color:var(--dim); line-height:1.7; margin-top:4px; }
.lgCodeRow { display:flex; gap:6px; align-items:center; } .lgCodeRow input { width:7em; }
#pLogin .opt input { width:13em; }
.shFrom { font-size:12px; color:#ffb48f; font-weight:800; letter-spacing:1px; margin-bottom:2px; }
.opt input { font:inherit; font-size:14px; width:11em; padding:6px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.3); background:rgba(0,0,0,.25); color:#fff; -webkit-user-select:text; user-select:text; text-align:right; }
.opt input[type=number] { width:6em; }
.edui { position:fixed; inset:0; z-index:30; pointer-events:none; display:none; }
.edui.on { display:block; }
.edTop, .edBot { position:absolute; left:calc(10px + env(safe-area-inset-left)); right:calc(10px + env(safe-area-inset-right)); display:flex; gap:6px; align-items:center; pointer-events:none; }
.edTop { top:calc(8px + env(safe-area-inset-top)); }
.edBot { bottom:calc(8px + env(safe-area-inset-bottom)); flex-direction:column; align-items:stretch; }
.edTop > *, .edMode, .edTools { pointer-events:auto; }
.edSp { flex:1; pointer-events:none !important; }
.edB, .edChip, .edT { font:inherit; font-size:13px; font-weight:800; color:#fff; padding:7px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.25); background:rgba(16,12,36,.5); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); cursor:pointer; white-space:nowrap; }
.edB.on, .edT.on { background:rgba(255,122,72,.55); border-color:rgba(255,200,170,.85); }
.edB.hot { background:linear-gradient(180deg,#ff9564,var(--hot2)); border-color:rgba(255,190,160,.6); }
.edB:disabled { opacity:.4; cursor:default; }
.edChip { max-width:30vw; overflow:hidden; text-overflow:ellipsis; }
.edSt { font-size:12px; font-weight:700; color:var(--dim); text-shadow:0 1px 4px rgba(0,0,0,.6); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.edSt.ok { color:var(--ok); }
.edMode { display:flex; gap:6px; align-self:flex-start; margin-bottom:6px; }
.edTools { display:flex; gap:5px; overflow-x:auto; padding:5px; border-radius:14px; background:rgba(16,12,36,.45); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.18); scrollbar-width:none; touch-action:pan-x; }
.edTools::-webkit-scrollbar { display:none; }
.edT { display:flex; flex-direction:column; align-items:center; gap:3px; padding:5px 7px; font-size:11px; border-radius:10px; flex:none; min-width:52px; }
.edT canvas { width:24px; height:24px; display:block; }
.edTip { position:absolute; right:calc(12px + env(safe-area-inset-right)); bottom:calc(112px + env(safe-area-inset-bottom)); font-size:11px; color:rgba(255,255,255,.7); text-shadow:0 1px 4px rgba(0,0,0,.7); text-align:right; line-height:1.6; }
@media (pointer:coarse) { .edTip { display:none; } }
@media (max-height:500px) { #pEdSet .opt { padding:7px 0; font-size:14px; } #pEdSet .opt input { padding:4px 9px; } #pEdSet h2 { margin-bottom:6px; } }
@media (max-height:430px) { .edB, .edChip { padding:6px 10px; font-size:12px; } .edT { min-width:46px; padding:4px 6px; } .edT canvas { width:20px; height:20px; } }
.board { margin-top:12px; font-size:13px; color:var(--dim); }
.board div { display:flex; justify-content:space-between; padding:6px 4px; border-bottom:1px solid rgba(255,255,255,.1); font-variant-numeric:tabular-nums; }
.board div.me { color:var(--ok); font-weight:800; }
/* 游戏内顶栏(2026-11-25 精简):左上一块表盘放电量 + 车况(图标代替字);右上计时和三星用时并成一个;
   改装只在不是标准款时显示;标题只写关名,重力 / 天气是标题后的小标记,点开才有说明 */
.gauge { display:flex; flex-direction:column; gap:5px; padding:6px 10px 6px 8px; border-radius:14px; background:rgba(16,12,36,.38); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.2); }
.gauge .bat { padding:0; background:none; border:none; -webkit-backdrop-filter:none; backdrop-filter:none; border-radius:0; gap:6px; }
.gauge .bat.empty { border:none; }
.gauge .bat .bar, .gauge .lifeChip .hp { width:84px; height:7px; }
.gauge .lifeChip { gap:6px; color:#fff; font-size:12px; font-variant-numeric:tabular-nums; }
.gauge .lifeChip > span:last-child, .gauge .bat > span { min-width:32px; text-align:right; }
.gIc { width:13px; height:13px; flex:none; fill:#8ff0b8; }
.lifeChip .gIc { fill:#ffb4a0; }
.hud .clock { display:flex; align-items:baseline; gap:8px; padding:5px 12px; border-radius:999px; background:rgba(16,12,36,.38); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.2); }
.hud .clock .time, .hud .clock .par { padding:0; background:none; border:none; -webkit-backdrop-filter:none; backdrop-filter:none; }
.hud .tr .partChip { align-self:center; padding:5px 10px; }
.hud .tc .nm { display:inline-flex; align-items:center; gap:6px; }
.gBadge { width:20px; height:20px; padding:0; border-radius:50%; border:1px solid rgba(255,255,255,.3); background:rgba(20,12,44,.4); color:#fff; font:800 11px/18px inherit; cursor:pointer; pointer-events:auto; display:inline-flex; align-items:center; justify-content:center; }
.gBadge svg { width:12px; height:12px; fill:currentColor; }
/* ---- 过关称号(titles.js):结算页直接摆分享海报 ---- */
.achIc { flex:none; width:36px; height:36px; display:grid; place-items:center; border-radius:50%; color:#ffd04a; background:rgba(255,208,74,.14); }
.achIc svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.achIc svg .fill { fill:currentColor; stroke:none; }
.achTx { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.achTx b { font-size:17px; font-weight:900; line-height:1.2; color:#ffe08a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.achTx small { font-size:12px; color:var(--ink); opacity:.85; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.resP { position:relative; flex:none; justify-self:center; margin:0 auto; border-radius:16px; animation:achIn .5s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes achIn { from { opacity:0; transform:translateY(8px) scale(.96); } to { opacity:1; transform:none; } }
.resPImg { display:block; border-radius:16px; overflow:hidden; cursor:pointer; outline:none; transition:transform .15s;
  box-shadow:0 0 0 1px rgba(255,214,110,.4), 0 14px 34px rgba(0,0,0,.42), 0 0 40px rgba(255,180,60,.14); }
.resPImg:active { transform:scale(.985); }
.resPImg:focus-visible { box-shadow:0 0 0 3px #ffd04a, 0 14px 34px rgba(0,0,0,.42); }
.resPCv { display:block; height:min(44vh,520px); width:auto; aspect-ratio:4/5; }
.resPAll { position:absolute; top:10px; right:10px; display:flex; align-items:center; gap:5px; height:30px; padding:0 10px 0 7px; border-radius:15px; cursor:pointer; font:inherit;
  font-size:12px; font-weight:850; color:#ffe08a; border:1px solid rgba(255,224,138,.4); background:rgba(14,12,34,.5); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); font-variant-numeric:tabular-nums; }
.resPAll svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.resPAll svg .fill { fill:currentColor; stroke:none; }
.resPAll em { font-style:normal; font-size:10.5px; font-weight:900; color:#1d1636; background:#ffd04a; border-radius:7px; padding:1px 6px; margin-left:1px; }
.resPBtn { position:absolute; bottom:10px; right:10px; width:44px; height:44px; display:grid; place-items:center; border-radius:50%; cursor:pointer; color:#fff;
  border:1px solid rgba(255,255,255,.28); background:rgba(14,12,34,.5); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); transition:transform .12s; }
#asSave { right:auto; left:10px; }
.resPBtn.go { width:50px; height:50px; bottom:8px; right:8px; color:#3b2400; border-color:rgba(255,240,190,.7);
  background:linear-gradient(180deg,#ffe48a,#ffb93a); box-shadow:0 6px 18px rgba(255,170,40,.45), inset 0 1px 0 rgba(255,255,255,.6); }
.resPBtn svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.resPBtn:active { transform:scale(.92); }
.resPBtn:disabled { opacity:.6; }
/* 有海报:卡片变宽,海报在上,其余在下;够宽就左右两栏 */
#pResult.withPoster .card { width:auto; max-width:96vw; max-height:calc(100vh - 36px - var(--adb, 0px)); overflow:auto; padding:16px 18px 14px; }
#pResult.withPoster .resInfo { width:min(380px,88vw); margin:12px auto 0; }
#pResult.withPoster #resTitle, #pResult.withPoster .stars.big, #pResult.withPoster .resTime { display:none; }
#pResult.withPoster .starWhy { margin-top:0; }
#pResult.withPoster .resMini { margin-top:8px; font-size:12.5px; }
#pResult:not(.withPoster) .resInfo { display:contents; }
@media (min-width:600px) {
  #pResult.withPoster .resCols { display:flex; align-items:center; gap:22px; }
  #pResult.withPoster .resInfo { margin:0; width:min(360px,46vw); }
  .resPCv { height:min(80vh, 560px, calc(100vh - 84px - var(--adb, 0px))); }
}
@media (max-height:500px) and (min-width:600px) {
  #pResult.withPoster .card { width:auto; padding:10px 16px 10px 10px; }
  #pResult.withPoster .resCols { display:flex; gap:18px; }
  .resPCv { height:calc(100vh - 56px - var(--adb, 0px)); max-height:none; }
  /* 顶上有横幅时一列放不下:海报 | 成绩 | 奖励和按钮 三栏 */
  #pResult.withPoster .card { width:min(900px,96vw); }
  #pResult.withPoster .resInfo { flex:1; width:auto; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:16px; align-items:center; }
}
#pAchList h2 small { font-size:13px; font-weight:800; color:var(--dim); }
.alList { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:8px; max-height:min(56vh,440px); overflow:auto; margin:6px 0 4px; }
.alIt { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:14px; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.04); }
.alIt .achTx b { color:rgba(255,255,255,.5); font-size:14.5px; }
.alIt .achTx small { white-space:normal; font-size:11.5px; color:var(--dim); opacity:1; line-height:1.35; }
.alIt .achIc { color:rgba(255,255,255,.3); background:rgba(255,255,255,.06); }
.alIt.on { border-color:rgba(255,214,110,.4); background:linear-gradient(100deg, rgba(255,200,80,.16), rgba(255,255,255,.03)); }
.alIt.on .achTx b { color:#ffe08a; } .alIt.on .achIc { color:#ffd04a; background:rgba(255,208,74,.14); }
.alN { flex:none; font-size:12px; font-weight:800; color:var(--dim); font-variant-numeric:tabular-nums; }
@media (max-height:500px) { .alList { max-height:52vh; } }

/* 集邮册风景页:整幅远景画在后面的游戏画布上,这里只有几样字和按钮,尽量不挡画 */
#pAlbum { background:none; display:none; padding:0; touch-action:none; cursor:grab; }
#pAlbum.on { display:block; }
#pAlbum .albTop { position:absolute; left:calc(14px + env(safe-area-inset-left)); top:calc(12px + var(--adb, 0px)); display:flex; align-items:center; gap:12px; }
#albN { font-size:12px; font-weight:800; color:rgba(255,255,255,.8); text-shadow:0 1px 4px rgba(0,0,0,.5); }
.albNav { position:absolute; top:38%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:rgba(20,14,44,.22); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); display:grid; place-items:center; cursor:pointer; }
.albNav svg { width:22px; height:22px; fill:none; stroke:#fff; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.albNav.l { left:calc(12px + env(safe-area-inset-left)); } .albNav.r { right:calc(12px + env(safe-area-inset-right)); }
#albStamp { position:absolute; right:calc(22px + env(safe-area-inset-right)); top:calc(16px + var(--adb, 0px)); width:min(150px,22vw,30vh); aspect-ratio:5/4; transform:rotate(4deg); filter:drop-shadow(0 4px 10px rgba(0,0,0,.4)); pointer-events:none; }
.albInfo { position:absolute; left:calc(22px + env(safe-area-inset-left)); bottom:calc(18px + env(safe-area-inset-bottom)); color:#fff; text-shadow:0 2px 10px rgba(0,0,0,.55); max-width:70vw; }
.albInfo small { display:block; font-size:12px; font-weight:700; opacity:.85; }
.albInfo h2 { margin:2px 0 2px; font-size:clamp(22px,3.4vw,38px); font-weight:900; letter-spacing:.02em; }
.albInfo #albDate { font-size:12px; font-weight:700; opacity:.8; }
.albBtns { display:flex; gap:8px; margin-top:10px; }
#albMsg { font-size:12px; margin-top:6px; opacity:.85; min-height:1em; }
